| Hi,
I'm trying to send a numeric array ('A') blob to Csound through OSC from
C++. From what I understand from Opcodes/OSC.c, right now Csound is
expecting 1+sz ints (dimensions and sizes) and then the array values
with MYFLT type. I'm using the oscpack library in C++, but haven't found
a way to send a mixed array with ints and doubles. As I said in another
message, I ended up encapsulating two ints inside a double through bit
manipulation.
Is this how you are supposed to do it or shouldn't Csound expect a MYFLT
array and then cast the first values (dimensions and sizes) as ints when
storing them inside an ARRAYDAT?
I might be stretching the usage of the OSC opcode and I don't even know
if this is an already supported feature, but I thought I should make a
comment about it. After all, being able to receive numeric arrays
through OSC from outside Csound opens up a lot of possibilities!
|