Hi list!<br><br>I&#39;m finishing an application using PD &amp; Processing (great combination for sound applications with easy &amp; nice GUI!), but I have a little problem.<br><br>I use OSC communication (oscx library) to send &amp; receive values from Processing to PD. <br>
PD receive data from GUI control in Processing, and send values stored in text files (sssad based saving state system) to Processing in order to change some presets.<br>Everything it&#39;s OK!<br><br>But Processing OSCP5 library send error sometimes when receive values from PD because it expetcs floats but receive some integers!<br>
These values PD send are in the range from 0 to 1, therefore the problem appear when is sent a 0 or 1 (integers values).<br><br>I send this values with a [pack f f f f f f f f f f f f f] object, so I suposse any integer is converted in this way to a float, but I was wrong because Processing reads something like f f f f i f f f f i f f f (where i values are 0 or 1). Even if I edit the text file where values are stored, and I change 0 with 0.0 and 1 with 1.0, the same error appear.<br>
<br>How can I avoid this problem? Do I need to put a [float] object before each [pack f f f f f f f f f f f f f] inlet to make implicit the conversion?<br>Or it is this behaviour an oscx bug?<br><br>Thanks in advance!<br>
<br>Saludos!<br><br clear="all"><br>-- <br>Raul Diaz Poblete<br>*************************<br><a href="mailto:raul.lete@gmail.com">raul.lete@gmail.com</a><br>Barcelona [Spain]