From eaa29e7f6e66d3506d30252c3e8ff1e0e4f0eb80 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Thu, 22 Feb 2024 22:58:22 +0100 Subject: [PATCH] Fix: more robust sample playing --- Classes/BuboBoot.sc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/BuboBoot.sc b/Classes/BuboBoot.sc index 7f5c235..b6932c0 100644 --- a/Classes/BuboBoot.sc +++ b/Classes/BuboBoot.sc @@ -14,7 +14,7 @@ Boot { { "-> Booting using default server configuration".postln; s = Server.default; - s.options.numBuffers = 2048 * 256; + s.options.numBuffers = 2048 * 512; s.options.memSize = 8192 * 64; s.options.numWireBufs = 2048; s.options.maxNodes = 1024 * 32; @@ -42,7 +42,7 @@ Boot { this.samplePath = samplePath ? "/Users/bubo/.config/livecoding/samples"; // Setting up the audio samples/buffers manager - Bank.lazyLoading_(true); + Bank.lazyLoading = true; Bank.root = this.samplePath; // Post actions: installing behavior after server boot @@ -70,7 +70,7 @@ Boot { arg server; ~sp = ~sp ?? 'default'; ~nb = ~nb ?? 0; - ~buf = Bank(~sp)[~nb % Bank(~sp).buffers.size]; + ~buf = Bank(~sp)[~nb % Bank(~sp).paths.size]; if (~buf.numChannels == 1) { ~instrument = \player; } {