Welcome to %s forums

BrainModular Users Forum

Login Register

Response to OSC seems intermittent or delayed

I need help on a Patch
Post Reply
ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 28 Apr 2012, 17:30

Hi Everyone,

I'm using Lemur on the iPad to control Usine via OSC and I've noticed that not all OSC messages I send are being processed by Usine.

The following patch shows the issue. Toggling the "show vst button" on Lemur doesn't consistently display the vst. (I've noticed this same issue with different OSC targets so I don't think it's the VST I'm using). Tracing the OSC in messages in the console tells me that most (if not all) of the OSC messages are getting to Usine. They just don't seem to be processed consistently. I have also tried turning on the "fast mode" switch on the OSC receive module but it didn't help.

Image

Any suggestions would be appreciated.

Regards,

Scott
Regards,

Scott

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 28 Apr 2012, 18:09

have you check the data received..?
it's 0_1 values..?

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 28 Apr 2012, 21:25

Not sure I follow you. 0_1 values? The values I see are indeed 0, or 1 but as you can see in the trace window in my screen capture, it looks like some kind of null value is processed between each 0 and 1.

On a related note, what is the number in the square brackets to the left of each received value (e.g. [1] and [-1])? Is this the array index of the value received?
Regards,

Scott

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 28 Apr 2012, 22:21

yes, seems you receive arrays, try to create one from the array outlet and see what arrive exactly

multiphone
Member
Posts: 303
Contact:

Unread post by multiphone » 29 Apr 2012, 18:29

Hello Scott,

No problem here with Lemur and Usine for do that.

If do you use a "Custom button" in Lemur to make the VST visible or not, go to :

Lemur Editor and click on your "custom Buton"/ Behavior/ Mode/ select Pad and NOT switch.

If you want to make a Bypass button, create a second "Custom button" and a new OSC recieve in Usine

And All is OK !

Best
HB

Lines / Points / Squares

http://www.hervebirolini.com/

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 30 Apr 2012, 23:15

Thanks for your suggestions Nay & Herve. The problem I am seeing is even more basic than I thought. About 20% of the OSC messages that I am sending to Usine are being lost. Either Usine isn't receiving them, or it isn't processing them. Mostly it seems that they are not being processed. The console shows that most, but not all, messages are getting to Usine however it seems to be processing only a few of them.

Nay, the problem doesn't seem related to the array. It happens when I send even a single float from Lemur.

I am going to try sending the same messages to bidule now to see if maybe it's my laptop. I doubt it though. I have two laptops and they are both showing the same issue.
Regards,

Scott

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 01 May 2012, 06:10

Have you checked out your wifi if that's how you're connecting? Is it possible that's where the info is being lost? Maybe a firewall problem? Seems like a possibility given both laptops are doing it?

I can't get the same behaviour here with Lemur and usine using the multiball template sending as much data as I could get it too. Maybe you're sending more data?

multiphone
Member
Posts: 303
Contact:

Unread post by multiphone » 02 May 2012, 08:49

Hello Scott,

Ok,

Wath is your test method ?

Normally, Usine do not forget OSC message in fast mode.

It is still preferable to create a specific ad hoc wireless network with the iPad to be sure that messages will not be slowed. The Royal solution (What I use ...) is to install the application "My wii" on IPAD for creating a USB Network with IPAD which solves all the problems of failure of connections at the last moment (Notably, just before playing and I know what I mean ...;-)

Best
HB

Lines / Points / Squares

http://www.hervebirolini.com/

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 03 May 2012, 00:25

Thanks again for your responses. I have been able to recreate the problem using two different computers on two separate wifi networks - one was my home network and a second was one I set up just for this test.

I test by sending two basic OSC messages (a single integer value) from two separate Lemur pad buttons (no scripts running on Lemur) to 2 targets in Usine and I set the incoming messages to be displayed in the Usine console. I press the first button in Lemur, then the second and I watch the console messages. About 2 times out of every 20, a button press is never received by Usine. About 1 button press out every 40 is received by Usine but isn't processed properly (a counter I set up doesn't get incremented).

I've tried connecting my W7 laptops to an ad hoc wifi network but every time I do, the computers lock up completely. This is also quite strange.
Regards,

Scott

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 03 May 2012, 00:28

what if you use the receive pulse to let pass, does the receive pulse also miss a pulse? are you running at low bloc size (try 32 to see)

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests