class RawMIDI::Output

Public Class Methods

all() click to toggle source
# File lib/rawmidi/output.rb, line 8
def self.all
  Card.all.flat_map(&:outputs)
end

Public Instance Methods

input?() click to toggle source
# File lib/rawmidi/output.rb, line 12
def input?
  false
end
output?() click to toggle source
# File lib/rawmidi/output.rb, line 16
def output?
  true
end
write(buffer) click to toggle source
# File lib/rawmidi/output.rb, line 20
def write(buffer)
  fail 'device is closed' if closed?
  API::Device.write(@midi_p, buffer)
end

Private Instance Methods

direction() click to toggle source
# File lib/rawmidi/output.rb, line 27
def direction
  :output
end