SFZ format filter question

Sampler and Sampling discussion (techniques, tips and tricks, etc.)
Post Reply New Topic
RELATED
PRODUCTS

Post

Hello everyone,

I am building some complex SFZ instruments and I really like the format, even the textual editing seems ok, however I have a problem that I need help with.

The problem I have is with the filter, I can get it to work easily with the velocity tracking or with the filter EG envelopes, however not with both in the same time.

For example, I want to create the bass guitar that has a filter at 100 hz, which is triggered with both, velocity tracking and filter EG envelopes so when I play softly the cutoff frequency gets lower, and then the EG continues from there to even lower values.

Here is the patch:

<control>
default_path=Untitled Samples/

<global>
amp_veltrack=0
effect1=0
volume=0

<group> //Group 01

ampeg_attack=0
ampeg_hold=4
ampeg_decay=50
ampeg_sustain=0
ampeg_release=0.1


fil_type=lpf_2p
cutoff=300
resonance=0

fil_veltrack=9600


//fileg_depth=12000
fileg_start=100

fileg_attack=0
fileg_hold=1
fileg_decay=0
fileg_sustain=20
fileg_release=25


<region> sample=C#2-127-QHF3.wav key=c1 hikey=c#1 lokey=c-2 end=58767 loop_start=52899 loop_end=58767
<region> sample=F#2-127-KTGN.wav key=f1 hikey=f#1 lokey=d1 end=56517 loop_start=52121 loop_end=56517
<region> sample=B2-127-R0J8.wav key=a#1 hikey=b1 lokey=g1 end=54710 loop_start=51418 loop_end=54710
<region> sample=E3-127-VJYM.wav key=d#2 hikey=e2 lokey=c2 end=54786 loop_start=52318 loop_end=54786
<region> sample=A3-127-OWJE.wav key=g#2 hikey=a2 lokey=f2 end=54572 loop_start=52724 loop_end=54572
<region> sample=D4-127-P8IL.wav key=c#3 hikey=d3 lokey=a#2 end=53258 loop_start=51874 loop_end=53258
<region> sample=G4-127-7RX7.wav key=f#3 hikey=g3 lokey=d#3 end=52505 loop_start=51469 loop_end=52505
<region> sample=G9-127-J5DO.wav key=b3 hikey=g8 lokey=g#3 end=52082 loop_start=51306 loop_end=52082


Thanks...

Post

What sfz player are you using? Some players such as LinuxSampler, don't support a given controller (ie, note velocity) to be routed to more than one destination. So if you have note velocity controlling the filter cutoff freq, then you can't have note velocity also controlling your amp generator.

Post

I am using Sfizz and Sforzando.

What you described actually works, I can have the velocity tracking for both, amp and filter, so no problem with that.

It is the filter eg and filter velocity tracking that do not work together, I get either one or the other.
It seems like those two opcodes cancel each other.

I want the filter to be triggered by velocity input, and then the eg to continue from there in time.

Any idea on how to get both working?

Post

See http://sfzformat.com/extensions/midi_ccs.html - CC131 is note-on velocity. Try fileg_depthcc131=12000 perhaps. If that doesn't work the SFZ2 flex envelopes described at http://sfzformat.com/modulations/envelope_generators should, I think, though I haven't actually done this.

Post

Thanks, this is it! I just need to use filter 2 for this, here is how it should look:

fil_type=lpf_2p
cutoff2=100
resonance=0

fileg_depth=12000
fileg_delay=0
fileg_start=0
fileg_attack=0
fileg_hold=1
fileg_decay=0
fileg_sustain=0
fileg_release=25


fil2_type=lpf_2p
cutoff=100
resonance=0

fil2_veltrack=9600

Post

That'll work, too. You can see how I set the filters up in String Cyborgs, too, and borrow that. Caveman Cosmonaut gets a little weirder with the keytracking, but I think velocity tracking is normal.

Post

DSmolken wrote: Sat May 06, 2023 6:21 pm That'll work, too. You can see how I set the filters up in String Cyborgs, too, and borrow that. Caveman Cosmonaut gets a little weirder with the keytracking, but I think velocity tracking is normal.
Thanks. The question about controls you have on the interface, are those ARIA only and available only for Sforzando, or those can be made for other SFZ players?

Post

sfizz also supports controls, but the XML configuration method is ARIA-specific.

Post

Could you please provide some link where I can learn how to do it?
Thanks...

Post

GUIs with parameters for sfizz, I don't know exactly how that works. I think it's just assign controls to CCs and they should show up automatically on the GUI with basic knobs, but I haven't tried. The sfztools Discord is probably your best bet for finding people who have built sfizz instruments and know how that works.

Post

Thanks, I already did that but there is no way to set custom labels as label_ccN is not implemented in Sfizz, also the set_ccN for setting the default value does not work either.

Interestingly, neither of those work in Sforzando as well.

Post

DSmolken wrote: Sun May 07, 2023 7:44 pm GUIs with parameters for sfizz, I don't know exactly how that works. I think it's just assign controls to CCs and they should show up automatically on the GUI with basic knobs, but I haven't tried.
Here's a nice template by Kinwie, sfizz contributer

https://github.com/kinwie/SFZ-Templates ... 20Controls
sometimes it's hard not to be an asshole © mellotronaut
you work so somebody can rest
Doing sound synthesis if organs is all you get, leave it alone

All Rights Deserved

Post Reply

Return to “Samplers, Sampling & Sample Libraries”