Commit fc26f9bb by Dr-Dan

### Replicant example working

parent 0160af9d
 ... @@ -415,7 +415,6 @@ double *maxiMix::ambisonic(double input,double eight[8],double x,double y,double ... @@ -415,7 +415,6 @@ double *maxiMix::ambisonic(double input,double eight[8],double x,double y,double void maxiMix::stereo(double input,vector& two,double x) { void maxiMix::stereo(double input,vector& two,double x) { if (x>1) x=1; if (x>1) x=1; if (x<0) x=0; if (x<0) x=0; // two.clear(); two[0]=input*sqrt(1.0-x); two[0]=input*sqrt(1.0-x); two[1]=input*sqrt(x); two[1]=input*sqrt(x); ... @@ -423,7 +422,7 @@ void maxiMix::stereo(double input,vector& two,double x) { ... @@ -423,7 +422,7 @@ void maxiMix::stereo(double input,vector& two,double x) { } } //quad bus //quad bus vector maxiMix::quad(double input,vector four, double x,double y) { void maxiMix::quad(double input,vector& four, double x,double y) { if (x>1) x=1; if (x>1) x=1; if (x<0) x=0; if (x<0) x=0; if (y>1) y=1; if (y>1) y=1; ... @@ -432,11 +431,11 @@ vector maxiMix::quad(double input,vector four, double x,double y ... @@ -432,11 +431,11 @@ vector maxiMix::quad(double input,vector four, double x,double y four[1]=input*sqrt((1.0-x)*(1.0-y)); four[1]=input*sqrt((1.0-x)*(1.0-y)); four[2]=input*sqrt(x*y); four[2]=input*sqrt(x*y); four[3]=input*sqrt(x*(1.0-y)); four[3]=input*sqrt(x*(1.0-y)); return(four); // return(four); } } //ambisonic bus //ambisonic bus vector maxiMix::ambisonic(double input,vector eight,double x,double y,double z) { void maxiMix::ambisonic(double input,vector& eight,double x,double y,double z) { if (x>1) x=1; if (x>1) x=1; if (x<0) x=0; if (x<0) x=0; if (y>1) y=1; if (y>1) y=1; ... @@ -451,7 +450,7 @@ vector maxiMix::ambisonic(double input,vector eight,double x,dou ... @@ -451,7 +450,7 @@ vector maxiMix::ambisonic(double input,vector eight,double x,dou eight[5]=input*(sqrt((1.0-x)*(1.0-y))*z); eight[5]=input*(sqrt((1.0-x)*(1.0-y))*z); eight[6]=input*sqrt((x*y)*z); eight[6]=input*sqrt((x*y)*z); eight[7]=input*sqrt((x*(1.0-y))*z); eight[7]=input*sqrt((x*(1.0-y))*z); return(eight); // return(eight); } } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- ... ...
This diff is collapsed.
 ... @@ -68,7 +68,7 @@ var outputErrorLogged = false; ... @@ -68,7 +68,7 @@ var outputErrorLogged = false; function process(event) { function process(event) { var numChannels = event.outputBuffer.numberOfChannels; var numChannels = event.outputBuffer.numberOfChannels; var outputLength = event.outputBuffer.getChannelData(0).length; var outputLength = event.outputBuffer.getChannelData(0).length; console.log(numChannels); // console.log(numChannels); for (var i = 0; i < outputLength; ++i) { for (var i = 0; i < outputLength; ++i) { play(); play(); ... ...
 Javascript Audio Processing

Sample Example

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!