Changed Knob mode with a button but Knob value can't be saved



  • Hello
    I'm changing the knob's mode and other parameters with inline function. (For tempo sync & free mode of the delay with a button)
    But the Vst Host can't save the last value of the knobs. Also knob position is not stable when I open the host again. Am I missing something?

    
    const var LeftDelayTimerSync = Content.getComponent("LeftDelayTimerSync");
    const var RightDelayTimerSync = Content.getComponent("RightDelayTimerSync");
    const var SyncFreeButton = Content.getComponent("SyncFreeButton");
    const var Delay3 = Synth.getEffect("Delay3");
    
    
    
    // [JSON Knob]
    
    Content.setPropertiesFromJSON("LeftDelayTimerSync", {
      "mode": "TempoSync",
      "stepSize": 1,
    });
    
    Content.setPropertiesFromJSON("RightDelayTimerSync", {
      "mode": "TempoSync",
      "stepSize": 1,
    });
    
    
    
    inline function onSyncFreeButtonControl(component, value)
    {
    	 Delay3.setAttribute(Delay3.TempoSync, value);
    	
    	if(value)
    	{
    		// Switch the knob to tempo sync mode
    		LeftDelayTimerSync.set("mode", "TempoSync");
    		LeftDelayTimerSync.set("max", 10);
    		LeftDelayTimerSync.set("min", 0);
    		LeftDelayTimerSync.set("stepSize", 1);
    		LeftDelayTimerSync.set("middlePosition", 9);
    		
    		RightDelayTimerSync.set("mode", "TempoSync");
    		RightDelayTimerSync.set("max", 10);
    		RightDelayTimerSync.set("min", 0);
    		RightDelayTimerSync.set("stepSize", 1);
    		RightDelayTimerSync.set("middlePosition", 9);
    		
    		
    		
    	}
    	else
    	{
    		// Switch the knob to frequency mode
    		LeftDelayTimerSync.set("mode", "Frequency");
    		LeftDelayTimerSync.set("min", 0.5);
    		LeftDelayTimerSync.set("max", 1400);
    		LeftDelayTimerSync.set("middlePosition", 700);
    		LeftDelayTimerSync.set("stepSize", 0.01);
    		
    		
    		
    		RightDelayTimerSync.set("mode", "Frequency");
    		RightDelayTimerSync.set("min", 0.5);
    		RightDelayTimerSync.set("max", 1400);
    		RightDelayTimerSync.set("middlePosition", 700);
    		RightDelayTimerSync.set("stepSize", 0.01);
    		
    		
    		
    		
    	}
    };
    
    SyncFreeButton.setControlCallback(onSyncFreeButtonControl);
    
    
    

    This is the snippet:

    HiseSnippet 2045.3oc6Y0saabbEdVIswhzQMJoN.8hbw.gdAUgqLoj+KwnvzRxzk0RVDhxNsnnHYztCEmpkyrYmYkrRfAxkAH21Gf9n3GfbQKZA5sMnA857Fjdlc1eIWRQJDaT6XJS.Om4Lm467ybNmYXm.gCUJEAHqJGblOEY811cOiq5uUeBiiZuMxpp8AzA9dDEEs4Y9Doj5hrrl+A54spr.J5y2e2MIdDtCMiDB8DAygtCa.SkQ0u4CYddsHtzCXCxw80a11Qv2R3IBArLuccjOw4XxQzGQzrMmMxx99tLkHnqBfhDYsvlB2y51WbJ2v+SXR1gdT8fFntffLjaI7b0HVSEsUelmamDcVh.g1IyBLuwBbE6cYtrT5YVhkil.msh71Cq4lD7ZjGd0md3YkCdKXf26Z20If4qxlQisKa2lqnA8HNEcSFdQy8cKZuk.3fqVa.4XZq.XP5JpcyaU+p3Mt8MV8NKUsr+.WiTgOgDf2g1SsM0ibl18E.gJN3eCNQxGQUaIF3K3vfZqLJqqnkelr1mcT+oUXkv6PRSSpU.ktYnRI3iUPEYaHYDsAa.qM5Lfdk2uWOpCrLyLqjYft10v+weW28dD9gbwg+IMkj8SR09FeZfhQkfgdflsRMGWE+EKUEiWYfvktxGgWQePSXlIhtTQ86x9b8bM.JOyr6my9Tlk5hsQ5+XbOFmh6ExcTLvrJ3EMfZvDH7p4jXguJXH8BoqtTUXKqDaQ0X8dJU.6vPEsVLsTPjrDXSq.+i0qVhHpnkQEvT28TlxoOV0mhOFr2Xk.qzKGK0AMZ0Ry3nlX8FWyn1WMuZGsWimexSA1aT+b3hwAtNGlRsrf7NOw455Q6HjLsgF3+CM7q+VhOcxZ13WPAUa7rkW2FKWipbSPfiW6h+9L3K0SRmrauW.8yBobmylZudqjUrxT4OW6FSUvw0qWeF8m2p9zGqTes5MFw.c9gACqpmm+MQWOuvkTkc58u2p9LD8Tt5ZhIdVTtnhYczBHNyyVDOuCgV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SncIPpYn9f8ifBuPEHGJ.UNjNWW.1ZNcIGy355wZ.0kxciF7Cvm3IanGaEOYijIyaRtrwjbIS7UjkHsXddKPw9qx0x8Pk3y0AcKJ0Uecrbq3S606+d2D54Wvy+lu46t6NhS6.an9N9ox4q9GM+srQn9W96M2k8z7Nirx648P+XkW4ksWYbYfur8tDn+if8dSV32jE9MYgesIK7ULljKa+wjSnQ+zLQViqDMtmHX.9ATNMPaqlv49+1O9+Fk64n.DbP.gK8ERZi7Rdn4VuXBHUHOk8larwcZZHsdVkf0dtV6ZAZWNwtXyDhqmmHDUTXugwE1uBUCPn6yIfOuKEzF28jNfxFY5xE1zIzSRiNbjBxu8y+m4HmH9lU+W+mQJjLy8b+J3OM6KuK+M+zA2y4WOtRBFM0LuO+Dpm.nXJzrs4dsoTyCxcEbgeeAm4jOFZeJb1+nn2QHC5kpO2Sof1Yx2Tz9TOJQl6j0ur4NLNkDrazqQbgLEMldSwjbW+BaCbw5i93WOty97uFcm8WDGPgri+Dol5Ki8X.wIP7INled.8QuEin.5MO5wzq.MoCiwMR94.z1lAP16OwwQGa7qAqS4qX8YdEaLyq35y7JtwLuhaNyq3Vy7Jt8DVgtT48BUhAl3cD5+AHZjwsA
    


  • You have to swap the order of the components so that the sync button is above the knobs. The plugin state will be restored top-down, but the values that you restore in the knobs will get overwritten when the sync button is restored.

    Also you need to set the values of the knobs when you toggle the sync mode because it switches the domains.

    In this example I've swapped the order and used some hardcoded values when toggling the sync mode.

    HiseSnippet 2068.3oc6Y80aabbDeOQcwhzQMNop.4g7vBg9.UgqLoj+iRLBLsjLcUsjEgnrSKJJRWc2Rws53tWuaOIyDXf7X.5q8aP+h3O.4gVzBzWaPK5aEneCRmc26uhGoHEhMpcMsE.2YmY1Y9syNyrK6DHbnggh.jU0CG5SQVuqc2gbY+s5SXbzNairpYeHcfuGQRQaNzmDFRcQVVUdnZdqpyize9O2aShGg6PyHgPOUvbn6xFvjYT8a8HlmWahK8P1fbbeyV63H3aI7DQfsT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av6xo1EZkPbs7DgnhBqMLtv5UnZ.B8.NA1y6RAuwc+PGvY0PWtvlNQdgT8giTi7a+h+ZNxIpuUs+1+XjBIybO2uF9y+9p6xeUlNy8B9EpqlXilZlOfeJbeZfhoPy1l29IkZdibOAW32WvYN4igNfBm8OVeg6LSuT+49RIzNSFkkZc.0iRBycx5G2ZWFmRB1Ses8KETzb5ghIsc8g1FyEqN5iey3N6UdC5N6uLNfBYG++jZpuJViADm.wm6X9sATG8VPSA7at9QzqBMoCiwMS9Y.TXy.H68m63nhM9o.5TtDqMyRr9LKwMmYIt0LKwsmYItyLKwFSPBUox6GIECLw6Hz+EzzPmV.
    

    BTW you can test whether the restoring works correctly by creating dummy user presets and loading different settings in HISE (no need to compile and load it as VST for this).



  • @christoph-hart Wow, very interesting. Thank you so much. 👏 ☺ 👋



  • @christoph-hart By the way, it still doesn't save. Only opens at hardcoded values 😞



  • @orange I think you misunderstood. Christoph put in the hardcoded values for demonstration purposes, as he said you need to set the values of the knobs when the sync mode is toggled.

    Try this

    HiseSnippet 2083.3oc6YrsaabbcVQs1lzQMNIJ.8g9v.g9.UgqLojukXTn0RxzU0RVrhxNsnnMY0tCEmnkyrY2YkDSfPyKEn.En8k9GzeD+AjGZQKPe0AsHuUf9GjdlY1qhKoHEpMpcMsE.mybNm4baNWF1Nf6PBC4AHip6MvmfLdKyNCXhdq2ylxPatAxnl4dj99d1BBZsA91ggDWjgQkGJ22n5rH0m+8pqY6YybHYfPnmxoNjsn8ohLn9VOh540x1krGseNruo0lNb15bOdDHKULaf7scNz9.xisknMiIxv7AtTAOni.DkPjwrqwcGzoG+XlF+mRCo66QjKZh5.LRCtE2yUJwRnn06Q8bamnygHfosyr.UzVf4M2l5RSgmYItlZCbFE4sGFyLNwqYdwqwjKdF4DuY0h26X1wIf5Kx1QJaW0bSlfDz01onaRiKZlGV0bcNfASrTe6CIsBfEoTT+12ow0wqb2as38lq1b0.GQn.ejc.dKRWwFDO6ARmU.DX3f+Q3D9b.QrNu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xqdWQAAzal5AyqBMoCqwMSdxeosoOj89icbjwF+Pv5TNEKO0TrxTSwMmZJt0TSwsmZJtyTSwcGCExRk2ORv6qi2Qn+CtPYn8.�
    

    I also changed the knob mode from frequency to time to match the delay module.



  • @d-healey
    Great David. I couldn't see that. You are awesome 🙂 ✌ 👍 👑



  • @d-healey
    It works on delay but, doesn't work on Modulation.

    1. Presets can't be saved.
    2. Modulation rate knob position doesn't update on free tempo mode when temposync button is switched back to free mode. you can compare between knob position and modulator's rate value.
    HiseSnippet 1409.3ocyX0raaaDDdorYRjRTQSaNVfRHfBHi55PYmj5TiBKaYqDGGaKD55VfdHkhbo4BSsqB4RaqDDf7Fzytm5qSdK5odtuAsyv+Ur9wJHosDBBZmYmY+le1YFpN9BKZPfvmnbyCGzmRTtkpw.tzskqIiS1YKhhpZe2.xlC5aFDPsIJJy8HjkR44IQO+05aZ5Yxsn4jHjiDLK5SY8Xxbp8atKyyqsoM8PVuB69dM2wRvaI7Dg.LlSUmz2z5Dyio6ahaqjJ4TF8r.hht5JKuj+IM59xMVBe1L5615m9nswe3rxtqd19QzNrq0KNaWhUnuOkKOBDGrCk+FdTT21lIE9FRSIEz4baJrGX3JNiGezGwBXc8n3hFDC.SwjIsbYd1cR8VADhx7cx8cyE66ti5dLaVF8be3mFwPKWhhtSkRCCo4GBRMFGjZK7rQEfTGA7TJ.u4ig2sUMr7Y8k4bPrcS0c3RpuiIDAKBq38RJ8kppsDvN3xk5YdBssOrHSh5OPWeQsF2Weg0pVoZEHNFH0N0zWayPoTvan88ZoBeLU1RzqufCKpWKgeMTtbo1kK5NdYh3FIQJ+.JZL8o9RFM.PVumXbv9oabQsWUshlVsdBaZsuSq1gTPSPxsUsEinGHo8MXuD40.n75XSnHb573ML19YOs8A.jhtUf.ZOgcnmIDupWKiesXYYbOFmp4DxsjLAWSviPBhVegWcqTSYQP6dgzEpVIBgZ4GDZQaHk9rtgRZ8bxs8ouHjxsFjJ5ZUdctaXjtITUImbKSOutvcp5CCn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e6LKwpSPB7uNYiPntUbO.B4e3SpRfD
    

    @Christoph-Hart



  • @orange
    That's probably because you're setting the knob to the tempo sync button's value instead of the knob value.

    Knob1.setValue(PHASERLFO.getAttribute(PHASERLFO.TempoSync));



  • @d-healey No, it doesn't work 😞



  • @remarkablex Ya it does 🙂

    HiseSnippet 1368.3ocyXs0aaTDEdVmroXCthV5iHwHKgjiHjZmdgVpP0MNwT2lKVYCEj3gxlcmM6nrdlkcmMMtUUp+C3Y92wS7L+CfyYu6DGeIpEvJJJmay7ctLmywYPfzhEFJCHZUObjOin8I5FiDJ2ttlbAo+VDMcce2Pxli7MCCY1DMsk9dTjV0kIwe9qGuoomovhUvhPdgjaw1gOjqJ35244bOudl1rC4CKo8c6z2RJ5J8jQ.LVRuEw2z5DyiY6YhpUQGvv11bkLvPYpXgDsk2TZOxvU9JQh9ufGxOxigDsIFvAkvtmzyFQLxkz0k6YOHycCIvoLnv4WJw4uk9tbadN+hfvmFKfVXQ43gVkoAu1WQ3oUBdKm.uanaXEv8UERPr8w58EJVfiIjBJCqDcIU9Bc8tRPCgZ8glmv5E.D4Vz79sZsFs88Zs5ipWqdMHQDpnmZFP2LRojh1zuilY7wLUW4Peo.HZ1HUdCztBqdtPdzkaSrzXKxjGxPmwmEn3rP.YCelw96ko3Zz2TuFk1Xnzl03aoMNjAmDTcZ0XsX9gJluA+0nr1.m2l3Bkgyfm9DisOXmd6CPJtrFAztR6HOSHe0rQt7FI1xEdbAi5DIrTbofJEwHAQafzqoUlqrFb5dQrUqWKFgzhKB8nmnTA7ihTrlEr6Ev90HlvZTloOp1aKBCSLLgGU5M20zy6H3QQywATlCOYnmlglE3mIzyC64PGMqdspbmlYmTU3npV812lZ7JtxxkpbYzS.jRURpBsmFBG.EyjnhwNAdeMSRtqUN4hm+3pvEfFstHeyy.9sevEDjWX.RmvoYa6wFHC4XbBT4gIgwpP9nJyKjMcuwIKQNMmIOaeoNy5abItyFslMhuyz73Vq2pcIOB9IWuWfYqRY1imQs5pw2ScrR8xpUyaCL4p0wqAW8QkJO2SpX6KZtZs2TqZs2V67RbbljnzCxiELIo3bkfoXVSQzviXAY0wo5AsWGu+8JyW+aqj.RIEkh9BtZeeVJ8z6vSRinPu9Jo.DTUE2o+5oc5SheDNbHU0SCljXzWd.L4xL2viayBhM+Z5wkAm2XZGxOzeKSkINwIEPEcjAdawNEFkmL+op9VrvSTR+XDmVC.G8bf4yxux+vsynbh28rNuhaqbgQ7ZuCncY7icUH0mCTJ1YJbij3dCXCbKLnkeuWelNaws9tMKcqjsurasEPM9ysBiZzIAOqne.TmPfmqfrUtY5FO3SebVbdeLRXjiC+LbAJ5SeMwOKy22FUK+0FrrS.rmCLNNQP9iOR1aZ7VzxVr5hKE.qljMPq79J3RZoBPun7hA3veA3ciJWCs.KwzZtWhYdg6MzGfMZmLdqLA7huY9.i2zUBqqusiCyRU.1k068Sue2+q0r1+6ZYu+F3ZFxfqGwQsDJ54PSdAT6hv0nN4b2nf6u2oGiYicpS48KNN+4i2ke1X0EKMtysz74by2BsSrX3lo90Gnp2qXJndBh00w2rIqcW7Fdl3q3UcoNu3WEpeQClN+Vmez7TliLXXZ5N27cXGCwnxbJZyThowPoT4xEGO9Wv5Vc1QJ82VXBQ.6x52MJTIGlcoDsuTei6t93eNce3WNeE9mOraLMw.5KEOwP6m0u+40+80mK799pW2UYNq69LL0RySeX82+yaalf37Zq+KQ7AxHET3sqIrNINyaungFv2m2hAnUHf0pwoqUvkdRnagzHfLXB6Xh+F9jJrMRqkJrclv+UtiglVAxWZkrOEV87Qwb.+VD+einp9tHMMeQJL1.aLveokENZ3qgnyjsXiE1h6rvVb2E1h6svVb+E1huYgs3ASwB7eDyShf9VIiFHj+w0Vz.q�
    


  • @d-healey No it doesn't work.
    You can save 3-4 different presets and you can see that the knob values are not the same with the saved preset value.



  • @orange The last snippet I posted, it works.

    I also noticed your knob goes down to 0.2 but the LFO only goes to 0.5 so you need to change that.



  • @d-healey very strange. It is not working on my Hise



  • @d-healey It really doesn't work on my system. I will show it with a video too



  • @orange Which version of HISE are you using?



  • @d-healey
    1.5.1
    (17.04.2018 update)



  • @orange This is strange, I'm on pretty much the same version, I can't see anything different between our versions that should prevent it working for you. Show me your video please, start with copying and pasting that snippet so I can see the whole process



  • did you just try 1 button and 2 sliders (or knobs) =

    button = tempo sync on/off
    slider 1 = time in ms
    slider 2 = tempo (synced)

    when tempo button on = slider 1 hidden, slider 2 visible.
    when tempo off = slider 2 hidden, slider 1 visible.

    the 2 sliders at the exact same place, of course; all (button, knobs) set saveinpreset = yes

    in this case all infos (on/off, time ms, tempo) will be saved in the preset.



  • @d-healey
    I've shoot a video from scratch. It is not working 😞



  • @orange Very strange, it must be something to do with our different versions. I have the latest build from source.


 

2
Online

353
Users

1.1k
Topics

7.5k
Posts