W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Number of channels in the JavaScriptAudioNode

From: Chris Lowis <chris.lowis@bbc.co.uk>
Date: Tue, 03 Apr 2012 16:31:58 +0100
Message-ID: <4F7B17EE.6020609@bbc.co.uk>
To: public-audio@w3.org
Hi,

In the process of working up some simple synthesis examples, I've come 
across some behaviour I don't understand. Perhaps Chris, Raymond or 
someone familiar with the Web Audio API can help.

I'm trying to create a JavaScriptAudioNode that adds two mono signals 
together (generated by my javascript node-based sine wave generator).

When I execute:

   context = new webkitAudioContext
   node = context.createJavaScriptNode(1024, 2, 1)

I see that 'node' has

   numberOfInputs: 1
   numberOfOutputs: 1

(at least in Chrome 18.0.1025.142)

Is it possible at the moment to create javascript nodes with multiple 
inputs and outputs?

In general what's a good way of working with mono signals? I admit to 
being a little unsure of the best way to use the various splitter and 
merger nodes.

Best,

Chris
Received on Tuesday, 3 April 2012 15:32:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 15:32:19 GMT