Methods
(static) convolve(buffer, options) → {AudioNode}
Create a convolver
Parameters:
Name | Type | Description |
---|---|---|
buffer |
AudioBuffer | |
options |
Object | (Optional) options may include:
|
- Source:
Returns:
the convolver (ConvolverNode)
- Type
- AudioNode
Example
reverb = mix(convolve(sample('emt-140.wav')))
connect(subtractive(880, { perc: [0.1, 1] }), reverb(0.2))
(static) decayIR(duration, options) → {AudioBuffer}
Create a reverb impulse response using a logarithmic decay white noise
Parameters:
Name | Type | Description |
---|---|---|
duration |
Number | the duration in samples |
options |
Object | (Optional) options may include:
|
- Source:
Returns:
the impulse response audio buffer
- Type
- AudioBuffer
(static) delay()
A mono or stereo delay with filtered feedback
- Source:
(static) dly()
Create a delay (a DelayNode object)
- Source:
(static) feedback(amount, node, options) → {AudioNode}
Create a feedback loop.
Parameters:
Name | Type | Description |
---|---|---|
amount |
Integer | the amount of signal |
node |
AudioNode | the node to feedback |
options |
Object | (Optional) options may include:
|
- Source:
Returns:
the original node (with a feedback loop)
- Type
- AudioNode
(static) mix(wet, fx, options) → {AudioNode}
Mix an effect with the signal. Can be partially applied to create an effect bus.
Parameters:
Name | Type | Description |
---|---|---|
wet |
Number | the amount of effect (0-1) |
fx |
AudioNode | the effect unit |
options |
Object | (Optional) may include:
|
- Source:
Returns:
- Type
- AudioNode
Examples
mix(dB(-3), delay(ms(800)))
// create an effect bus
var rev = mix(reverb(2))
conn(sine(300), rev(0.2))
(static) reverb(duration)
Create a simple reverb
Parameters:
Name | Type | Description |
---|---|---|
duration |
Number | in seconds? WTF? |
- Source:
(static) tremolo()
Create a tremolo
- Source: