From 80eca48f41a994de9fb6c76eecad02d702705178 Mon Sep 17 00:00:00 2001 From: Pierre Alexandre Tremblay Date: Fri, 12 Jun 2020 14:43:07 +0100 Subject: [PATCH] sort small typos and clarify examples for alpha03 --- .../HelpSource/Classes/FluidAudioTransport.schelp | 2 +- .../HelpSource/Classes/FluidBufAudioTransport.schelp | 2 +- .../HelpSource/Classes/FluidBufThreadDemo.schelp | 4 ++-- release-packaging/HelpSource/Classes/FluidMFCC.schelp | 5 +++-- release-packaging/HelpSource/Classes/FluidNMFFilter.schelp | 6 +++--- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/release-packaging/HelpSource/Classes/FluidAudioTransport.schelp b/release-packaging/HelpSource/Classes/FluidAudioTransport.schelp index d973cd8..b8099e6 100644 --- a/release-packaging/HelpSource/Classes/FluidAudioTransport.schelp +++ b/release-packaging/HelpSource/Classes/FluidAudioTransport.schelp @@ -44,5 +44,5 @@ EXAMPLES:: code:: //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; :: diff --git a/release-packaging/HelpSource/Classes/FluidBufAudioTransport.schelp b/release-packaging/HelpSource/Classes/FluidBufAudioTransport.schelp index eea567a..6177727 100644 --- a/release-packaging/HelpSource/Classes/FluidBufAudioTransport.schelp +++ b/release-packaging/HelpSource/Classes/FluidBufAudioTransport.schelp @@ -81,7 +81,7 @@ code:: //Make 2 sources to be interpolated ( 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 ) diff --git a/release-packaging/HelpSource/Classes/FluidBufThreadDemo.schelp b/release-packaging/HelpSource/Classes/FluidBufThreadDemo.schelp index 99427b3..ea798a9 100644 --- a/release-packaging/HelpSource/Classes/FluidBufThreadDemo.schelp +++ b/release-packaging/HelpSource/Classes/FluidBufThreadDemo.schelp @@ -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 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; :: diff --git a/release-packaging/HelpSource/Classes/FluidMFCC.schelp b/release-packaging/HelpSource/Classes/FluidMFCC.schelp index 4fb62cf..b799bbb 100644 --- a/release-packaging/HelpSource/Classes/FluidMFCC.schelp +++ b/release-packaging/HelpSource/Classes/FluidMFCC.schelp @@ -61,7 +61,7 @@ a.reference_(Array.fill(13,{0.5})); //make a center line to show 0 //run the window updating routine. ( -~winRange = 500; +~winRange = 200; 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 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, 0) // free this source @@ -106,6 +106,7 @@ x = {arg bands = 40, low = 20, high = 20000; source.dup; }.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 x.set(\bands,20) diff --git a/release-packaging/HelpSource/Classes/FluidNMFFilter.schelp b/release-packaging/HelpSource/Classes/FluidNMFFilter.schelp index a5efa31..fbe8375 100644 --- a/release-packaging/HelpSource/Classes/FluidNMFFilter.schelp +++ b/release-packaging/HelpSource/Classes/FluidNMFFilter.schelp @@ -89,11 +89,11 @@ Routine { e.plot //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::