<![CDATA[Sound Spectrum Analyzer]]> false false false false false false false true true false ]]> ./sound_analyzer/Screen Shot 2018-08-07 at 11.36.14 AM (2).png ./01authorFelix_J_Garcia_Clemente.png;./01authorleongtzekwang.png;./01authorlookang50x50.png 20 1 false VARIABLE_EDITOR Vars true false VARIABLE_EDITOR lookang true false CODE_EDITOR initAudiothroughmouseclick true false CODE_EDITOR Initialization true false CODE_EDITOR yellow true false EVOLUTION_EDITOR evolution true false maximumX) continue; // initialization var pre = i-areaShadow/2; if (pre < 0) pre = 0; var end = i+areaShadow/2; if (end > dataArray.length) end = dataArray.length; // find peak in current values and previous ones var isPeak = true; for (var j=pre; j minDecibels) { for (var j=0; j outp[j]) { var tmp = outp[j]; outp[j] = value; value = tmp; } } } } // update text values for (var k=0; k minDecibels) { var peakToShow = false; console.log('---'); for (var j=0; j dbArray[i]) { xlabel[ct] = freqArray[i]; ylabel[ct] = peakArray[i] + 1; //higher by 1 tlabel[ct] = Math.round(freqArray[i])+"Hz"; // text of shadows ct++; } } else { peakArray[i] = minDecibels; } } } ]]> LIBRARY_EDITOR UserMedia true false LIBRARY_EDITOR changeOrientation true false LIBRARY_EDITOR fftSize true false HTML_VIEW_EDITOR HtmlView Page true false 0 0 0 800 600 true true Elements.Panel true Elements.Panel Elements.Label Sound Analyzer"]]> true Elements.Panel Elements.Label Elements.ComboBox 0)? opts[0]:""; // selected option if (option=="1024"){ _view.fftSizeBox.setSelectedOptions([option]); } else if (option=="2048"){ _view.fftSizeBox.setSelectedOptions([option]); } else if (option=="4096"){ _view.fftSizeBox.setSelectedOptions([option]); } else if (option=="8192"){ _view.fftSizeBox.setSelectedOptions([option]); } else if (option=="16384"){ _view.fftSizeBox.setSelectedOptions([option]); } else if (option=="32768"){ _view.fftSizeBox.setSelectedOptions([option]); } ]]> Elements.Label Elements.ParsedField Elements.Label Elements.ParsedField true Elements.Panel Elements.CheckBox true Elements.Panel Elements.TwoStateButton Elements.Button true Elements.WrappedPanel true Elements.PlottingPanel 0)? opts[0]:""; // selected option if (option=="1024"){ _view.fftSizeBox.setSelectedOptions(["1024"]); } else if (option=="2048"){ _view.fftSizeBox.setSelectedOptions(["2048"]); } else if (option=="4096"){ _view.fftSizeBox.setSelectedOptions(["4096"]); } else if (option=="8192"){ _view.fftSizeBox.setSelectedOptions(["8192"]); } else if (option=="16384"){ _view.fftSizeBox.setSelectedOptions(["16384"]); } else if (option=="32768"){ _view.fftSizeBox.setSelectedOptions(["32768"]); }]]> Elements.Trace Elements.Trace true Elements.Group2D Elements.TextSet2D