Welcome to %s forums

BrainModular Users Forum

Login Register

osc send update suggestion

Tell us what you'd like Usine to do
Post Reply
iococoi
Member
Posts: 211
Contact:

Unread post by iococoi » 05 Nov 2010, 10:12

hi all,

..based on this thread "usine to animata"

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

so i know there are other solutions(max, pd,..) to this problem.. but i really want to stay in usine for this project(impro)..so maybe there could be a small update on the osc send module(if possible)..or something like an osc merger or osc composer to output different styles of osc messages..script, module...anything would be appreciated

or as 23fx23 suggested..something like a "type array"

best wishes,
io

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 04 Dec 2010, 09:10

sorry to answer so lately.
you're right, Usine can't send mixed tag types. I don't know how to proceed but I'll think about it.

iococoi
Member
Posts: 211
Contact:

Unread post by iococoi » 25 Jun 2012, 11:31

Sorry for digging out this rather old thread..

Sending mixed OSC is still not possible, is it? Same old problem, trying to send Data from Usine to Animata via OSC and had no luck til now.
FORMATTING THE OSC MESSAGES

All incoming messages to Animata must be sent through port 7110. The “name” in the message refers to the name of the joint, bone or layer.

Moving a joint, x and y are float values:
/joint name x y

Control the length of a bone, value is a float between 0 and 1:
/anibone name value

Switch on and off a layer, on_off is 0 or 1:
/layervis name on_off

Set the transparency of the layer, value is a float between 0 and 1:
/layeralpha name value
Thanks,
io

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

Unread post by oli_lab » 25 Jun 2012, 15:05

Hi,

use the list module and few string manipulation modules !

make a list : use comma to separate datas

192.168.0.17,/BRU/Dout,0,20,300
192.168.0.17,/BRU/Dout,1,20,300
192.168.0.17,/BRU/Dout,2,20,150
192.168.0.17,/BRU/Dout,3,20,300
192.168.0.17,/BRU/Dout,4,20,550
192.168.0.17,/BRU/Dout,11,20,400

then parse the string to the osc send module

Image

et voila !

I can email the patch if you want
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 » 25 Jun 2012, 17:22

Oi Oli,

manymanymany thanks for your efforts! I really appreciate your help, but .........the problem is, that "name" is actually data and not an address. So Animata wont recognize(as far as i can see) /Joint/name. Usine could/can only send one type of OSC-message, i.e. float(fff) OR integer(iii) OR string(sss), but not a mix of them. Animata would need sff as valid input.

As you seem to be a bit of a "geek";), you might want to have a look thru this:

http://mansteri.com/2008/12/animata-osc/

This guy provides some patches for PD, MAX, Processing, Quartz Composer( which had the same problem as USINE, but he wrote a Plugin for that :[) to connect to Animata. As I'm not much of a coder/hacker, i'm not sure how to proceed. I would love to stay in Usine<->Animata for this project.

Thanks&ciao,
io

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

Unread post by oli_lab » 26 Jun 2012, 21:47

Hi,
hum, would have been much easier to implement something like this :

/name/joint x y

what you could do is a patch in puredata or Processing to translate what is coming from Usine ( /name/joint x y) into something understandable by Animata (/joint name x y)

puredata is easy for that purpose as long as you use the osc library from M. Peach

Processing is ok too with the oscP5 library

I have no time for that myself as I I'm fully into sound and interaction but no video content so far.

I'd love too, but days are too short !

cheers

Olivar

P.S. have you tried to send a string thru the data input ?
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: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 23 Jul 2012, 01:59

Hi
I will work on Animata intwo week time :

so I'll need to make a processing patch to translate incoming message from Usine to Animata : piece of cake.

can you send me the list of the messages you need for animata (I mean the real "name" and so forth)

this is how I will proceed :

Usine send message on port 1511 on address 127.0.0.1 (this part I have to make sure)

for example : /joint /name x y sent from Usine will be receive by Processing and be converted to

/joint name x y

then send to 127.0.0.1 on same port Animata is listning to...

does it make sens ?

Cheers

Olivar
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: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 27 Jul 2012, 14:17

Allô !
I did this small applet that translate OSC from Usine to a message that is animata compatible.

on one side you send /joint/name x y and the applet turns it into /joint name x y

can be downloaded here : http://oli.lab.free.fr/olivarpremier/in ... proce55ing
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
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 27 Jul 2012, 15:38

Thanks a lot for this Oli_lab, I'm sure some animata users will appreciate this appz !

iococoi
Member
Posts: 211
Contact:

Unread post by iococoi » 28 Jul 2012, 12:11

hi oli..

sorry, was on a camping trip for the last week..1000 thanks for the patch..i'll give it a try and will report back a.s.a.p..

..i did a patch with pd, but it's veryVERY "brute force" :)

cheers,
io

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

Unread post by oli_lab » 28 Jul 2012, 20:18

I'll be on a workshop next week and give a go at Animata in a live set up while others are playing music.
well lot of work and fun !

We'll share experience with Usine + animata soon !

cheers

Olivar
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 19 guests