Sustain Level?
-
Hey!
I was trying to create amp and filter adsrs for my plugin. I had a amt knob too, but don’t know how to create one. I have three samplers and would like to change the sustain on all three of them at the same time. I did scripting and used the .Sustain module parameter. Here’s the HISE snippet where the code is. Thanks!
-
-
@Casmat You have a misspelling in your Sustain function with the word "sustian" and in the onknbFilterAdsrAmtControl you need to reference the Envelope Modulator to set the Intensity not the actual FX component, if you want to control more than one parameter with one knob just set all the Attributes inside a callback or link the knobs.
-
HiseSnippet 4210.3oc6c07baabEGTRqjkrrrchaZ5zoyf5ocFZ6XZBP8431wTRVJQMQ1LhJNISlLNPfKIQDH.C.nrUyjF2N8PtkK8R5obqGamIm5M+mPuz64Tmo2x+AsucW.hcg.IAn9VAzGh1ueue6ae6681Eap3XqiccscjxM4162FKkaZT08s7ZtZSMCKoMdnTtWGscSr7601wnQSO4UzbckqXnYYKsx9sgD3ZR4xM5aRpctIGSh96GdvJZlZV53vrjjdhsgN9cLZY3Elakxusgo45Z0vaazhq1yVdCcaqUsMs6.T1nnhRs0z2UqA9QZjpMBRJ23qUyvy1opmlG1UJ2XqXWa+pMselEq9Owv0XGSLIghTUniXYutsYMBESxUZ0lFl0pDf.tRR4PUBwiQY3wMPaZTyna9g3x0nEHG1Bd7H2Hhj2nBjmBO4Uji7hgjxwQRiwHoqipp6Xz1KrDB8bYzFVdXm5Z.rySJr5JMx+dZzp1PMr7JzRaW75NPhtsH+7EK9FxkJV7V2epot28V2vDJPd4GVcKYRibrMcg7uMLo35I6W5uU9i936e66MEKy8zb7KnHTBUFpPCr2Z0qi08xeS+htIz+QquRuquRb0Ws20WMr9K+V.wul0dXS61XFsN0T0scjya.oJdeYC4eibI3+bm6bqo97olTn9EZ2wsY9tCxl105XpASm4uoP0to7cjMtELjeAAb5SmyntH8pHoG1W.jN0j26dK64Ax7SYXYZXgkq2wR2yv1R11ZWqcXMY4ZtNE8mdxqa2pssEL69F.TY1ASG2njjHSZhsZ30zmJmTDA9HiOtfK1CHBGic53gyefRYzWvnAzMfu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O8oEodR79UD7PcPrdw+uoAKJ2nX+OKqb4FwLpYAtcpWmPRzKLZpO8.kebb5A+vCxN8fTd5AJYmdvIpVtyaQuUIK5sYQuMyMoL2jtHF8V0rn2lE81fn2pbrF8V5uezE81hGkQuUIK5sYlhjYJRloHYQrMKhsYQrMKhsWjiXqZ188NKhswFwV0CDw1wOlhX6E3qvsZhuB2p86JbqxcEtUytB2YWg6KlGBfZ1g.j44clm2YddeQ7P.JkcH.WT+eJOIKv+pYA9+rcf+UyB7el4GYlejY9QVf+yB7eVf+OcdtVNbA6e3IuyGA3+jfJOIFiVZ5N1O0+0XkfGWhlCfDVZsXOdpjzxJR6w+NV0xnlwS00Cd79huMpCQaJMDsY1gnMyMDsY9gnMKLDsYw91FRL18e57HZ4fLprFS3M2ZcEdGU5+CaZLU+.
-
@Casmat You have a misspelling in your Sustain function with the word "sustian" and in the onknbFilterAdsrAmtControl you need to reference the Envelope Modulator to set the Intensity not the actual FX component, if you want to control more than one parameter with one knob just set all the Attributes inside a callback or link the knobs.
-
@Casmat Make sure to match the Parameters values like the middle value in your knobs to get properly skew factor.
-