@ujjwalvivek/tinyts
Examples
Untitled Game
Preparing search index...
index
Voice
Class Voice
Index
Constructors
constructor
Properties
_
base
Freq
ctx
gain
group
handle
loop
pan
Node
source
started
At
tag
Methods
set
Pitch
stop
Constructors
constructor
new
Voice
(
ctx
:
AudioContext
,
source
:
AudioScheduledSourceNode
,
gain
:
GainNode
,
panNode
:
StereoPannerNode
,
handle
:
AudioHandle
,
group
:
string
,
tag
:
string
,
loop
:
boolean
,
)
:
Voice
Parameters
ctx
:
AudioContext
source
:
AudioScheduledSourceNode
gain
:
GainNode
panNode
:
StereoPannerNode
handle
:
AudioHandle
group
:
string
tag
:
string
loop
:
boolean
Returns
Voice
Properties
_
base
Freq
_baseFreq
:
number
= 0
Base oscillator frequency (for setPitch on synth sounds)
Readonly
ctx
ctx
:
AudioContext
Readonly
gain
gain
:
GainNode
Readonly
group
group
:
string
Readonly
handle
handle
:
AudioHandle
loop
loop
:
boolean
Readonly
pan
Node
panNode
:
StereoPannerNode
Readonly
source
source
:
AudioScheduledSourceNode
Readonly
started
At
startedAt
:
number
Readonly
tag
tag
:
string
Methods
set
Pitch
setPitch
(
p
:
number
)
:
void
Parameters
p
:
number
Returns
void
stop
stop
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
base
Freq
ctx
gain
group
handle
loop
pan
Node
source
started
At
tag
Methods
set
Pitch
stop
Examples
Untitled Game
@ujjwalvivek/tinyts
Loading...
Base oscillator frequency (for setPitch on synth sounds)