Method: Collavoce::Note#play
- Defined in:
- lib/collavoce/note.rb
#play(receiver, channel, bar_duration) ⇒ Object
103 104 105 106 107 108 109 110 111 112 |
# File 'lib/collavoce/note.rb', line 103 def play(receiver, channel, ) sleep_duration = * duration if value on(receiver, channel) sleep sleep_duration off else sleep sleep_duration end end |