Am Donnerstag, 21. Februar 2008 schrieb Kieren MacMillan: > Hi Till, > > > So this is no easy way to scale all notes to the same duration. > > No, but a Scheme-savvy person (Mats? or you, Till?) should be able to > whip up something like > > unifyDuration = #(define-music-function (parser location music duration) > (ly:music? number?) > (let ((new-music (ly:music-deep-copy music))) > (ly:make-duration new-music $duration) > new-music)) > > This one, of course, doesn't work -- I'm not very Scheme-savvy... =\ > Just a thought-experiment for you.
As a little help, there is an LSR snippet that takes given notes and applies the same rhythm to them (i.e. it applies certain durations to the passed notes), so I suppose it should be able to adjust it to your needs: http://lsr.dsi.unimi.it/LSR/Item?id=346 Cheers, Reinhold -- ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user