New update to SFZ player in the Library. If you haven’t played with this yet, I hope that you will. Aside from easy access to free multi-sampled pianos, drums, orchestral instruments and many others, there is much opportunity for sonic mayhems.
Changes in this version include: New panel look borrowed from Comp II and the Mind Meld mixers. Many fixes and enhancements to the core SFZ loader will allow more SFZ to work in SFZ Player, a trigger delay (as suggested by Frozen Wasteland) to allow running pitch CV though some processing while still playing correctly. Implements SFZ looping, which is often used with analog synth samples. Added an octave control, because we usually do this, but forgot this time.
I’ve run into a minor bug. If you load an SFZ, shut down Rack, and rename or otherwise make the SFZ unavailable, Rack will crash upon restarting. I only did such a thing because I’m editing, converting, and testing a pant-load of samples I acquired. This is what log.txt had to say about that matter:
Yeah, it’s the same issue @PaulPiko reported yesterday. It’s a little sad - SFZ Player has a ton of code in it to report errors pretty well, but right at the last minute instead of reporting the error SFZ Player just crashes. I’ll be pushing a fix soon. If you build yourself the fix is on the par3 branch.
Without the crashing bug, here is what you should see when an SFZ doesn’t exists any more:
That’s kind of you to offer, but I cloned your par3 branch and built it last night. I see just now that I neglected to make that clear in my previous reply. But I specifically tested a sample being unavailable, and it did what you said it should. I also tried some samples with loops, and those work as well. So I’m content for the moment. Thanks again.
oh, nice! I thought that maybe you had. I’m writing a unit test now so that if in the future if I completely break error reporting I will find out before I ship it
The branch that is not yet in the library is fixed. Errors (like can’t find SFZ file, or SFZ is not parsable) are supposed to display an error message on the panel and not play anything. The version now in the library (and I suspect the previous version in the library) will instead crash VCV when this happens.
In no version can I actually play these files, but failing “gracefully” is a lot better than crashing.