Change Pages - Things reinitialize it seems

Does anyone know the internals of what happens when you press to change pages. Some of my code is reinitializing it seems - but I’m not sure what internal call that might be I need to intercept and male sure things stay the same. Are all globals retained across page changes? Thanks.

Unless you have Lua code tied to the page change event, the only thing I can think of is that the parameterMap values are getting set on the Page change.

You can do a quick test by putting some print() statements in the formatter functions

if you have not foreseen specific code for page changes, and thus you change the page by pressing the lower right button followed by a touch press on the desired page (or the desired encoder) as shown on the screen , then changing pages within a preset should do nothing else beside changing the page. All your global variables remain as they are

Thanks. This is what I am doing. I didn’t think variables should change. Hmm.

Thanks. Are formatters tied to page changes? I’m not doing anything tied to a page change I know of. I’ll try printing in the formatter.

No, I don’t think so. Try to figure out if the issue you have really is tied to changing the page (using print commands for instance), so you find proof if the statement is true or not. Chances are big something else may be causing it. The preset stands on itself? It does not use pipes interconnecting it to other presets?

Yea. Stands by itself. Big preset but doesn’t use formatters or call pages specifically. It’s triggering momentary control (#1) on the main page when I change any page. Strange. Maybe a bug.

share your preset?

Can’t right now. Its specific to Continuum with a ton of Midi interfacing to that. Better if I can try and create a simple preset that does this. Thanks.