XML Feeds

.

[javascript-dev] creating a buffer~ object in javascript

Jean-Baptiste Thiebaut pplato at gmail.com
Thu Jan 17 11:31:26 MST 2008


Hi,

I created a buffer in a patcher, called buf, which I'd like to manipulate in a jsui. I am not sure of the syntax I should use. Can anyone point me what I'm doing wrong in what follows?

var _buf= new Maxobj("buffer~", "buf");


_buf.message("clear"); // here I'd like to clear the buffer. I assumed that doing _buf.clear() would work but I had an error
	
_buf.channel = 1;  

for (var i = 0 ; i < 100 ; i++)
	_buf[i] = -1;	// my buffer has 4 channels, I want to write data in the first channel from my jsui file

Thanks

jean-Baptiste


More information about the javascript-dev mailing list