Leo Correia de Verdier <[email protected]> writes:
> 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?
A slightly different approach in order to avoid the explicit event
function definition:
\version "2.19.83"
withMinLength = -\tweak springs-and-rods #ly:spanner::set-spacing-rods
-\tweak minimum-length \etc
\fixed c'' {
d8 \withMinLength #5 \glissando
cis
}
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user