Use safetynet by default

This commit is contained in:
2024-01-04 01:11:11 +01:00
parent 9efa3246b4
commit 88420b0cbc
3 changed files with 7 additions and 5 deletions

View File

@ -13,6 +13,7 @@
"https://github.com/scztt/Require.quark",
"https://github.com/dmorgan-github/Pdv",
"https://github.com/supercollider-quarks/Bjorklund",
"https://github.com/adcxyz/SafetyNet",
],
url: "https://raphaelforment.fr",
isCompatible: {Main.versionAtLeast(3, 1)},

View File

@ -46,7 +46,7 @@ Boot {
Server.default.waitForBoot({
"-> Loading config from: %".format(configPath ? (this.localPath +/+ "Startup.scd")).postln;
(configPath ? (this.localPath +/+ "Startup.scd")).load;
StageLimiter.activate;
// StageLimiter.activate; // NOTE: replaced by SafetyNet
this.fancyPrint(ready, 40);
this.installServerTreeBehavior();
this.clock.enableMeterSync();

View File

@ -13,11 +13,12 @@ f.vardel = {
};
(
z = SynthDef.new(\sampler, {
arg buf, out=0, freq=440, rate=1, amp=1, pan=0, attack=0.01, release=1, loop=0;
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;
var sig;
var env = EnvGen.ar(Env.perc(attack, release, doneAction: 2));
var startPos = 0;
var startPos = begin * BufFrames.kr(buf);
var endPos = end * BufFrames.kr(buf); // TODO: unused
sig = PlayBuf.ar(
numChannels: 1,
bufnum: buf,
@ -28,7 +29,7 @@ f.vardel = {
sig = Pan2.ar(sig * env, pan);
OffsetOut.ar(out, sig)
}).add;
d.sampler = z;
d.s = z;
);
(