Class: JSound::Midi::Devices::Repeater
- Inherits:
-
JSound::Midi::Device
- Object
- JSound::Midi::Device
- JSound::Midi::Devices::Repeater
- Defined in:
- lib/jsound/midi/devices/repeater.rb
Overview
A device which repeats the input message to multiple outputs.
Instance Method Summary collapse
- #message(message) ⇒ Object
-
#output=(device) ⇒ Object
connect device(s) as the outputs for this device.
Methods inherited from JSound::Midi::Device
#<=, #>>, #close, #open, #open?, #output, #to_s, #type
Methods included from JSound::Mixins::TypeFromClassName
Instance Method Details
#message(message) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/jsound/midi/devices/repeater.rb', line 16 def () if @output for device in @output device.() end end end |
#output=(device) ⇒ Object
connect device(s) as the outputs for this device
11 12 13 14 |
# File 'lib/jsound/midi/devices/repeater.rb', line 11 def output= device device = [device] if not device.is_a? Enumerable super end |