errors in the help files

nix
Pierre Alexandre Tremblay 6 years ago
parent 72f5982443
commit 5277b37d2a

@ -137,7 +137,4 @@ code::
~outputSynth.play(~regressor.synth,addAction:\addAfter);
~outputSynth.scope
)
::

@ -143,7 +143,7 @@ FluidBufPitch.process(s,~audio, features: ~pitch_feature);
//average 100 frames: one could use the MovingAverage extension here
var avg;
BufWr.kr(FluidPitch.kr(audio),~avgBuf,phase:counter);
avg = Mix.new(BufRd.kr(2, ~avgBuf, phase:100.collect{|x|x})) * 0.1;
avg = Mix.new(BufRd.kr(2, ~avgBuf, phase:100.collect{|x|x})) * 0.01;
//assemble data point
BufWr.kr(avg[0],~tempPoint,0);
BufWr.kr(avg[1],~tempPoint,1);

@ -71,7 +71,7 @@ s.boot;
~stats = Buffer.alloc(s, 7, 12);
~datapoint = Buffer.alloc(s, 12);
~standardizer = FluidStandardize(s);
~pca = FluidPCA(s);
~pca = FluidPCA(s,2);
)
@ -111,12 +111,12 @@ FluidBufMFCC.process(s,~audio, features: ~mfcc_feature);
(
~reducedarray = Array.new(100);
~standardizer.fitTransform(~raw, ~standardized);
~pca.fitTransform(~standardized, ~reduced, 2, action:{
~pca.fitTransform(~standardized, ~reduced, action:{
~reduced.dump{|x| 100.do{|i|
~reducedarray.add(x["data"][i.asString])
}};
});
// wait for the post window to acknoledge the job is done.
)
//Visualise the 2D projection of our original 12D data

@ -138,7 +138,7 @@ code::
//average 10 frames: one could use the MovingAverage extension here
var avg;
BufWr.kr(FluidPitch.kr(audio),~avgBuf,phase:counter);
avg = Mix.new(BufRd.kr(2, ~avgBuf, phase:100.collect{|x|x})) * 0.1;
avg = Mix.new(BufRd.kr(2, ~avgBuf, phase:100.collect{|x|x})) * 0.01;
//assemble data point
BufWr.kr(avg[0],~tempPoint,0);
BufWr.kr(avg[1],~tempPoint,1);

Loading…
Cancel
Save