Scriptnode - Bias
-
@clumsybear Well, I just tested different signal chains... I found that it is usable, and gives a different result. I have no idea if it is good to do that or not, but it works... The idea was to make several gain stages.
The chain nodes (wraps) are not really in parallel as I just use them to test and compare different ideas. They are toggled via a knob so it's quick to implement new ideas. They are all different tests, never working at the same time (you can put aclear
at the end to kill the signal). It's easier than creating another DSP, going back and forth... -
nice workaround :)
-
After testing, everything seems to work as expected. The only thing I would like to try is setting the high pass filter a bit below 20Hz.
@Christoph-Hart Is there a way to do this, or is 20Hz the lowest we can go with all the filters?
-
I think I‘ve hardcoded 20Hz as lower limit inside the filters. The problem is that the coefficients get really weird as you approach 0Hz.
-
@clumsybear This is Script FX Biquad Filter. Below 20Hz, it is unstable. Also in about 4Hz, it is shaking :)
-
Interesting @orange
I have a feeling that the purpose of why I'm trying to bias the signal before hitting the tanh module makes the whole process obsolete.
The purpose was to generate even harmonics, which works. the problem is that the filter set at 20Hz cancels/filters out even harmonics. Is there another way to generate even harmonics?
-
@clumsybear You can bypass filters in the Shape FX module with:
ShapeFX.setAttribute(ShapeFX.BypassFilters, true);
There is no bypass button in the unit's GUI but there is a parameter for that.
HiseSnippet 1096.3oc2W0saaTDEdV6rU0NTDAEj3xUkabkBQ1l1BRHTci+oXQbrU1PK2UMY2isGk0yrZ1YcwBw87.vCFR7Bvi.uAvY10N6LoFKigDUUmax7cNmc+N+O6HoH.RRDRhSkKVDCDmOv0eAWMs8TJiS52g37gtCnIJP5kCcxhXZRBDRbbJ+BMfSk8HY+9ymcBMhxCfBHB4kBV.bJaFSUfNp02whh5QCgKXyLz9ws5GH3sEQhTjOkcqShoAWQm.mQ0pUxk3butgLkP5qnJHg3r2IhvE9SEugmq+KYIrKi.8gFDe7AkC2SDEpYr9+IsmxhBGsxuSHDG2QEQgx4QgCcGvBYWiWDM9nLAdEVXFObJsI50XGomiA81KmdG35GHYwpBIZtsuaeNlnFSwTfIsx0kT5ybbaKPM3pimQuB5IwCWaQsmVu9QdOod8G80Onp9OLUjn7lSkdc56eg223kUWb7DP0c7XHPU6gZ7GtRc8giS.0yUJI6xTETKCImG8XQ3qI4HOkLEzVLNkGnXBtmfelPAC40dT0epZkp+bUuaJZ730JS6IRQTDHWqXckkbSFVimN6RPdD5gQHmVoHFhsyg6uc4vf7.qghBdeNSMLFVdtHKqkk60qjVmbsyZBU3ilnYt1ZTq.5sKhHKS73+8886PUTcc0RLTuXPpXZu0oCLGaXyqxp31ARtRIhwV12pDDaDDgoQTkc2gdjvRAX31pLTWpwSXpEliL9WzxTessLMVm2tkz8.2QLUvz0y2RqguXT61luKG.8.27trBxtmaue3NdZyAqpC7mRiA70q4w8b0M1VLocpbd9.5SXzjSgwJyPlF6b1joVfeKBLBe.lS+OU7FKne42agoFiED2u0v43XD5r3HFehYYj8lHB4bHL0dQzySUhI2XeU1do973TkIZGIatkoCX+n0VNyQZV0xksSHk2tDxZpGNWjpPOb.Emkhua2yRm4iKEC.rbfygH7g65TR2Vmett9rlD9.OL6veg+VJrg9ryRgMVIzrl6v7779tuhNGxFymko+jryiExYdu.3fT27zXCW.3211K.Du0W.XXfBovERJOIVj.MLex2PVSSYc.UJ2V8bHKsztWOz8ZXVhsBroI3HJ25ggma9OVh7GOqKmhIZe.8lvgIAnypicl0JiRiRfWwBUSaXZXAbSS3aVYsks51CiMz+cjKA8++D8+6Kf14lVqImUVwQeFNrB5xmCQ3V1LN9w3Z0wzzH0JT6dpABtHdpfyBrGngiBlLArJhVqCgW.Cu0bAxgsNGh.ZRQeVzu15TFGnR6oq2VwhMku9T2b55oGD389wEGJ+dzEGtM5PwYkuCjouKVwdW7NlQCjhWGj+I.5Vu6mgf9MO6qlqfe9Nd1qAI6CcP6bqebcxLb.9qCBzUGeNFeVuMM2Aa9hcvlGuC17jcvlmtC17k6fMe0FsQu6TeazY40+HvntYeRliS98FxZEH+M14Qj.A
-
@orange oh nice catch....
-
cool @orange , didn't know about that. it could come in handy as a workaround to the scriptnode signal flow. But I guess I'd have to deal with the same peak in the low end which is produced by biasing the signal in the first place.
I was actually talking about generating even harmonics in another way then biasing the signal before hitting a hyperbolic transfer function.
Like, tanh produces odd harmonics
What produces even harmonics? -
Finally found a way to produce them even harmonics.
- Apply transfer function with positive bias offset to signal A
- Apply transfer function with negative bias offset to signal B
- Flip the phase of one signal
- Add the fundamental
- Mix signals back together
I want to create this in scriptnode. how can the math.add node act as a positive/negative bias.
-
Right click on the knob to change the range:
https://docs.hise.audio/scriptnode/manual/glossary.html#parameter
-
@Christoph-Hart alright, thanks.
Is there a way to flip the phase of a chain in scriptnode? -
Multiply with -1 :)
-
@Christoph-Hart easy enough :)
-
@clumsybear Wouldnt that be negative bias on signal A and no bias on Signal B ?
-
I did this configuration , works very well, except that I get a loud Dc thump when I push play in a DAW . And only when I push play .