W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Arithmetic Nodes

From: Chris Lowis <chris.lowis@bbc.co.uk>
Date: Mon, 1 Jul 2013 14:45:15 +0100
To: WebAudio <public-audio@w3.org>
Message-ID: <m0fvvy8kd0.fsf@bbc.co.uk>

Would it be useful to add some very basic arithmetic nodes to the Web
Audio API?

I'm thinking:
 - addition
 - multiplication
 - subtraction
 - division
 - comparison (1 (HIGH) when A > B, -1 (LOW) otherwise)

These nodes could be restricted to taking two inputs for simplicity, and
performing their arithmetic in a channel-wise fashion. I appreciate that
we have 'addition' implicity by summing-on-input on other nodes. I guess
a ScriptProcessorNode can perform all of these operations, but they seem
fundamental enough to include in the core set of nodes.

I think this request has been raised before. I'd be happy to write a
proposed specification if that would help?



This e-mail (and any attachments) is confidential and 
may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in 
error, please delete it from your system.
Do not use, copy or disclose the 
information in any way nor act in reliance on it and notify the sender 
Please note that the BBC monitors e-mails 
sent or received.
Further communication will signify your consent to 
Received on Monday, 1 July 2013 13:45:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:22 UTC