did you set clock source to MIDI in your script?

more smoothing would be like

bpmwindow = filters.mean.new(25)
 -- initialize the smoother with (approximate) tick rate and convergence time
-- the actual samplerate will be the BPM-dependent tick rate,
-- so convergence time will vary with tempo... whatever
smoother = filters.smoother(24, 2) --- 2 seconds for 60bpm, 24ppq

  ...
bpm = bpmwindow:next(rawbpm)
bpm = smoother:next(bpm)
bpm = util.round(bpm, 0.1) 

i do think the jitter here really is in the incoming clock. <1ms timing accuracy for each tick is probably considered sufficient in that context.

1 Like

Yes I did. I will re-test again later, but I think I got the same result without it being explicitly set. Perhaps I’m doing something incorrectly.

okay, thanks for heads-up. i am going to be working on a demo app for clock this weekend and can look into midi tempo as well.

2 Likes

I’m going to be doing some hacking for a bit and would be happy to test anything if you had any forward motion on clock demos. :slight_smile:

A post was split to a new topic: Norns: link (beta)