SNEX simple delay example?
-
could we pretty please get a simple delay example for SNEX? i've tried modifying the bufferStop snippet but the end result is crackling, ideally the jdsp one (without needing the Send/Receive nodes)
-
@iamlamprey SNEX or Scriptnode???
A SNEX based delay is totally doable, but much much much more involved than using Scriptnode nodes.
This is literally the super crappiest delay you could ever hope to put together:
But hopefully it helps you with the send and recieve positioning.
-
@Orvillain The scriptnode method doesn't work for my use-case, see here:
Scriptnode Synth Crackling with Chords
Pretty frustrating issue, sounds perfectly fine playing a single note but the second I play 2 or more it crackles. I've tried using different containers (all...
Forum (forum.hise.audio)
Either the send/receive nodes need to be fixed for polyphony, or SNEX
-
@iamlamprey Recreate my network above. Throw it on a sine-tone generator. Play some notes, mono or poly, doesn't matter. Then while the delay is decaying away, turn the delay time knob.
You'll hear it crackling.
So if we already know the jdelay will crackle just when moving the knob around manually, without any special network going on, then we know that converting a midi note number into a frequency, and then frequency into milliseconds, and then connecting that mod source to the delay time .... is simply not going to work.
My advice would be something along the lines of using a clone container, so that each individual voice in your synth has its own delay line.
-
@Orvillain Yeh I think you're right, any good physical model would need per-note pitch flexxion for higher velocities anyway so there's no avoiding it really... unfortunate
-
I'm sorry you're mistaken.
You can create polyphonic and smooth modulating delays in snex for sure. It's just dsp.
@iamlamprey
I'll post an example in a bitYou need to use the Hise polydata system and the sfloat smoothing system
-
@griffinboy said in SNEX simple delay example?:
I'm sorry you're mistaken.
You can create polyphonic and smooth modulating delays in snex for sure. It's just dsp.
You're mistaken about what I have said. I have said no such thing.
-
It crackles because the modulation is not smoothed. It‘s a feature not a bug because you can use this to implement chorus & flanger effects.
If you want a delay that is smoothed without pitch changes try the default delay node or use a smoothed_parameter node to control the delay time.
-
@Christoph-Hart Aye, gotcha! Totally get it now. And that's what sfloat does right? "smoothed float" ???
Griffin was talking about SNEX. I wasn't talking about SNEX, other than to say it is more complicated than just doing it directly in scriptnode.
It seemed to me that this was inherent to the jdelay and another delay was required, but I guess not!! Thanks for clearing it up.
-
other than to say it is more complicated than just doing it directly in scriptnode.
yeah that's the entire reason of existence of scriptnode, to make it easier than writing code :)
But I've updated the docs for the delay nodes to reflect that information.
-
@Christoph-Hart Vundabarrrrrrr!!! high five
-
@Orvillain BTW, here's a SNEX code that implements a very basic pitch-shifting algorithm, but it also uses the internal container types & index algorithms as a best practice on how to use them in SNEX:
hise_tutorial/PitchShifting/DspNetworks/CodeLibrary/snex_node/PitchShifter.h at master · christophhart/hise_tutorial
The Tutorial project for HISE. Contribute to christophhart/hise_tutorial development by creating an account on GitHub.
GitHub (github.com)
-
@Christoph-Hart This doesn't work. It throws
Channel Mismatch. Expected: 2
, whether I set 2 channels or anything, still happens.