Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No preset found on channel 9 when playing midi with newly created soundfont

I have created a soundfont with Polyphone to create a new instrument "bagana".

It just has 1 instrument "Bagana", with 1 present "Bagana".

I tried playing a midi file (just a piano piece) with FluidSynth, it worked. When I direct it through the new soundfront it says:

fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]

Is there a problem with the soundfont not being loaded?

This is the sf2 file and this and this are the midi files I am trying to play.

I am running the midi with this command:

>>fluidsynth -C0 -R1 -l -a alsa -F out.wav ./bagana.sf2 /home/dorien/UA/projects/bagana/Reunion_Example.mid 
like image 212
dorien Avatar asked May 09 '14 12:05

dorien


People also ask

How do you play a MIDI with a SoundFont?

Just open MIDI, SoundFont files from your Google Drive and your computer, and Play it in your browser. It's very easy to use. You can control your playback like Play, Stop, Seek, Volume and all common controls in any audio player.

What is a General MIDI SoundFont?

SoundFont is a brand name that collectively refers to a file format and associated technology that uses sample-based synthesis to play MIDI files. It was first used on the Sound Blaster AWE32 sound card for its General MIDI support.

How does a SoundFont work?

A file format that contains samples of musical instruments as well as support for numerous music parameters. Soundfonts enhance MIDI playback, because unlike the General MIDI standard, which describes how one hears the sound, Soundfonts include actual digitized sound waves stored in wave tables (wave table synthesis).


1 Answers

For General MIDI compatibility, the default sound font instrument assignments are bank 0, program 0 ("Acoustic Grand Piano") for channels 0–8 and 10–15, and bank 128, program 0 ("Default Drum Set") for channel 9.

Apparently, your sound font does not have the latter.

This does not matter if your MIDI file does not assume General MIDI compatible instruments and does not try to play drum sounds on channel 9.

like image 144
CL. Avatar answered Sep 20 '22 08:09

CL.