electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
SL2OSC and ChucK
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Thu Feb 10, 2011 6:33 pm    Post subject: SL2OSC and ChucK
Subject description: worked with pd but not ChucK
Reply with quote  Mark this post and the followings unread

Hi, I'm working with a friend on creating a bridge between the 3d VR world of Second Life and OSC, hoping to control ChucK with 3D objects and avatars. I got it working with pd, but ChucK seems to be blocking the port somehow. In fact, when I run pd and ChucK at the same time, pd fails but all I have to do is quit ChucK and pd magically works. I don't understand. Any suggestions?

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 373
G2 patch files: 100

PostPosted: Fri Feb 11, 2011 3:13 am    Post subject: Reply with quote  Mark this post and the followings unread

I have a faint memory that UDP isn't in broadcast mode by default, so once a message finds a listener, it will go there and skip the others. UDP listeners don't hog a port like with TCP, so you can have several apps listening on the same port at the same time.

I think ChucK also has some problem with the data you are sending - is it possible to do a hex dump of a message that ChucK refuses to read?

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Fri Feb 11, 2011 3:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Stefan, these are the test programs. They work as localhost but not from SL. The event "e" just never fires, and I don't know why.

Les


OSCrecv.ck
 Description:

Download (listen)
 Filename:  OSCrecv.ck
 Filesize:  593 Bytes
 Downloaded:  341 Time(s)


OSCsend.ck
 Description:

Download (listen)
 Filename:  OSCsend.ck
 Filesize:  697 Bytes
 Downloaded:  352 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Fri Feb 11, 2011 5:43 am    Post subject: Reply with quote  Mark this post and the followings unread

OK we FINALLY, after much frustration, figured it out. Woody had implemented a subset of the OSC protocol for test purposes that only sent one value at a time. I was misunderstanding the identifiers but now I get it and it works. Thanks for the response, Stefan, even though you didn't have the answer it helped to have an extra pair of ears to talk it out with. (and brain between the ears lol).

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 373
G2 patch files: 100

PostPosted: Fri Feb 11, 2011 7:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Hehe talking to the monkey person often works. Smile Could you tell us what the problem was? I had a quick look and couldn't see what was wrong..

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Fri Feb 11, 2011 7:50 am    Post subject: Reply with quote  Mark this post and the followings unread

It was simply a case where we had created a temporary limited solution and not knowing much about ChucK with OSC, or OSC at all, I didn't know how to code the ChucK software properly for the temporary solution. But it works good now, and i've got a KS loop under SL control now. whoot!

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org