Class: Sidtool::MidiFileWriter::KeySignature
- Inherits:
-
Struct
- Object
- Struct
- Sidtool::MidiFileWriter::KeySignature
- Defined in:
- lib/sidtool/midi_file_writer.rb
Instance Attribute Summary collapse
-
#is_major ⇒ Object
Returns the value of attribute is_major.
-
#sharps_or_flats ⇒ Object
Returns the value of attribute sharps_or_flats.
Instance Method Summary collapse
Instance Attribute Details
#is_major ⇒ Object
Returns the value of attribute is_major
40 41 42 |
# File 'lib/sidtool/midi_file_writer.rb', line 40 def is_major @is_major end |
#sharps_or_flats ⇒ Object
Returns the value of attribute sharps_or_flats
40 41 42 |
# File 'lib/sidtool/midi_file_writer.rb', line 40 def sharps_or_flats @sharps_or_flats end |
Instance Method Details
#bytes ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/sidtool/midi_file_writer.rb', line 41 def bytes [ 0xFF, 0x59, 0x02, sharps_or_flats, is_major ? 0 : 1 ] end |