updating buffer~ contents from javascript

Jul 17, 2012 at 11:02pm

updating buffer~ contents from javascript

Hi All,

Question: Does anyone know of a way to use values generated in a js object to fill a buffer~ object?

I am working on a patch where I:

(1) determine FIR coefficients in a javascript file
(2) load those coefficients into a buffer~ object
(3) use the buffir~ object to apply the filter

I am having a hard time with (2). It seems that buffer~ can only be filled by loading a file (wave, raw .. etc).


Jul 18, 2012 at 7:15am

you can try to output the values from the js object as a list and use [listfunnel] and [peek~] to write into a [buffer~].

Jul 19, 2012 at 9:23am

can you do some Java instead of JavaScript? it’s not much more complicated, and you gain direct access to buffer~ (see the buf.Op example) – plus much greater speed!



You must be logged in to reply to this topic.