[javascript-dev] creating a buffer~ object in javascript
barry threw
bthrew at gmail.com
Mon Jan 21 08:48:17 MST 2008
- Previous message: [javascript-dev] creating a buffer~ object in javascript
- Next message: [javascript-dev] Re: creating a buffer~ object in javascript
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can't create a buffer~ in JS. :(
No MSP.
b
On Jan 17, 2008, at 10:31 AM, Jean-Baptiste Thiebaut wrote:
>
> 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
> _______________________________________________
> javascript-dev mailing list
> javascript-dev at cycling74.com
> http://www.cycling74.com/mailman/listinfo/javascript-dev
--
Barry Threw
Media Art and Technology
San Francisco, CA
Work: 857-544-3967
Email: bthrew (at) gmail (dot) com
IM: captogreadmore (AIM)
http://www.barrythrew.com
"The greatest of the changes that science has brought us is the acuity
of change; the greatest novelty the extent of novelty."
- J. Robert Oppenheimer
- Previous message: [javascript-dev] creating a buffer~ object in javascript
- Next message: [javascript-dev] Re: creating a buffer~ object in javascript
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
