Optional
options: { Optional
freq?: numberFrequency (Hz)
Optional
note?: stringNote string (e.g. "C4", "F#3", "Ab5")
Optional
numberNumber of simultaneous sounds (default = 2)
Optional
pitch?: numberMIDI note number
Optional
seed?: numberRandom seed (default = 0)
Optional
volume?: numberSound volume (default = 1)
Generated using TypeDoc
Play a sound effect. Specify in the type argument either a type defined in SoundEffectType or a type defined in correspondence with external sound files in
audioFiles
.