Forums > MaxMSP

Smoothing a data stream from p5 glove

October 12, 2006 | 3:56 pm

I am using a P5 glove ported from usb to MAX using open sound control to track X, Y and Z co-ordinates. However the numbers are kinda jerky.

I have created a patch that,using the LCD object, visually tracks the gloves position onscreen for live performance (i cant afford jitter! ) using the raw data from the P5 glove however it is etremely jittery.

I have managed to smooth it out slightly using ‘speedlim’ followed by a ‘line’ object however it is still quite jittery.

I intially created a gate that would block any numbers in the stream that weren’t incremental/decremental by 1-3 steps, however this turned out to be a rubish idea as when i moved the glove too fast the gate just closed until i returned to the position at which the gate was last open.(to do with the sample rate of the glove-hardware issue)

i also tried buffering streams of numbers and analysing them for patterns to filter out "anomilous" results but this created too much of a time lag between moving the glove and seing it onscreen.

Does anyone know any good ways to smooth out a data stream in real time.

cheers
Will
http://www.willchadwick.com


October 12, 2006 | 4:08 pm

i have a p5, and I’ve found the slide object useful or smoothing.

v a d e //

http://www.vade.info
abstrakt.vade.info

On Oct 12, 2006, at 11:56 AM, WillChadwick wrote:

>
> I am using a P5 glove ported from usb to MAX using open sound
> control to track X, Y and Z co-ordinates. However the numbers are
> kinda jerky.
>
> I have created a patch that,using the LCD object, visually tracks
> the gloves position onscreen for live performance (i cant afford
> jitter! ) using the raw data from the P5 glove however it is
> etremely jittery.
>
> I have managed to smooth it out slightly using ‘speedlim’ followed
> by a ‘line’ object however it is still quite jittery.
>
> I intially created a gate that would block any numbers in the
> stream that weren’t incremental/decremental by 1-3 steps, however
> this turned out to be a rubish idea as when i moved the glove too
> fast the gate just closed until i returned to the position at which
> the gate was last open.(to do with the sample rate of the glove-
> hardware issue)
>
> Does anyone know any good ways to smooth out a data stream without
> creating a time lag?


October 13, 2006 | 7:38 pm

>
> Does anyone know any good ways to smooth out a data stream in real time.
>

Taking a running average, but that adds latency.

lbyl is a cool object for exactly this purpose:

http://www.cnmat.berkeley.edu/MAX/downloads/

mz


Viewing 3 posts - 1 through 3 (of 3 total)