[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to insert a number for fingering in embedded LilyPond?
From: |
David Kastrup |
Subject: |
Re: How to insert a number for fingering in embedded LilyPond? |
Date: |
Sun, 13 Apr 2014 19:44:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Jan-Peter Voigt <address@hidden> writes:
> Hi Harm,
>
> I assume, you want to use this in some music-function ... (?)
> you can insert the displayed scheme-expression:
>
> %%%
> finger = #(define-event-function (parser location n)(integer?)
> (make-music 'FingeringEvent 'direction -1 'digit n))
No need to define it since 2.17.13
> { c''4\finger 2 }
>
> #(let ((n 4)) (display-scheme-music #{ \finger $n #}))
> %%%
>
> But unfortunately I don't know a shorter way to include it in such an
> included lilyexpression ...
> this would of course be handy, if you want to use parameters in a longer
> snippet ...
I don't think we allow fingering _shortcuts_ with number identifiers.
And really: we allow things like #{ -2\cm #} and that's quite hard to
distinguish then. It's actually a fringe case to allow #{ -4 #} as a
fingering, but as a _constant_ it would be pretty silly to put #{ #}
around a number.
--
David Kastrup