[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mapping pitches to other pitches when generating MIDI files for perc
Re: Mapping pitches to other pitches when generating MIDI files for percussion?
Tue, 13 Nov 2018 13:51:01 -0800
On 2018-11-13 1:16 pm, Wolfling Vini wrote:
This is only a problem because most of our pieces have one or two
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
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
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
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