wild-web-midi icon indicating copy to clipboard operation
wild-web-midi copied to clipboard

Changing Instruments in Midi-Player

Open ekoshelev opened this issue 7 years ago • 0 comments

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?

  1. Clone midi-player demo, works fine as is with piano
  2. Install emscripten and node
  3. git clone [email protected]:Mindwerks/wildmidi.git
  4. 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
  5. 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.

  1. run "node makecfg" and copy paste the contents of the log into freepats.cfg.
  2. run "node make" to create wildwebmidi.data, wildwebmidi.js, and wildwebmidi.js.gz files
  3. Replace these files in the demo
  4. 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?

ekoshelev avatar Apr 13 '18 16:04 ekoshelev