lilypond-devel
[Top][All Lists]
Advanced

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

Re: Possible improvement to stringTunings architecture


From: Carl Sorensen
Subject: Re: Possible improvement to stringTunings architecture
Date: Sat, 25 Dec 2010 09:06:44 -0700

On 12/25/10 5:07 AM, "Nicolas Sceaux" <address@hidden> wrote:

> Le 25 déc. 2010 à 01:42, Carl Sorensen a écrit :
> 
>> I'd be happy if I could make something like
>> this work, as well:
>> 
>> default-string-tunings =
>> #`((guitar-tuning . ,(lily->scheme <e, a, d g b e'>))
>>   (bass-tuning . ,(lily->scheme <e,, a,, d, g,>))
>>   (mandolin-tuning . ,(lily->scheme <g d' a' e''>)))
> 
> You may consider something like:
> 
> default-string-tunings =
> #`((guitar-tuning . ,(chord-of #{ <e, a, d g b e'> #}))
>     (bass-tuning . ,(chord-of #{ <e,, a,, d, g,> #}))
>     (mandolin-tuning . ,(chord-of #{ <g d' a' e''> #})))
> 
> where chord-of (it's up to you to chose a better name ^_^) get the
> chord that is inside the #{ ... #} music expression.

Thanks for the idea.  I actually think that it will work with just the #{ #}
setup.  I don't think I realized that this syntax would work!

Thanks,

Carl




reply via email to

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