Scriptnode Compressor Gain Reduction
-
Hello
How can we connect the gain reduction of Scriptnode Compressor to a slider on the GUI?
Is it possible to link 2 compressors' gain reduction to the same slider as a sum of gain reduction also?
HiseSnippet 1325.3ocuWsrbaaCEETVvwxMISyqEcmV5zIUCIE0q1EV9YqlV6nwx0SxpLHjPVHhDfCITrU6z8c5zug9GzGe.cgmtraZWlM8eHK591K3CIxX5XaMsQdFOBWbu3bv8dt.P8CD1zvPQ.RqxgS8oHsahGLkKGs0HBii5sMR6138HgRZP0XSaN0mDFRcPZZK8oJCZUJih97502j3R31z4lPniDLa5Wv7Xx4V628yYtt6RbnGx7x3sU2d1B9VBWwDfOKg0Q9D6wjio6STtUBizVdGGlTDLPRjzPjV4MENSGLRbBO1+iXgrm6RUCLPCfEJ17tBWGEiUVQaMh45zOceGhfUo+7rvRwYg6i2i4vlYed138iln57HxlOzJkmdKkidFYomdF5U.kzxPoxwT5N3A1ALe47YT748v83PwYHAR6YoRruHsyvaI.G3xZdjwzcCfAyBXsl55OpJ7uG9ICmvskLAupfuuPReLesGt5WuZkU+lUq9lSMbXgyofIP35RCJbZUkN3sE3Z7IdOmF7npuj3NgNyQX6mOmhu3bZ1Rtc7tNiiBdONS9XeJ+hDBnjTE7sur21DIQUHRrA94SCjLEEz1l9RPUGWVpf2lFNVJ7Ac84pYfZQ3LwkHyKgT8MIS.4fb0MUwgGxjSy1W8elt5pRw6f6yj1iJlikJfiPl5+CNlzMdK7NCGRskyIXY7tO4cWq2pIsd.lJvuYxvp69DiBa59V7bAte.0mDPOTz2kLcsPhmuK8.fiOp5ycE1iGv9J546J7iovlJOVydDgyotgKRyyxW4rhwaunbfXhjwOdOhLfcJzEt+DuAvwz1zsRXGXSqjpGJdrtZrRWLfxchF7OvmjIMTi0RlzHcxLse6SkmHBFGUNR9NrWhy8gQI4mM7TCzFtthS1R34yRToPMHxVeg6T+QBNyVYJ1iTltgmXB.RBc+LR3gDlqRVeDMHLZQtAVuF7GHo2W3.IG7tDaHINsOQNR0anNaADhzfZ1yDj43UVMgZIRuRKNi.zwSsMitPaoLGrDq8TifNqRwqZuviTyZSbQGopsJhhTqYbtIleJWWAGQFSzkP14bSUouL1khToLHcK7KrgLZPbORN3tK9ENg90xN+0BuxpRkK8zzCe2lE5CsMaNAZ+iaNyYAF2i6POUcdvGAmn2mD.uTPRStUOcD.0dLdR5aEvScU0cOxoIlvp5MZvX5IwaFj18vMpYYZZ1RuUKq1VF006DUkWEeHrsFAOmHsZTo7u9Se7288+P8yPEiGFajCrkw0MeCztOfuUyFs00aztd8llMZ0odDb2.efRWmh0cwsp0poUi1s6zoQaCvUzEBZ9c3Mv000K.05sa1tgI.baql5c5DuIWAugTBO7BkaGbEQpBFxtEhkod8VcZna0nogkokYyHrpfOf5RIgzTvtG1nYMyNcZZoapa0odm1VHz76gNjDbLUlbKwr9FTF04sypNMtFxyKsUsbNHKhSWW0aoD0a74e6.Gg6.uSMJ7zyDuPI8xyqAoWB+zyxTGlcw7.I0WcKSNaYpMQVO63e4AcuHE9q7l7A+7e9g4T3E.+qW+7v2s6UB9t+3e7WqWfhe9ReIXiPmC6yBthXa9auZ8hz8uK.+r+9A+95E1HLqn1MmF.sH2WjaA1THF6Qhtbcwdl66hmB3QrCDOyN90Mpc5JQVfKQ3Q+VvJvOJEFW0.8xrmC4A+1rmYamdePwwXt.wTeAhwZAhowBDSyEHlVKPLseqwn9YwaLQJ7heIFXn+NwmjosCm.OxL5HVz+BzvclAJ
-
Set the display buffer of the compressor to external, then you can fetch it from the outside.
Content.makeFrontInterface(600, 600); // Fetch a displaybuffer source reference to the DSP network const var dp = Synth.getDisplayBufferSource("Script FX1"); // Get the first "external" Displaybuffer const var gr = dp.getDisplayBuffer(0); // Set the buffer length to 1024 (about 23ms) // (this correlates with the timer frequency below) gr.setRingBufferProperties({ "BufferLength": 1024, "NumChannels": 1 }); // Get a reference to the FIFO that contains the values const var buffer = gr.getReadBuffer(); const var Knob1 = Content.getComponent("Knob1"); const var t = Engine.createTimerObject(); t.setTimerCallback(function() { // Fetch the maximum value of the last 50ms and display // it on the knob Knob1.setValue(buffer.getMagnitude(0, buffer.length)); }); // Start the timer with ~30Hz. t.startTimer(30);
HiseSnippet 2085.3oc0Y07aabbEeoDGaQlDiFGmhzaCT6ApBGlc4WhpEFhVevDgXIQHpnlbxX3tCIWqcmYytCkDcP5odn+QzC8efh1SsWE5wdo4TgQA5gduEvGZO29lY1kbWKJYZVaCTY.CMu4i2u48989XV0IjaSih3gF4Jb73.pQt2E0cLSLb6gDWlwd6Xj6Nn8IQBZHVKZqwAjnHpiQtbK+oRA4Jj2P8yy2bKhGgYSmJxv3DtqM8Qt9thoR6z5yc87ZSbnG65mZ00ZsmMmsM2iOBvyxHSi.h8ojAzCHxksDxH2s10wUvC6JHBZjQt7awcF2cH+bld8m3F41yiJGXYzENHs31bOGIhkRM1dnqmSmj6cjgQNTmoVgk0Vg6g120wch7oViumZB7zcj1djaorva4LvyJM7LSAuY.obofTdMjdeTW6P2.wzYj34cP6w.mSeBX1SCE8ZMV5YKi1lCqfIJ6SNk1NDFLYGkZXZdeL7eq8SKV7S9DbapvdHlfcbiB7Hi6MpeevuGAtCaJNjBCnf6EK3XwPJdmtcvLp3bd3oEA+Vj.eFID6Dfe.VQgJOfJ1QeRaoNotpCpzpZrga+kVqFq3OkJTGYe2P3XVkdA.PFwaU7NoQRJsLHDzhSvUTQojqR23SL9N3QYCDCkH2xrRMbIRO9HAtRU+n0jqtjXnaD1lGFR8jtN74txUC6W.LzPb+P5WOBt6iw8nd7yWq3fvxQTwQtrAZ8BNk.ZnvkFU5aJhwqpk9HkVW8mnT58kxOXjOvkXLpWjTbwuMkAfbUSb68ZeH7KDAfMl.3fQJwmQ7FQiRYNhukO.rKRSxQThSr8Pd9oV3my38rf0kvIfEuM2OfyfAkVUMqxmLcGBX06xF3xnksCofwQFyFdXumPsE5SWHMEJoaS775Agrk5OhYKb4rRqU7aJVXByRhcexEt9i702ALuuRnGjgAW2zOBSXNIzO0FcEXNSslSA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0ZXtwF5K4JnGJDPWbSuh+ks92EB9nUaMmZq.BrvyTeULqt9F0MqUugUsJ0pzPouBnindTRDcpB+Cq7O+qM+8+5VFSq8cLID5xKtxzjPRiTD+6jl3a8Jv7eoYAxmQkyBSupD2klPbkoV2EpN3.uPUs8jzsWKY9VSs7IE9+pKSY8mzLP2rsKokkxinjd4fe2G15531OyezO329c+3Lb6Yn9mu4UUeqVyk5a8a9y+sMmAWe5Q+RzsgwUz8kgyotq7Ge1lylw+lW4W9u9v+zlWC8O1o1JCGvXQJEk4.1hyO0mnpauP8wmtmv6nm7cPcghWpm6qhk+9pw3eFzTN7lVnrlriVqa3iF8cy6GMJXt+nQGZK.0ebHgEEvix5En9tGCODIJsvuHh1Fdeul9kR91bR3Lm54a1FtjybOcIhQgpbCI8wjp27kuoOdk0B9wqx+l5iWke95c+lg2+G7ZrLO0nPBF65JSnuK6LpGDWnv3cg.g9jQdhDoY406yY7jlZm5zOhBcjOX.MLM1m4EJNEzDI2qURdgIh9QsdDP7Hg6qJ5sP1BqW4u63L8WeTbFSrLXD++he6sJM6FeQ8xy0Kpesi2E+00udfxaimN91PG9D6P9is0u3VxkWQIAt2L0e9fBn8kiwVFmktsUeHi3isskl6OFrOydOUVf8TcA1SsEXO0Wf8zXA1y5KvdZdi6QVL5giDbecnHHnyt5VfysKi.LYEq23+xfGF0L
-
@Christoph-Hart That's Great ,Thank you!
-
@Christoph-Hart said in Scriptnode Compressor Gain Reduction:
HiseSnippet 2085.3oc0Y07aabbEeoDGaQlDiFGmhzaCT6ApBGlc4WhpEFhVevDgXIQHpnlbxX3tCIWqcmYytCkDcP5odn+QzC8efh1SsWE5wdo4TgQA5gduEvGZO29lY1kbWKJYZVaCTY.CMu4i2u48989XV0IjaSih3gF4Jb73.pQt2E0cLSLb6gDWlwd6Xj6Nn8IQBZHVKZqwAjnHpiQtbK+oRA4Jj2P8yy2bKhGgYSmJxv3DtqM8Qt9thoR6z5yc87ZSbnG65mZ00ZsmMmsM2iOBvy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ODIJsvuHh1Fdeul9kR91bR3Lm54a1FtjybOcIhQgpbCI8wjp27kuoOdk0B9wqx+l5iWke95c+lg2+G7ZrLO0nPBF65JSnuK6LpGDWnv3cg.g9jQdhDoY406yY7jlZm5zOhBcjOX.MLM1m4EJNEzDI2qURdgIh9QsdDP7Hg6qJ5sP1BqW4u63L8WeTbFSrLXD++he6sJM6FeQ8xy0Kpesi2E+00udfxaimN91PG9D6P9is0u3VxkWQIAt2L0e9fBn8kiwVFmktsUeHi3isskl6OFrOydOUVf8TcA1SsEXO0Wf8zXA1y5KvdZdi6QVL5giDbecnHHnyt5VfysKi.LYEq23+xfGF0L
It works great for a 0-1 value range Knob.
In this example the automation always starts from the 0 and goes to 1 even if I swap the min-max values from 0-1 to 1-0.
How can we use it on a dB range and also starts from 0 (max) and goes to -100 (min)?
-
Any ideas please? @Christoph-Hart
-
@Steve-Mohican
You'll have to convert gain factor to decibels so you need :Engine.getDecibelsForGainFactor()
and, since you want the value to go from 0 to -100dB you need to invert it with(1 - value)
.So instead of this :
Knob1.setValue(buffer.getMagnitude(0, buffer.length));
use this :
Knob1.setValue(Engine.getDecibelsForGainFactor(1-buffer.getMagnitude(0, buffer.length)));
-
@Matt_SF Thanks for the tip. I've already tried that.
-
Replaced that code line with
Knob1.setValue(Engine.getDecibelsForGainFactor(1-buffer.getMagnitude(0, buffer.length)));
-
Changed the Knob range to Decibels
Have you checked? it doesn't work too.
HiseSnippet 2094.3oc2Y07aabbEeojFKQlDiFGmhzaCT6ApBalc4GRTsvPz5ClHDKKBQE0jSFi1cH4Xs6NalcnjnCRO0C8Ohdn+CTzdp8pPO1KMmJBJPOz6s.9P6kbo8MyrK4tVTxxDMFMQFvPya938adueuOlUcDbWZbLWXUn3gihnVEdST2QgxAaMfvBs1caqB2FsGIVREXinMGEQhiodVEJL+GnDTn3BV5ed9FaR7IgtzIhrrNhyboOhEvjSj1o0Gw78aS7nGxBxr55s10kGtE2mODvy7HaqHh6Ij9zGSTKaNjUgasiGSx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y6EnArCgGlDmU3GGSaKnelg9kQ9VbhXpS87MZCWxotmtD4PgN2PZeLY5Me9q6yc4LietqE9+tO202BdAVtmWTLEicYpj36DdJ0GhEzX7N.4uGYnuLUZdt7d7PdZirSbzGPgtv62mJxh8odgRR6LVxcaklKXrneTqGAjMhXOy6bmEagyq7Wmbp9q2KIKIVE.h+16Kmm+6zub90xSAecni.hqf+DWyKnU7zkzRf6cn9OfPQzdpwXGqSy1FZ.jg6IttJS78gDlSeOUmg8TaF1S8YXOMlg8r5Lrm0lg8z7Z2ip3xCGJ4AlPNPPmcLszVXmPBvd0Lcq+aMQhEN
-
-
@Steve-Mohican you did change the knob's mode to decibels but you forgot to change the min/max and other values :
HiseSnippet 2143.3ocyY8zaabbEeoDGaQlDiFGmhzaCT6ApBalc4ejnZggn0eXhPrjHDUTSNYLb2gji0t6rY2gRhIH8b+PzC8KPQ6o1qB8XuzbpHn.8aPKfOzdoWZeyL6xcoDkDEgiajALz7l2Luey68adu2rpcH2lFEwCMxU3nQATibuMpyHewfsFPX9F6tsQtGf1iDIngXsnMGEPhhnNF4xs3GIEjqPdC0OuZiMItDeaZpHCii4La5yYdLQpz1M+DlqaKhC8HlWFsq0bWat+VbW9P.OKhLMBH1mP5S2mHUaAjQt6siCSvC6HHBZjQt7axcF0Y.+Les9GyhXccoxAVFcfMRKtE20QhXoTisFvbcZmbtiLLxgZm5EVT6EdDZOlCar7TuwOPMANcEY8G4VXR3s3DvyJK7Ly.uo.obYfTdMjdWTG6PVfHcFIddKzt9PvoGAb6YghVWiE9OKh1hCZ3KJ6QNg1JDFLdEkV0z7wX3+V4mWr3G9g3VTg8.LA6vhBbIi5NrWOHtGAgCaJNjBCnP3EK3Xw.Jd6Nsw9TwY7vSJBwsHA9TRH1I.+TrhBUtOUrsdm1TsScTaTok0XC25yrVN1veDUn1xdrPXaVldN.Peh6x3syhjLVoeHXEmfqXhRIGkNw6X7Yvk52WLPhbKyJ0vkHc4CE3JU8hVQpcIw.VD1lGFRckg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NVyZywZZbiqQVb4YCEbO8UNPP6czszlaGeBvdULci+Gii8ZLC
-
@Matt_SF Oh my bad! Thank you so much
-
@Christoph-Hart This doesn't work when the compressor network is compiled and loaded into a HardcodedFX module.
I'm using an external display slot to display the value in my plugin but there's nothing here... litteraly nothing, I can see what's behind it :face_with_tears_of_joy: : -
@Matt_SF It looks funky in the HardcodedFX module, but it works. Just set the DisplayBuffer directly to the HardcodedFX module.
const var dp = Synth.getDisplayBufferSource("dspComp");
-
@orange Mmmh that's what I did but got nothing. I must have done something wrong then, I'll try again. Thanks !
-
Is it possible to use the scriptnode
DisplayBuffer
with the MatrixPeakMeter FloatingTile?Content.makeFrontInterface(600, 600); // Fetch a displaybuffer source reference to the DSP network const var dp = Synth.getDisplayBufferSource("Script FX1"); // Get the first "external" Displaybuffer const var gr = dp.getDisplayBuffer(0); // Set the buffer length to 1024 (about 23ms) // (this correlates with the timer frequency below) gr.setRingBufferProperties({ "BufferLength": 1024, "NumChannels": 1 }); // Get a reference to the FIFO that contains the values const var buffer = gr.getReadBuffer(); const var Knob1 = Content.getComponent("Knob1"); const var t = Engine.createTimerObject(); t.setTimerCallback(function() { // Fetch the maximum value of the last 50ms and display // it on the knob Knob1.setValue(buffer.getMagnitude(0, buffer.length)); }); // Start the timer with ~30Hz. t.startTimer(30);