Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update operator documentation for single sample

  • Loading branch information...
commit f5ca39f99699e3f902a5895620392acacc98a912 1 parent 51d2f18
@oampo authored
View
2  src/operators/Add.js
@@ -31,7 +31,7 @@ var Add = function(audiolet, value) {
extend(Add, AudioletNode);
/**
- * Process a block of samples
+ * Process samples
*/
Add.prototype.generate = function() {
var input = this.inputs[0];
View
2  src/operators/Divide.js
@@ -31,7 +31,7 @@ var Divide = function(audiolet, value) {
extend(Divide, AudioletNode);
/**
- * Process a block of samples
+ * Process samples
*/
Divide.prototype.generate = function() {
var input = this.inputs[0];
View
2  src/operators/Modulo.js
@@ -31,7 +31,7 @@ var Modulo = function(audiolet, value) {
extend(Modulo, AudioletNode);
/**
- * Process a block of samples
+ * Process samples
*/
Modulo.prototype.generate = function() {
var input = this.inputs[0];
View
7 src/operators/MulAdd.js
@@ -35,12 +35,9 @@ var MulAdd = function(audiolet, mul, add) {
extend(MulAdd, AudioletNode);
/**
- * Process a block of samples
- *
- * @param {AudioletBuffer[]} inputBuffers Samples received from the inputs.
- * @param {AudioletBuffer[]} outputBuffers Samples to be sent to the outputs.
+ * Process samples
*/
-MulAdd.prototype.generate = function(inputBuffers, outputBuffers) {
+MulAdd.prototype.generate = function() {
var input = this.inputs[0];
var output = this.outputs[0];
View
7 src/operators/Multiply.js
@@ -31,12 +31,9 @@ var Multiply = function(audiolet, value) {
extend(Multiply, AudioletNode);
/**
- * Process a block of samples
- *
- * @param {AudioletBuffer[]} inputBuffers Samples received from the inputs.
- * @param {AudioletBuffer[]} outputBuffers Samples to be sent to the outputs.
+ * Process samples
*/
-Multiply.prototype.generate = function(inputBuffers, outputBuffers) {
+Multiply.prototype.generate = function() {
var value = this.value.getValue();
var input = this.inputs[0];
var numberOfChannels = input.samples.length;
View
2  src/operators/Reciprocal.js
@@ -24,7 +24,7 @@ var Reciprocal = function(audiolet) {
extend(Reciprocal, AudioletNode);
/**
- * Process a block of samples
+ * Process samples
*/
Reciprocal.prototype.generate = function() {
var input = this.inputs[0];
View
7 src/operators/Subtract.js
@@ -31,12 +31,9 @@ var Subtract = function(audiolet, value) {
extend(Subtract, AudioletNode);
/**
- * Process a block of samples
- *
- * @param {AudioletBuffer[]} inputBuffers Samples received from the inputs.
- * @param {AudioletBuffer[]} outputBuffers Samples to be sent to the outputs.
+ * Process samples
*/
-Subtract.prototype.generate = function(inputBuffers, outputBuffers) {
+Subtract.prototype.generate = function() {
var input = this.inputs[0];
var output = this.outputs[0];
View
4 src/operators/Tanh.js
@@ -25,9 +25,9 @@ var Tanh = function(audiolet) {
extend(Tanh, AudioletNode);
/**
- * Process a block of samples
+ * Process samples
*/
-Tanh.prototype.generate = function(inputBuffers, outputBuffers) {
+Tanh.prototype.generate = function() {
var input = this.inputs[0];
var output = this.outputs[0];
Please sign in to comment.
Something went wrong with that request. Please try again.