sampler-instrument
Version:
A web audio sampler instrument
55 lines (21 loc) • 619 B
Markdown
## `connect`
Connect the sample output to the destination
This method is chainable
### Parameters
* `destination` **`AudioNode`**
Returns `Sampler` the sampler
## `sample`
Get a sample (player)
### Parameters
* `the` **`String`** sample name
Returns `SamplePlayer` a sample player
## `Sampler`
Create a sampler
It uses an audio context and an instrument props.
### Parameters
* `ac` **`AudioContect`** the audio contect
* `props` **`Object`** the instrument properties
Returns `Sampler` a sampler instance
## `samples`
Return a list of available sample names
Returns the sample names