From d2923d3e0c0682e004f1090ed6cbb4c70d1a7c3d Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Sat, 6 Jan 2024 19:24:59 +0100 Subject: [PATCH] adding yet another way to control fx --- Classes/BuboFunction.sc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Classes/BuboFunction.sc b/Classes/BuboFunction.sc index 78408ca..da5d8fb 100644 --- a/Classes/BuboFunction.sc +++ b/Classes/BuboFunction.sc @@ -5,4 +5,22 @@ ^Pfunc(this, inf) } + fx { + arg nodeProxyName, number, wet=1; + if (wet > 1, {wet = 1}); + nodeProxyName[number] = \filter -> this; + nodeProxyName.set(("wet" ++ number).asSymbol, wet); + ^nodeProxyName; + } + + fx1 {arg n, w=1; this.fx(n, 100, w) } + fx2 {arg n, w=1; this.fx(n, 200, w) } + fx3 {arg n, w=1; this.fx(n, 300, w) } + fx4 {arg n, w=1; this.fx(n, 400, w) } + fx5 {arg n, w=1; this.fx(n, 500, w) } + fx6 {arg n, w=1; this.fx(n, 600, w) } + fx7 {arg n, w=1; this.fx(n, 700, w) } + fx8 {arg n, w=1; this.fx(n, 800, w) } + fx9 {arg n, w=1; this.fx(n, 900, w) } + }