wild-web-midi
wild-web-midi copied to clipboard
Changing Instruments in Midi-Player
Hello! I've been trying to change the instrument from a piano to an organ for the purposes of playing back scores through verovio, through this plugin which uses wild-web-midi: https://github.com/rism-ch/midi-player I've followed these steps, and all that plays is silence. Could you please help me find where I went wrong?
- Clone midi-player demo, works fine as is with piano
- Install emscripten and node
- git clone [email protected]:Mindwerks/wildmidi.git
- wget http://freepats.zenvoid.org/freepats-20060219.zip , unzip the file, and replace the 000_Acoustic_Grand_Piano.pat with the 019_Church_Organ.pat file in the midi-player/freepats/Tone_000 repo
- Change makecfg.js file to the following:
console.log('bank 0\n');
file = '002_Electric_Grand_Piano'; //
file = '004_Electric_Piano_1_Rhodes';
file = '005_Electric_Piano_2_Chorused_Yamaha_DX';
file = '006_Harpsichord'; // good
file = '016_Hammond_Organ'; // good
file = '019_Church_Organ'; // good
//file = '001_Acoustic_Brite_Piano';
//file = '000_Acoustic_Grand_Piano'; // ok
//for (i=0;i<127;i++) console.log(i + ' Tone_000/' + file + '.pat amp=120 pan=center')
for (i=0;i<127;i++) console.log(i + ' Tone_000/' + file + '.pat')
and change 000_Acoustic_Piano.txt to 019_Church_Organ.txt, with these contents:
The very first line of any associated *.txt file will be appended
to the auto-generated freepats.cfg file by the mkcfg.sh.txt script.
The rest of the file can be used for any purpose whatsoever, like
misc notes, a history of how the pat was created and/or changes to
this particular pat.
- run "node makecfg" and copy paste the contents of the log into freepats.cfg.
- run "node make" to create wildwebmidi.data, wildwebmidi.js, and wildwebmidi.js.gz files
- Replace these files in the demo
- Now when I run the demo, there's only silence. Why does this happen? Am I missing some steps to change the instrument of the midi?