GainNode with gain > 1

Chris,

The spec is unclear on what happens if the gain is set to greater than unity on a GainNode. It does say that such values are allowed and that no exception is thrown, but it also says the parameter has a "nominal maxValue of 1" which casts a little doubt on the expected behavior.

It seems to me that GainNode should support greater-than-unity gain values. Obviously this, could lead to clipping or other problems depending on the nature of the input signal but that feels a bit overprotective and amounts to second-guessing the developer. It could be that upstream processing yields a signal known to be attenuated, and that the GainNode is just applying an amplifying correction.

What was the intention behind the wording in the spec?

Best,

.            .       .    .  . ...Joe

Joe Berkovitz
President

Noteflight LLC
Boston, Mass.
phone: +1 978 314 6271
www.noteflight.com
"Your music, everywhere"

Received on Monday, 6 May 2013 14:45:17 UTC