Hello,
I am doing some tests sending UDP packets to Processing and openFrameworks from PD.
First I tried to send tabdumps with mrpeach/udpsend... It would be nice to use this one because I could select specific frames to send. But it seems to not accept the floats from the arrays...
So, now, I am trying to do it with mrpeach/udpsend~, but I am trying to understand what are exactly the 24 bytes that begin with TAG!
Any help is appreciated,
josé
First I tried to send tabdumps with mrpeach/udpsend... It would be nice to use this one because I could select specific frames to send. But it seems to not accept the floats from the arrays...
So, now, I am trying to do it with mrpeach/udpsend~, but I am trying to understand what are exactly the 24 bytes that begin with TAG!
From udpsend~.h:
typedef struct _tag { /* size (bytes) */ char tag[4]; /* 4 */ /*"TAG!"*/ char format; /* 1 */ long count; /* 4 */ char channels; /* 1 */ long framesize; /* 4 */ char reserved[2]; /* 2 */ /* pad to 16 bytes */ } t_tag; /*-----*/ /* 16 */
If you use [udpreceive~] to a [tabwrite~] you shouldn't need to worry about that. You can send an [info( message to either [udpreceive~] or [udpsend~] to get the current values.
Martin
Thank you very much martin... I will continue my tests...
BTW... Pd-extended for mac intel has a non functional udpreceive~ (wrong architecture)...
I have compiled it here, but it would be nice to see what is wrong in the provided build scripts..
josé
Em 28/10/10 13:15, martin.peach@sympatico.ca escreveu:
First I tried to send tabdumps with mrpeach/udpsend... It would be nice to use this one because I could select specific frames to send. But it seems to not accept the floats from the arrays...
So, now, I am trying to do it with mrpeach/udpsend~, but I am trying to understand what are exactly the 24 bytes that begin with TAG!
From udpsend~.h:
typedef struct _tag { /* size (bytes) */ char tag[4]; /* 4 */ /*"TAG!"*/ char format; /* 1 */ long count; /* 4 */ char channels; /* 1 */ long framesize; /* 4 */ char reserved[2]; /* 2 */ /* pad to 16 bytes */ } t_tag; /*-----*/ /* 16 */
If you use [udpreceive~] to a [tabwrite~] you shouldn't need to worry about that. You can send an [info( message to either [udpreceive~] or [udpsend~] to get the current values.
Martin