Module: Topaz::TempoSource

Included in:
ExternalMIDITempo, InternalTempo
Defined in:
lib/topaz/tempo_source.rb

Instance Method Summary collapse

Instance Method Details

#do_midi_clockObject



6
7
8
# File 'lib/topaz/tempo_source.rb', line 6

def do_midi_clock
  @actions[:midi_clock].call
end

#do_tickObject



10
11
12
# File 'lib/topaz/tempo_source.rb', line 10

def do_tick
  @actions[:tick].call
end

#stop?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/topaz/tempo_source.rb', line 14

def stop?
  !@actions[:stop_when].nil? && @actions[:stop_when].call
end