Using [js] to create normalized [buffer~]s?

tildamin's icon

[blank]

Emmanuel Jourdan's icon

I would do that using polybuffer~:

- send the readfolder message
- then, send 0 normalize 0.794328 (which sends the message normalize 0.794328 to every buffer~ objects).

you're done ;-)

Andrew Pask's icon

It's not JS, polybuffer~ is a whole new MSP object by EJ which does it all for you.

is your friend

There is no access to buffer~ data from JS anyway.

-A

Emmanuel Jourdan's icon

As Andrew mentioned, you won't be able to access to the samples directly in JavaScript. However you can probably script everything. For instance if you look at this.patcher.apply you should be able to iterate through the object, test theObject.maxclass to see if the object is a buffer~ and send the normalize message. Have fun.