From cf7fb8f64eb365c6ee2f7deb8d052747ef31ddcb Mon Sep 17 00:00:00 2001 From: jmoenig Date: Mon, 18 Mar 2019 15:36:51 +0100 Subject: [PATCH] updated ops for the new microphone dropdown names --- src/threads.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/threads.js b/src/threads.js index 36ab1a87..57003123 100644 --- a/src/threads.js +++ b/src/threads.js @@ -2254,20 +2254,20 @@ Process.prototype.doStopAllSounds = function () { Process.prototype.reportAudio = function (choice) { var stage = this.blockReceiver().parentThatIsA(StageMorph), selection = this.inputOption(choice); - if (selection === 'bins') { + if (selection === 'resolution') { return stage.microphone.binSize(); } if (stage.microphone.isOn()) { switch (selection) { case 'volume': return stage.microphone.volume * 100; - case 'pitch': + case 'frequency': return stage.microphone.pitch; case 'note': return stage.microphone.note; - case 'signals': + case 'samples': return new List(stage.microphone.signals); - case 'frequencies': + case 'spectrum': return new List(stage.microphone.frequencies); default: return null;