Re: Thoughts and questions on the API from a modular synth point of view

On Wed, Jul 18, 2012 at 4:29 AM, Peter van der Noord
<peterdunord@gmail.com>wrote:

> >  AudioParam.name was removed:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=17397
> Why was it removed? I can't see any harm in it being there if someone
> doesn't use it.
>

For one thing, in a professional application you'd probably want to be able
to display the node names in languages other than English, so
node.namewon't be very useful to real applications.

In lieu of that, can do something hacky like node.toString() and use a
regexp to extract the name from the returned string (which will be
something like "[object AudioGainNode]").

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]

Received on Thursday, 19 July 2012 04:55:13 UTC