Setting Script: Time Variant Modulator value



  • Hey there,
    I was looking for a way to setting a Script Time Variant's value over a script and hit a dead end. I can access the value by getCurrentLevel but I couldn't find any way to set it. Any directions?



  • You have to fill the buffer in the processBlock callback with the actual modulation value. Simplest solution would be value >> buffer, but this creates zipper noises.

    This is an example that uses the inbuilt smoothed_gainer module to control the modulation value with a knob:

    HiseSnippet 1341.3oc6XEkaabCDkqk2zJk3f1BWfBz9AqQ+PAv0QJMos.AI1wx1oFINQvqia+yfZ2QRDhK4VRJGqDz+54oWgdE5Un2fbCZGxUxZErhiTPS.JhVnOzNy7F93vgC2gM0pXvXTZRP4iFjAjfqEFMPZ61nKiKI6uCI35gGvLVPSyEs8fLlw.IjffROzIHn7xD+yq1balfIigwhHjiU7X3w7Ttcrzla8HtPrGKANhmVv5au09wJYCkP0G4SovZjLVbOVG3ILmYKERBtxtIbqRGYYVvPBVdaUxfntpmKys+Xtg2R.tWpShPGkKdOkHwwX2+IM5xEIMGMuMDRPXywQgR4QgUCOfmvOW93nwm3UPGinX7HXoKid0KRuZSkd0mB8HEX2x4rCIgJoufYmjYtkigJ3pIWo1WZAogaGTb4ZNn6bDMCJv2vb99UgQwZdl0sbeLSyYR64SfgbO2.HwMG.8al641SV5KKEdyaRanA2TfxncP7zTmygUpfYSFK8TllJ3sn2i9XdKMN7fYCghkTcsXkFV6F2sngd72yY+Fwdm5IJTcMSpRY6BImzwyPOrUpficDXonBZtAbYGpEmlTqhdqZ0nolUp3PrgArMYZLQF2JU0KIZD.WXYcm0m6SVRh2m8jpVqTogxEArNW7S.uSWa06TaRVeJR4QVgXeDBq5ZGyD8g0VmVC+4LuceYrKwflogLlFNR0TvFT0vRyDvg3TccZ9+MMA81BUbuaT4kqTghOHk1WxsbOoxPTsvMlTSFDapT1OYlced2J+VQp3yU7Zp1pe61ft3ftGVmvOl4pnOma6Rqmqt9F0n2+9C0b2bYmCLsuvxyDCnbaNnwqPPR9h7otvy4r+hz.cYAhpjOQYgmJqhzqR4onoc6ooxsnnUBAtl+50VU1OsEnWOmREm+XtkwScKS2AyybjcHkuX9jaqyHe3IOtidxM3Wc11fqjtE6mlACMah01QhwhyEBZikNJPcAIsaWTz3.yTjNVTbdRcANOkBjCy7c0dF5.zTquxy0GVXIRvSvxJbrfxGE52XP7AphGUQd196vrrQtA8HNJYf1xcwtfcfSwixxKnUNbGvzypxHAecCUZlR5F+fq8FGzyvZhAtwZvn+XrCbq.WIzsokjxSRDPSEVtyUBebAu+DOBNKh+BOie4p+wC+6W76alV73WBIkcVwRjFLOlel+by1bQpwhbZ+T73TRvmE9LCPSf1LbeB0zC8ifK6AIGo71SJLoV9sXRs.+B7Kvu.+B7Kvu.++CwOi8b9ogM413tSuoyklRia3GW8ttG4gcvuR3t3mwGaGS1kC26Wd+1t90yoxUCivVF8WqhmHet+c5OyNEnODvlI88A+5uXk+ZVuXkrY9hUdZrEG8izLoISYlvwQPJ+HL2wTTH94h6oge8P2hbQ4MTL8TU8pM2CmiSESDy1W6yVdPppuzNQ1Qo2pqjXxa93R6VHX4E21imtklM59Ftgmxi3XD20l+txSAA1zzvpC6j2gw4RKRxCTRUVWkjGWLA3P.aSoSGPWj5Sc97.qkE2arjU25PP.rhIyeyVOFSBYZLLAukgh5ydn3xVt9hvb5RcaLouitjt+6yxtz56k9vr99gp9VtryALLQ0cx4S5mFg0UiAjIRIHLtCQWxUaL+8ZiNTMBjI9W9G7Ynx5t2CFpr9HkuWFiTVrVcRb9El3xk+XuDbdK8W2d4vCbuSqO5lRbwlTrb3Iwwtf82VmPlNhaM2H9t4FwsmaD2YtQ78yMheXtQ7iWBB2YOOnuUklu0CEzbW+MTEDrqjgYt9rbx+hlmF5Y
    


  • Thanks for the quick reply! I've figured it out 🙂

    As I'm new (I just learned about HISE few hours ago), I don't know how to use HiseSnippets. Is there a guide for that? Google didn't helped 😞



  • Copy the text to the clipboard, then File -> Import HISE Snippet.


 

3
Online

353
Users

1.1k
Topics

7.6k
Posts