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
ControlExplorer - multiple mice => OSC
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: Sat Oct 25, 2008 8:55 am    Post subject: ControlExplorer - multiple mice => OSC Reply with quote  Mark this post and the followings unread

http://www.df.lth.se/~flash/ControlExplorer%20example.mov

Here's a movie of a little application I've made. What I've done is that I've hooked up four mice (or rather, three trackballs and my MacBook touchpad). Then I read their respective position in a ChucK app, send the data to a Java application that displays the GUI you see in the movie. Besides showing the randomized bubble maps, the Java app sends OSC messages with values that correspond to the bars you see at the bottom of each subwindow. These values are calculated depending on how close to the center of bubbles of the respective colour the center crosshair is.

It's a bit messy to explain, hopefully easier to understand by watching the movie. I'm going to put up the source code here as well, but I have a hunch from past projects that people aren't always keen on downloading apps spread over multiple programming environments and trying to get them to work.

Anyway, I'm curious if anyone likes this idea, and maybe have ideas of their own. Ever since I learned about the id field in the mouse HID object in ChucK, I've been obsessing about how cool this ought to be if you get a couple of trackballs and start to mess about. I'm think about ordering a pile of cheap Kensington trackballs for a more extensive project.

/Stefan


ControlExplorer snapshot.jpg
 Description:
 Filesize:  56.85 KB
 Viewed:  512 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

ControlExplorer snapshot.jpg



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



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

PostPosted: Sun Oct 26, 2008 4:45 am    Post subject: Reply with quote  Mark this post and the followings unread

OK, here's an example with sound (worse picture quality though - I'll have to check up on how to use iMovie or some other way of combining video with sound).

http://www.df.lth.se/~flash/ControlExplorer%20example2%20w%20sound.mov

So, I made a Nord Modular G2 performance with one slot for each subwindow, controlled via an OSC to MIDI conversion thingie written in ChucK.

Top Left: Magenta is a low rumble, yellow is a saw drone and cyan is a harp-like arpeggio going up and down.

Top Right: A bass thingie, the different colours control variuos FM and filter stuff.

Bottom Left: Drums. The colours change the patterns for kick, rim and snare respectively, a hihat sound is controlled by all combined.

Bottom right: a slow loop of five notes on a fm/ring modulator thingie.

All of these are patched so that if any of the three control values are above zero, the sound fades in to full volume. Then the values (who depend on how close to the center of a circle you are) control filter frequencies, FM magnitudes etc to change timbres and stuff - except the drums where the just control the trigging sequences. I'm attaching the G2 patch I used to make the sounds. I mostly have put three constant level modules that are controlled by the MIDI parameters 29, 30 and 31 that I send from my OS to MIDI converter.

/Stefan


ControlExplorer_test.prf2
 Description:

Download
 Filename:  ControlExplorer_test.prf2
 Filesize:  15.24 KB
 Downloaded:  1788 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
DrJustice



Joined: Sep 13, 2004
Posts: 2114
Location: Morokulien
Audio files: 4

PostPosted: Sun Oct 26, 2008 10:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Trackballs are indeed cool. I've been thinking about using some in the past. The idea was to use a microcontroller to decode a few of them. I suppose one can only get USB trackballs these days, which makes the microcontroller route a bit of a hassle compared to using the HID services in desktop OS'es.

Not only can trackballs be used to set values, rotary style, but due to the endless rotary nature they could be used for 'scratching', or advancing time/position in any kind of data set, which I guess is what you are doing here. Unfortunately I can't test the setup you posted, but the video is a nice enough showcase Smile

DJ
--
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