Speaker
The speaker allows you to play ANY kind of sound and we mean ANYTHING!
Functions
beep
Speaker.beep()
Play's a beep sound.
longBeep
Speaker.longBeep()
Play's a long beep sound.
playNote
Speaker.playNote( pitch, note, durationTicks )
Play's whatever note.
Arguments:
- pitch [ number ] The pitch of the note
- note [ integer ] The note to play
- durationTicks [ integer ] The duration that it will play in ticks
playSound
Speaker.playSound( name, params, durationTicks )
Plays whatever event effect you specify!
Arguments:
- name [ string ] The name of the audio to play
- params [ AudioParameter] Audio parameters to use
- durationTicks [ integer ] The duration of how long it should play in ticks!
stopAllAudio
Speaker.stopAllAudio()
Stops all audio.