update again
This commit is contained in:
@ -6,7 +6,7 @@ Boot {
|
|||||||
|
|
||||||
|
|
||||||
*new {
|
*new {
|
||||||
arg configPath, samplePath;
|
arg configPath, samplePath, soundDevice;
|
||||||
var s = Server.default;
|
var s = Server.default;
|
||||||
var p; var c; var t;
|
var p; var c; var t;
|
||||||
var banner = "┳┓ ┓ ┳┓\n"
|
var banner = "┳┓ ┓ ┳┓\n"
|
||||||
@ -31,7 +31,7 @@ Boot {
|
|||||||
s.options.memSize = 8192 * 64;
|
s.options.memSize = 8192 * 64;
|
||||||
s.options.numWireBufs = 2048;
|
s.options.numWireBufs = 2048;
|
||||||
s.options.maxNodes = 1024 * 32;
|
s.options.maxNodes = 1024 * 32;
|
||||||
s.options.device = "BlackHole 16ch";
|
(if soundDevice != nil, { s.options.device = soundDevice });
|
||||||
s.options.numOutputBusChannels = 16;
|
s.options.numOutputBusChannels = 16;
|
||||||
s.options.numInputBusChannels = 16;
|
s.options.numInputBusChannels = 16;
|
||||||
|
|
||||||
@ -46,7 +46,6 @@ Boot {
|
|||||||
Server.default.waitForBoot({
|
Server.default.waitForBoot({
|
||||||
"-> Loading config from: %".format(configPath ? (this.localPath +/+ "Startup.scd")).postln;
|
"-> Loading config from: %".format(configPath ? (this.localPath +/+ "Startup.scd")).postln;
|
||||||
(configPath ? (this.localPath +/+ "Startup.scd")).load;
|
(configPath ? (this.localPath +/+ "Startup.scd")).load;
|
||||||
// StageLimiter.activate; // NOTE: replaced by SafetyNet
|
|
||||||
Safety.setLimit(0.8);
|
Safety.setLimit(0.8);
|
||||||
this.fancyPrint(ready, 40);
|
this.fancyPrint(ready, 40);
|
||||||
this.installServerTreeBehavior();
|
this.installServerTreeBehavior();
|
||||||
@ -87,5 +86,4 @@ Boot {
|
|||||||
currentEnvironment.play;
|
currentEnvironment.play;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
fx {
|
fx {
|
||||||
arg number=1, wet=1, function = {|in| in};
|
arg number=1, wet=1, function = {|in| in};
|
||||||
this[number] = \filter -> function;
|
this[number] = \filter -> function;
|
||||||
|
if (wet > 1, {wet = 1});
|
||||||
this.set(("wet" ++ number).asSymbol, wet);
|
this.set(("wet" ++ number).asSymbol, wet);
|
||||||
^this;
|
^this;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,6 +12,9 @@ f.vardel = {
|
|||||||
SinOsc.ar(c.beatDur * 4).range(500, 2000));
|
SinOsc.ar(c.beatDur * 4).range(500, 2000));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is the sampler used for 90% of sampling duties.
|
||||||
|
*/
|
||||||
(
|
(
|
||||||
z = SynthDef.new(\s, {
|
z = SynthDef.new(\s, {
|
||||||
arg buf, out=0, freq=440, rate=1, amp=1, begin=0, end=1, pan=0, attack=0.01, release=1, loop=0;
|
arg buf, out=0, freq=440, rate=1, amp=1, begin=0, end=1, pan=0, attack=0.01, release=1, loop=0;
|
||||||
@ -20,7 +23,7 @@ f.vardel = {
|
|||||||
var startPos = begin * BufFrames.kr(buf);
|
var startPos = begin * BufFrames.kr(buf);
|
||||||
var endPos = end * BufFrames.kr(buf); // TODO: unused
|
var endPos = end * BufFrames.kr(buf); // TODO: unused
|
||||||
sig = PlayBuf.ar(
|
sig = PlayBuf.ar(
|
||||||
numChannels: 1,
|
numChannels: 2,
|
||||||
bufnum: buf,
|
bufnum: buf,
|
||||||
rate:BufRateScale.kr(buf) * (rate * freq / 60.midicps),
|
rate:BufRateScale.kr(buf) * (rate * freq / 60.midicps),
|
||||||
trigger: 1, startPos:startPos,
|
trigger: 1, startPos:startPos,
|
||||||
|
|||||||
Reference in New Issue
Block a user