segmenter.setTempoMultiplier(tempoMult);
segmenter.writeMEAPFile = meapsoftGUI.writeMEAPFile;
JPanel progressPanel1 = new JPanel();
progressPanel1.add(new JLabel("Segmenting: "));
JProgressBar progressBar1 = new JProgressBar(segmenter.getProgress());
progressBar1.setStringPainted(true);
progressPanel1.add(progressBar1);
meapsoftGUI.setProgressPanel(progressPanel1);
try
{
segmentFile = segmenter.processAudioFile(inputSoundFileNameFull);
if(segmenter.writeMEAPFile)
segmentFile.writeFile();
segmentFile = segmenter.getSegFile();
}
catch (Exception e)
{
GUIUtils.ShowDialog(e, "Error running Segmenter", GUIUtils.MESSAGE, meapsoftGUI.jframe);
return -1;
}
JPanel progressPanel2 = new JPanel();
progressPanel2.add(new JLabel("drawing waveform "));
JProgressBar progressBar2 = new JProgressBar(meapsoftGUI.waveformPanel.getProgress());
progressBar2.setStringPainted(true);
progressPanel2.add(progressBar2);
meapsoftGUI.setProgressPanel(progressPanel2);
meapsoftGUI.waveformPanel.initialize(segmentFile, "Waveform");
meapsoftGUI.waveformPanel.setSegTickType(SingleFeaturePanel.SHORT_SEG_TICKS);
meapsoftGUI.waveformPanel.updateWaveformPoints();
JPanel progressPanel3 = new JPanel();
progressPanel3.add(new JLabel("drawing spectrum "));
JProgressBar progressBar3 = new JProgressBar(meapsoftGUI.spectrumPanel.getProgress());
progressBar3.setStringPainted(true);
progressPanel3.add(progressBar3);
meapsoftGUI.setProgressPanel(progressPanel3);
meapsoftGUI.spectrumPanel.initialize(segmentFile, "Spectrum");
meapsoftGUI.spectrumPanel.setSegTickType(SingleFeaturePanel.SHORT_SEG_TICKS);