Crazy Cubase <=10 Bug That Messes Up The Variables
-
I have one guitar plugin in testing. It's got a lot of feautes for tweaking the playback, multitracking, performance articulation stacking etc. It's 9 groups in a sampler for the main guitar, then another two samplers for releases and noises.
The main sampler playback logic is pretty hefty - the way it picks the correct string, then the correct sample etc.
All works great everywhere, except Cubase versions 10 and lower on Windows. If a loop is playing, and I switch away from the window, Cubase closes the plugin interface (or hides it). If I switch back to Cubase, the interface pops up again, but the playback sometimes hicks up for just a moment, But what always happens is it starts picking the wrong samples. Particularly the groups - wrong strings are playing, and sometimes no note plays at all, which means that it adjusts the variable of the correct RR group for that particular note, which is calculated in the on note function.
I'm using global variables all over (David will finally get some gloating material, if they're at fault here).
How or why would this happen? Why would a DAW interface refresh mess up any variables that I'm referencing to pick a correct group?
Disabling Plugins Always On Top in Cubase helps , but sometimes it still happens. We'll have to try Disable Suspend Audio Device in Background, but that's a feature some people might wanna use still.
-
@aaronventure I might not add a lot here, but have you deferred the interface script?
-
@aaronventure Does it happen in other DAWs if you manually close/open the UI?
-
-
@aaronventure See if you can make a minimal project that is able to recreate the issue. This will make it easier to find the cause/solution.
-
Are you passing values through the globals that affect which sample is chosen?
Debugging DAW-specific problems is tricky. Dropping in Christoph's file logger can make it much easier.