Thanks a lot! I need to look into event functions more!
> 2 okt. 2019 kl. 11:34 skrev Pierre Perol-Schneider > <[email protected]>: > > Hi Leo, > How about: > > \version "2.19.83" > > glissandoWithMinLength = #(define-event-function (parser location arg) > (number?) > #{ > \tweak minimum-length #arg > \tweak springs-and-rods #ly:spanner::set-spacing-rods > \glissando > #}) > > \fixed c'' { d8 \glissandoWithMinLength10 cis } > > Cheers, > Pierre > > Le mer. 2 oct. 2019 à 11:18, Leo Correia de Verdier > <[email protected]> a écrit : > Dear list! > > Something of a still learning question, but I can’t really get my head around > it: > > Is there a simple way to make the following (or something that would have the > same effect) into a function? > > \version "2.19.82" > \fixed c'' { > d8 > -\tweak minimum-length #5 > -\tweak springs-and-rods #ly:spanner::set-spacing-rods > \glissando > cis } > > So it could be written as something like the following hypothetical code: > > d8 \glissandoWithMinLength #5 cis > > Or is it just too complicated to be worth it? > > Thanks a lot! > /Leo > _______________________________________________ > lilypond-user mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
