sort small typos and clarify examples for alpha03

nix
Pierre Alexandre Tremblay 6 years ago
parent d327d57948
commit 80eca48f41

@ -44,5 +44,5 @@ EXAMPLES::
code:: code::
//the mouse X axis interpolates between the two sinewaves //the mouse X axis interpolates between the two sinewaves
{FluidAudioTransport.ar(SinOsc.ar(220),SinOsc.ar(440),MouseX.kr())}.play; {FluidAudioTransport.ar(SinOsc.ar(220,mul: 0.1),SinOsc.ar(440,mul: 0.02),MouseX.kr())}.play;
:: ::

@ -81,7 +81,7 @@ code::
//Make 2 sources to be interpolated //Make 2 sources to be interpolated
( (
b = Buffer.loadCollection(s, FloatArray.fill(44100, {|a|(a / pi).sin * 0.1})); b = Buffer.loadCollection(s, FloatArray.fill(44100, {|a|(a / pi).sin * 0.1}));
c = Buffer.loadCollection(s, FloatArray.fill(44100, {|a|(a / pi / 2).sin * 0.1})); c = Buffer.loadCollection(s, FloatArray.fill(44100, {|a|(a / pi / 2).sin * 0.02}));
d = Buffer.new d = Buffer.new
) )

@ -60,8 +60,8 @@ FluidBufThreadDemo.process(s, b, 1000, {|x|x.get(0,{|y|y.postln});});
// as the 'process' returns its parent UGen, we can cancel the process easily // as the 'process' returns its parent UGen, we can cancel the process easily
c = FluidBufThreadDemo.process(s, b, 100000, {|x|x.get(0,{|y|y.postln});}); c = FluidBufThreadDemo.process(s, b, 100000, {|x|x.get(0,{|y|y.postln});});
c.cancel c.cancel //it stops silently for now but check the synth count going down by 1.
// if a simple call to the UGen is used, the progress can be monitored // if a simple call to the UGen is used, the progress can be monitored. The usual cmd. will cancel the job by freeing the synth.
{c = FluidBufThreadDemo.kr(b,10000, Done.freeSelf); Poll.kr(Impulse.kr(2),c);}.scope; {c = FluidBufThreadDemo.kr(b,10000, Done.freeSelf); Poll.kr(Impulse.kr(2),c);}.scope;
:: ::

@ -61,7 +61,7 @@ a.reference_(Array.fill(13,{0.5})); //make a center line to show 0
//run the window updating routine. //run the window updating routine.
( (
~winRange = 500; ~winRange = 200;
r = Routine { r = Routine {
{ {
@ -89,7 +89,7 @@ x = {arg type = 0;
// change the wave types, observe the amplitude invariance of the descriptors, apart from the leftmost coefficient // change the wave types, observe the amplitude invariance of the descriptors, apart from the leftmost coefficient
x.set(\type, 1) x.set(\type, 1)
~winRange = 100; //adjust the range above and below 0 to zoom in or out on the MFCC ~winRange = 50; //adjust the range above and below 0 to zoom in or out on the MFCC
x.set(\type, 2) x.set(\type, 2)
x.set(\type, 0) x.set(\type, 0)
// free this source // free this source
@ -106,6 +106,7 @@ x = {arg bands = 40, low = 20, high = 20000;
source.dup; source.dup;
}.play; }.play;
) )
~winRange = 10; //adjust the range above and below 0 to zoom in or out on the MFCC
// observe the number of bands. The unused ones at the top are not updated // observe the number of bands. The unused ones at the top are not updated
x.set(\bands,20) x.set(\bands,20)

@ -89,11 +89,11 @@ Routine {
e.plot e.plot
//listen how the filter isolates each component and places them in each channel separately. //listen how the filter isolates each component and places them in each channel separately.
{FluidNMFFilter.ar(SinOsc.ar(500),e,2)}.play {FluidNMFFilter.ar(SinOsc.ar(500, mul: 0.1),e,2)}.play
{FluidNMFFilter.ar(SinOsc.ar(5000),e,2)}.play {FluidNMFFilter.ar(SinOsc.ar(5000, mul: 0.1),e,2)}.play
{FluidNMFFilter.ar(SinOsc.ar([500,5000]).sum,e,2)}.play {FluidNMFFilter.ar(SinOsc.ar([500,5000], mul: 0.1).sum,e,2)}.play
:: ::
STRONG::A guitar processor:: STRONG::A guitar processor::

Loading…
Cancel
Save