lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to write a ly:pitch? as element of a pair?


From: Urs Liska
Subject: How to write a ly:pitch? as element of a pair?
Date: Wed, 21 Mar 2018 15:28:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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?

TIA
Urs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]