Would like to use pd to convert the mouse pointer position (without mouse click) to a continuous midi value. If anyone can give me advice on the best way to go about this I would be very grateful.
When I open mouse.pd I get various error messages stemming from the automatic scaling object like:
... couldn't create
oneshot
... couldn't create
expr if ($f1 == $f2 , 0 , $f1) \;
if ($f1 == $f2 , 127 , $f2)
... couldn't create
oneshot
... couldn't create
hid $1
... couldn't create
error: inlet: expected '' but got 'float'
I am not able to get output from this patch yet.
I am using w2K.
thanx.
-
Mouse xy position to continuous midi signal?
-
use the MouseState external (cyclone library).
it outputs x and y position, change in position and clicks.
x and y come from the second and third outlets
do some addition and multiplication of the coordinates so they fit into midi ranges (0 to 127) and you have yourself a continuous midi control. -
_use the MouseState external (cyclone library). _
thanks very much for your suggestion Zac. I downloaded the cyclone dlls and pd files from: [url=http://suita.chopin.edu.pl/~czaja/miXed/externs/cyclone.html ]http://suita.chopin.edu.pl/~czaja/miXed/externs/cyclone.html
I tried opening MouseState_test.pd directly with pd and got the message:
MouseState
... couldn't create
MouseState
... couldn't create
capture
... couldn't create
and:
error: inlet: expected '' but got 'bang'
....etc, when activating the toggle box.
Any idea what I am doing wrong? (windows 2000, Pd version 0.38.3)
thanks again. -
ok...
it should work as long as you start Pd with the command line:
pd -lib cyclone
if that doesn't work, i'd try to find a different cyclone binary.
--zac -
Got it!
After putting the cyclone library in an appropriate place, setting the right path, and including cyclone in the startup options, I got mousestate producing the right output.
Thanks again for your help!