Easy (easier?) way to build SFZ instruments?

oivindi's icon

I am a bit confused as to how the SFZ format works: Do you have to manually define every sample in the SFZ through a text-string?

Or are there ways to, say, builde SFZ-files automatically in Max 8.6? For example, could you use the new Array to build SFZs, by, say, dropping samples into a dropfile object or something similar?

Just asking before I start exploring. :)

Joshua Kit Clayton's icon

Here's a thread on the Discord, where Andrew Benson shares an example of a folder loader and sample splitting. Quoted and included here for convenience:

Here's a couple of examples I cooked up that let you either load in a folder of samples or split an individual sample into parts. That should hopefully provide some clues about how to do dynamic sfizz~ loading. If you wanted to just swap out the sample for one of the "regions" you could send a message to dict like set regions[0]::sample "jongly.aif"

sfizz_splitter.zip
zip

oivindi's icon

Lovely, thanks! I didn't even know about the Max Discord, but now I do ...