Page 1 of 1

Editing SFZ files

Posted: Sun Jun 04, 2017 1:10 pm
by BuonTempi
Can anyone offer advice on how to edit SFZ files? I want to add one more note (35, a bottom B) to the range of the Pipe Organ - Flutes GIFF instrument.

The SFZ has these two entries:

Code: Select all

<region>  lovel=1  hivel=127  key=36  amplitude=100  tune=0  loop_mode=loop_continuous  loop_start=58835  loop_end=134568  sample=SPFlutesC2_0002102C.audio
<region>  lovel=1  hivel=127  lokey=37  hikey=39  pitch_keycenter=38  amplitude=100  tune=0  loop_mode=loop_continuous  loop_start=64515  loop_end=110331  sample=SPFlutesD2_0002102C.audio
The first one is for a single note, rather than a range. So I tried replacing

Code: Select all

key=36
with

Code: Select all

 lokey=34  hikey=36  pitch_keycenter=35
, but I get the wrong (one semitone higher) notes played. I'm presuming it has something to do with the loop start and end values, though I don't know what these are or how you calculate them.

I can achieve an OK result by repeating the first line, with

Code: Select all

tune=-100
. But I'm hoping there's a better way.

Re: Editing SFZ files

Posted: Sun Jun 04, 2017 3:32 pm
by David Ward
I have done it, but not very recently. I remember that when I did do it, I had to enter the (same) new ‘lokey’ and ‘hikey’ values in two completely different places. Perhaps look to see if these figures occur again a second time in the sfz text.

Someone else will probably have more precise information.

Re: Editing SFZ files

Posted: Sun Jun 04, 2017 7:06 pm
by gogreen

Re: Editing SFZ files

Posted: Sun Jun 04, 2017 8:46 pm
by BuonTempi
I've read the other posts and the MM help article.

They all seem to suggest that just changing the lokey value will fix it: that's not my experience, and it is made more problematic when the lowest region data is one note, not a range.

However, I've discovered there's a transpose data key. So copying the lowest region data, lowering the key value y one and replacing "tune=0" with "transpose =-1" seems to work for this limited instance.