SNEX nodes - Waveshaping / Saturation / Distortion?
-
Does anyone have some wisdom to share on the delay nodes?
Is there one that can be modulated in real time without artifacts?
How do you sync them to Host BPM?
Is there a node that has a longer delay time than 1000ms? or do I need to mod the source code? -
@dustbro sending you here :
Snex_node Needs to be wrapped into a compileable DSP Network
We discussed the matter, but long story short :
jdsp.delay
andfix8.container
.For the sync there is a
control.tempo_sync
node availableIs there a node that has a longer delay time than 1000ms
jdsp.delay
>> right-click on the 'DelayTime' parameter and adjust the maxValue:)
-
@matt_sf My hero!
-
@christoph-hart said in SNEX nodes - Waveshaping / Saturation / Distortion?:
I would suggest the snex.shaper node
Has anyone use the snex.shaper and could give me some basic guidance on usage?
I've added the snex.shaper node to my network, and selected "create new file".
How do I begin to add expression to the node?
-
Ok... got a little bit further. Clicking on the SNEX logo opens up the node in the Snex script editor:
how would I implement this simple equation?
output = (1.0 + value) * input / (1.0 + value * Math.abs(input));
-
@dustbro following... I would be interested to know more about SNEX too... I'm still trying to de-cypher everything
-
@dustbro try putting this in the getSample function (which in fact can be any other function you call from this one)
Just don't forget the SNEX language rules (i.e. the float numbers) -
@ustk said in SNEX nodes - Waveshaping / Saturation / Distortion?:
getSample function
Looks like this is the spot.
float getSample(float input) { input = (1.0 + 0.5) * input / (1.0 + 0.5 * Math.abs(input)); return input; }
I've added a parameter to the snex module. How do i reference it in the script?
-
@dustbro
float gain = 0.0f; float getSample(float input) { return (1.0f + gain) * input / (1.0f + gain * Math.abs(input)); } /* . . . */ template <int P> void setParameter(double v) { gain = (float)v; }
This works if you have only one parameter, although if you have more then you'll need an enum to find which one is moved so you set the right variable
-
@ustk got it. Thanks!!
-
Is anyone able to compile a SNEX node to dll?
I'm getting this error from VS2017 and wanna make sure it's not just my rig
Severity Code Description Project File Line Suppression State Error C2662 'void scriptnode::wrap::no_data<scriptnode::core::snex_shaper<snex_shaper_impl::snex_shaper<1>>>::setParameter<0>(double)': cannot convert 'this' pointer from 'T' to 'scriptnode::wrap::no_data<scriptnode::core::snex_shaper<snex_shaper_impl::snex_shaper<1>>> &' snex compile_DynamicLibrary c:\users\dan\documents\github\hise\hi_dsp_library\node_api\nodes\processors.h 421
-
@dustbro I've compiled a script fx to .dll but it didn't have a SNEX node in it (in case that helps! :face_with_tears_of_joy: )
-
@danh said in SNEX nodes - Waveshaping / Saturation / Distortion?:
it didn't have a SNEX node
Same here. I can compile script FX that do not contain SNEX nodes.
-
@dustbro out of interest can you export a plugin that has a compiled .dll in it?
-
@danh I can. It MOSTLY works pretty well ;)
-
@dustbro said in SNEX nodes - Waveshaping / Saturation / Distortion?:
Same here. I can compile script FX that do not contain SNEX nodes.
Do you get the "frozen" icon on your compiled nodes ? Here I can wrap the network, compiling it doesn't show any errors (seems to go well) but HISE is not using the compiled node.
BTW I didn't try to compile a SNEX node yet because I'm not smart enough ATM to understand how to write SNEX code
-
@matt_sf said in SNEX nodes - Waveshaping / Saturation / Distortion?:
Do you get the "frozen" icon on your compiled nodes ?
I do. Just not on SNEX nodes. You have to use commit 9935411bb9bfcd4be583c93143121ccb75c57fc5 or newer for scriptnode compilation to work.
-
@dustbro I'm on the Dec. 22 commit but I'll try this one, thanks !
-
cannot convert 'this' pointer from 'T'
@Christoph-Hart It looks like and issue the parameter data from the snex nodes. Anything I can do to remedy this?
Edit:
Just did a quick text. It appears to only affect the snex_shaper node. I was able to successfully compile the snex_node. -
@dustbro Good catch, should work now.