Auto Show Hide Values On Label [ Solved ]



  • Hello Everyone

    Working On A Knob Which Shows It's Value On A Label.
    I Attached A Timer To The Knob So As Soon As I Tweak The Knob, Value Shows Up, And When It's Idle It Shows The Tile.

    The Bug Here Is That By Hitting On Compile/ Or Changing The Presets, Label Shows The Value Instead Of Title,
    I Need It To Show The Value Only When I Tweak Otherwise >>> Always Title

    Here Is The Code:

    Content.makeFrontInterface(200, 100);
    
    const var Label1 = Content.getComponent("Label1");
    
    const var Knob1 = Content.getComponent("Knob1");
    Knob1.setControlCallback(Knob1CB);
    
    inline function Knob1CB(control, value)
    {
        t.startTimer(1000);
        Label1.set("text", value*100 + control.get("suffix"));
        Label1.changed();
    }
    
    const var t = Engine.createTimerObject();
    t.setTimerCallback(function()
    {
        Label1.set("text","Knob1");
        Label1.changed();
        
    	t.stopTimer();
    });
    
    HiseSnippet 988.3ocsV80aaaCDmxIrMVatXEnXOKXfBHu0YX200Uffs3EGmAi1j3M2Ur2Jnknr4BEo.EcabKBv9JruU6iwdeuruAaGIksTRr6JLP7S99yOd+ti2cTiTxHZdtTg7p+xEYTj2mhGuPnm0eFgIPCOB4cO7IjbMUE3Tc3hLRdNMF44syOZT3UeWTwuCIbhHhVU0qjrH5KXoLco1Q8dNiyOlDSeIKsh2Oo2vHonujKmC7YGbGTFI5bxT5oDia0vHu6LHlokpwZhlli718PY7hwyjuU37+Urb1DN0HzEMFNHm5ik7XCiMZQ8mw3wiVl24H3TFUVE1wUEd.9DVLak9xpwmYMDThnZ8vq1GhdcqRuNe7zyqB810Qu6iGGoXY5RKFt8I3gB3hJg.WAUokyWTs+nFtuD7PnamRNmdrBDVgH7wc57nftc5zZ+F9M7gKhbcvaHpfWPlP4cC9tfkXmR08koYRAHD1zYt40Q8bgbxlAYsZwX+W6biUgVI48Ib9D3VOzZn+gtykI3LAMHYtHRyjhfBigQNPOBBIeNsUC+22vO.9oamqIJso8REB4jMoLFbr0DuvlZ5E5lEP+BvofuLn37LrMrY97jD1EMacMrQyHhoz3vV66eogaWMu0PNOPLEXa6HEEZCrb3rI+FMRGZNIsI3VkqR0koUXYBbSdVolsVx3T2vutI2kYtT2n9xV6uptIEmJ0zyfH4+d+59W5GbcSIIq0VwsC2blqwbQz1LvPw7zIT0xKpkNBMzWchAu4IlpCzQttpJNJECEL8YYTwlliPEshlIpBVAtpsyS2qXdZLmESUHFL1bWrsfirDtXG0u+2+zed.5WFdDQSVdLvIBQIipzLSB3cD8MvFO2XZc7Qz7ygaCX40ptej2d+uA8hpqPWTUHkEGyoij4LSAtzxecfqc0j8OD8VVrdVoQVuTYLDwOGepTkR3r2QiGQUQ.afsqlJyJt463ViBtYayrTaOrqkaibaXuaD0YT1zY5ptj.UrwP3K0888xVdIML9Fu1jQTvteP1X6NX6CNl4gxRE5laGgczx34bh9pKtMfKLXJcU2PZ1BJfRZkz4eN3VYa9GKcuOdDSGMa87s1Z3KzOday2h2FafGjj.qyJI6t3i+0a+GBQ+rbtlIldBQqLM53SmmNF9TgHJvDgfxM6O7pYlzcxcLxlJyXpH1J7uvuBicMxdEF6tzHJkDojut3c.yqu6Y0.bRX+Hj5P+IHGrZw.F2ocGyXI60QQlRwWAbe8Xd7Vf4q2BLOYKv7MaAlmtEX91s.yy9fXLeO1OLWKSciIfhQCrKn87FHHPWlsiD8e.xL+5OB
    


  • @Natanr

    -- so this is the classic value/text problem from Kontakt - the solution is to have your timer check when the last event was for the knob and if greater than some value set the knob equal the text you want

    HiseSnippet 1051.3ocsV0saaaCElxIrK1atXEXXWKXfAHu0XH21sNff03EGmAi1jXL2Tr6ZoknrYCEo.EcR7Jxyvdm16vteOB6MX6PQIKkD6tBCDeSx4+uygmezHkLfllJUHm5udQBE47E3wKD5Y8mQXBzvCQNODeLIUSUtVVGrHgjlRCQNNa8KFFN02Fk+6.BmHBnUY8FIKf9JVLSWxcTuWx37iHgzWyhqn8y5MLPJ5K4x4.d1B6iRHAmSlROgXTqFF47fAgLsTMVSzzTjy1GHCWLdl7RgU+2vRYS3TCQWzX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zkk0Qh9OywGIN.
    


  • @Lindon No Glory With Yours, Still Shows The Value Instead Of The Title After Hitting Compile!



  • HiseSnippet 1016.3ocsV80aaaCDmxIrKVatXEXXOKXfAHu0YH218Gfft3EGmAi1jXL2Ur2Jnknr4BEo.Eca7Jx2s8UXeC1C6CvdYOucjT1RowIK0.SODj6Nd2869w6N5wJYLsnPpPdMewxbJx6ivSVJzyGLmvDnQGg7tO9DRglpBbpNbYNonflf7714GLJ7ZtKp76PBmHho0U8RIKl9bVFSWocb+mw37iIIzWvxpc5mzeTrTLPxkK.7rCNBkShOmLidJwbrFXj28FlvzR0DMQSKPd6dnLY4j4x2Hbm+krB1TN0HzCMABjS8wRdhAwFsnAyY7jwqp6BDDkwUrvNNV3SvmvRXq0WwFer0PPkG04CuF2F75skvyqF710AuGfmDqX45JKFr8g3QB3hJk.WA0gk6rnF+dC7.IbBgtaF4b5wJPXsGgOJJ5gA8hh5reK+V9J5r.lfoCdZPjUAbyTnCdMQE7bxTJuGXXUvlQ0CjY4RAHD11Ytcm2wqmIjSuYmrVs9X+utEFqBsRxGP37oPaPn0vfCcwkI3LAMHcgHVyjhfRigwNmdHjR9BZmV9uske.7o6VnIJsoeSEBEosJMFb+kkFD5p1mFzqiSm4yUKFzD1VSuP2tLveNDhfuHnLalZIrcwhzT1Es63.XMuimSDynIgqRYIs1ae+KMm7pzjwxPwLn35FqnPajExmM8WnwZaDzFzXUtlYVwBgU060AdMJ9VvVK+lFpRl6XJi5K6r+ZZVJNUpomAYx+s9M8uzO3cMkltQakWlbSL2f4xrcyNFJVjMkpVcut5fv.wUm3v2sItXWSXsCJEifqkyxohaZNDU14ZlHKQEbTscd79kyiS3rDpBwfwtO.aIbjEvk639s+N7OO.8SiNhnIqBCDQHK4TklYJ.uinuF1X5FyahOhVbNba.K+VOrf716+LoWTeE7x5BYrjDNcrrfYH3JK+wAt9WS0+Yn2vRzyqLx5mISfL9o3SkpLBm8qzjwTULfFX6rgYViMeG1ZUhMaalEZ6gcsb2H1F0+ZYcNkMatt9QRAFaBj9JceW+7UWRiRt1qU4DE71AHarcOr8AKy7PEUgt91UXGuLYAmnu5heiykFLTW8MrlsnBfRqUN+0AuGuFDcmeM3tB2GfGyzwy2LdarA7B8i+ei2x2VagGllBqyp.6t3i+4s8gz2Cn7ixEZlX1IDsxzniOcQ1D3mZDSAjHDTtY+gWCyjtSNxHaXlITQhU3efuRi8LxdkF6sxHJiDqjup7gAyq26Y0.XRX+QLMg9SPNX8hALNpajYrj8p3XCU7k.12rOOZK74wagOOYK74q1Be95svmuYK74auUeL+dtuegVl4FS.EiGZWP64MTPftLaGI5eMyt42.
    


  • @d-healey Well Done David Well Done 👏 👏 👏
    Thanks @Lindon Solved 🙂


Log in to reply
 

12
Online

622
Users

2.5k
Topics

20.3k
Posts