Class: MIDI::TuneRequest

Inherits:
SystemCommon show all
Defined in:
lib/midilib/event.rb

Instance Attribute Summary

Attributes inherited from Event

#delta_time, #print_channel_numbers_from_one, #print_decimal_numbers, #print_note_names, #status, #time_from_start

Instance Method Summary collapse

Methods inherited from Event

#<=>, #channel_to_s, #number_to_s, #quantize_to

Constructor Details

#initialize(delta_time = 0) ⇒ TuneRequest

Returns a new instance of TuneRequest.


328
329
330
# File 'lib/midilib/event.rb', line 328

def initialize(delta_time = 0)
  super(TUNE_REQUEST, delta_time)
end

Instance Method Details

#data_as_bytesObject


332
333
334
335
# File 'lib/midilib/event.rb', line 332

def data_as_bytes
  data = []
  data << @status
end

#to_sObject


337
338
339
# File 'lib/midilib/event.rb', line 337

def to_s
  return super << "tune req"
end