Urs Liska <li...@openlilylib.org> writes: > Hi Malte, David, > > thank you for your suggestions. > > > Am 21.03.2018 um 15:43 schrieb David Kastrup: >> Urs Liska <li...@openlilylib.org> writes: >> >>> Hi all, >>> >>> ... >>> >>> >>> 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. >> > > Indeed, now that I see it this really isn't an option. Probably I'll > rather change the other end of the rope and don't treat the data as a > pair internally at all.
Or transposed = #(define-scheme-function (p m) (ly:pitch? markup?) (cons p m)) transposition = \transposed d' "D" -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user