ardour icon indicating copy to clipboard operation
ardour copied to clipboard

9897 - fix ticker.cc loop range end wrap

Open jsundqvist opened this issue 10 months ago • 4 comments

https://tracker.ardour.org/view.php?id=9897

jsundqvist avatar Mar 10 '25 19:03 jsundqvist

Nice find!

now makes me wonder if end_sample < start_sample is actually an issue further up and should not happen in the first place.

x42 avatar Mar 10 '25 19:03 x42

@x42 ~~here's another one https://github.com/Ardour/ardour/pull/967/files~~

EDIT: never mind. that one doesn't work with hardware, probably due to _mclk_out_latency.

jsundqvist avatar Mar 11 '25 23:03 jsundqvist

So it this pull-request ready to go?

I lent my only hardware device that can be sync'ed to MIDI Clock, so I cannot test myself.

x42 avatar Mar 24 '25 21:03 x42

No, it's accumulating a tiny bit of lag in the loop and getting out of sync, I'll convert to draft.

Other related issues:

  • Notes are cut short at the start of the loop (maybe NoteOffs from the previous lap, unrelated to MIDI clock)
  • Playback Start/Continue delayed by one beat (probably _mclk_out_latency + midi_clock_beat_at_or_after, unrelated to loops)
  • Position not reset when Stopping and Continuing.

Let's see if I can make separate changes or if they need to be here. I'm running a Roland TD-27 drum module where MIDI clock is driving the modules built-in Click track, so pretty handy testbed.

jsundqvist avatar Mar 25 '25 10:03 jsundqvist