openmusic / openmusic.github.io

???
7 stars 0 forks source link

Multi-node components. #1

Open stephband opened 9 years ago

stephband commented 9 years ago

Hello. I have had a look through the repos here after Sole told us about this initiative at full frontal conf.

It's not clear to me how you intend to implement components that have more than one AudioNode.

My feeling is that it is a mistake to base components on a node simply so that we get .connect(my-component) functionality. That prevents us from writing components with a prototype chain, as well as risking future property name clashes with spec updates to AudioNode.

I would prefer to see something along the lines of nodes exposed as

.input .output

It's not beautiful, but it's safer and more flexible.

What are your thoughts?

sole commented 9 years ago

I've done it, and as I told you yesterday it didn't work for me. It's also not how Web Audio works. You can do it and get a feeling for that. You'll find yourself having to distinguish between which kind of node it is before you can connect it to another node. It gets tiring really soon!

stephband commented 9 years ago

Yes, I have also done it (at sound.io) and honestly I can't decide which way is better. They both have disadvantages. (Sorry, that last message said 'I prefer' the other way, I don't really - I'm undecided). I'd like to hear the arguments for and against.

On another note, here is the music JSON proposal I started to write at mozfest. Would you be interested in publishing that under openmusic? It seems a better place than my web agency's account.

stephband commented 9 years ago

https://github.com/cruncher/music-json-spec

sole commented 9 years ago

Thanks for the trust you're putting on openmusic but I do not want to take over responsibility over that spec, and the idea we had for this organisation was to provide smaller components, not specs. What about creating another organisation to host the spec?

You could also have other projects such as tests, player implementations, decoders etc, each one on its own repo under the same org dedicated to song formats.

stephband commented 9 years ago

Ok! :)