Did some testing… Beatclock was not getting passed the midi data so it was not handling clock.
I was also seeing a nil table error on orca.vars.midi[m.ch] = m.note so I made the following changes.
This works with external clock OK
orca.midi_out_device.event = function(data)
clock:process_midi(data)
local m = midi.to_msg(data)
if m.type == 'cc' then
orca.vars.midi_cc[m.cc] = m.val
elseif m.type == 'note_on' then
orca.vars.midi[m.ch] = m.note
end
end
NOTE: bpm counter in params will not update with the incoming clock bpm. Still not sure how to make that work properly