Why is dict.unpack wrapping my numeric data in quotes?
Hey all,
Total beginner here. Building a patch to convert realtime water level data to midi for a performance this weekend. I figured out how to maxurl the data and then dict.unpack down to the number I want – current water level. My method is likely inelegant and would appreciate any feedback. But more importantly, I cannot figure out why dict.unpack is serving that data wrapping in quotes. Output is "3.254". Not 3.254. Any ideas why? Or easy way to covert "3.254" to 3.254 (w/o quotes) so I can float it?
Max Patch
Copy patch and select New From Clipboard in Max.
Really appreciate any help.
Thanks!
Just insert [fromsymbol] on output.
Insert a [fromsymbol] object after your [dict.unpack v:] and you'll get a float.
Another way to get your data is to use dict's get message:
Max Patch
Copy patch and select New From Clipboard in Max.
Ah! Thanks so much!