class

Tsh::Sound

Inherits Reference < Object

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.

Constructors

new(notes : Array(Note), looping : Bool = false)
Source

Instance methods

looping

Loop the sound

Source
looping=(looping : Bool)

Loop the sound

Source
notes

The notes for the sound to play

Source
play

Play the sound from the beginning

Source
playing

Is the sound currently playing?

Source
resume

Resume the sound from where it was stopped

Source
stop

Stop the sound

Source

Nested types