From c36b173bd8fb3a7d2352e25af649796429d576fc Mon Sep 17 00:00:00 2001 From: Julian Rohrhuber Date: Fri, 4 Mar 2016 21:41:12 +0100 Subject: [PATCH] dirt-event: add diversion again This fixes #7. --- classes/DirtEvent.sc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/classes/DirtEvent.sc b/classes/DirtEvent.sc index 8359e99c..72c65569 100644 --- a/classes/DirtEvent.sc +++ b/classes/DirtEvent.sc @@ -12,11 +12,15 @@ DirtEvent { play { event.use { + // s and n stand for synth/sample and note/number ~s ?? { this.splitName }; - this.getBuffer; - this.orderRange; - this.calcRange; - this.playSynths; + // unless diversion returns something, we proceed as usual + ~diversion.value ?? { + this.getBuffer; + this.orderRange; + this.calcRange; + this.playSynths; + } } }