2016-04-01 9:33 GMT+02:00 Bernard <[email protected]>:
> On 01-04-16 00:31, Thomas Morley wrote:
[...]
> Looks good. There is only one voice and used in both layout and midi. In the
> midi file I can hear the result except the first note.
> I use LMMS to view and edit the imported midi file. I can not see the second
> note, after the rest, at all. Also not an octave higher or lower.
> In my test all note's where visible, and could be heard, in the midi file.
I don't have LMMS, so I use built-in scripts for testing.
The command-line sequence is:
lilypond file-name.ly
midi2ly file-name.midi
gedit file-name-midi.ly
>
> You used random settings, so I adjusted it to my custom, good looking layout
> setting. To my surprise this resulted in an empty midi file.
> So I made an error somehow, but I could not find out where. I disabled the
> staff instrumentName but this made no difference.
> drumPitchNames.dbass = #'dbass
> drumPitchNames.dba = #'dbass % db seems to be in use
[...]
It turns out that you need to use the full long name to insert new
settings into midiDrumPitches.
Not:
> midiDrumPitches.dba = g
but
midiDrumPitches.dbass = g
[...]
Complete file attached.
HTH,
Harm
\version "2.18.2"
%% for testing
%% terminal command-sequence:
%%
%% lilypond new-drum-pitches-02.ly
%% midi2ly new-drum-pitches-02.midi
%% gedit new-drum-pitches-02-midi.ly
drumPitchNames.dbass = #'dbass
drumPitchNames.dba = #'dbass % db seems to be in use
drumPitchNames.dbassmute = #'dbassmute
drumPitchNames.dbm = #'dbassmute
drumPitchNames.dbassopen = #'dbassopen
drumPitchNames.dopen = #'dopen
drumPitchNames.do = #'dopen
drumPitchNames.dopenmute = #'dopenmute
drumPitchNames.dom = #'dopenmute
drumPitchNames.dopenopen = #'dopenopen
drumPitchNames.dslap = #'dslap
drumPitchNames.ds = #'dslap
drumPitchNames.dslapmute = #'dslapmute
drumPitchNames.dsm = #'dslapmute
drumPitchNames.dslapopen = #'dslapopen
#(define djembe '(
(dbass default #f -2)
(dbassmute default "stopped" -2)
(dbassopen default "open" -2)
(dopen default #f 0)
(dopenmute default "stopped" 0)
(dopenopen default "open" 0)
(dslap default #f 2)
(dslapmute default "stopped" 2)
(dslapopen default "open" 2)
(sidestick cross #f -4)
))
midiDrumPitches.dbass = g
midiDrumPitches.dopen = a
midiDrumPitches.dslap = b
midiDrumPitches.dbassmute = fis
midiDrumPitches.dopenmute = gis
midiDrumPitches.dslapmute = ais
one = \drummode { r4 dba4 do ds r dbm dom dsm }
\score {
\new DrumStaff
\with {
\override StaffSymbol.line-count = #3
instrumentName = #"Djembe 1"
drumStyleTable = #(alist->hash-table djembe)
drumPitchTable = #(alist->hash-table midiDrumPitches)
}
\one
\layout {}
\midi {}
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user