-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenSoundControl -> downcast? #125
Comments
We usually use [o.downcast] as well for this particular use case. |
I'm leaving myself a note to include this in the forthcoming odot tutorial. ;) |
I do tell people to use o.downcast, but that solution isn't obvious -- especially to users who haven't downloaded o.dot. It would be helpful if there was some pointer to a solution that was contained in the CNMAT-externs package. |
would something in the opensoundcontrol help file suffice ? |
There is a link to o.dot in the I was looking at the source, and the decision to output zeros is happening on lines 963-975. There's actually a comment there suggesting the behavior could be different. I would suggest that silently setting longs and doubles to zero is a bad user interaction. A one line error in the Max window (Received double, setting to zero.) would be better. What is the maintenance status of these legacy objects? |
I can take a look at it - more soon... |
for now I post a msg about the dirty deed (f289b21) but will also look into a proper downcast function internal to the object. |
Actually, case 'h' is a long int (that also gets converted to 0.) case 'd', a couple of lines below, is the double. It would probably be good to make these messages set a flag so they only output once. Otherwise they could flood the Max window. I can do a pull request later this week. |
I've twice now run into problems where old school users, and old patches, had troubles using OpenSoundControl to parse newer OSC data from o.dot into max messages. Doubles get output as zeros. (see patch below)
It might be nice if OpenSoundControl had downcast functions built in? Or, at least it could throw a warning in the Max window saying that it didn't know what to do with the data it got.
The text was updated successfully, but these errors were encountered: