mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
21 lines
No EOL
508 B
JavaScript
21 lines
No EOL
508 B
JavaScript
define(["Tone/core/Tone", "Tone/signal/EqualZero"], function(Tone){
|
|
|
|
"use strict";
|
|
|
|
/**
|
|
* @class Just an alias for 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;
|
|
}); |