[PD] gemmouse and pix_data
IOhannes zmölnig
zmoelnig at iem.at
Fri Apr 9 11:03:28 CEST 2010
Andrew Faraday wrote:
> Quick and simple solution to a lot of similar problems, use [range].
>
> It needs four arguments, the input range (in this case 0 to the size of your gemwin) as two arguments, and the output range (usually -4 to 4) and it will convert one into the other. Although to make this work on gem you need one for each of the x and y axes.
>
> You can do this by re-scaling yourself, although this does take more time and effort, but also can provide more control. In the end it's your own choice.
>
[gemmouse] will output coordinates in pixels by default.
however, you can specify the range manually, [gemmouse 1 1] will output
x=0..1 and y=0..1
fgmsadr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100409/1bfe34fb/attachment.pgp>
More information about the Pd-list
mailing list