Questions:
Should these be consistent?
clock.set_source(1) - value is zero based?
params:set("clock_source", 2) - value is 1 based
The following gives me inconsistent results for tempo1 and tempo2 if I change default_bpm and reload the script
Do I need to save/write params for this to “stick”?
local default_bpm = 100
function init()
params:set("clock_tempo", default_bpm)
tempo1 = util.round (clock.get_tempo(), 1)
tempo2 = util.round (params:get("clock_tempo"),1)
print(tempo)
print(tempo2)
end
clock docs for set_source (source) need to be expanded for link and crow
currently only shows
source integer : clock.INTERNAL (0) or clock.MIDI (1)
Also are clock.INTERNAL and clock.MIDI still valid globals? clock.MIDI returns nil