[CM] mouse functions

Heinrich Taube taube at uiuc.edu
Thu Sep 2 08:43:46 PDT 2010


new functions in svn and beta binary:  mouse-x mouse-y and mouse- 
button, which behave almost exactly like their supercollider  
originals.  see cm.html for documentation

http://camil.music.uiuc.edu/software/grace/Grace-3.7.0-beta5-osx.zip

example:

process maus (beat , amp)
   for x = mouse-x(.1, 1.0)
   for y = mouse-y(90, 20)
   for r = beat * x
   until mouse-button()
   mp:midi(key: y + between(-3,3), amp: amp, dur: r)
   wait(r)
end



sprout(maus(.2, .3))





More information about the Cmdist mailing list