[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting pitch out of a pair
From: |
Thomas Morley |
Subject: |
Re: Getting pitch out of a pair |
Date: |
Sat, 17 Jan 2015 01:23:34 +0100 |
2015-01-17 1:20 GMT+01:00 Thomas Morley <address@hidden>:
> 2015-01-17 0:21 GMT+01:00 address@hidden <address@hidden>:
>> On 2015-01-17 00:16, Jay Anderson wrote:
>>>
>>> On Fri, Jan 16, 2015 at 4:02 PM, address@hidden <address@hidden>
>>> wrote:
>>>>
>>>> I store two pitches in a pair variable
>>>> x = #'(b . cis')
>>>>
>>>
>>> pitches = #(cons #{ b #} #{ cis' #})
>>> #(display (ly:pitch? (car pitches))) => #t
>>>
>>
>> Ok that works but looks really bad....
>> I liked the clean way the #'(b . cis') looks.
>>
>> Is there some other way of storing two pitches and accessing each one in a
>> music-function?
>>
>> // Anders
>
>
> How about:
>
> #(display (event-chord-pitches #{ < b cis' > #}))
>
> Cheers,
> Harm
#(display (event-chord-pitches #{ b cis' #}))
works as well