|
Post by somedolphin on Nov 1, 2020 23:00:01 GMT
I just got MidiFire and have been trying to send OSC messages from Stream Byter. It works but I get this error if the I send anything that's not a multiple of 4 bytes. "Packet size not a multiple of 4 bytes: dropping packet". And it does drop the whole message then  I've tried adding 00 to make it a multiple of 4 but then the application won't respond to the messages I guess because they have extra spaces on them? So how do I fix this? Thanks for your time.. Blessing, Isaac
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 2, 2020 17:14:08 GMT
Hi somedolphin , As far as I know those are not error messages from MidiFire which does not expect messages to be in multiples of 4 bytes. Where are you seeing these messages? Regards, Nic.
|
|
|
Post by somedolphin on Nov 2, 2020 20:18:04 GMT
Hi Nic, thanks for your reply. I’m seeing these messages on the receiving end. I’m not using OSCExchange but directly sending OSC messages via Stream Byter. I’m using your script at this link to format them. audeonic.com/cgi-bin/osc2sb.plFrom what I have found out it seems OSC messages need to be formatted specially. It looks like this script doesn’t format them according to spec. I’m going to try to covert the messages to hex another way and see if that works.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 2, 2020 20:24:49 GMT
Hi somedolphin , Aah, OK, that makes more sense. Neither the little online script nor StreamByter send via UDP do anything in terms of making sure data is valid. They just formulate/send raw bytes. You could try padding with spaces at the end to make up multiples of 4? hex 20 Regards, Nic.
|
|
|
Post by somedolphin on Nov 3, 2020 0:22:43 GMT
Ok thanks! I’ll try that. 00 wasn’t working.
OSCExchange looks like it’s only local right? I see a place for the port # but no IP address. Or does it work another way? Blessings, thanks Isaac
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 3, 2020 16:53:34 GMT
Yes, OSCExchange is only local.
|
|
|
Post by somedolphin on Nov 3, 2020 22:19:58 GMT
Ok thanks good to know! It would be really great to have a more user friendly Midi to OSC method in the future. Just a thought 🙂
|
|