Forums > MaxMSP

js & buffer~


kb
May 25, 2008 | 12:56 pm

Hi,

is there a way to directly accede to buffer~ samples through
javascript (js object)?? reading a least?
I think it would be pretty useful with javascript arrays and there
methods…

Best,
Karim

PS: I am trying to locate precisely n maximums in a buffer~ ( -> [abs
0.]), by constructing a list of n time stamps (the samples indexes of
the maximums). I’m using uzi -> peek~ to proceed through the buffer~,
and then -> js liste_maxima (a js script of mine) to register the
maximum values in an array that I sort, but it crashes with uzi,
which I guess goes far to fast for my poor script… That’s one the
reasons I’d like so much to directly read in a buffer~, without
having to use peek~.


Viewing 1 post (of 1 total)