squarefeet / audio.io-old

A (possibly overkill) web audio and MIDI helper library
https://github.com/squarefeet/audio.io
6 stars 2 forks source link

New (slightly more sensible) node id scheme (+ gitignore) #8

Closed srounce closed 11 years ago

srounce commented 11 years ago

Pretty straightforward, uses broofa's guid generator + some extra goodness for node id creation.

squarefeet commented 11 years ago

Nice addition, cheers! Like my comment above where the .id prop is assigned, I'm not quite sure whether I'm going to keep this yet (mainly because I don't know what I'd use it for!) I added it on a bit of whim thinking it might be useful in the future ;)

I'll merge it in, and should a need for it arise, it'll be there waiting. If you've got any ideas of a use-case, feel free to sound off.

Cheers!

squarefeet commented 11 years ago

Was just thinking of use-cases for audio.io.Node.id... Connecting nodes based on UUID. Might be useful when building synths/effects using a JSON schema (see the Issues page)...

srounce commented 11 years ago

Or even for a VVVV/MaxMSP/PD esque interface for audio synthesis?

squarefeet commented 11 years ago

I was thinking of going down that route when I first started writing this, but was daunted by the sheer amount of planning required to make it work smoothly...