Has anyone given thought to the possibility of having the MIDI instrument
names correspond to a given soundfont's program instruments?

I see that the MIDI instrument names are simply specified in midi.scm. How
difficult would it be to create a script/process that reads the instruments
in a soundfont and maps the channels of the soundfont to the positional
names in midi.scm? fluidsynth has a command that one can use "inst 1
<soundfont>" from its shell that will list all the instruments in
<soundfont> when it's loaded in fluidsynth. There's is likely an fluidsynth
API (though I've no idea what it's written in).

I only ask because anytime I want to use any non-GM soundfont (e.g. and
organ soundfont) I have to create a mapping document that shows what
instrument I must use in lilypond to get the desired instrument in the
selected soundfont to play.

I know that lilypond is not, really, a sequencer but it is very, very nice
that it creates midi output and that Frescobaldi, for example, lets me play
the midi file lilypond creates.

What would happen if one were to edit midi.scm and remove the instrument
names as specified and replace them with Inst001, Inst002, etc--very
generic--which at least makes the kind of mapping I'm talking about a bit
less odd when MIDIInstrument is shown in the lilypond file as "Acoustic
Piano" but what sounds is something else entirely when the soundfont is not
a GM soundfont. How might this affect Frescobaldi?

Just asking.

Guy Stalnaker
[email protected]
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to