class Tsh::Sound
- Tsh::Sound
- Reference
- Object
Overview
A collection of note data which can be played. Currently you can play a Tone on every waveform at once, giving the ability to play 8 different sounding musical notes at the same time. Attemps to play multiple tones on the same waveform at the same time or playing over 8 tones in one note will yield unexpected and possibly disastrous results.
Defined in:
sounds.crConstructors
Instance Method Summary
-
#looping : Bool
Loop the sound
-
#looping=(looping : Bool)
Loop the sound
-
#notes : Array(Note)
The notes for the sound to play
-
#play
Play the sound from the beginning
-
#playing : Bool
Is the sound currently playing?
-
#resume
Resume the sound from where it was stopped
-
#stop
Stop the sound