diff --git a/BuboQuark.quark b/BuboQuark.quark index 6983ef4..e378bff 100644 --- a/BuboQuark.quark +++ b/BuboQuark.quark @@ -11,7 +11,7 @@ dependencies: [ "https://github.com/scztt/Singleton.quark", "https://github.com/scztt/Require.quark", - // "https://github.com/supercollider-quarks/BatLib", + "https://github.com/dmorgan-github/Pdv", "https://github.com/supercollider-quarks/Bjorklund", ], url: "https://raphaelforment.fr", diff --git a/Classes/BuboBoot.sc b/Classes/BuboBoot.sc index b3c013d..f66b2c3 100644 --- a/Classes/BuboBoot.sc +++ b/Classes/BuboBoot.sc @@ -8,7 +8,7 @@ Boot { *new { arg configPath, samplePath; var s = Server.default; - var p; var c; + var p; var c; var t; var banner = "┳┓ ┓ ┳┓\n" "┣┫┓┏┣┓┏┓ ┣┫┏┓┏┓╋\n" "┻┛┗┻┗┛┗┛ ┻┛┗┛┗┛┗"; @@ -19,7 +19,9 @@ Boot { // Using Ableton Link Clock for automatic synchronisation with other peers this.clock = LinkClock(130 / 60).latency_(Server.default.latency).permanent_(true); + TempoClock.default = this.clock; c = this.clock; + t = this.clock.tempo; // Defining the local path as default for configuration files if not configPath this.localPath = this.class.filenameSymbol.asString.dirname +/+ "Configuration"; @@ -47,6 +49,7 @@ Boot { StageLimiter.activate; this.fancyPrint(ready, 40); this.installServerTreeBehavior(); + this.clock.enableMeterSync(); }); } @@ -75,7 +78,7 @@ Boot { }, Server.default); Event.addEventType(\buboEvent, { arg server; - if (~sp.notNil && ~n.notNil, + if (~sp.notNil && ~n.notNil, { ~buf = Bank(~sp)[~n % Bank(~sp).buffers.size]; } ); ~type = \note; // back to note