[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to write a ly:pitch? as element of a pair?
From: |
David Kastrup |
Subject: |
Re: How to write a ly:pitch? as element of a pair? |
Date: |
Wed, 21 Mar 2018 16:01:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> Hi Malte, David,
>
> thank you for your suggestions.
>
>
> Am 21.03.2018 um 15:43 schrieb David Kastrup:
>> Urs Liska <address@hidden> 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