Wicked idea: Animate sliders into position when preset loaded
-
That would be possible if you don't use the built in sliders in Hise. If you have custom sliders using panels, you can then load preset data, read it, and use a timer loop / animation script to get the visual behaviour that you want upon a preset change. There is probably a better way, but a hacky way to read the preset data is to create hise sliders for each of these controls that are hidden, and so when presets are loaded you can read the values from these hidden sliders ect.
I'm pretty sure the built in knobs are hardcoded to snap to values on preset load, animations and values.
-
@griffinboy damn!
-
This post is deleted! -
@griffinboy I reckon this is the way to start
https://www.youtube.com/watch?v=WXRhYuVXoOk
@d-healey are you still using custom panel/sliders or is this idea outdated since we now have look and feel? -
This post is deleted! -
@Morphoice nice little programming exercise! No custom panels needed. Remember calling setValue will not trigger the callback only when calling changed()
HISE has many tricks up its sleeve check this :)
HiseSnippet 1939.3ocuXszbabbDdWPtJgvI1wUoi4vDdZoECMvRERKy3PRvGQLVTBEAkTphkJ6A6N.XrVLCpYmkzTpTU9Vtlq9V9KjioxEW4b9MjxUkS4Vt3JGU5dl8I.nDMyi8.Il9wzc+0cOSuaWkLjkjHUNtMO8xILG2ejWuKE5Q6MhxENGsui665cLMQyTDKoNWNgljvhbbcW3WiDbWZQGyy+b6NzXpHjURxw4IRdH6A7wbcI0t67o733CoQrS4iqH8c24nPoXOYrLE7mE7Z4LgF9b5P1ConXM7btOMYji6G3Er48ZuQ+fVA2q+lr6xBFzlsd+AaF0t05stKM3iVeiAzMZSumi6sNHhqkpdZplk33tXGYzk8FIuPXMvS3I79wLbQamdfksjOTFGggHR0YuQ73nt4.UhCrKcKgsErv1s8NlGwKnWBe+DCCRoFUAP2F0cuEp4dsuJ2aNtjaEWZQqK89d8BU7I5RNn+7NdGIfr4.Jjmp5JVYcZ7SWxaOIHgPu1X5yYGpfEEZ3uQqVqRf+rxVMaB4pDM4bph7oBY+1jOgjq3PldO43IRArveYC2kAMpqPvaTgf5JziOdRL6D14LkwRlZTTsCFLfEB5XEfjIwxk92i6deP9CDC4B1ZgJF.zONgo5pXIL88ohnXlxGDGjaMfBPeOZbbenvyW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7UzctrXw2bwNWvizvr+dt+NX8HFe3HMtZSGC5TXhEeqwUoIHp5ln597N5rw5s6i4NN3X8S4PxE2s2yqJopNtysqrqvhBGe+FUc7eiaQV0hYummcnxNJ4EvDlN8Gl+lPKcKXi9W3tgWxVR8O95e+qqSMHSXyiIY03O2vCaNWFq85QOm0IUqkhk+XyzQqly4fubBUj.s.I6l.aU5XTBy8KEhXpPUyWcrULYl8D5TrhWiUIYn4EhWfW6VEJAmNMeSbBS.uE374sOKlouBd8XTU3nNT0zLNjdtTAPG9NmU4cXZbbWpdTN+jZHQV.cD.VQrNRE.I03+vzwV7CUqsgjc8SwxfSvIQ.FmYNtr0ZqO0ypeOoCjelwFOfmn2Ed2hBHMyBqNu+Unk0yNQdQWZTDTJec0q.S6HSEQXjdlkwwvUtVDZZNkkdSyIGmmgayW43L6a0BuOsLBmYt9KYieJhLFPUbs2rEG8ARW5Kq9oJl9MuW7pOHu009CCbcc222qKWGNZ99ai43u349+O1ey9NF+XO6aTW5rK5c3u8M9QKV75cGXoq7V+.FKcZ9g3UlAJKQW+E8q4XmHki6weQ9kV+gu9q+GauOc7DnxNizNqu9ee67Qopdw39pKqR6q9Ke22t8SsGbWtWGpXrWvfrVEK7m11cg+K8MbbNQlhWnbLEFADtOwCNKoGbndHCRFBAKNAu2nAdemccKbMVbzClT1r30vSFy13Z2LlsyY9+EaLlFpjeV1LlXt8GZn.wsv7g7Vx6XbMo9.Jlmw7H9mEFVeqlQwfaphqeSU7t2TE+E2TE23lp3l2TE+n2th3mxb2Tsbr8TKGmi6dfYLCWW62FyzG57uAr2LlnB
You might need to add your own presets the the system
-
here is it in action. it can morph between any preset. check the snippet above the value that is being set is not interpolated since we do not call changed()
-
@griffinboy it's possible to do what you describe with the built in sliders as well, using a hidden slider per visible slider as well, but I think the way you described it with panels is a better way to go, then you have one timer per slider/panel
This is with the factory sliders, no LAF here, just a test
HiseSnippet 1891.3ocuX8zaabbEeWIuJlrwMIEA47.BD.pXUJ9GYa0XnHJ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GaWXPLbMiReNbw6u58cNQ4N1ipm85zvKZLR.h0z2gEdOUv6+zSRmj8JbGakuv6XaYg3G3zRnY8yFiqjAFgtAeafwnal7FNG1sK7M9SA30bN52dUuFxKY6enZL1M5ITse3Aanqi1P6eLNr6RHcI.C8qfM1aFWNNKoMW5FN.OxGIrBN1NRXkXgPgElu5ah9LZ7tOud3L.ljg2MbNmSvwjJy2.uElmK9FFa1kZACqdUMr1U0vstpFdqqpg29pZ3ctpFt8kaHdS46MF9VaywFKqSZcX3GKXaenjBYfgYqV+e1HO+D.
-
-
@oskarsh absolutely awesome! I approve things that morph! You guys are the best! I knew it
-
@Morphoice depending on how big your project is, this might explode the complexity of the preset management system so I wouldn't recommend that for anything else than one knob plugins.
-
@Christoph-Hart at the moment it's precicely 72 sliders/knobs