electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
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 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » DIY Hardware and Software » ChucK programming language
Mouse Harmony
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [1 Post]
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: 4146
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Sat Jul 28, 2007 2:36 pm    Post subject: Mouse Harmony Reply with quote  Mark this post and the followings unread

I thought I'd try to see if I could use several mice with ChucK, and I could! On the MacBook Pro, at least, unfortunately I didn't get it to work on my XP - possibly I need to install specific drivers for each mouse...

Anyway, it would be great if someone could try this out (maybe it's been done before) - the file sets up two sets of notes that are controlled by two mice (or my preferred input device - trackballs!) One set controls even notes along a major scale, and the other odd notes, i.e. [c, e, g, b, d+1, f+1, a+1] / [d, f, a, c+1, e+1, g+1, b+1] (upwards and downwards through the octaves) - transposed a bit. If you swish one trackball from side to side it sounds a bit like a dull harmonica. Up/down controls volume for each set.

One problem that I hope someone can help me out with is that there is a slight ticking noise when rapidly moving a trackball sidewards. Do any of you know what this is, and how it could be fixed?

If you only have one mouse, you can try it anyway by changing:

1 => int device2; to 0 => int device2;

and commenting out this:

spork ~ handleMouse2();

(I think). You can change to something else than even/odd notes in the harmony_steps arrays at the top, if you want, and of course one could put something more fun than SinOscs in there.

Cheers!

/Stefan


sbt_mouse_harmony.ck
 Description:

Download
 Filename:  sbt_mouse_harmony.ck
 Filesize:  2.96 KB
 Downloaded:  340 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
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [1 Post]
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


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