From 5563b245f54643486c95d218b4fe8f66f9309774 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Sun, 31 Dec 2023 12:47:01 +0100 Subject: [PATCH] bugfixes --- Classes/BuboArray.sc | 4 ++++ Classes/BuboBoot.sc | 4 +++- Classes/Configuration/Synthdefs.scd | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Classes/BuboArray.sc b/Classes/BuboArray.sc index 0dc0544..775918d 100644 --- a/Classes/BuboArray.sc +++ b/Classes/BuboArray.sc @@ -51,4 +51,8 @@ pwhite { arg repeats=inf; ^Pwhite(this[0], this[1], repeats); } + + pseries { arg repeats=inf; + ^Pseries(this[0], this[1], repeats); + } } diff --git a/Classes/BuboBoot.sc b/Classes/BuboBoot.sc index 6560f46..b3c013d 100644 --- a/Classes/BuboBoot.sc +++ b/Classes/BuboBoot.sc @@ -75,7 +75,9 @@ Boot { }, Server.default); Event.addEventType(\buboEvent, { arg server; - ~buf = Bank(~sp)[~n]; + if (~sp.notNil && ~n.notNil, + { ~buf = Bank(~sp)[~n % Bank(~sp).buffers.size]; } + ); ~type = \note; // back to note currentEnvironment.play; }); diff --git a/Classes/Configuration/Synthdefs.scd b/Classes/Configuration/Synthdefs.scd index 5e5bf9b..96d9d43 100644 --- a/Classes/Configuration/Synthdefs.scd +++ b/Classes/Configuration/Synthdefs.scd @@ -26,7 +26,7 @@ f.vardel = { loop:loop, doneAction: 2); sig = sig * amp; sig = Pan2.ar(sig * env, pan); - Out.ar(out, sig); + OffsetOut.ar(out, sig) }).add; d.sampler = z; );