hi,
i am stuck, trying to get raw mouse data in to pd.
was succesfull in pd-extended with hans steiners HID objects, but i cant make them work in vanilla (preferrably on a raspberry...)
or is there a different method nowadays, to get mouse-speed and direction unconstrained by screen size ? [MouseState] stops once the end of the screen is reached….
thanks! michael
Em qua., 26 de fev. de 2020 às 09:56, michael strohmann < itsnotfair9@gmail.com> escreveu:
hi,
i am stuck, trying to get raw mouse data in to pd.
Hi, there's no way to do this with vanilla yet, so you need externals.
was succesfull in pd-extended with hans steiners HID objects, but i cant make them work in vanilla (preferrably on a raspberry...)
I never used that so I wouldn't know what the problem would be. Other externals are: [cyclone/mousestate], [else/mouse] and [else/canvas.mouse].
or is there a different method nowadays, to get mouse-speed and direction unconstrained by screen size ?
I don't understand what you mean by "unconstrained by screen size"
[MouseState] stops once the end of the screen is reached….
You seem to have an older version of cyclone, try using the latest and create the object as [mousestate]. I also don't understand what would be the issue with it, but if you think it is not working as it should, please open an issue at https://github.com/porres/pd-cyclone
hi,
i am stuck, trying to get raw mouse data in to pd.
was succesfull in pd-extended with hans steiners HID objects, but i cant make them work in vanilla (preferrably on a raspberry...)
Have you tried "hid" via the "Find externals..." menu entry? This is what I use on Linux.
best, P
thanks for the fast reply!
[cyclone/mousestate] and [else/mouse] output mouse position relative to the patcher window, or screen….i would need an endless stream of readouts.
the “Find externals…” menu yields greyed out libraries only, eg. hid-v.0.0.extended-(Linux-i386-32)(Linux-amd64-64)-externals.tar.gz i tried to install this, but it did not work…
pd-hid https://packages.debian.org/jessie/pd-hid https://packages.debian.org/jessie/pd-hid this is the one i am looking for. looks like i have to build this on my own…
thanks!
On 26.02.2020, at 14:20, Peter P. peterparker@fastmail.com wrote:
- michael strohmann itsnotfair9@gmail.com [2020-02-26 13:54]:
hi,
i am stuck, trying to get raw mouse data in to pd.
was succesfull in pd-extended with hans steiners HID objects, but i cant make them work in vanilla (preferrably on a raspberry...)
Have you tried "hid" via the "Find externals..." menu entry? This is what I use on Linux.
best, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On 2/26/20 2:59 PM, michael strohmann wrote:
pd-hid https://packages.debian.org/jessie/pd-hid https://packages.debian.org/jessie/pd-hid this is the one i am looking for. looks like i have to build this on my own…
??? since your target platform is raspberry, i guess you are on a Debian-based system (e.g. rasbpian). in this case, you could just do:
apt-get install pd-hid
gfadsr IOhannes
Em qua., 26 de fev. de 2020 às 11:02, michael strohmann < itsnotfair9@gmail.com> escreveu:
thanks for the fast reply!
[cyclone/mousestate] and [else/mouse] output mouse position relative to the patcher window, or screen….i would need an endless stream of readouts.
what do you mean by "an endless stream of readouts."?
output continuous values, and not screen position... a mouse just puts out values when moved in any directions (x-y combo) the OS displays the cursor and updates the position on the screen based on those values. he wants the values directly from the mouse, not relative to the screen, resolution etc.
On Wed, Feb 26, 2020, 15:20 Alexandre Torres Porres porres@gmail.com wrote:
Em qua., 26 de fev. de 2020 às 11:02, michael strohmann < itsnotfair9@gmail.com> escreveu:
thanks for the fast reply!
[cyclone/mousestate] and [else/mouse] output mouse position relative to the patcher window, or screen….i would need an endless stream of readouts.
what do you mean by "an endless stream of readouts."? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
so, what do you mean, what is the range of these continuous values?
Em qua., 26 de fev. de 2020 às 11:29, Simon Iten itensimon@gmail.com escreveu:
output continuous values, and not screen position... a mouse just puts out values when moved in any directions (x-y combo) the OS displays the cursor and updates the position on the screen based on those values. he wants the values directly from the mouse, not relative to the screen, resolution etc.
On Wed, Feb 26, 2020, 15:20 Alexandre Torres Porres porres@gmail.com wrote:
Em qua., 26 de fev. de 2020 às 11:02, michael strohmann < itsnotfair9@gmail.com> escreveu:
thanks for the fast reply!
[cyclone/mousestate] and [else/mouse] output mouse position relative to the patcher window, or screen….i would need an endless stream of readouts.
what do you mean by "an endless stream of readouts."? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
I tried hid and it seems it only gives the delta... and so does mousestate
Em qua., 26 de fev. de 2020 às 12:02, Alexandre Torres Porres < porres@gmail.com> escreveu:
so, what do you mean, what is the range of these continuous values?
Em qua., 26 de fev. de 2020 às 11:29, Simon Iten itensimon@gmail.com escreveu:
output continuous values, and not screen position... a mouse just puts out values when moved in any directions (x-y combo) the OS displays the cursor and updates the position on the screen based on those values. he wants the values directly from the mouse, not relative to the screen, resolution etc.
On Wed, Feb 26, 2020, 15:20 Alexandre Torres Porres porres@gmail.com wrote:
Em qua., 26 de fev. de 2020 às 11:02, michael strohmann < itsnotfair9@gmail.com> escreveu:
thanks for the fast reply!
[cyclone/mousestate] and [else/mouse] output mouse position relative to the patcher window, or screen….i would need an endless stream of readouts.
what do you mean by "an endless stream of readouts."? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
yep, i need the delta. mouse sits on something like a turntable or jog-wheel and i want direction and turning speed to control the playback position in a file..
MouseState stops to spill out values as soon as one reaches the end of the screen or window - if i am not missing something.
if i try sudo apt-get install pd-hid i get E: Unable to locate package pd-hid
….
On 26.02.2020, at 16:11, Alexandre Torres Porres porres@gmail.com wrote:
I tried hid and it seems it only gives the delta... and so does mousestate
Em qua., 26 de fev. de 2020 às 12:02, Alexandre Torres Porres <porres@gmail.com mailto:porres@gmail.com> escreveu: so, what do you mean, what is the range of these continuous values?
Em qua., 26 de fev. de 2020 às 11:29, Simon Iten <itensimon@gmail.com mailto:itensimon@gmail.com> escreveu: output continuous values, and not screen position... a mouse just puts out values when moved in any directions (x-y combo) the OS displays the cursor and updates the position on the screen based on those values. he wants the values directly from the mouse, not relative to the screen, resolution etc.
On Wed, Feb 26, 2020, 15:20 Alexandre Torres Porres <porres@gmail.com mailto:porres@gmail.com> wrote:
Em qua., 26 de fev. de 2020 às 11:02, michael strohmann <itsnotfair9@gmail.com mailto:itsnotfair9@gmail.com> escreveu: thanks for the fast reply!
[cyclone/mousestate] and [else/mouse] output mouse position relative to the patcher window, or screen….i would need an endless stream of readouts.
what do you mean by "an endless stream of readouts."? _______________________________________________ Pd-list@lists.iem.at mailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list https://lists.puredata.info/listinfo/pd-list
On 2/26/20 6:20 PM, michael strohmann wrote:
if i try sudo apt-get install pd-hid i get E: Unable to locate package pd-hid
which distro are you using (and which version)?
which architecture are you on? $ dpkg --print-architecture
what is the content of your apt-sources? $ find /etc/apt/sources.list* -name "*.list" -exec grep . {} +
gmdsr IOhannes
thanks very much for your help iohannes,
distro: raspbian GNU/Linux 9.4 (stretch)
architecture: armhf
this would be the content of the sources.list:
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi deb http://ftp.at.debian.org/debian/ stretch main # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
i put the ftp…line in as was suggested on the debian site, but still apt-get cant locate the package pd-hid
On 26.02.2020, at 20:52, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2/26/20 6:20 PM, michael strohmann wrote:
if i try sudo apt-get install pd-hid i get E: Unable to locate package pd-hid
which distro are you using (and which version)?
which architecture are you on? $ dpkg --print-architecture
what is the content of your apt-sources? $ find /etc/apt/sources.list* -name "*.list" -exec grep . {} +
gmdsr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Em qua., 26 de fev. de 2020 às 14:50, michael strohmann < itsnotfair9@gmail.com> escreveu:
MouseState stops to spill out values as soon as one reaches the end of the screen or window - if i am not missing something.
yeah, [mousestate] does stop, and I can't see how it wouldn't or shouldn't
On 26 Feb 2020, at 21:38, Alexandre Torres Porres porres@gmail.com wrote:
yeah, [mousestate] does stop, and I can't see how it wouldn't or shouldn't
because the raw values from the mouse don’t stop! the mouse itself knows obviously nothing about the screen.