<![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 false false CODE_EDITOR Initialization true false CODE_EDITOR yellow true false EVOLUTION_EDITOR evolution true false dataArray.length) end = dataArray.length; // lookang found a typo length typed worngly as lenght var peak = minDecibels; var peakj = -1; // find peak in current values for (var j=pre; j peak) { peakj = j; peak = dbArray[j]; } } // check if peak higher than previous one for (var j=pre; j peak) { peakj = j; peak = peakArray[j]; } } // update peak array if (peakj != -1) { for (var j=pre; 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++; } } ]]> 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