Class: Sidtool::MidiFileWriter::TrackName

Inherits:
Struct
  • Object
show all
Defined in:
lib/sidtool/midi_file_writer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/sidtool/midi_file_writer.rb', line 18

def name
  @name
end

Instance Method Details

#bytesObject



19
20
21
22
23
24
25
# File 'lib/sidtool/midi_file_writer.rb', line 19

def bytes
  [
    0xFF, 0x03,
    name.length,
    *name.bytes
  ]
end