Skip to content

Commit

Permalink
ATK: Update Help Files for Multiple SRs
Browse files Browse the repository at this point in the history
contribution by @dmartinp
  • Loading branch information
joslloand committed Jul 2, 2016
1 parent 7ddac55 commit 974628e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions source/ATK/sc/HelpSource/Classes/FoaEncode.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -532,7 +532,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -610,7 +610,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -690,7 +690,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -770,7 +770,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -852,7 +852,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -925,7 +925,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down Expand Up @@ -994,7 +994,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf) doneAction:2); // soundfile

// ------------------------------------------------------------
// encode
Expand Down
8 changes: 4 additions & 4 deletions source/ATK/sc/HelpSource/Classes/FoaTransform.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// transform
Expand Down Expand Up @@ -214,7 +214,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// transform
Expand Down Expand Up @@ -507,7 +507,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile
sig = 0.5 * sig.sum; // to mono


Expand Down Expand Up @@ -853,7 +853,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile


// ------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions source/ATK/sc/HelpSource/Classes/FoaXform.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// transform
Expand Down Expand Up @@ -166,7 +166,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// delay, lp and gain
Expand Down Expand Up @@ -245,7 +245,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// transform
Expand Down
10 changes: 5 additions & 5 deletions source/ATK/sc/HelpSource/Guides/ATK-SynthDef-Examples.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ s.waitForBoot({
s.sync(cond);
SynthDef(\kernelDecode, {arg buffer;
var out, src;
src = PlayBuf.ar(4, buffer);
src = PlayBuf.ar(4, buffer, BufRateScale.kr(buffer));
out = FoaDecode.ar(src, ~decoder);
Out.ar(0, out);
}).add;
Expand All @@ -139,7 +139,7 @@ s.waitForBoot({
s.sync(cond);
SynthDef(\kernelEncodeDecode, {arg buffer;
var out, src, encode;
src = PlayBuf.ar(2, buffer);
src = PlayBuf.ar(2, buffer, BufRateScale.kr(buffer));
encode = FoaEncode.ar(src, ~encoder);
out = FoaDecode.ar(encode, ~decoder);
Out.ar(0, out);
Expand Down Expand Up @@ -183,7 +183,7 @@ s.waitForBoot({
s.sync(cond);
SynthDef(\kernelEncodeDecode, {arg buffer;
var out, src, encode;
src = PlayBuf.ar(2, buffer);
src = PlayBuf.ar(2, buffer, BufRateScale.kr(buffer));
encode = FoaEncode.ar(src, ~encoder);
out = FoaDecode.ar(encode, ~decoder);
Out.ar(0, out);
Expand Down Expand Up @@ -231,7 +231,7 @@ s.waitForBoot({
});
sd = CtkSynthDef(\kernelEncodeDecode, {arg buffer;
var out, src, encode;
src = PlayBuf.ar(2, buffer);
src = PlayBuf.ar(2, buffer, BufRateScale.kr(buffer));
encode = FoaEncode.ar(src, encoder);
out = FoaDecode.ar(encode, decoder);
Out.ar(0, out);
Expand All @@ -248,4 +248,4 @@ s.waitForBoot({
})
)

::
::
4 changes: 2 additions & 2 deletions source/ATK/sc/HelpSource/Guides/Intro-to-the-ATK.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile


// ------------------------------------------------------------
Expand Down Expand Up @@ -371,7 +371,7 @@ code::

// ------------------------------------------------------------
// test sig
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, doneAction:2); // soundfile
sig = PlayBuf.ar(~sndbuf.numChannels, ~sndbuf, BufRateScale.kr(~sndbuf), doneAction:2); // soundfile

// ------------------------------------------------------------
// transform
Expand Down

0 comments on commit 974628e

Please sign in to comment.