Sounder class of PicoRuby

Singleton methods

new

Sounder.new(Integer pin) -> instance

Instance methods

add_note

instance.add_note(Float frequency, Integer duration) -> bool

add_song

instance.add_song(Symbol name, *String measures) -> void

clear_song

instance.clear_song() -> void

compile

instance.compile(*String | Symbol measures) -> void

lock

instance.lock() -> void

play

instance.play(*String | Symbol measures) -> void

replay

instance.replay() -> void

replay_if_key_pressed

instance.replay_if_key_pressed() -> void

unlock

instance.unlock() -> void
Tags: class