@whale-av said:
we don't know what you have achieved. If you get a chance, please write exactly what you have done for the touchosc layout, the connection, the bridge and pd.
A screenshot of the touchosc editor for the simple array, and a screenshot of the settings in touchosc on the ipad.
Plus whatever else you think will make it clear how you succeeded.
This I can understand. I hope the contents below will shed some light as to what I accomplished and how I accomplished it.
Okay, I'll try to write in an informative way.
When I realized that I couldn't do UDP/TCPIP/OSC things in a simple-enough (for me) way, and I couldn't get them to talk together, and I just wasn't able to conceive of what I was doing wrong, what I ended up doing is this:
- Create a Grid in TouchOSC limited to 16
- Set it up so that it sends to midiCH 6, and from CC 41 to CC 56 (i.e., 16 places)
- figure out what the math was for getting the 0...127 grid to become -2 to 8 or something. (ok I asked ChatGPT for that and it gave me the answers)
- Create a really hamfisted PD script that takes the 0...127 input from all of those CCs, and slams the modified 0...127 data to the first inlet of a tabwrite, and a hardcoded message with a number to the second inlet of the tabwrite. It looks really bad, and I could've made it better with a spigot or something, but I just wanted it to work quickly and see if I could use it.
- The Array <-> TouchOSC Grid is one way, there's no communication from PD back to the Grid object to signify which step is being played.

as mentioned above, it looks like absolute trash. i just wanted it to work since had a working day the next day and limited time. i haven't even taken the time to clean it up, or to re-think how it could be simplified so that it doesn't need to look like such a crazy birdnest. (i really detest when my scripts look like this, and prefer to clear them up and use abstractions, but .. it works for now)
it's a simple thing in TouchOSC

and yep I'm still using MIDI only to talk to TouchOSC Bridge app running on macOS (iPad sends via MIDI to TouchOSC Bridge, which becomes a midiport in PD that i've mapped my PD script to talk to)
so, now that i have this "well it'll do in a pinch, kinda works, aargh but works" type thing, i feel like it would be really cool to comprehend UDP OSC but if it requires manually (and this'd be in the heat of the moment, just before a gig starts) figuring out IP addresses for both the iPad and macOS and changing a PD script just before the gig starts, could be quite nervewracking. But since the grid highlights based on which step it is running in, that would be pretty amazing.