lilypond-user
[Top][All Lists]
Advanced

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

Re: 4-Drum Conga Notation in LilyPond


From: Thomas Morley
Subject: Re: 4-Drum Conga Notation in LilyPond
Date: Tue, 18 Dec 2012 02:09:47 +0100

Hi Eric,

sorry to come back to you that late.

2012/12/13 Eric Pancer <address@hidden>:
> On Wed, Dec 12, 2012 at 6:05 PM, Thomas Morley
> <address@hidden> wrote:
>> 2012/12/12 Eric Pancer <address@hidden>:
>>> On Wed, Dec 12, 2012 at 2:33 PM, Eric Pancer <address@hidden> wrote:
> [..]
>>> I've got this working using the following definition:
>>>
>>> #(define mydrums '(
>>> (bassdrum  default   #f  -3)
>>> (snare        default   #f    0)
>>> (hihat         default     #f  1)
>>> (lowtom     default   #f     3)))
>>>
>>> Of course I don't exactly understand what the #f is, but do get the
>>> numerical values are positions in the staff. A bit of explanation
>>> could help me.
>>
>> Every entry in your new list consists of the name, note-head,
>> use-which-script-sign? and staff-position.
>
> Thank you. Where is that documented?

AFAIK, nowhere. I deduced it from the code

> I don't understand what #f is, or
> how it compares to #t.

AFAIK, you can set a value or not. If you don't want to set sth you've
to use #f.
But maybe I don't understand what you're after.

> Also, the line position is confusing.

In LilyPond the stafflines for a staff of five lines have the
'line-positions '(-4 -2 0 2 4)
0 is the position of the middle line. The others are constructed by
adding them to the middle line with the given padding-value. The unit
is half-staff-space.
You could tweak all of them.

> Is C6 considered "0"?

Well, here I'm the one who is confused. I never heard "C6" and the
others you mention below.

>
>>>> Also, is there an easy way to make each pitch with an "x" (slap)?
>>
>> I'm not sure what you want with the "x-slap". Below I've set the
>> NoteHead to cross and additional I've used some crazy script-signs to
>> demonstrate. I'm sure you'll want to alter them. :)
>>
>> You could have a look in /ly/drumpitch-init.ly and in /scm/script.scm
>> for more info about the code.
>>
>> \version "2.16.1"
>>
>> #(define mydrums '(
>>                    (bassdrum  cross   "coda" -3)
>>                    (snare     cross   "upbow"   0)
>>                    (hihat     cross   "espressivo"   1)
>>                    (lowtom    cross   "reverseturn"   3)))
>>
>> dr = \drummode { bd4 sn hh toml }
>>
>> \new DrumStaff <<
>>   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
>>   \new DrumVoice \dr
>
> Thank you for the example. What I'm thinking is that I should just
> define a whole new drum configuration since it would be easier to read
> and write. I'd like to do the following: quinto (E6), conga (C6),
> hitumba (A5), lotumba (F5) (with a generic "tumba" equal to
> "hitumba"). I've patched
> /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/drumpitch-init.ly
> (see diff below),

I would never change the internal files
(apart from testings or to create a patch to be included in the source-code)
for two reasons:
1)  The next upgrade will not contain it. You'll have to repeat it
2)  Noone will be able to compile your scores until he/she made the
same changes.

And you'll will get little help on the list.

> but the following snippet only puts 4 quarter notes
> in the middle line of a percussion staff:
>
> \new DrumStaff <<
>   \drummode {
>     quinto4 conga4 hitumba4 mutelotumba4
>   }

I didn't apply the diff so I can't say anything detailed to it.
But: the LilyPond-extension-language is scheme.
Why not use it as shown in my example?


HTH,
  Harm



reply via email to

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