Does component visibility get set to 0 on plugin GUI close?
-
@Christoph-Hart said in Does component visibility get set to 0 on plugin GUI close?:
- never ever use the timer object for anything related to MIDI processing. The frequency is as jittery as it can be so unless you want to create a random glitch machine, you absolutely need to resort to the
onTimer
callback.
Well this confuses me, I think it says: dont use a timer object , instead use a timer object...unless you mean something different by "resort to the 'onTimer' callback"
Perhaps this is saying: dont use a Panel.timer, or an Engine.timer, instead use a Synth.timer.
- never ever use the timer object for anything related to MIDI processing. The frequency is as jittery as it can be so unless you want to create a random glitch machine, you absolutely need to resort to the
-
@Lindon said in Does component visibility get set to 0 on plugin GUI close?:
Perhaps this is saying: dont use a Panel.timer, or an Engine.timer, instead use a Synth.timer.
Yes. Only the synth timer is sample accurate.
-
yup, with
onTimer
I mean the callback calledonTimer
:) -
@aaronventure said in Does component visibility get set to 0 on plugin GUI close?:
@Lindon said in Does component visibility get set to 0 on plugin GUI close?:
Perhaps this is saying: dont use a Panel.timer, or an Engine.timer, instead use a Synth.timer.
Yes. Only the synth timer is sample accurate.
..and I get 4 of these per Sound Generator - so this thread is confusing me more and more...
I have an arp, its in a ScriptProcessor - in the MAIN container... not in a sound generator...what timer should I be using?
-
@Lindon said in Does component visibility get set to 0 on plugin GUI close?:
what timer should I be using?
For anything that's related to the audio or MIDI output of your plugin, use the synth timer.
For the GUI, use the panel timer or a timer object.
-
@aaronventure said in Does component visibility get set to 0 on plugin GUI close?:
@Lindon said in Does component visibility get set to 0 on plugin GUI close?:
what timer should I be using?
For anything that's related to the audio or MIDI output of your plugin, use the synth timer.
For the GUI, use the panel timer or a timer object.
yeah thats not answering the question tho is it. I've held on to the above rule-of-thumb for the 5 years I've been building HISE instruments. But now I learn that Synth.timers are attached to sound generators and as far as my mental model works a Script Processor is not a sound generator.
Very happy to be proved wrong.
-
@Lindon The master container is still a container and a container is a type of Sound Generator, according to the docs
I think that's what this remark was about
@Christoph-Hart said in Does component visibility get set to 0 on plugin GUI close?:
It's 4 timers per Sound Generator, not per container
-
@aaronventure thanks OK missed that in the docs, mea culpa, so I can go back to my mental model without any nausea inducing changes at my age....
-
Yup a container is a sound generator.