From 419ec811180089ed5db4cc3dbd9a5425d8496279 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 24 Jul 2016 20:02:25 +0200 Subject: classes/Bowelyzer.sc: Merging classes/BowelyzerOSCHub.sc into classes/Bowelyzer.sc to have easier access to the configuration during message parsing. --- classes/Bowelyzer.sc | 116 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 92 insertions(+), 24 deletions(-) diff --git a/classes/Bowelyzer.sc b/classes/Bowelyzer.sc index f286587..98817fe 100644 --- a/classes/Bowelyzer.sc +++ b/classes/Bowelyzer.sc @@ -1,6 +1,6 @@ Bowelyzer{ - var = range[0]) && (pitch <= range[1]),{ + localAddr.sendMsg("/indicate", name.asString.replace("/","").asSymbol); + if(forwardAddr.isLocal && (forwardAddr.port == NetAddr.langPort), { + postln(name++": amplitude: "++amplitude++"; pitch: "++pitch++"; hasPitch: "++hasPitch++"; onSet: "++onsetDetect); + },{ + forwardAddr.sendMsg(name, amplitude, pitch, hasPitch, onsetDetect); + }); + }); + }); + } } -- cgit v1.2.3-70-g09d2