Timidity is a raw application. Libtimidity is a JS variant. This is more about LibtimidityJS.
Timidity++ generates a config file, but it doesn't have the config file in the install.
Libtimidity references the config file, but it appears to be encoded as a CSV parameter near the end of the script.
Midi.js is included in the package and is called by Libtimidity.js, so you don't need to call it. You only call the Libtimidity.js file.
It seems that the only deficiency is that it doesn't handle the stereo controller. I'm not sure that this is the case, but stereo doesn't seem to work in the browser. It may just be a limitation introduced by the browser.
The challenge with getting this up and running is that it doesn't come with a complete sound bank. Sound banks can be anywhere from 10-250MB or whatever.
There's no documentation as to how to acquire the set, the mapping structure, or how to possibly load another bank.
There are many soundfonts that have all of the files you'll need, but this plugin uses .PAT files, so you're better off finding a complete GUS PAT bank.
Jasmid vs Timidity
Jasmid is still very limited. Limited to very simple sine wave adjustments as your single program voice - 1 instrument.
Also, the sound isn't clean. Its a little crackly.
Sound bank test
This might be able to go in the footer. I didn't try it.
<a href="#" onClick="MIDIjs.play('midi/hinematov.mid');">Play hinematov.mid</a> <a href="#" onClick="MIDIjs.stop();">Stop MIDI Playback</a>
// These go in the PAT folder in: ../js/libtimidity/pat/*HERE // The drum files go in: ../js/libtimidity/pat/MT32Drums/*HERE
Gravis Ultrasound (GUS) Files and Pro Patches. Referred to as the GUS PAT Format.
This appears to be an old format, as I can't find a way to produce these files. It seems like something FLStudio should be able to do. It's basically a WAV file with a special header.
Apparently there's a Microsoft issue, as to why samples aren't easily found in the web.
I'm not at all sure what the licensing deal is for the Arachno or MT32Drums pat files.
It took me a while to find a full pattern set. In the end I found a project on GitHub. Just download the master and pull out the midi parts.
- https://github.com/babelsberg/babelsberg-js (Full project)
- https://github.com/babelsberg/babelsberg-js/tree/master/midijs/pat (Just the pattern files)
MT32 Copyright Status
“It was subsequently proven that Roland Corporation had failed to properly register the MT-32's original ROM code in accordance with the Berne Convention Implementation Act, which came into force on March 1989. As such, the original ROM code of the MT-32 is in the public domain and can be freely used, distributed, and modified without the permission, express or implied, of the Roland Corporation.”
However, there’s no citation for this claim.
Arachno Copyright Status
Arachno sound font
Authored by: Maxime Abbey
Looks like this could be a mess. Looks like all of the patches are from different sources.
Need to create an account and read the FAQ...
Old notes for finding PAT files
PAT Sets are in:
Timidity freepats / usr / …
I found a timidity PAT bank with CFG files - Gravis and Midia
I have a Freepats 30MB Timidity PAT bank.
At some point I was referencing the MT-32 standard. Not sure why. We're past that.
mt-32 is a roland synth
Roland LAPC-1 (an internal PC card version of the famous MT-32 sound module)
|Melodic Instruments (oldest first)|
Not sure which midi standard this setup uses.
MIDI instrument | Missing file | Replacement file
* This was a list of PAT files that triggered as missing, when the midi program started. The missing files issue was initially resolved by acquiring the files individually as needed, but it was ultimately resolved when I found the PAT bank on GitHub, linked above.
Looks like this approach might not be exact enough. I might have to do a midi file for each voice, if I cant find a config file.
The patch errors comes from Midi.js. One for each missing instrument.
The [.PAT] WAV files might be 'patch' files, not 'pattern' files.. not sure.
There is a class in Midi.js - scorioMIDI. This might be related to:
arachno-126.pat 404 (Not Found)
Now, in theory, I can look at the mappings using a soundfont editor. Or, i can keep looking into proper configuration in the Libtimidity.js file.
Sound bank configuration is at the bottom of the JS file.
Timidity.cfg is written into this script as a CSV parameter set, it appears anyway.
Near > FS_createPath
Looks like it might not be able to run on local.??
Uncaught ReferenceError: MIDIs is not defined
When both LibTim and Midi are loaded.
Might be some cross domain thing. Maybe the path is missing the protocol or something. Correct, it needs the base path.
VM11223 1:169 Uncaught SyntaxError: Unexpected token }
Probably means something is malformed in the midi file’s anchor wrapper.
Uncaught ReferenceError: Module is not defined
When just Midi.js is loaded.
Uncaught ReferenceError: Module is not defined
When just LibTiMidity is loaded.
Click loads the midi into Midi.js status, but it doesn’t play.
556 reads • Last Modified: Monday, December 12, 2016