Preparing search index...
The search index is not available
retro-sound
retro-sound
Sound
Class Sound
Hierarchy
Sound
Index
Constructors
constructor
Properties
audio
Context
carrier
destination
filter
modulators
output
time
Methods
dispose
exp
Ramp
Filter
Freq
At
Time
exp
Ramp
To
Volume
At
Time
play
ramp
Filter
Freq
At
Time
ramp
To
Note
At
Time
ramp
To
Volume
At
Time
set
To
Note
At
Time
set
Volume
At
Time
to
Destination
wait
wait
Dispose
with
Filter
with
Modulator
Constructors
constructor
new
Sound
(
audioContext
,
carrierType
?
)
:
Sound
Parameters
audioContext
:
AudioContext
carrierType
:
OscillatorType
= 'square'
Returns
Sound
Properties
audio
Context
audio
Context
:
AudioContext
carrier
carrier
:
OscGainNode
destination
destination
:
null
|
AudioNode
= null
filter
filter
:
null
|
BiquadFilterNode
= null
modulators
modulators
:
OscGainNode
[]
= []
output
output
:
AudioNode
time
time
:
number
= 0
Methods
dispose
dispose
(
)
:
void
Returns
void
exp
Ramp
Filter
Freq
At
Time
exp
Ramp
Filter
Freq
At
Time
(
frequency
,
time
?
)
:
Sound
Parameters
frequency
:
number
time
:
number
= 0
Returns
Sound
exp
Ramp
To
Volume
At
Time
exp
Ramp
To
Volume
At
Time
(
volume
,
time
)
:
Sound
Parameters
volume
:
number
time
:
number
Returns
Sound
play
play
(
note
,
startVolume
?
,
startTime
?
)
:
Sound
Parameters
note
:
string
startVolume
:
number
= 1
startTime
:
number
= 0
Returns
Sound
ramp
Filter
Freq
At
Time
ramp
Filter
Freq
At
Time
(
frequency
,
time
?
)
:
Sound
Parameters
frequency
:
number
time
:
number
= 0
Returns
Sound
ramp
To
Note
At
Time
ramp
To
Note
At
Time
(
note
,
time
)
:
Sound
Parameters
note
:
string
time
:
number
Returns
Sound
ramp
To
Volume
At
Time
ramp
To
Volume
At
Time
(
volume
,
time
)
:
Sound
Parameters
volume
:
number
time
:
number
Returns
Sound
set
To
Note
At
Time
set
To
Note
At
Time
(
note
,
time
)
:
Sound
Parameters
note
:
string
time
:
number
Returns
Sound
set
Volume
At
Time
set
Volume
At
Time
(
volume
,
time
)
:
Sound
Parameters
volume
:
number
time
:
number
Returns
Sound
to
Destination
to
Destination
(
destination
?
)
:
Sound
Parameters
destination
:
null
|
AudioNode
= null
Returns
Sound
wait
wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
wait
Dispose
wait
Dispose
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
with
Filter
with
Filter
(
type
,
frequency
,
Q
?
)
:
Sound
Parameters
type
:
BiquadFilterType
frequency
:
number
Optional
Q
:
number
Returns
Sound
with
Modulator
with
Modulator
(
modulatorType
?
,
frequency
,
amount
,
assignTo
?
)
:
Sound
Parameters
modulatorType
:
OscillatorType
= 'square'
frequency
:
number
amount
:
number
assignTo
:
"frequency"
|
"detune"
|
"gain"
|
"filter"
|
"last"
= 'frequency'
Returns
Sound
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
audio
Context
carrier
destination
filter
modulators
output
time
dispose
exp
Ramp
Filter
Freq
At
Time
exp
Ramp
To
Volume
At
Time
play
ramp
Filter
Freq
At
Time
ramp
To
Note
At
Time
ramp
To
Volume
At
Time
set
To
Note
At
Time
set
Volume
At
Time
to
Destination
wait
wait
Dispose
with
Filter
with
Modulator
retro-sound
Sound
WhiteNoise
createFilter
noteToFrequency
noteToMIDI
Generated using
TypeDoc