Yes, that's right, the SoundFont.sf2 has to have an instrument patch / bank that corresponds to the MIDI channels that musical notes are set to or you won't hear a thing. I had to modify the patches in HyperSound.sf2 (from http://www.kreativekorp.com/software/soundfonts/) so that they would be set to the first sound (Piano) which a lot of single channel MIDI files use by default. There is a cross platform lib called FluidSynth that can do a lot more with Soundfont playback/rendering but that's a much bigger project! I'm just starting out with the lower hanging fruit while I learn the FFI wrapping ropes.bn wrote: ↑Sat Apr 28, 2018 8:48 pmHi Paul,
I installed the library and the .mid files and .sf2 files
Works like a charm once I understood that not all .mid files play with all sound files.
Nice to have "boing" back...
It feels like a miracle, kind of, to me.
And I imagine you felt the same.
I am _almost_ tempted to look into ObjC and the MacOS APIs, but just almost
BTW, I updated a little over the weekend, added a check isPlaying and a Stop button.
NOTE: make sure you pass it good URLs that actually point to files or it will crash the engine.