@Chazrox
Thanks a lot, man! but it doesn’t seem to update the behavior after I tweak the Skew knob and then move Knob1.
You need to hit compile every time after changing the skew value

Posts
-
RE: Real-Time Skew Control on Linked Knob – Need a Better Way
-
Real-Time Skew Control on Linked Knob – Need a Better Way
I’m trying to change the skew factor on Knob 1 and have it update KnobLinked1 in real time with animation. I’m using a Skew knob for this, but it's acting buggy.
Is there a better or cleaner way to handle this?
Here’s a quick snippet:
HiseSnippet 1129.3ocsWE0SibCD1afk1j16TOoS2yqPpRaZSgMD3BnSHnDf1n6fKs4NTepmbV6MwBu1Qd8BjVc+u5S82R+Iz+Asi2cCw4HI.Qs6SY734a9lw1yLoiRFRSRjJjSk2MZHE47ktcGIzCZM.yDn1Gibdp6Y3DMU4kuzQiFhSRnDjiyJ+fYAmxqhx996CNBywhP5jkPnKjrP5aXwL8jU6b3qYb9oXB8crXqcu8gsCkhVRtLE3yJtAng3vKw8omiMaqjK5GwICPNeiayf8BZP2aGBE2X2F6TO.uWynsaPBH8vMI6tUPzNurWSZDxYsSHLsT0Ui0zD.zijjQcGHuVj6fKXIrdbpQnNpK347kQsFv3jNiSNIHjypcljpVIOU8b2yXD1sqOIk8UYJ7lXgcRyozhnT8GAkbrnzp4T5YtcCUrg5IZL74KbaKfSvHLb1XSk78hJ0bU2VRXGB8Fw3Komp.gasvudPPMuFAAUeUka+fyoDs2UXk2qExd0812aL.8o5Vx3gRAH3udl10AKmXvaXhKojEal0dLFWgI3LA0KJUDpYRgmTjoyXrRx8CGaYMvC7TZ0J+dkxVXrQBUegQget5WMs1vAXQeJwGV+ifyVXjXfpvssvbdO3Bp+zrIOMMId6dI854FnFklH7tAnQyiI97WOlQHbZGYBy.w50LHXbWdjWcoh5b9M6f1hgiuZr4lk2eled.rdIfATRdH3Eojwd.kGVvWu8my2cxM.TcyPx5H8boJFyY+FkTy.53jPMuDMVAoMpfjkz3xPLOiHvQxYX8fM3x90C7C1XmpdaZuhuELdeWNNls3CPcqrImpn5TkH2zgxqgmK077s.5S3WFF02zPgpU89VaWNExi+Eb5Xcq3bol9VgeVrT4iU79TUQQyTWwwDmploZSYX0hLzWjF2ipru9Y1HT1Y5ZYq8vpkEleWyZiRQaAS+1gzB4SkbhoFk422sxGp3xJTCrTACgspyp.9zhJfc4LBUgX.Hela1MdTF4saNgd.Fulq4x1T19W+ze7mGfde6iwZroLbAa.FNjpzLShv4X5UPiu7hxkcOllboVND7ysusfFty0mOw05gJ5FaJOxV3ZFQC8CccHfv.Jq+.8XooKFXS7D7Uz1hNJJ7n1zDPSuQm0bkJvvYUViAjEMKeu404QP1gKhfRBf5Kbm7xnCUEBdD52iRRihX2XN9+5YGIlf4.zCJYVb.NOR9qGRnQ3TddYRa3mC425+Hxe2l2vXCRRJGqmdVByTVEJLXX2.2zjV.XOxdJrGw.FAKb.iGJEelaGlNbvr4XoYvQy61+G3XwXYOw8jnHZndBAW08zeYYmA6db+OKS0LQenJtxbl6ddZbWX70PJ3cgfxSLWYJYJ0jKGXjMYftP09Lg+A9JTV2H6Tnr9XknXbnR9gv7ZUlA+97rU.NIxFLtLLgNH6MiJbv8O1GBCmFp6X3VKqgMVVC2dYMbmk0vWtrF1bYMb262PyeS36S0x37mMHzYcNIqqhiyIVUi+W.dK81+C
Appreciate any tips!
-
RE: How to Invert a Set of Button Values with a Single Click?
@d-healey Very Nice, thank you so much
-
RE: How to Invert a Set of Button Values with a Single Click?
@d-healey said in How to Invert a Set of Button Values with a Single Click?:
t's only going to apply if the button is 1 (because of your if statement).
Very nice :) Thank you
Yeah, I want this to act as a momentaryso :
if(value) { for (x in Buttons) { x.setValue(!x.getValue()); x.changed(); } }
-
RE: How to Invert a Set of Button Values with a Single Click?
Is this Good:
inline function onFlipModeControl(component, value) { local invVal = 1-value; if (value == 1) { for (i = 0; i < Buttons.length; i++) { Buttons[i].setValue(Buttons[i].getValue() == invVal); Buttons[i].changed(); } } }; Content.getComponent("FlipMode").setControlCallback(onFlipModeControl);
-
How to Invert a Set of Button Values with a Single Click?
I aim to create a button that flips the values of a series of associated buttons. So, a 0 state will become 1, and a 1 state will become 0.
Content.makeFrontInterface(200, 300); const var Buttons = Content.getAllComponents("Button"); const var FlipMode = Content.getComponent("FlipMode"); inline function onFlipModeControl(component, value) { if (value == 1) { for (i = 0; i < Buttons.length; i++) { } } }; Content.getComponent("FlipMode").setControlCallback(onFlipModeControl);
HiseSnippet 968.3ocsVstaaaCElxIpXVcoXEXO.B4WJqEAx2pSPWPciSbqQqSMl6JV+UAsDkEQnHEjnRmQQd+5iSeC5NTWrjqctXuM9GoykOd93gGdHGGIbHwwhHjlw6mGRPZ+r9j4boeeeLkiFdFR6Q5ivwRRjYlpSmGhiiItHMscdkRgV8cQoiu8hSwLL2gTpBg9ff5PdKMfJK0Nt2anL1.rK48zfJd2t2PGAuufIR.9ritMJD6bIdF4BrxsZ5nWii8QZ+ldW6isaQNtiKA25nVcZXiOtqW6Vt1tSwccOposWmmMsKwCo8fycoRQzDIVRhgI8Tg67I9hOyyBvGnwzoLhRnAZBD4L0n99Tl63hjSLBos63xT0NYopeUeD0ktPeYJ6WRMXVhnZRSq1sQoFa.kzpPocynzi0m3DQCkkVT74g5C4vNnGF1apRkLeQ0NrldeA3AWdX.9RxfHPXABql11O0rks8AO2.FvNTrz7Jbj4oIRIHXdhYA3YD4KYr9hfPAGjis1Oym8Ank3FvngiDtjkAt.k09ENnfYP4LJmX5kvcjTA2TvKLq.GIXVNEHeJL8rDxAFeYOi8LLgA0yzJUm4ImX13fLkeI6iZ3IhLsn.QretI072KVRGxH7YReP2SdxAkdWAnZTJcc1uWabMP36ZMcXrxPJ06iYroPIt0JKJ0JuxR9Bgj7NtErxLpabsg4OZxyas1xmLFIZslUm9htMfV7jfojnx7ZliP01xkvO39UB6jkYp3nfOjSkuKjjKOPvbUklp+WsfGkmZUmFyYH3pLsv+Q4E9Y6fHJLI00yDZfRoe0tRnM.dy+cva+iv+1K1D3cVC7+b3YXIV0.HOg.IoPRjjp1KzNibEzxMqcPc8yHwWJEgHM8EEiv908Hm82UWvyqJ7YpqD5Bqq4BB9D5LeYgDZiBRypA4i81lfT+FChgdwQpaboP6sHJecknDiuhLjONh.GWU8JIbLTRq5q+VBNhqTQiGIB.ZfifIUq1ls3aeiz5i89OKC24Fyv2dPV8hE3JMgaBCKW9dN0K.xM.cNV5xE0EH7Xpbd0Z2M3xO6a8xu6KEer9Xpzwe8br1Z3Hbr5+CNl+jg8zO2yi3HKI3t5C9qs88A2Q3+CQhjxmMBKinPcf9EIASfmV4Pfny4DVrZ+tlplJS1VIqx.SHb2TguCibiMTxZ4FaTXDEfchDexIqgl5QI+TpFfS7zGsUGd8HHatllvAvYoO43r7TsBvlaKvVaKv1aKvNaKvmss.6ts.O5tApZ08xDoHH6XCBMZ74o26nocdZuvzpUz+z4hCoB
-
RE: Tired of this error on Startup
@d-healey Thank you, I'll gie it a try
-
RE: Tired of this error on Startup
@d-healey Hi
Here's the definition from Projucer:
HISE_SCRIPT_SERVER_TIMEOUT=20000 HISE_USE_VS2022=1 PERFETTO=0 NOMINMAX=1 WIN32_LEAN_AND_MEAN=1 HISE_USE_EXTENDED_TEMPO_VALUES=1
It appears to have two channels. This error is new to me; I haven't encountered it before on this laptop, even with similar projects and the same build, which I've been using for about eight months without issue.
-
Tired of this error on Startup
What is this?
I own an NI Komplete MIDI controller, and I'm not sure whether this error stems from the MIDI controller or the laptop's built-in sound card. Clicking 'okay' removes the error, but it also causes the MIDI controller to disconnect from HISE!
Any advice?
-
RE: Adjusting a knob’s value using radio buttons
@Soundavid said in Adjusting a knob’s value using radio buttons:
HiseSnippet 1206.3ocwX12SiaCF.2AH2NxVuAR6CPD+U63DWSeIkJ1z5n.2PaEpVugF5zoSlDGpEI1UIN2QGpS2Gs8QZeC1ryKMtPyNnYTRkppedy+7ierqi66SsPAATefh1aFOBAT9J0AiIrgcGBwDvwG.TdgZOX.C4qGKZ+wifAAHafhxpuVHPY80.QO+8OrOzERrPYh.fynXKzuf8vrLo867yXW2if1n2f8jrtQmisnjtTWZHm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IfgFM.+Gyd776dMMan1iZG5BYydqQh6VKQA+UOm4pZDWGCI.yFKG4+2tJo6Khap1GyrFNeFWYNLxOA4iAiIW.WI0CcbPVrL.WS8ne+w411.+JMTTZzCx7w74b0SB8FPC8sP7dmPPthW8WYEwwuiaWM873CPD6nF+C+IQognsRhRiTk.OnkO88VwmeWbEeOORBmIRz0gttZOQacia+Rf.fG1F+dKqYC0cbr1h5X8E0wFKpiMWTGMWTGasnNt6m2QwEB+igLpW7xF.nW+CidEKEkCIPdEXT0J3eAqcEvo
ReplyExactly
Thank you
-
Adjusting a knob’s value using radio buttons
Hi
I have a straightforward group of radio buttons, and I want to assign the Knobs Value to the selected radio button. Any help would be appreciated.
const var CxCButtons = []; const var CButtons = 16; const var SimPainting = Content.getComponent("SimPainting"); for (i = 0; i < CButtons; i++) { CxCButtons[i] = Content.getComponent("ScriptButton" + (i+1)); } // Function inline function onCxCButtonControl(component, value) { local idx = CxCButtons.indexOf(component); for (i = 0; i < CButtons; i++) { if (value) { SimPainting.setValue(CxCButtons[idx].getValue()); SimPainting.changed(); } } } // Callback for (C in CxCButtons) { C.setControlCallback(onCxCButtonControl); }
HiseSnippet 1214.3ocuX0uSiaDDeMfuVRatBR8Avh+JTPb14SPzpRI.WQsAhZtCcmNgNs3cMYE16FYu9NRQ4MpOD8wo+YeCZ20eDu4HFHegiTjmcl42uwyr650SaelMNHf4CzJ7l98v.suUuSeJuaytPBEb5Q.sWp2BFvw9FwCcX+dvf.LBnos7qkCns5Jfnq+8mOD5Bo13rg.fKXDa7uS7H7rQaevuQbcOAhvug3oXc0CN0lQaxbYgh3YYcSPOn8MvqwmAklsjN3WgAcAZ+fdCy8Lqf2qFBCqrakZVlv8Z3TsBxDcErAZ2xlN0peUCrCP6EGiHbleGNjiCDfdHC0uSW1mowDbAIfbkKVJXA5HXNdXPytDWT6zjS..nsR6rT0xwopuWuEAQFNdVJasHEFYdnlzzV5gBIqIHjzTBoUhCo006X6S5wyzHimuQ+TpnB5.E0F0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XhF0XwU0aIkMFy2X3QPjOZaOJT2ywxSqiUlVGqNsNVaZcr9z5Xio0wcebGksY8WB4Lu3kM.Pq1GG8IGZZGSghYfQyVA+OPuVwKB
-
RE: Random Button & Radio Buttons?
@d-healey Thanks, David, is this Correct now?
if(Power.getValue()==1) { for (i = 0; i < Buttons.length; i++) { Buttons[i].setValue(i == random ? 1 : 0); Buttons[i].changed(); // I need this to trigger the callbacks } }
-
RE: Random Button & Radio Buttons?
How about the below script? I need the power button to get randomized, then the radio buttons follow up
Is this good?
@d-healey @HISEnberg @Chazroxconst var Randomizer = Content.getComponent("Randomizer"); const var Power = Content.getComponent("Power"); const var Buttons = Content.getAllComponents("Button"); inline function onRandomizerControl(component, value) { local random = Math.randInt(0, Buttons.length); if(!value) return; Power.setValue(Math.randInt(0, 2)); Power.changed(); if(Power.getValue()==1) { if (value == 1) { for (i = 0; i < Buttons.length; i++) { Buttons[i].setValue(i == random ? 1 : 0); Buttons[i].changed(); // I need this to trigger the callbacks } } } } Randomizer.setControlCallback(onRandomizerControl);
-
RE: Random Button & Radio Buttons?
@Chazrox @HISEnberg Thank you guys, Very nice
-
Random Button & Radio Buttons?
I have an issue with this concept: 16 radio buttons and 1 power button. I need to randomize and select one after the power is activated.
const var Power = Content.getComponent("Power"); const var Buttons = [Content.getComponent("Button1"), Content.getComponent("Button2"), Content.getComponent("Button3"), Content.getComponent("Button4"), Content.getComponent("Button5"), Content.getComponent("Button6"), Content.getComponent("Button7"), Content.getComponent("Button8"), Content.getComponent("Button9"), Content.getComponent("Button10"), Content.getComponent("Button11"), Content.getComponent("Button12"), Content.getComponent("Button13"), Content.getComponent("Button14"), Content.getComponent("Button15"), Content.getComponent("Button16")]; inline function onRandomizerControl(component, value) { if(!value) return; Power.setValue(Math.randInt(0, 2)); Power.changed(); if(Power.getValue()==1) { for (i = 0; i < 16; i++) { Buttons[i].setValue(Math.randInt(0, 2)); Buttons[i].changed(); } } }; Content.getComponent("Randomizer").setControlCallback(onRandomizerControl);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flq9.vVaNM+6mbHVhUmNMoH.TXXHQHop5OFGRtDtOP7YUyadHI7BIeHx36mVEFpQcm0I93zqL7mms23oF+038th5K6qjxK.69DZu9xIVnLTj++khmXlVhOCOHVFd16So7vlgmRfUH9RxIr1BBrAh5L1zvV7A.qXA3AibDFFJ3ptdvqHXASMhrJ6w2iZceL68qFm0Xpr7mQVJKA1mxeofOZ3jh1KCokTjF6nuNDVNlvu7UivJwDtkwWKBqFSXRNL1iqLxpMS9aESV8YxcqXxZLSdaESVy4xYeYUPVlcvlMosZYal5JzLk6.iUGqkV3xtUIikmKGpnd0wVk4xgqV1pN2JuUKa0lao2xx1Me8pmY1h6OJ.Km8wzTOyXRGvsdl4ErTuREKjJGm8YHWhWXy4Vegs6qD2vrMU50ewZL2BzHb7nUgFSdWxuy7ntcIdxTAtt4w+gtOB4cP+a3ijTVO3R4BpZ9voiFzgOR3Q.1YLRPnJ+mSc9qXamIq95PX9QF+K7kzo6jiQp5zcRmnAXOA+CdwmJU8xmeSTKflXQuLbdyVJa6omaOMNO.No0G77l0U2.XIcAVVWfUzEXUcAVSWf00EXi6Fn5fv+xHIeP7xFDpU6iht+fgwQQmTNZ1J5+.qyvXkA
Thanks for the advice
-
RE: The world of HISE
Hello everyone! Ilia here. I'm a long-time guest developer in the forum, and I've decided to join the community. 28, LA