2014-09-24 18:44:56 +00:00
|
|
|
define(["Tone/core/Tone", "Tone/signal/EqualZero"], function(Tone){
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
/**
|
2015-06-19 04:52:04 +00:00
|
|
|
* @class Just an alias for Tone.EqualZero, but has the same effect as a NOT operator.
|
2014-09-24 18:44:56 +00:00
|
|
|
* Outputs 1 when input equals 0.
|
|
|
|
*
|
|
|
|
* @constructor
|
2014-12-01 04:26:06 +00:00
|
|
|
* @extends {Tone.SignalBase}
|
2015-02-27 18:40:35 +00:00
|
|
|
* @example
|
2015-06-14 05:17:09 +00:00
|
|
|
* 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.
|
2014-09-24 18:44:56 +00:00
|
|
|
*/
|
|
|
|
Tone.NOT = Tone.EqualZero;
|
|
|
|
|
|
|
|
return Tone.NOT;
|
|
|
|
});
|