Old 05-12-2018, 08:37 AM   #1
geraintluff
Human being with feelings
 
geraintluff's Avatar
 
Join Date: Nov 2009
Location: mostly inside my own head
Posts: 346
Default A bit of fun: SFZ -> JSFX

I had some free time today and was feeling a bit whimsical, so I took a swing at writing a SFZ-to-JSFX converter.

It was intended as a stepping-stone to creating a more tailored sample-based JSFX effect. This was a fun proof-of-concept, but I'm not sure about it as a long-term strategy. I'm mostly posting it here because I think it's neat, and I'm kind of impressed that it works.

It currently doesn't support many op-codes - only pitch_keycenter/key/lokey/hikey/lovel/hivel/lorand/hirand for now, but others would be fairly straightforward now the basics are in place.

Here's an example patch, both JSFX and original SFZ (using samples I recorded many years ago). I could definitely make some things more efficient, with caching and whatnot.

Here is what the patch sounds like (with a bit of reverb).

Here's the converter on the Stash if you're curious, usable as an interactive web-page, or from Node.js.
__________________
JSFX set | Bandcamp/SoundCloud/Spotify

Last edited by geraintluff; 05-12-2018 at 08:47 AM.
geraintluff is offline   Reply With Quote
Old 05-12-2018, 02:59 PM   #2
Sju
Human being with feelings
 
Join Date: Jun 2015
Posts: 685
Default

That's really interesting. SFZ is a great format, but unfortunately creating the patches is inconvenient. Do you use some kind of a visual editor or do you type them in manually in the definition file?
Sju is offline   Reply With Quote
Old 05-12-2018, 03:39 PM   #3
James HE
Human being with feelings
 
James HE's Avatar
 
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,467
Default

Quote:
Originally Posted by Sju View Post
That's really interesting. SFZ is a great format, but unfortunately creating the patches is inconvenient. Do you use some kind of a visual editor or do you type them in manually in the definition file?
There used to be a great utility called sfzed.

I'm. ... Going to wait a few days before I fall into this rabbit hole. But, thank you!
James HE is offline   Reply With Quote
Old 05-13-2018, 03:55 AM   #4
Arran
Human being with feelings
 
Join Date: Aug 2012
Location: Bolton, UK
Posts: 234
Default

Quote:
Originally Posted by James HE View Post
There used to be a great utility called sfzed.

I'm. ... Going to wait a few days before I fall into this rabbit hole. But, thank you!
I've used this for creating SFZ:

http://mildon.me/sfzdesigner
Arran is offline   Reply With Quote
Old 05-13-2018, 06:00 AM   #5
Sju
Human being with feelings
 
Join Date: Jun 2015
Posts: 685
Default

Quote:
Originally Posted by Arran View Post
I've used this for creating SFZ:

http://mildon.me/sfzdesigner
I tried that one too, but IIRC the feature set and usability was a bit lacking, and the project seems to have been abandoned by the dev unfortunately.
Sju is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.