Im new to pd, and trying to build a basic interface for Control (Android), to receive clips/channels/scenes names from LiveOSC and Im having a bit of troubles with puredata.
Its working a bit random, most times like 2 or 3 clips from the last channel dont update and gives: "error: unpack: type mismatch", but sometimes it works.
Another dificulty Im having is the clips without names or where there is no clip, it is getting removed from the list and causing a lot of troubles in the order of names sent to the android tablet.
When i move up/down in the main navigation control, i get this messages from Live:
print: /live/name/trackblock teste 2-MIDI 3-MIDI 4-MIDI 5-MIDI 6-MIDI 7-MIDI 8-MIDI
print: /live/name/sceneblock 14 15 16 17 18 19 20 21
print: /live/name/clipblock A3 A4 A5 A6
print: /live/name/clipblock A7 A8 A9 A10
print: /live/name/clipblock B3 B5 B6
print: /live/name/clipblock B7 B8 B9 B10
print: /live/name/clipblock C3 C5 C6
print: /live/name/clipblock C7 C8 C9 C10
print: /live/name/clipblock D3 D5 D6
print: /live/name/clipblock D7 D8 D9 D10
print: /live/name/clipblock E3 E5 E6
print: /live/name/clipblock jdkfajbh E8 E9 E10
print: /live/name/clipblock F3 F5 F6
print: /live/name/clipblock F7 F8 F9 F10
print: /live/name/clipblock G3 G5 G6
print: /live/name/clipblock G7 G8 G9 G10
print: /live/name/clipblock H3 H5 H6
print: /live/name/clipblock H7 H8 H9 H10
error: unpack: type mismatch
Notice the error, it means 1 clip wasnt updated.
And also, there's a additional space where we got no clip, is there a way to transform it to a char "x" or something so it can be read when i send the messages to tablet? Im having nightmares with this little boxes, please helpme!
also here is the interface used in Control to receive the data;
ok, I've found a way that would be easyer but I need help with variables, I'll try to be more specific:
I can receive a list of messages of all data from ableton, if I ask it once and keep everything stored in PD wold be a lot better as im having some lag problems communicating with ableton, so after the firsts routings I get a list of messages like:
7 40 H10 1.09276e+007
7 41 H11 3.94758e+007
x, y, name, color + "e+007"
now, how can I store all the data received? I've read something about tables but still dont understand it at all, also having a lot of pain with list.
when a navigation button is pushed, I'll update the x/y variables for the 64 clips i need:
[r x;r y]
[expr f;f+1=f1;f+2.....f+7][expr f;f+1;f+2.....f+7]
lots of wires
so when the x or y changes, i want to read the data stored and route the variables x/y, is there a way to read this variables from route like a right inlet? like:
[route x x1 x2 x3 x4 x5 x6 x7]
| | | | | | | |
[route y y1 y2 y3 y4 y5 y6 y7] (8 times, one for each x?)
after that i'll unpack the remaining, convert the color to html and send it with the nanes to Control via OSC, also i cant loose the spaces on this data travel and need to convert them to something like "o", but im really stuck for days on it. also, is there any translation for this kind of color or i'll need to do it manually?
sorry for the bad english.
thank you very much!