electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Listen to the electro-music 2008 live stream at radio.electro-music.com
 Forum index » DIY Hardware and Software » ChucK programming language
Wii controler into ChucK? (linux)
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [11 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Stochastic



Joined: Feb 25, 2008
Posts: 23
Location: Vancouver

PostPosted: Wed Jun 04, 2008 2:25 am    Post subject: Wii controler into ChucK? (linux)
Subject description: is it possible?
Reply with quote  Mark this post and the followings unread

Is it possible to do such a thing? There are plenty of libraries for reading the bluetooth communications, in various languages, C, C++, Python, Perl, etc... Has anyone built a chuck reader or frontend to these libraries?
Back to top
View user's profile Send private message Visit poster's website
ravelite



Joined: Jun 03, 2008
Posts: 1
Location: Barcelona

PostPosted: Wed Jun 04, 2008 6:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Definitely possible.

I think there is some internal WiiMote code in the chuck sourcetree that's not quite done yet.

But another (hack, but sufficient) solution is translating it with platform specific tools into OSC and interpreting that from ChucK.

My (incomplete) results below:
http://www.iua.upf.es/~gcoleman/chuck/svn/gkc_wii.pie
http://www.iua.upf.es/~gcoleman/chuck/svn/wiidata.ck

Graham
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1410
Location: Florida, USA
Audio files: 54

PostPosted: Wed Jun 04, 2008 10:10 am    Post subject: Reply with quote  Mark this post and the followings unread

Call me a simpleton, but I'm not a fan of using OSC in my programs. It's poorly documented, limited in performance (can't send multiple messages or something like that), and takes reams of code to implement. Now having said that, that's just me. Lots of people seem to be getting a lot out of OSC so I'm not gonna knock it, just suffice to say that I see OSC as a powerful, enabling feature that I simply choose not to utilize. For my HID project I'll use the USB Joystick support and then later if/when Wiimote communication becomes natively supported then I'll consider that option as well. Just my two cents, I love to program and I love to push the limits of something, but all I read about OSC is problems. Please feel free to jump on in and correct me if you feel otherwise, but that's my story at the moment. (Can you tell I'm in a grumpy mood today... grump! grump!).
_________________
@(ºoº)@ ><}}}º> ~(^.^) <:3 )~
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11257
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 291

PostPosted: Wed Jun 04, 2008 1:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

http://opensoundcontrol.org/spec-1_0

As for the semantics .. those are just not part of the OSC specs it seems.

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Stochastic



Joined: Feb 25, 2008
Posts: 23
Location: Vancouver

PostPosted: Thu Jun 05, 2008 2:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok, that's good to see that the native wii code is coming along. I just realized the number of other times this subject has be asked in this forum, and feel silly/stupid for not looking first. Embarassed

Thanks.
Back to top
View user's profile Send private message Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 1410
Location: Florida, USA
Audio files: 54

PostPosted: Thu Jun 05, 2008 12:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
http://opensoundcontrol.org/spec-1_0

As for the semantics .. those are just not part of the OSC specs it seems.


Jan, you always have the coolest links, ty for this one.

_________________
@(ºoº)@ ><}}}º> ~(^.^) <:3 )~
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nescivi



Joined: Mar 23, 2005
Posts: 86
Location: Montreal

PostPosted: Wed Jun 11, 2008 10:24 am    Post subject: Reply with quote  Mark this post and the followings unread

http://www.nescivi.nl/wiiosc/

for a linux based simple OSC interface to the Wii.
There are some SuperCollider *ducking behind chair* classes available in the package for using it. I'd be willing to host Chuck code with it as well, if someone sends me a good example.
Back to top
View user's profile Send private message Visit poster's website
hirsute



Joined: May 15, 2008
Posts: 3
Location: Ireland

PostPosted: Tue Jun 24, 2008 4:45 am    Post subject: Reply with quote  Mark this post and the followings unread

http://electro-music.com/forum/topic-19150.html for some simple enough chuck code designed to work with OSC packets. nothing super crazy awesome, but definitely proof of concept.
Back to top
View user's profile Send private message
nescivi



Joined: Mar 23, 2005
Posts: 86
Location: Montreal

PostPosted: Tue Jun 24, 2008 1:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'm not a chuck user (nor planning to be anytime soon, happy with SC), so I won't delve into it...
but what I meant what that if someone has a working example to interact with my little program wiiosc for linux, then I'd be happy to include that in the distribution, so that other people can benefit from it too. all GPL of course.
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 6443
Location: The Hague, NL
G2 patch files: 3

PostPosted: Tue Jun 24, 2008 2:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

nescivi wrote:
I'm not a chuck user (nor planning to be anytime soon, happy with SC), so I won't delve into it...


Oh, come on! You know we are the other side of the hill, haven't you seen how green it's here?

:¬p

_________________
Modern technology offers an endless field day to any deviant strains in our personalities. --J.G.Ballard
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nescivi



Joined: Mar 23, 2005
Posts: 86
Location: Montreal

PostPosted: Tue Jun 24, 2008 9:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

it just seems that way!

reading the I Ching I just learned that "Ge" means "Abolishing the Old", and not the inverse "Ding" - "Establishing the New".
I'll wait till the latter has happened Wink

We (the SC people) now just got a new toy: SCGraph
http://tapas.affenbande.org/wordpress/?page_id=76, which is competition for Fluxus and for Chuck's fancy eyecandy. Now we can use Dust on 3D images!
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: Kassen
Page 1 of 1 [11 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
Buy N Save

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003, 2004, 2005, 2006 and 2007 by electro-music.com