Soft Knee for the Scriptnode Compressor
-
The scriptnode compressor attitude is hard knee. Is it possible to set the compressor behavior to soft knee? I need to switch between hard and soft knee settings with a button.
HiseSnippet 2104.3oc2Z07aabbEeWRNx5CaGaEaz.zKDEEHJnNDboUrSPOHJpOhUsoDgHqR5IiQ6NjbLWtylcGJK11bpW509WP+KH.8dAZE5wdoEn.E8RP68dIG5812Lytb2gZozRVKWzPAXv4My689Muul4MzsBX1jvPVfg4JcF6SLLuMp8XOd+c5iodFGrqg4cQMwgbRPYEoFi8wggDGCSyhepff4JkLje9lsZfcwd1jDRFFmvn1jWPGR4ITaU+4TW28wNjNzgoV8l0Ovl4sCykMBvSQTUCer8.bOxgXwxJfLLWZOGJmEzli4jPCyRMXNia2m8ZO05OgFRO0kHFXYzFDjh79LWGAhEe2Xm9TWmVw66PCCSTqDqPQkU3AnlTG5D5IVi6ImnbBGosGlEzgWQM3YMK3kAjLSAoRJHceTa6.pOOYFAdVCcfG3b5hAydZnnVqg4EncXvB73UFhGP1O.FLggMdR0pOpL7OevOr6HOaNk4Ul4cHiSNxaiOX0e1pqr5WtZ4ompa2LmSnl.lqKIHyoEd5fqhwM7FM7TRviJeF1cDYxBgsutMco7YSsU65TKj4cfGkejOIZbRPgUFd.iHyF7se7A6h4XgSIhFrNeR.mJfi4tjyfHbkKZEztjvAblODieI+GD4vbF4h45gShbnnI.6glOT3n7Bo7woywlNFqzrsGUyLEHycaNg68Qsnb69Yi2BYfWvpcSi2nL16f1qaWhMOArkP6+4WY5Yo7EJcMUOxHUc0nTUP+pbz3gVYli9KQI4C9ADeb.oCqkKd7Fg3g9tjiA39nxm5xrGzl9SIWNIxWgfFhUrgcermGwMbQx0V5MT8KiiYi3TudMw7.54PE1CGMrMTU2lrSD5.ZlEDoYpwUEiEgKsIdNxA+a3SzjVhwlQSZEOYpLzCI7WyBFH8FQeG1KJSenzH28bKisccYudG1PeZTrK3BjzZwbG62m4QsEjTqHFnaOjMBzQDZeFNrCl5JB1OgDDJExsPUq.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ZBaG3S50iJs8pKqmhhdj7zVyEus4IszZ9tQspCKkKQzcidDgFi3b3xKTGAIEJhHc1zWbyHGx3Np5T5hPctxLYusK0AJkJX+cjc1KJWpnMQ.kxo.fp1.2RLLGafTB3dRAzd.8RPvLml.PBr.9yIimeCo9FwmPbdtG6zDHrVVLeuHlgysOk0fctj80QsIewHBT.bB47sQRAg6fTk0NF60iL+9xUPs6C8t4RVrHo0PpJWcnjYA8RJlWWS2sDckHDvC.SvPZGlGI0DSjjngQGYyieWj0Spj8m4PWmPbY1T93rzk.0Z5p6Onw1Upz546Be+UsfweQisystVG8BhWOd+bsq5NPnoS9Qfl9bVK03bFBceTzaV0FZ1Rd6jqNBJSg7cPGMh6Oh+FPT2G0r0dPMwfXgkHjB4VHuiPH644bIQbubFVtD5Yh98ubH8asWnuX9dw6q4foUhwXap3cX1y6LH.FnHv35vMy5hgFDiope9TSlGK98MSL.GS3Azd8HZWsHyMTzKGLgxCpG2N+DRe+5u.ZJBGzT1WyBYKl+eQrL8WuWzCcTVb8vxe63WVo32h9kUdya5D2X77++wSCUXCsqUV5tK++d+8aieol2F5XH1Nf8xnWKTTvXYIEXe6I+eOvJnlhwkslbDhra7gPyFuz1VDS+gf8Iadps.773EfmMW.d9nEfmmr.77zEfmO9J4QzmWzC0Hh+ABs1S8yCXptIoLUv3+.nhtKoC
-
@Fortune I'm not a compressor expert but a
control.smoothed_parameter
could do the trick...?HiseSnippet 2182.3oc2Z07aabbEeVIMRhxVw1J1nAn8.OTfpf5PvkVwJA8fnn9HV0lRrhpJomLFs6Pxwb4Na1cnrXKBPOlaE8Xt0+ABPuVzCUnmJ5k1CEE8RA58bwG58z2Lytjyxu7JFKWmPAXv4Mu48dy6868lYdz0B4NznHdHxJ2I8BnHqahq2yWzZmVDlO5fcQVuEtJIRPCyqIUoW.IJh5hrrl+ijDrxs.Bg90e0O6urUEhGw2gFSR84TNyg9DVGlX.0ZkeLyyaehK8DVGCt2n7ANb+c3d7tf8LOtHJf3zlzj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5HRcZG1IbepwDCKs+jqpMFeer8CKL9OnrquSodbGln2Tz2VozWiebksKTn1i2E99ypAi+zJamY8sF9IT+lhVYd20nsTam9SAs8I7Z5wnrAstCNtop0gm+qtfxKGYMVA88vG0UDzU7JRb2AWs1dPMzvDANBdKi4N2RJn87cmfXJVNKv1EwOR1QpQg7u4+yEk5.sbI1XclrSg64eN.rAJRabM3xZMHvaFSnl9bspbedRC4G3.NlJBYMaRS+.9wsgh6skQsujFNYznKcabTs1Y17E1W4eWnwFudm3VwkWdiw7e68m4a9uS+y7k8rO3ByuYGEgpmQNkxqBk4++Sr70wOO3qCczg3DxeZbS.kI8Kqn.6ae0+ETxgqJGm2Nobt9Q1cfGW7TGGId88f2pL90TZFVyClg0rwLrl2eFVyCmg0r4LrlOXpqQ9tt39uHw7.gZ6o+QnrR5BL.+Q+O.RS8tI.
-
@Matt_SF Thanks for the suggestion. But Smoothed Parameter behaves like a longer release, not the Soft Knee attitude actually.
-
Could you add a "Knee" width value to the Scriptnode Compressor (or jCompressor) please?
Sometimes the current knee value doesn't sound good for pro sound. So we should be able to use both the hard knee and soft knee settings. Please!
-
@Fortune Any progress on this? I need that too.
-
@harris-rosendahl said in Soft Knee for the Scriptnode Compressor:
@Fortune Any progress on this? I need that too.
Nope. Unfortunately soft knee option is not possible unless @Christoph-Hart makes any action.
Or it can be done with SNEX but that's beyond my knowledge.
-
@Fortune You can also create your own compressor with the low level nodes available in scriptnode. Try a envelope follower modulating a gain node in a frame block and go from there.
I won't modify the higher level dsp blocks, they are supposed to be basic tools for instruments.
-
@Fortune actually I believe I was not wrong using a smoother node because basically :
- without a knee, you set the threshold value and the audio level is immediately reduced when it reaches this value
- with a knee, you set a range around the threshold value, during which the audio level begins to be smoothly reduced until reaching the end of that range. Then the compression is fully applied to the signal.
IMO It is similar to offsetting your threshold value, so the compression starts before the actual value, and then smoothly reaches the correct value.
-
@Christoph-Hart said in Soft Knee for the Scriptnode Compressor:
@Fortune You can also create your own compressor with the low level nodes available in scriptnode. Try a envelope follower modulating a gain node in a frame block and go from there.
The Envelope Follower is not acting like we'd like. Do you have an example for a starting point?
HiseSnippet 1753.3oc6YszaabCDlqkneEm17p.o.8vdzAHU1J0Ms.8fk7qXgZ4nZ43ldxkdWJIBu6xE6RYa0hdO254bn.8mPOUfdp4OP.JPt1C8mP9GzNjbWockVaKK+nIoUFvPb3qONy2Lb3nZAbKZXHO.YL01c7oHiYv063IZsbKByCUYEjw6gqRBEz.Ssnk53SBCo1HCibORJvXp7H0mWu3RDGhmEsmHDZGNyhtAykI5IsVouj43rFwltMyMwnWnTEKt2xbGda.O4vyi7IV6SZR2jHG1XXjw3qZyD7f5BhfFhLxuD2tS8V7C8zieGVHaOGprQQTcXgzhWi6XKQr76nkawbrqEetCQHCbsdZgbZsvcvUY1rtx6oMtgpCydyHo9vXrzvKWJ3U73fWFPxHAjxqgzMw0sBX9hd8Hwy0vU7.iSCBn1SBE8XQFu.uLGFfmnfKYe5ZAPitSX1GN+722D9289hFs8rDLtmI2aStf9XuYu2ze+zSM8OLsY+c0nQl8I2l.tiCMHytkV5fSZhy501cOZv8MOf3zl1cfvwOsNc7gSmZoO0IFH2qhGS7XeZT6djhhYXAPQpM3aOoxJDAQZThjAiymFHXR3XrB8.fgqMQSgWgFtuf6Cb7Are.yga21gHRSmj9PQc.5iT1PogxKjI5jzGqeNV9iWeLelt.YdZGR3dSbMlvpU13crLvKn0trwajG60wq1nA0RzCr4wq8zSz8L+vQkNknGY3pNcjqJr+RfLSTSy0dZwLcReFtmCge.0mDP2lWygzY1PhquCcK.u22bOGt090YeGcPuHeMDVRNhYsZQ77nNgihy13WPAvPawaKXdMqRDArifPra11sNDV2htbD5.YFiI8yzsmW1VxWpS8rUM9a3STmEksMh5rXbmIbQ2jJNjGruxbD8c3rn08gJk7tMNpHpriC+vk4t9rH1KXCTxpwc532h6wrjhziHFokc4sgMIBtqSB2lvbjz8cnAgpEYB77Ef+.p9lbaP4fWiXAJwN0HhVReFYrHfTRCJX0k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RQ+eTueGKs.yGox253t93d+oYoUnvcLIUfeMyVl7SuJcjwELU.Op.QMtCIne0etKJpc9gliHORu8vokgk.U9aS.VQId6Av2.Wi7l.g3p32E3ck8vkXEv2MpHJR2+IUR.cqmJIvovUksMKhNPmKOV9CQ.o4Yy10xRF78iKhPYOmGLBy4SFg4rvHLmOcDlyCGg47Yivb97SbNxTSidTozGCDTaUc4KM59f.ibn+Aaitv+B
-
@Matt_SF said in Soft Knee for the Scriptnode Compressor:
@Fortune actually I believe I was not wrong using a smoother node because basically :
- without a knee, you set the threshold value and the audio level is immediately reduced when it reaches this value
- with a knee, you set a range around the threshold value, during which the audio level begins to be smoothly reduced until reaching the end of that range. Then the compression is fully applied to the signal.
IMO It is similar to offsetting your threshold value, so the compression starts before the actual value, and then smoothly reaches the correct value.
In theory, it looks like that should be a soft knee but it doesn't actually.
If you analyse the (smoothed) compressor in the Plugin Doctor, the knee is still edgy. Soft Knee is the behavior of the reduction data, so we need to control this data before the reduction is applied.
The standard hard knee comp equation is this:
But the soft knee equation is more complex:
You can't obtain this soft knee behavior with just smoothing the hard knee data.
When you smooth the reduction data it applies some delay to the values while smoothing, so you can clearly see that the release time of the compressor is being increased in the analyser graphics.
Smooth means, a little delayed smoothed reduction, not a Soft Knee reduction behavior.
-
@Fortune ah OK I get it
-
@Christoph-Hart said in Soft Knee for the Scriptnode Compressor:
Try a envelope follower modulating a gain node in a frame block and go from there.
At least for a starting point, Can you give an example snippet please?
Envelope Follower is very hard to operate for a compressor.