Hi All,
I’m developing a A-V performance and have a question about how to best structure it.
I’m using TouchOSC on an iPad to control various parameters (MIDI to external audio gear, and OSC to Processing for visual). Please see the screenshot.
The question is around the top left section - 16 “banks” A-P each containing 16 “patterns” (1-16).
Let’s think of each bank as a song - each “song” (Bank A-P) will have an overall aesthetic, distinct from the other “songs”, but with some shared characteristics.
Let’s say song 1 (BankA) has a blue background, song 2 (BankB) has a blue background and song 3 (BankC) has a red background. Obz in actuality each song will have more complex differences and similarities, but I hope the point is clear.
Should I make a “Bank” Class?
Secondarily, as “children” of each bank are 16 patterns - these will derive in part from their parents, but each will also be distinct. For example,
(if Bank A=true)
pattern 1 will have a black rect, pattern 2 a white circle, pattern 3 a yellow triangle… etc…
(if Bank B=true)
pattern 1 will show an image, pattern 2 movie x, pattern 3 movie y… etc
Bank C etc…
Bank D etc…
etc…
etc…
Should I make a “Pattern” Class?
Do I also need to anticipate memory issues? - loading many images (potentially hundreds, not thousands) and videos (2K resolution, < 50 movies in all) depending upon the bank, and pattern selected. How should I unload images and movies from memory if they are not currently in use?
I’m doing something way beyond my coding chops, learning a lot along the way, and any advice would be muchly appreciated.