stw wrote:Well done exo. Thanks for your efforts! The sync seems to work perfectly well now!
Was that "only" a hop issue? That would worry me a bit because that should not happen.
I'll try to contribute if i can.
This issue with the hop was that the section number could not increase until 128 samples had passed. With no sustain loop it wasn't a noticeable problem because it was a 128 sample latency overall, each and every section started 128 samples late.
With the sustain loop this latency was accumulating, so with each and every loop it goes an extra 128 samples out of sync.
The reason for the latency was simply because when a section has finished a trigger is sent back to the section manager to increase the section number for the next sample, with the hop the next sample was actually 128 samples in the future. So therefore the section number could not increase until 128 samples had passed.
I do think there is something weird going on in this env though, for instance I've had to set the minimum section length to two samples, where as before it was set to one. This was because if two points are at the exact same area on the X axis the section cannot progress to the next, so it's seems to need two samples to increase the section number in this case. Not sure if that would cause any sync issues but it doesn't seem to from the simple tests I've done.
Cheers
Exo