Paint routine for Natan
-
@Natan Asked me to make him this, so here it is. No idea what crazy plans he has for it but enjoy! You need to apply an invisible PNG to the knob ;)
HiseSnippet 1188.3ocsW80SibCD2KvRIoMU2Ic8o9hEOs43OWRJWaknsGGIgqo2ADQ3nUppB4rq2DK10d0ZGfbHdqed5mg9X+ZzuA8aP6X6rYW3BTTjHOPxLdlw+led7LltoBepTJRQNkNdbBE47Yt8FyUCaNjv3nNsPNep6q4rXhhI3ncGmPjRZ.xwYw2nMvozRHym+4U6RhHbeZtJD5DAym9NVLSkqs6NukEEsGIfdLKtf0asSGeAuoHRLB.yht0PID+yHCnGPzlsfKxY41ALkHsmhnnRjyR6JBF2an3Bt09SXRV+HpVnNpGDHq58DQAZDq0hZNjEEzMKokHHJcyofEsTvyb2mEvlpOmJdhYAbtGE4CmEtO3UuH7p8vgmSA3sjEdO0smeJKQkuh8XpCWQSCIvQPQXYsEsvesnaSAXAWsYL4L5dofvTO7p+xZqig+Tc6JkqTFNHjJ74jTbWBmFUG+83LeGPUMEwIBNH3spc4U0dY+4lRp5DRzHHh1PkqtKvhpiDiTLN0KbD2WWQ4MnZkxWUoLF9LPaks.vy9kbyKFxTTcjzFjYVPJ4h1QQrDI06WqC3dcrZHSpw1OyBTC8ph2.2HW4ORYCFprZ+s0wMxhWdL0oZJIfMRBo5si0KvMvOepVa1kEBsiALnBEHxBpRDRS1qkCEoXOFD25aiY3uCuE70ZqU0t3U4HIKLfkdSvxygc9E3sfuYEwLD86.lajGEPrfKrPrm1se.WqZt1YPmZiVSynS+wzHZ3zhRVtzDsqAh7Z6INiGAmv3rSXrf+VtneccATpHxyOq5Ycfo.pzd9W51kOSMSmhdqFStb0pZ7.6q0ssycJklnqsLGJWavvrqVM3X0p1xLCZZRhh5CsY7tIH0Ap.9OPnnGx8pV9pxkJecY7sWJLblqMIXQzzYtrt8W584nGeTbeZZFOkYHzG3lMZbu6FME6C5a4jBFJ3c3L0gIT9c09AMgH0MhlfJvTkoMzmOoMTuHV.MEwftMehqgEQF.m2Z+I6fdemVDEIKLPDgcIglpX5DvoE8bXPgs6VI2VT4YJQBzye5YGz62toUx58oO4M64Jt1p.zkEm7LtnvE5aHSU7m82YnogPQMnBa0W7+le28VIUi0L+xFCQwrffHZWgjYldN0tU1QpnI8XevPRW8r+3M+8G98WEey4oxQggrKMS9BYQwRE.lNwv.QjyW5dU2iN7mZ273S26v20p8QWSiSTi2LgO.AW9NiFbrv33CHy6OHalaokyxBnma78osQQ0J5kpO1Xn1smFwRaoU.MjLJxd2tXRB2qKVmDKFIo8nbMgcNSMV6bC3MCezLPXRrHXTDQcywy52jLYga+bE8rNcbGWb6eTlY+Pg6Sc6xT9CmMdWXF3Et97Xi2Iu.pha6vPpuJGrK4t2u73+bGj88AC1m.0NPkg6APYDTY4SAjvgq451cNKnaLYkqok0LCTzDXD9W3yjEqqkclrX8rEQwD+Two911Y52XshQCfIt4olkb2WKim1Gy0s1l0zWlYm56qohM.rOaeZLG97UygOaMG97x4vmudN74alCe9160G8qte8HkXx+EBnnaay7DGm1bBTkYpHQ+W1yIlA
-
@d-healey Ha Ha, Thank You Sir, Going To Hipnotize People :)
I Really Appreciate Your Help
-
Square version looks cool too:
-
Wow, Look At The Code, This Is What An Expert And Legend Can Do :)
Excellent Job Sir David Healey, We All Own You Since 10 Years Ago <3Much Respect And God Bless <3 :)
-
Add this in the for loop for some trippy colour effects:
g.setColour(Math.randInt(4000000000, 4300000000));
-
Sir, Is This Possible To Change The Min / Max Value Of The Ghost Knob To 0 / 1 ?!
It's Set To 1 / 4
-
Ha Ha Ha
This Is So SynthWave :))))))@d-healey said in Paint routine for Natan:
Add this in the for loop for some trippy colour effects:
g.setColour(Math.randInt(4000000000, 4300000000));
-
@Natan It needs to be 1 to 4 because there are 3 moving rings. If you want to change it you'll need to rework the calculations or remap the range 0-1 to 1-4 in the knob's callback.
-
Yeah I Changed The Value Of The Callback To value /4
But The Pop U Shows Doesnt Shows The 0 To 100% -
Is This Possible To Change The ValuePopUp?
-
value / 4 wouldn't give a range of 1-4 if the knobs range is 0-1. 0/4 = 0 and 1 /4 = 0.25.
Can't change the popup without changing the knob's range.
-
It's A Mix Knob, I Just Added That value / 4 , And It Works Perfectly Both Animation, And The Mix Knob.
Edit: No Just Animation Looks Okey, The Value Wont Go From 0 To 100%!!!
-
Can We Add Some Magic To This:
Panel1.setValue(component.get("max") + 1 - value );
And Bring The Knob Back to 0/1 ?
-
@Natan Yeah, like I said, you have to remap the range 0-1 to 1-4.
Panel1.setValue(5 - (value * (4 - 1) + 1));
-
@d-healey
I Set The Knob To 0/1.
And Did A Change Here:Panel1.setValue(component.get("max") + 3 * value );
Now Popup Shows The Correct Amount, But The Animation And Reversed :)
Any Idea? -
@Natan Did you see my last post?
-
@d-healey said in Paint routine for Natan:
setValue(5 - (value * (4 - 1) + 1));
WOOOOOOOOOOOW
yes Yes yessssssss
Youre A True LegendddddddddThat Did The Job :) <3
-
@Natan The reason it's written so weird like
(4-1)
instead of just3
is because I just copied and pasted the calculation from the remapRange function from here - https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/libraries/helpers.js -
@d-healey That Was Brilliant :) Thank You Sir
-
@d-healey Dinner Is My Guest ;)