electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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 » Developers' Corner
OSC from java
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Antimon



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

PostPosted: Sun Mar 09, 2008 12:13 pm    Post subject: OSC from java
Subject description: Just send so far
Reply with quote  Mark this post and the followings unread

I did this monome clock app for fun, and figured that someone might be interested in (or want to comment on) the code for sending OSC commands from Java. I put all of that code in the OscCommunication class.

/Stefan


monome-clock.zip
 Description:

Download
 Filename:  monome-clock.zip
 Filesize:  9.15 KB
 Downloaded:  399 Time(s)


_________________
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
jksuperstar



Joined: Aug 20, 2004
Posts: 2503
Location: Denver
Audio files: 1
G2 patch files: 18

PostPosted: Sun Mar 09, 2008 9:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cool. I'll have to try & play with it. I'd like to learn more about OSC, I haven't had a real application for it (yet), but can invision some things I'd like to try. Where did you start learning it? ANy good tutorials you came across? There seems to be some very in depth material regarding how things work, but I haven't seem much in terms of *use* or implementation (programming code, or programming an instrument).
Back to top
View user's profile Send private message Visit poster's website
Antimon



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

PostPosted: Mon Mar 10, 2008 3:36 am    Post subject: Reply with quote  Mark this post and the followings unread

I learned by looking at code examples bundled with ChucK, and a spec like this: http://archive.cnmat.berkeley.edu/OpenSoundControl/OSC-spec.html

I haven't looked at #bundle or the pattern matching stuff on the receiving end, or other OSC implementations than the one in MonomeSerial, but it looks like a pretty thin protocol with a lot of freedom in how you layout your commands and arguments. The only tricky part in sending via a UDP API was aligning the bytes. It would be interesting to see a well-tested OSC protocol for a tone generator or something.

Other than the monome, I only know of pure software applications using OSC - see the wikipedia page here: http://en.wikipedia.org/wiki/OpenSound_Control

/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
Display posts from previous:   
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [3 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 » Developers' Corner
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


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use