From ab0a046d9a1fc8b8de5a0d2a12900b9212e6cc4b Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 18 Dec 2008 16:51:48 +0000 Subject: [PATCH] updated helpfiles --- Help/AverageOutput.html | 6 +++--- Help/SwitchDelay.html | 30 ++++++++++++++++-------------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/Help/AverageOutput.html b/Help/AverageOutput.html index 78a41bb..3e231b7 100644 --- a/Help/AverageOutput.html +++ b/Help/AverageOutput.html @@ -14,7 +14,7 @@ p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica} p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica} p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; min-height: 16.0px} p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px} -p.p8 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #7a341d} +p.p8 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #6c3821} p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco} span.s1 {text-decoration: underline} @@ -37,8 +37,8 @@ span.s1 {text-decoration: underline}


Examples


-

// sine oscillator, average slowly settles to zero

-

a = { AverageOutput.ar(SinOsc.ar(10000)).poll }.play;

+

// stepper cycles between 0 and 5, average hovers around 2.5

+

a = { AverageOutput.kr(Stepper.kr(Impulse.kr(100), min: 0, max: 5)).poll }.play;


a.free;

diff --git a/Help/SwitchDelay.html b/Help/SwitchDelay.html index 724ad56..4eafad3 100644 --- a/Help/SwitchDelay.html +++ b/Help/SwitchDelay.html @@ -36,8 +36,7 @@ span.Apple-tab-span {white-space:pre}

http://crca.ucsd.edu/~msp/techniques/latest/book.pdf (chapter 4)


Altering the buffer read position, in order to affect the perceived delay speed/timing, creates a 

-

discontinuity in the signal, typically creating unwanted audible artefacts. SwitchDelay seeks to 

-

minimize these artefacts by use of the above technique. 

+

discontinuity in the signal, typically causing unwanted audible artefacts. The switch-and-ramp technique seeks to neutralise these artefacts and allow switching with minimal clicks. See examples.


input - a signal to be filtered

drylevel - level of dry signal (default: 1.0)

@@ -54,16 +53,17 @@ span.Apple-tab-span {white-space:pre}

s = Server.local.boot;

b = Buffer.read(s, "sounds/a11wlk01.wav");


-


// simple feedback delay

(

SynthDef('help-switchdelay-1', { arg out=0, bufnum;

Out.ar(out,

-

SwitchDelay.ar(

-

PlayBuf.ar(numChannels: 1, bufnum: bufnum, loop: 0) * 0.5,

-

delaytime: 0.2,

-

delayfactor: 0.85,

-

wetlevel: 0.7

+

Pan2.ar(

+

SwitchDelay.ar(

+

PlayBuf.ar(numChannels: 1, bufnum: bufnum, loop: 0) * 0.5,

+

delaytime: 0.4,

+

delayfactor: 0.6,

+

wetlevel: 0.7

+

)

)

);

}).send(s);

@@ -77,12 +77,14 @@ span.Apple-tab-span {white-space:pre}

(

SynthDef('help-switchdelay-2', { arg out=0, bufnum, delaytime;

Out.ar(out,

-

SwitchDelay.ar(

-

PlayBuf.ar(numChannels: 1, bufnum: bufnum, loop: 0) * 0.5,

-

wetlevel: 0.6,

-

delaytime: Select.kr(

-

Stepper.kr(Impulse.kr(0.5), 0, 0, 3),

-

#[ 0.02, 0.1, 0.725, 0.25 ] 

+

Pan2.ar(

+

SwitchDelay.ar(

+

PlayBuf.ar(numChannels: 1, bufnum: bufnum, loop: 0) * 0.5,

+

wetlevel: 0.6,

+

delaytime: Select.kr(

+

Stepper.kr(Impulse.kr(0.5), 0, 0, 3),

+

#[ 0.02, 0.1, 0.725, 0.25 ] 

+

)

)

)

);