Welcome to %s forums

BrainModular Users Forum

Login Register

multi format OSC

I need help on a Patch
Post Reply
User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 26 Aug 2014, 11:56

I'm trying to send OSC to one of my contraption (a OSC to LCD hardware module)

the OSC format I planned for my OSC server is "iiis"

first integer is for register (telling the LCD what to do)
second integer is the line number to where the text should be writen
the third integer is the column number to where to start writing
the fourth osc data is the string to print on the LCD

the trouble is I haven't yet find a way to send OSC messages with different data format with Hollyhock ?

any Idea how I can do ?

should the "send udp" module be a good start ?

or a new OSC module that permit this kind of multiformat ??

thanx
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

iococoi
Member
Posts: 211
Contact:

Unread post by iococoi » 26 Aug 2014, 12:50

hi olivar

you did send me a processing file once..it was more or less the same problem, sending multi-format OSC to Animata.

it was this thread:

http://www.sensomusic.org/forums/viewtopic.php?id=2529
http://www.sensomusic.org/forums/viewtopic.php?id=3832

i guess nothing changed much regarding OSC in Usine.

~
marco

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 27 Aug 2014, 00:45

yeah !

I find another solution, easy :
one OSC message with only the 3 integers then I send a string

in fact it is faster as I can set up the register an cursor position once and for all then send few strings.

problem solved !
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social


User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 08 Nov 2014, 15:38

I made some new research on the subject : I managed a patch in usine that send multi tag osc messages

for now it is working but it seems allergic to strings that begin with upper-case letter, in that case, the string get all messed up. at leat with PureData (not good with strings, could be a Pd bug..)

I have yet to try with my own Arduino server.

keep you posted

http://www.sensomusic.com/forums/upload ... %20OSC.pat

uploaded: http://www.sensomusic.com/forums/upload ... C-help.zip
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Benard
New member
Posts: 8
Contact:

Unread post by Benard » 25 Dec 2015, 08:15

Hello! I am trying to send OSC messages from Usine to SuperCollider in the form of s s i i i. I came across this thread and was wondering if anything has changed in Usine since the last post here. Is there a simpler way to send combined OSC messages?

I looked at oli_lab's example patch, but I'm having a hard time figuring out how to modify it to do what I need. Any ideas? Thanks!

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 25 Dec 2015, 15:21

Hi Benard !

have a look here : http://www.sensomusic.com/forums/upload ... C%20SC.pat


can you keep me posted about your venture into Usine + SC ?

I'm quite interested in using Usine as a controller on a Windows machine while having sound done in SC on another Linux computer...
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Benard
New member
Posts: 8
Contact:

Unread post by Benard » 25 Dec 2015, 18:02

Hi Oli_Lab,

Thanks for your response! Your patch seems to be close to what I want to do, and I'm trying to wrap my head around how it all works, as I'm still quite new at patching in Usine. I'll spend some time with it, but it looks like it will take me a while to really understand the array concatenation part and how to modify it to be able send different tags. Other than the HHII manual and online documentation, is there another source that you would recommend for learning about this in Usine?

About SC, I've been playing around with it a little, sending messages from Usine via an OSCdef in the SC language. That seems to work fine, and it makes for a really simple way to add GUI control to SC. It might be better to just send OSC messages directly to the server, but OSCdef seems to do the job easily enough.

What I was trying to do with the multi-tag OSC messages is to make new synths in the SC server from the HH grid. So in the simplest form I would need to send once a message like: ("/s_new", "default", 1001). So I was thinking ssi, but actually in your patch the first string is the OSC address, so it would be just ,si (or siii if we include the add action and target).

Let me know if you have any suggestions, or other versions of your patch I could have a look at. And thanks so much for your help!

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 25 Dec 2015, 22:30

I wonder if you can parse the osc message in SC ?
and send /s_new/default 1001

other wise it is easy to modify the last patch I did as all different parts of the message are encapsulated

http://www.sensomusic.com/forums/upload ... SC%202.pat

OSC messages need to be of a multiple of 32 bits, that is why the patch is so intricate as it has to add bytes to follow that rule.

cheers
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Benard
New member
Posts: 8
Contact:

Unread post by Benard » 26 Dec 2015, 13:50

It should be possible to parse the strings in the language, but that would defeat the purpose of sending messages straight to the server, as you could just send message to the sever in the normal way from the language instead to begin with. Perhaps I can send a message to the language to trigger the synths though, the way I'm controlling other parameters. I'll look into that.

With your latest patch I get an error message, and it seems the OSC being received in SC is: [ "/s_new", "", 65628416, !unknown tag '?' 0x00 ! ].

Does that tell you anything? I guess the bytes are getting messed up when I change the values for the strings...

I can sort of follow the adding in the patch, but I'm completely lost with the array concatenation part. :( But I'll keep playing with it.

Thanks for all your kind help!

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 27 Dec 2015, 21:31

I'm away from my computer...
I probably did a mistake with the patch
I ll she'd you a 'ew one asap during the week
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Benard
New member
Posts: 8
Contact:

Unread post by Benard » 28 Dec 2015, 12:58

Thanks Oli_Lab!

Cheers.

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 30 Dec 2015, 14:35

http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Benard
New member
Posts: 8
Contact:

Unread post by Benard » 31 Dec 2015, 20:20

Thanks! But now there seems to be a problem with the link. It tells me it's incorrect or outdated...

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 31 Dec 2015, 20:26

http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 55 guests