Class: Sidtool::MidiFileWriter::TimeSignature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clocks_per_metronome_clickObject

Returns the value of attribute clocks_per_metronome_click

Returns:

  • (Object)

    the current value of 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_twoObject

Returns the value of attribute denominator_power_of_two

Returns:

  • (Object)

    the current value of 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_clocksObject

Returns the value of attribute number_of_32th_nodes_per_24_clocks

Returns:

  • (Object)

    the current value of 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

#numeratorObject

Returns the value of attribute numerator

Returns:

  • (Object)

    the current value of numerator



28
29
30
# File 'lib/sidtool/midi_file_writer.rb', line 28

def numerator
  @numerator
end

Instance Method Details

#bytesObject



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