Controller assigned to slider doesn't work in compiled plugin



  • Hey @d-healey! I'm using the following script to control a slider called VolumeSlider (which is obviously declared earlier in the code):

    function onController()
    {
        if(Message.getControllerNumber() == 11)
        {
            VolumeSlider.setValueNormalized(Message.getControllerValue() / 127.0);
        }
    }
    

    It works as expected in HISE but not when the plugin is exported. I'm using your Develop branch to export. Any idea what might be causing that?



  • Do you also have the volume slider assigned to a parameter ID?

    Why don't you use MIDI learn instead?



  • I had it assigned but I changed that after you posted and now it's controlling the simple gain module by a script. I'm not using midi learn panel because for some reason it works only after I change preset and not on init.

    Anyway - it still doesn't work on exported plugin 😞



  • HISE always initializes with the last preset settings used. MIDI learn will work as long as you load the preset before you save and export.



  • It doesn't seem to work this way, really. I've simplified the setup to this snippet:

    HiseSnippet 1352.3oc2X0raaaDDlzxLvRNNHoHsnG5AhfdPFM0PJMIs.EEVIxRFBMNVvxwoEn.AqHGIsvK2kc4RmnFDfdnOO8Yn26k9JzS8ZdCRmkKoHkMghpJRPRzIsyO67yNy2rK6KEdPTjPZYW83ogfk8kcFLkqlzdBgxs5smk8kbNFhTV2eZHIJB7srsqrulmc00sR98xcuOgQ3dPNIKqSDTO3Az.pJmZ+VeOkw5R7gioAEj91s54I3sELQL5GUbZXER7NkLFdHQK1ZNnSzwmpDxAJhBhrrW+9B+oClHdJ2H+IzH5PFnWzzZ.tQFxcELesGq+uU6ITle+r3Mxxx1oedzWwD8W24.pOcF87rvUSX3lqQw7g8ZKx8ZthtmcA2aci6cMmAdRZnJmi121zoGWAxQD7HnnaYj0Zs5q4zVfRvU6DPNE5JwEyzn9caz3lt2oQis+1spgGCQJ2yHR2CiUgwJ2uyMoZXmwfpynQfmp9MLbtgV7hJbhfEG.CXTePhpkYPTw1hfPAGWT+FEEJcGnbFkCtih4dJpf6J3EERuMRAqtW1dbSzXrXX6sp87sp4h+XBOBy0e3IZxng6vGi6m1t6Adzg.KpqPpKX6R7vin5F0QSW0DH6DAp6oTR5vXETGSEoakVjWj3gKSnn2kTesM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LOlwtfLZhmStAmBO87.2RLjzzd90+88+6e421c12z5BeTAyqXL8tVGzui4sz1c3DrK0P8eQo0x2J
    

    It will work fine in HISE, but after you build it, the mapping won't stay.



  • Yup you're right. It doesn't restore the CC assignment until you load a preset, smells like a bug or a missing feature to me. @Christoph-Hart ?

    I went back to your original solution with a little modification.

    HiseSnippet 1205.3oc2XssaabCDkqkYfkRcPRQPQebgQePFH0Ux4VABLrrku.gFYKX43z7T.8tTRDlK4VtbcppQ9PZ+S5a4Snu2eh7GzNjqtP4tVVU.IvNKLL.mKjmY3gyPpVJY.MIQpPdEOteLE48U318E5d06QXBTicPd2AqoIZz18iIIIzPjmWg8M57JtHx98wM2lvIh.5XQHzIRV.8krHldrzV09IFmuGIjdLKxw5mTqQfTTWxko.NJfqfhIAmQ5ROfXLaAL.hcCYZopsl.fA4s31xv9s6IemHy9SXIrS4Tyfpn1vDkIdOIOzfXiTT8dLdXqgwaBB4gaMN5KjE8OD2jExFIebV39VE9i8vMe3svzfWUW3UY1gmmC7VLCdO.2NPwh0i0Xv1cwMDZppCA1BbgUlsnE9aObcIXgPuVD4L5dJXvHOJ+rJUdj+SqTY0WrbIXaHQ6eNQ4eXpNNU6ugukMrVWpd2NcnA5xqjoYEi4tNbhjmFQayYgTE31vEDbrtLJVJfAkWw0HXF5jJBzLovWJNPpoGJJuZoKJUrz6K4eYUc5jqNyxnjbNUUd0kKcwxk7gOVmxMgrCPfxV9glbPZzoFC82XC+pUW0Z6E1+a9bw1ZIT8IDdJ8.oJhvY+FML+ozZDLi+fe00e9Z1bXtyWPOhnKLIq9Bq92ubI3O2.wbhPMsPrrvh9GAIaXIGYHPMlj6guZtm6Qifr8GGCkhFBl9vXp3pXjnAapFt4.TAlpsLy6MfYlEuHVnQjaJ.YwsaIBzqZrCQSFNavDCKVLUoYl3vaG54PIjLdeQ7NzjyzxXqsCnSvJLqq8u5tt8cG7NVnt2XAuoVOJqaOsqjHVXHm1RlvL6HFMdVMq+g3gImFvRtDN6jAT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