Tone.js/Tone/signal/NOT.js
2015-06-19 00:52:04 -04:00

21 lines
No EOL
508 B
JavaScript

define(["Tone/core/Tone", "Tone/signal/EqualZero"], function(Tone){
"use strict";
/**
* @class Just an alias for Tone.EqualZero, but has the same effect as a NOT operator.
* Outputs 1 when input equals 0.
*
* @constructor
* @extends {Tone.SignalBase}
* @example
* var not = new Tone.NOT();
* var sig = new Tone.Signal(1).connect(not);
* //output of not equals 0.
* sig.value = 0;
* //output of not equals 1.
*/
Tone.NOT = Tone.EqualZero;
return Tone.NOT;
});