Urs Liska <[email protected]> writes:
> Hi all,
>
> I have a with block where I would like to let the user enter a pair as
> a value, and one of the elements of the pair should be a pitch.
>
> Something like:
>
> \with {
> transposition = #'( d' . "D")
> }
>
> But this doesn't work, just like
>
> transposition = #'( #{ d' #} . "D")
>
> What I currently do is have them write
>
> transposition = d'
> transposition-label = D
>
> and cons them together within the function. This works but is inconsistent.
>
> So is there a convenient way to write a pitch within a Scheme expression?
Like usual with quoting.
transposition = #`( ,#{ d' #} . "D")
Or even without quoting:
transposition = #(cons #{ d' #} "D")
But frankly: I'd use separate variables instead.
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user