tonejs-instrument-french-horn-mp3

1.1.2 • Public • Published

ToneJS Instrument FrenchHornMp3

FrenchHornMp3 extends Tone.Sampler by automatically loading the list of audio clips for each note.

For all audio formats, check out FrenchHorn.

Basic Usage

Install using npm install tonejs-instrument-french-horn-mp3. Once installed, you can include FrenchHornMp3 as an import as shown:

import FrenchHornMp3 from 'tonejs-instrument-french-horn-mp3';

To use this instrument as a source:

const
  instrument = new FrenchHornMp3();

You can also pass an options object with an onload event to perform actions once the instrument is loaded:

const
  instrument = new FrenchHornMp3({
    onload: () => {
      instrument.triggerAttack("A3");
    }
  });

If you want to reduce the number of samples to load, set minify: true as shown here:

const
  instrument = new FrenchHornMp3({
    minify: true,
    onload: () => {
      instrument.triggerAttack("A3");
    }
  });

About the samples

These instrument samples come from a variety of public domain sources (see the sample-source-info.txt for more information)

All the samples have been edited for consistency: trimming silence, on/off ramp, volume-matching, normalizing, noise removal, and some pitch-correction where necessary.

LICENSE

Code: MIT License (see LICENSE.md)

Samples: CC-by 3.0

Readme

Keywords

none

Package Sidebar

Install

npm i tonejs-instrument-french-horn-mp3

Weekly Downloads

6

Version

1.1.2

License

MIT

Unpacked Size

2.5 MB

Total Files

13

Last publish

Collaborators

  • probityrules