Comment #29 on issue 687 by [email protected]: Enhancement: inequal MIDI quantization of equal durations (swing, rubato)
http://code.google.com/p/lilypond/issues/detail?id=687

FWIW, these days I had a look at chicagogrooves' and Arvid's swing.ly, found it needed updating for LilyPond 2.16 due to the EventChord change and some adaptation and generalisation for my use case, and more or less accidentally ended up rewriting everything. Find my version attached, as well as a test/example file.

With this version, you can can create triplet feel swing like this:

   \tripletFeel 8 { c'8 c' c' c' }    % swung eighths
   \tripletFeel 16 { c'16 c' c' c' }  % swung sixteenths

but also more general swing patterns, for example more pronounced lengthening/shortening

   \applySwing 8 #'(3 1) { c'8 c' c' c' }
   % interpreted like { c'8. c'16 c'8. c'16 }
   % \tripletFeel 8 ... is equivalent to \applySwing 8 #'(2 1) ...

or the samba swing mentioned in comment #1 by adam.spiers:

   \applySwing 16 #'(3 2 2 3) { c'16 c' c' c' }
   \applySwing 16 #'(4 3 3 4) { c'16 c' c' c' }

See source comments, function docstrings and the example file for more information.

Attachments:
        swing.scm  13.8 KB
        swingtest.ly  3.5 KB


Reply via email to