Here's what I ended up writing: https://github.com/curtisullerich/computer-music/tree/master/chuck/gametrak
The velocity and acceleration tracking is very rough, but the underlying GameTrak abstraction is working well. Input welcome. :) On Sat, Jul 4, 2020 at 11:47 PM Curtis Ullerich <curtuller...@gmail.com> wrote: > Thanks for the links! I implemented a GameTrak class that extends Event > and allows a simple wrapper Event to calculate velocity. I'll get it on > GitHub and share it with the list once I've exercised it a bit. > > On Fri, Jul 3, 2020 at 7:10 PM Michael Heuer <heue...@gmail.com> wrote: > >> Hello Curtis, >> >> I am not familiar with the GameTrak joystick specifically, but you may >> find USB NES, HID Joystick and Logitech F310 classes >> >> https://github.com/heuermh/lick/blob/master/lick/device/Nes.ck >> https://github.com/heuermh/lick/blob/master/lick/device/Joystick.ck >> >> https://github.com/heuermh/lick/blob/master/lick/device/LogitechGamepadF310.ck >> >> and examples >> >> https://github.com/heuermh/lick/blob/master/examples/nesExample.ck >> https://github.com/heuermh/lick/blob/master/examples/joystickDemo.ck >> https://github.com/heuermh/lick/blob/master/examples/gamepadTr808.ck >> >> in LiCK, a Library for Chuck. Hope these help! >> >> Cheers, >> >> michael >> >> >> On Jul 3, 2020, at 6:16 PM, Curtis Ullerich <curtuller...@gmail.com> >> wrote: >> >> Hi all, >> >> I'm experimenting with velocity patterns of GameTrak joysticks as event >> triggers. I'm curious if there's any prior art here. >> >> I'm working on a GameTrak class in ChucK that tracks the hand movement in >> space to add velocity and acceleration updates alongside the usual xyz >> position. >> >> In general, I've been surprised to not find much in the way of a GameTrak >> class/lib for ChucK, though I did find this one >> <https://github.com/rdpoor/chuck_performance_setup/blob/master/lib/game_trak.ck> >> . >> >> Curtis >> _______________________________________________ >> chuck-users mailing list >> chuck-users@lists.cs.princeton.edu >> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users >> >> >> _______________________________________________ >> chuck-users mailing list >> chuck-users@lists.cs.princeton.edu >> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users >> >
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users