boolean beatOnsetDetector = beatStyleButton.isSelected();
boolean firstFrameOnset = firstFrameBox.isSelected();
String segmentsFileName = dataDirectory + slash + outputSegmentsFileName;
Segmenter segmenter = new Segmenter(inputSoundFileNameFull,
segmentsFileName, thresh, smtime, beatOnsetDetector, firstFrameOnset);
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);