Hello, I have a question about storing objects in the processor and splitting between Audio and Gui-Stuff in my classes:
I want to make a VST-Plugin wich contains a Playlist where you can drag and play AudioClips, like the Playlist in Pro-Tools.
I have a Playlist-Object, wich holds an OwnedArray for the Channelstrip-Objects and in each Channelstrip-Object theres an Pointer to the corresponding AudioClip-Object.
All of the classes inherit from the Component-class an do both audio-relevant and gui-relevant stuff like starting an AudioTransportSource or drawing Thumbnails. To make sure that the state off the objects doesnt get lost when the plugin is closed and opened again int the DAW, i have simply put the Playlist-object in the processor, so the editor fetchs it everytime he gets created.
Is this bad practice? Would it be better to make objects that are either audio or gui relevant and store only the audio-objects in the processor?
Sorry for this newbie questions but I am new to audioprogramming and dont know how to do it the best way.