[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variable of type finger
From: |
David Kastrup |
Subject: |
Re: variable of type finger |
Date: |
Mon, 25 Jun 2018 15:49:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Gianmaria Lari <address@hidden> writes:
> This code define a variable containing a duration and the use it:
>
> \version "2.19.81"
> #(define myDuration (ly:make-duration 4 0))
> { a\myDuration}
>
>
> I can do something similar wit fingering:
>
> \version "2.19.81"
> myFinger = \finger "3"
> { a\myFinger}
>
>
> How can I rewrite the previous
>
> myFinger = \finger "3"
>
>
> using a define and the scheme function that create a finger
> articulation?
#(define myFinger (finger "3"))
It's sort of cheating since "finger" isn't really an actual Scheme
function but since version 2.19.22 you can just call LilyPond's music
functions and their ilk pretending that they are.
> I hope I have been clear....
Well, #{ \finger "3" #} works well enough anyway so it's not quite clear
what you hope to achieve.
--
David Kastrup