Module: UniMIDI::Adapter::AlsaRawMIDI::Loader

Extended by:
Loader
Included in:
Loader
Defined in:
lib/unimidi/adapter/alsa-rawmidi.rb

Instance Method Summary collapse

Instance Method Details

#inputsArray<AlsaRawMIDI::Input>

Returns:

  • (Array<AlsaRawMIDI::Input>)

15
16
17
# File 'lib/unimidi/adapter/alsa-rawmidi.rb', line 15

def inputs
  ::AlsaRawMIDI::Device.all_by_type[:input]
end

#outputsArray<AlsaRawMIDI::Output>

Returns:

  • (Array<AlsaRawMIDI::Output>)

20
21
22
# File 'lib/unimidi/adapter/alsa-rawmidi.rb', line 20

def outputs
  ::AlsaRawMIDI::Device.all_by_type[:output]
end