Page 3 of 5
Re: Is it possible to build a very simple SFZ creator?
Posted: Thu Jan 17, 2013 10:51 pm
by mccy
not a big problem. I seem to have a workaround... maybe...
The good part of the story: I now understand, what "regular expressions" (as you suggested right in the beginning) mean for my little project. Maybe I get the work done with them.
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 8:36 am
by mccy
Workaround didn't work, so you have to open *.txprog in notepad & save it as utf8 first.
Maybe I'll make a pure rubyscript for converting whole directory in the end. That would be a nice handling.
With these regex lines it gets the first sample & overall zone + vel. Best thing: IT WORKS AS SFZ!
Even the utf8 file works in tx16wx as I remember... but that is not important anyway.
Now I have to look into (how was it called?) blockediting and string-scan. Hope I get it, how to work with arrays.
Then with no further big problems it should be no deal, to get a simple sfz zoning from txprog!!!
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 8:59 am
by mccy
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 9:47 am
by mccy
To test: extract zip to c (it makes folder sfztest)
Finally I have to create a loop for processing all findings in array, to get all keygroups.
And one for writing all data found in the sfz file...
No idea, how this will be done...

Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 4:16 pm
by mccy
nearly finished ...
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 5:58 pm
by mccy
Tadaa!
So I guess, in a few weeks this will be a really nice tool...
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 6:01 pm
by Jay
looks great! i don't use the synth who's file format you are converting from and had never heard of it until your thread appeared! but there is stuff to learn from your work for sure!
you could do a version that parses a folder of key named waves and assign them to key ranges and place them in a SFZ file! that would be real cool! kinda like an auto SFZ maker!
Best Regards!
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 6:12 pm
by mccy
That's exactly, what TX16WX (freeware) does in the best way I could imagine...
Just recognized that rootkeys are not working so far in my converter.
Re: Is it possible to build a very simple SFZ creator?
Posted: Fri Jan 18, 2013 6:21 pm
by mccy
thisone should do with rootkeys...
Re: Is it possible to build a very simple SFZ creator?
Posted: Sat Jan 19, 2013 12:28 am
by mccy
Wow. It's more difficult than I thought. But working better and better. When selecting a bunch of samples and splitting in to groups (or with one big group) old version didn't work. Now this seems to be O.K.