ScriptNode based filters - and envelopes.....and polyphony whilst we are here...
-
So I'm looking at extending the number of filter types in one of my projects... so I'd like to use the korg and obi filter emulations in faust...
..not a problem I have the faust code so I built these and compiled them...
My project (my HISE) is set up to use 3x modulation sources on HardCodedMasterFX so I load a HardCodedMasterFX and point it at one of my faust modelled filters....then I assign an LFO to the P1Modulator(Frequency for me...) ..all good...,
Now I load up an envelope in this P1Modulation slot - and all bad...... the envelope seems to fire on some key presses and not others(leaving us without any sound at all)... which would make these filters of no use at all.... what am I doing wrong?
So I thought I'd try polyphonic -- and theres odd behaviour there too, but if I clear the entire generated C++ - I can build the DLL at least once (more on this in a minute) but of course now I have no modulation slots at all so I cant test it.
Meanwhile trying to run the compile a second time with the nodes set up with AllowPolyphonic = true gives me this error:
This seems a bit of a mess - I must be doing something very wrong...any ideas?
I can provide a simple project that demonstrates the problem(s) - but you will need to have HISE compiled with NUM_HARDCODED_FX_MODS > 0
-
@Lindon ok so more experimentation......
Filter baed FX are best in polyphonic mode - no surprises there, and if I put an envelope in the scriptNode network it seems not to play up, now all I need do is work out how to make the envelope ADD to the frequency I am trying to set externally....
So does anyone have an example ScriptNode network that uses and envelope as a modulator for frequency ( well for anything really) such that I can add a base freq. value and have the envelope modulate from there????
-
@Lindon sigh, spoke too soon - compiling and using in a Hardcoded Polyphonic effect is full of problems, the instrumetn goes mono, and/or the frequency doesnt work anymore....
-
@Lindon well for those looking for a "sort of" solution here it is:
Note: you need to set the pma.Multiply range 0->1
Now how to add an LFO where I can draw my own shapes... in ScriptNode....
-
@Lindon You can add your custom shapes like this (this is bipolar)
HiseSnippet 2004.3oc0Z07aaaCEmJIzNwocscq6tA5kzg1.I6TmFLLDmubavZR8pyBZO0wHQGKDIQUI4j5Nrco6PuMfsS8VA14ALfALfsKKmG5.FP+GXCX+Az8Wv1ihRVR1xN1peDLUfVwG4iue78MsZcGlJ00k4fjJrSGaJR5L3Fcr7ZsVKhtEZy0QRuCdKhqG0onfzpcrIttTMjjzj2fSPZloP9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mD+IQfy9Wp9St26bUyXU2RG2eJsRUG+1si9gONMuAvm8dq+h.6XCSFyqkt09IvU0+5QeUZYZ8omAbc9TTUub4gop1hGP91VUMLHMCdCK98LzxRmb8dEj7hO49spc6nOZ1q+B8cYk8tO93e6a9wABzQ6Gwdfc+KZkHS+pMqxXGXR7+BNY6iq9136MYRTcX2On+A9gaZeJPFFqfFa2hOtnB5vdMf7OLx8UUStU8wXorxX4rx3BYkwqkUFqjUFWLqLd8SlQ9+ANBJKw80g.t5aHJrJEFsy6N3+fY4mgo
Don't forget to set the table to 'External'
Edit: the 'Scale' parameter of the bipolar node, must also be set to 0-1