You'll find it in drumpitch-init.ly, I believe it's just the standard General MIDI percussion keymap.
At 10:52 on 17 Nov 2023, Luca Fascione wrote: > Hi, > I'm converting a MIDI file to lilypond with a drumset track. > My process goes through MusicXML, but the `musicxml2ly` script I have > (2.22.2) emits pitches instead of percussion notes. > I can write a script to map those, but if anyone had a starting point, > that'd be grand. > In my mind, the mapping lilypond uses to go from the percussion notes to > its MIDI output is all I need (and then I can reverse that). If someone > could get me a breadcrumb to that, that'd be grand. > Thanks > Luca -- Mark Knoop