Hi all,
I'm currently having a bit of trouble wrapping my head around the data structure stuff in PD.
I'm currently building a drum sequencer with multiple patterns and a pattern sequencer. It's currently using an 8 by 16 grid of toggles and some radio buttons but my plan is to build the "back end" in PD and then use something like pyGame to make a nicer looking interface and communicate via tcp sockets.
Incidently, this is all for running on one of these,
http://alwaysinnovating.com/home/index.htm
It took a bit of persuasion but it seems to run fine.
Anyway, the crux of the problem im having is basically just understanding how i can deal with multiple structs. I have a patch that has a struct and a data window, there are 8 toggle rows which each correspond to a float in the struct and i have a system that can store and recall 8 patterns. The pattern sequencer works and i have everything working so that i can step through sequenced patterns nicely and get the toggle button states coming out. All good so far.
My only real issue is that this is just one track and i'd like multiple tracks, but i dont really get how i could go about making an abstraction that contains a struct and a data window i can write to but without having things interfere with each other. I realise that data windows need to be unique, but what about templates and the structs themselves?
any help on this would be much appreciated, I'll try to post up my patch when i get a chance later this evening