Class: Sidtool::MidiFileWriter::TimeSignature
- Inherits:
-
Struct
- Object
- Struct
- Sidtool::MidiFileWriter::TimeSignature
- Defined in:
- lib/sidtool/midi_file_writer.rb
Instance Attribute Summary collapse
-
#clocks_per_metronome_click ⇒ Object
Returns the value of attribute clocks_per_metronome_click.
-
#denominator_power_of_two ⇒ Object
Returns the value of attribute denominator_power_of_two.
-
#number_of_32th_nodes_per_24_clocks ⇒ Object
Returns the value of attribute number_of_32th_nodes_per_24_clocks.
-
#numerator ⇒ Object
Returns the value of attribute numerator.
Instance Method Summary collapse
Instance Attribute Details
#clocks_per_metronome_click ⇒ Object
Returns the value of attribute clocks_per_metronome_click
28 29 30 |
# File 'lib/sidtool/midi_file_writer.rb', line 28 def clocks_per_metronome_click @clocks_per_metronome_click end |
#denominator_power_of_two ⇒ Object
Returns the value of attribute denominator_power_of_two
28 29 30 |
# File 'lib/sidtool/midi_file_writer.rb', line 28 def denominator_power_of_two @denominator_power_of_two end |
#number_of_32th_nodes_per_24_clocks ⇒ Object
Returns the value of attribute number_of_32th_nodes_per_24_clocks
28 29 30 |
# File 'lib/sidtool/midi_file_writer.rb', line 28 def number_of_32th_nodes_per_24_clocks @number_of_32th_nodes_per_24_clocks end |
#numerator ⇒ Object
Returns the value of attribute numerator
28 29 30 |
# File 'lib/sidtool/midi_file_writer.rb', line 28 def numerator @numerator end |
Instance Method Details
#bytes ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/sidtool/midi_file_writer.rb', line 29 def bytes [ 0xFF, 0x58, 0x04, numerator, denominator_power_of_two, clocks_per_metronome_click, number_of_32th_nodes_per_24_clocks ] end |