On 1/2/09 6:10 AM, "lucifree" <[email protected]> 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



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to