trying something

This commit is contained in:
2024-01-04 16:32:45 +01:00
parent 61d2c77b6d
commit a8c4e3c780
2 changed files with 1 additions and 41 deletions

View File

@ -4,7 +4,6 @@ Boot {
classvar <>localPath;
classvar <>samplePath;
*new {
arg configPath, samplePath, soundDevice;
var s = Server.default;
@ -31,7 +30,7 @@ Boot {
s.options.memSize = 8192 * 64;
s.options.numWireBufs = 2048;
s.options.maxNodes = 1024 * 32;
(if soundDevice != nil, { s.options.device = soundDevice });
soundDevice ? s.options.device = soundDevice;
s.options.numOutputBusChannels = 16;
s.options.numInputBusChannels = 16;

View File

@ -1,39 +0,0 @@
//Batuhan Bozkurt 2009
StageLimiter
{
classvar lmSynth, lmFunc, activeSynth;
*activate
{ |numChannels = 2|
fork
{
lmFunc =
{
{
activeSynth =
Synth(\stageLimiter,
target: RootNode(Server.default),
addAction: \addToTail
);
}.defer(0.01)
};
lmSynth = SynthDef(\stageLimiter,
{
var input = In.ar(0, numChannels);
input = Select.ar(CheckBadValues.ar(input, 0, 0), [input, DC.ar(0), DC.ar(0), input]);
ReplaceOut.ar(0, Limiter.ar(input)) ;
}).add;
Server.default.sync;
lmFunc.value;
CmdPeriod.add(lmFunc);
"StageLimiter active".postln;
}
}
*deactivate
{
activeSynth.free;
CmdPeriod.remove(lmFunc);
"StageLimiter inactive...".postln;
}
}