Attaching a screenshot of misaligned swing tuplet

This is a 3/4 time signature.  Apparently the swing code isn't handling the 
dotted durations properly.  Or maybe missing a more generalized tuplet position 
calculation.  Denemo highlights the wrong two notes blue (should be the last 
two notes in the measure), and plays them back true to the incorrect 
highlighting (misaligned))


====================

I once had a go at coding swing tuplets in a sequence -- successfully, wasn't 
complex... below is the description of what i did, IIRC, just in case

Using 0-remainder to detect start of tuplet (duplet?) position. Let x={swing 
notation note duration (written, not actual, typically an eighth)}, then 2x 
would equal swing tuplet duration. Divide the given notation-based position by 
2x; if remainder is zero, the given note is at the start of a (theoretical) 
swing tuplet position. Then go from there to check the actual duration -- if an 
eight, then the following note -- its swing pair -- gets compressed and shifted 
forward, according to swing ratio, in the audio playback. This, of course, if 
not within an explicit triplet group

I don't know C (did the above in some scripted language), so probably wouldn't 
be able to actually help with the code.

Reply via email to