Matrix Value Receive to OSC Transmit
-
Hi Everyone.
I'm using the Matrix value receive actor in combination with the OSC transmit actor to send a list to Pure data. However when I'm unpacking the list I keep getting a 'type mismatched' error message in the PD window. So it seems that isadora is sending the data in something other than a float? How can I treat a dynamic list in Isadora so that I receive it as a float? Perhaps the Text Parser, but I would need some further info.Thanks and best wishes!
Madison
-
@dcmp said:
How can I treat a dynamic list in Isadora so that I receive it as a float?
A list, by definition, cannot be "a float" because it's comprised of multiple items and a float is just one number.
1.5 is a float
1.5, 1.7, 1.8 is a string that contains a list of floats
Can you attach a screenshot of the OSC Transmit actor you're using?
-
How are you values packed with the Matrix value receive?
The output of the actor is Text.
If you have something like 1,2,3,4,5 as the output from the Matrix Value Receive actor, that will be text, and will be sent as text when sent via OSC.You will need to unpack the text on the PD side, and convert each numeric Text element into a float there.
How many values are you sending? If its a manageable number, you can send a bunch of numbers over OSC by using the OSC Multi Transmit actor.
Another option (if PD can unpack JSON) is to bundle your data as JSON, and unpack on the PD side.