[Top][All Lists]

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

Re: Mapping pitches to other pitches when generating MIDI files for perc

From: Aaron Hill
Subject: Re: Mapping pitches to other pitches when generating MIDI files for percussion?
Date: Tue, 13 Nov 2018 13:51:01 -0800
User-agent: Roundcube Webmail/1.3.6

On 2018-11-13 1:16 pm, Wolfling Vini wrote:
This is only a problem because most of our pieces have one or two staves
for flutes. So I have to keep the custom pitch names local; otherwise,
every time I need to play a b, if I'm not mistaken, I'd need to type "trh"
instead of "b" or "si". However, this line in your code:

drumPitchTable = #(alist->hash-table midiDrumPitches)

Makes me think your solution IS local rather than the global scope. Is this
correct? Like do pitch names remain unchanged for voices used in staves
where this line is not present? Sorry if the question is silly; I can't run
the code you adapted or the one provided in the link right now.

The \with block makes those changes specific to that particular DrumStaff, so you should not see any issues with other staves.

Also, the new drum pitch names in my example, taikolefthand and taikorighthand, along with their handy abbreviations, tlh and trh, are only valid within \drummode. Normal note pitch names are a different thing, so there should be no worry about the two interfering.

-- Aaron Hill

reply via email to

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