From d0a2da650e8551f5e40b7b432738c27b345b33ec Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 5 Jul 2016 21:13:31 +0200 Subject: classes/BowelyzerOSCHub.sc: Streamlining the output of a local forward. Fixing onsetDetect value. --- classes/BowelyzerOSCHub.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/BowelyzerOSCHub.sc b/classes/BowelyzerOSCHub.sc index 8e6bf52..d8dd263 100644 --- a/classes/BowelyzerOSCHub.sc +++ b/classes/BowelyzerOSCHub.sc @@ -71,11 +71,11 @@ BowelyzerOSCHub{ amplitude = msg[3], pitch = msg[4], hasPitch = msg[5], - onsetDetect = msg[7]; + onsetDetect = msg[6]; if(amplitude != 0,{ local.sendMsg("/indicate", msg[0].asString.replace("/","").asSymbol); if(forward.isLocal && (forward.port == NetAddr.langPort), { - postln(msg[0]++" (amplitude: "++amplitude++"; pitch: "++pitch++"; has pitch: "++hasPitch); + postln(msg[0]++": amplitude: "++amplitude++"; pitch: "++pitch++"; hasPitch: "++hasPitch++"; onSet: "++onsetDetect); },{ forward.sendMsg(name, amplitude, pitch, hasPitch, onsetDetect); }); -- cgit v1.2.3-70-g09d2