Reference soundfont
I think that to reference an instrument from the instruments.xml file, it is done with the 'program value' command.
This loads the soundfont associated with the number we enter.
What I don't know, is how it is done from a secondary .xml file (new instruments).
How do you refer to load the soundfont we want?
Thanks and best regards.
Comments
One doesn't reference a soundfont at all in the instruments.xml file. The
<program value="" />
tag is indeed how the instruments.xml file defines which default sound should be used for that instruments. The value refers to the instrument ID in the General MIDI standard. (see https://www.midi.org/specifications-old/item/gm-level-1-sound-set for a list).The system is identical when writing a secondary instruments.xml file.
I'm not sure whether you can select a specifc soundfont from within the instruments.xml file; it might be worth looking into how MDL handles this.
In reply to One doesn't reference a… by jeetee
Via
<controller ctrl="0" value="1"/>
it seems, just prior to the<program value="24"/>
?Or via
<synti>Zerberus</synti>
?In reply to Via <controller ctrl="0"… by Jojo-Schmitz
I guess this is the way if the instrument is defined in MIDI.
Thanks and best regards.
In reply to One doesn't reference a… by jeetee
I understand, if it does not appear in the midi standard list, there is no way to load the instrument in this way.
Then the most practical thing is to associate it with a defined instrument with similarity and then make the change through the mixer.
In this case the instruments do not appear in midi because they are native.
Thanks and best regards.
In reply to I understand, if it does not… by goranire
Then the most practical thing is to associate it with a defined instrument with similarity...
Yes, so when others open your file they will at least get similarity through General MIDI playback.
...and then make the change through the mixer.
For example, in MuseScore, the tuba sound is used for euphonium:
https://musescore.org/en/node/299576
In reply to Then the most practical… by Jm6stringer
This is what I am going to do because there is no remedy for this.
Thanks and best regards
In reply to This is what I am going to… by goranire
Currently, using the mixer to select patches from a special soundfont that contains samples of unique instruments (e.g., native, ethnic, percussive, etc.) is the remedy to get those sounds during playback.