lilypond-user
[Top][All Lists]
Advanced

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

Re: Insert new pitches


From: Carl D. Sorensen
Subject: Re: Insert new pitches
Date: Fri, 2 Jan 2009 07:16:51 -0700



On 1/2/09 6:10 AM, "lucifree" <address@hidden> wrote:

> Hi all,
> 
> I wanted to add new pitches for percussion, eg : a second crash cymbal.
> So i copied the drumPitchNames  section from drumpitch-init.ly into my
> document, then added two new lines :
> 
> drumPitchNames =
> #'(
>    (crashcymbalbis . crashcymbalbis)
>    (cymk . crashcymbalbis)
>  
>   % then copied here all other lines
>    .....
> )
> 
> (I also have a section 'myDrums' as explained in doc to set all my note
> heads & positions.)
> 
> The question is : there is a syntaxic way to ADD my new pitch to the
> default drumPitchNames structure rather than COPY it all ?? (and so
> benefit of later modifications in distributed file, reduce/simplify my
> doc length, etc...)

Yes, you can do so.

drumPitchNames = 
#(append
     '(
        (crashcymbalbis . crashcymbalbis)
        (cymk . crashcymbalbis)
      )
      drumPitchNames
)

Note that the closing parentheses on lines by themselves don't match
standard Scheme practice.

Ordinarily, it would look more like this:
drumPitchNames = 
 #(append
     '(
        (crashcymbalbis . crashcymbalbis)
        (cymk . crashcymbalbis))
      drumPitchNames)

But either formatting should work.

HTH,

Carl





reply via email to

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