Lunacy Audio presents CUBE
-
-
@Casey-Kolb said in Lunacy Audio presents CUBE:
99% HISE Script (about 45k lines of it!),
Congrats ! For your immense hard work ,passion and dedication. Wish you a very happy sales journey. Best of luck.
And welcome to the forum! I see you joined yesterday and you're off to a good start
Thank you. I am a JUCE and Iplug developer. Wanna see more beautiful stuffs from all HISE Audio Plugins developers. Congrats to all of you guys for investing time, effort on it.
-
It looks and sounds amazing! Congrats on this milestone!
-
Great Work at all levels! I wish great success!
-
wow...just wow, very inspiring.
-
This what I call audiovisual experience..
Not from earth! -
Congratulations man. Really outstanding! Please can I ask you made the sample editor in the GUI ? Thanks
-
I'd love to learn more about the Orbits system, are they made using Timers? Have you encountered any stability issues with Orbits in the compiled plugins? I'm working on something similar, but far simpler for my player, it's a lot of fun :)
-
@nesta99 Thank you! Are you asking who designed the sample editor or how we programmed the sample editor?
-
@iamlamprey Yup! The Orbits system is only timers and so far we haven't had any stability issues related to the Orbits system. We're running a fast timer in the
onTimer
callback. The key for us was to really optimize any calls in the timer because every extra call can bump the processing up substantially. Use local variables, don't create new objects, avoid unnecessary API calls, etc. Also you'll want to make sure you setSynth.deferCallbacks(false)
so that the timer is in real-time and not deferred. -
@Casey-Kolb I find the deferCallbacks thing confusing. Can someone point me to a situation where you do want it and one where you don't want it? And why
(I know there's an example above but how would the timer being deferred actually impact real-world usage)
-
@DanH said in Lunacy Audio presents CUBE:
@Casey-Kolb I find the deferCallbacks thing confusing. Can someone point me to a situation where you do want it and one where you don't want it? And why
If you want to update the UI when the user presses a key but you don't want it to cause latency then you use it.
If you want to change the velocity of an incoming MIDI note then don't use it.
Generally your UI script should be deferred.
-
@d-healey Thanks David. So any animations I want to leave alone right?
My script is, in the words of the great @Christoph-Hart, " a gargantuan script sausage ".
Assuming I wish to keep it this way (all in oninit) where would I place the deferred command in relation to my animation timers?
-
@DanH said in Lunacy Audio presents CUBE:
So any animations I want to leave alone right?
Generally you don't want animations to cause latency so you would defer your callbacks, panel and engine timers are deferred anyway though so if you're using them it doesn't make a difference. It's only the synth timer that runs in the realtime thread.
Assuming I wish to keep it this way (all in oninit)
Is there another way?
where would I place the deferred command in relation to my animation timers
In the on init callback.
-
@d-healey said in Lunacy Audio presents CUBE:
Is there another way?
@DanH Are you using a text editor like Sublime? Or are you editing everything in one single file within HISE? The
include
file call is your best friend here You can make your scripts more modular that way. -
@Casey-Kolb said in Lunacy Audio presents CUBE:
The include file call is your best friend here You can make your scripts more modular that way.
This is the way to go, but everything is still in the on init callback, it just looks pretty and you can work with it like it's all separate.
-
What do you guys think about having an indicator in the different scripts to see if it is deferred or not?
Could it be a good request? -
@ustk We already have one. You really only need to defer the UI script though, unless for some reason you want to do non-realtime stuff in the real-time callbacks in a script that the user won't see - maybe there's a reason I'm not aware of.
-
@d-healey @Casey-Kolb Yep need to get my head around it.
I meant everything in oninit as in everything splurged out in the oninit in Hise rather than neatly compartmentalised into smaller scripts.
The issue I have is that so many of my UI controls and callbacks seems to end up in other parts of my script. I'm scared to move them around.
If I use the include file call does it behave like.... script script script (sausage part one), oh here's a include file call lets stick that here in the script, script script script (sausage part deux), oh here' another include file call lets stick that in the script here, and so on and so forth
i.e its more or less sequential
-
@DanH That's what coding standards are for - https://github.com/christophhart/hise_documentation/blob/master/scripting/scripting-in-hise/hise-script-coding-standards.md