@Lindon said in ScriptNode based filters - and envelopes.....and polyphony whilst we are here...:
@Matt_SF thanks for this - its a solid start in the right direction, of course theres no way to set the frequency and no way to set the depth of the envelope.
Oh, my apologies. I made the network between two chores 😅 , I was sure you got your grasp on this part.
To display the envelope you'll have to paint a panel (see Scriptnode Visualization 101 in the snippet browser)
HiseSnippet 3788.3oc6as0baabEFTRKkEsbSxDml9HFMclRUqx..dud5DZcyVMRhLhxWZ83nABXIIFABf..JIlTOsSmoyj25ys+O5C8o5Yxef9XeL+D5+.2ytKtrfDzhhVVNI0HyDSr2Ne64b1yMrpkqsF1yy1UHStCG5fExrLp8PK+dazS0vRXmMEx7dnMF34a2eaCSerqmv5CcT87v5BYxL+8ICJyRKHPe9ue55plpVZ33lDDdjsgFdWi9F9ws1pwmYXZtspN9Pi9bitTiczrs1v1zd..n4QRBNpZmn1EuuJYXygDdfpWOgL+RjZwh5cpToVccsRkkq2Qspt1wEqWFqqTpHtNVWuZQ8i6zQHS1szM7sca6q5i8Dxrv515Ca2y9LKFAdjgmwwlXxKxBsAJyZdaaScxVjzpvF8LL0aExo7DDxfZEy2lmw2tMZOCcin1i4euOsCw3Yvy.yLWR3MeB3IyCOIN3kBjxvAoEXP5CPs0bMb7i6gfmah1wBDjcTA4DOTXiUXt+ABsgMLBK+B8UOAusK7RzLxWQRZMQ3+s5cykCjUd9hmp5Jp6H9aDo5ME5h82zvywTc35C5zA61Fjkv7Vgs7ha+D4Uf4FOU2igop6L17xOBIV+gau8VGbztas+8O7AvTjkTJkX.Nt1NXWeCrGz6WmSTbE1BsK1pqeuU90IWg0HCX+A8A4jkE1zC5WN2ygEz83BdX+CLr5xldqnkMeLEHP6S9Dw8sOSzD6+K7DU00EUE8L56XhEcTgUTriMvWX6HXwD86gg96ZoZxg4VjQJC3MjiCbgMr66XaAujeEV2D9E4IdZLdIvJ445aAnUyexL5ttNelkMga+zzolpuObZakUIrlTdReR5XM0gWx43A1SfSGqr5ytaNfKk+DQCqP3sp3ID9OYht1lan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