Package com.meapsoft

Examples of com.meapsoft.Segmenter


  public static FeatFile segment(String soundFileName, boolean beats)
  {
    String segFileName = soundFileName + ".seg";
   
    Segmenter seg = new Segmenter(soundFileName, segFileName, 1.0, 0.1, beats, true);   
   
    try
    {
      seg.run();
      return seg.getSegFile();
    }
    catch (Exception e)
    {
      System.out.println("uh oh...");
      System.out.println(e.getMessage());
View Full Code Here


    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);
View Full Code Here

     
      //create the segment file name
    String segmentsFileName = dataDirectory + slash + outputSegmentsFileName;
   
    //create the segmenter
    Segmenter segmenter = new Segmenter(inputSoundFileNameFull,
                      segmentsFileName,
                      segmentSensitivity,
                      segmentDensity,
                      detectBeats,
                      firstFrameOnset);
   
    //set the tempo multiplier and the
      segmenter.setTempoMultiplier(tempoMult);
      segmenter.writeMEAPFile = MEAPUtil.writeMEAPFile;
   
      //update the progress bar
      mMainScreen.updateProgressBar("Segmenting...", segmenter.getProgress());
     
        try
        {
          //now actually process the audio file
            segmentFile = segmenter.processAudioFile(inputSoundFileNameFull);

            if(segmenter.writeMEAPFile)
                segmentFile.writeFile();

            segmentFile = segmenter.getSegFile();
        }
        catch (Exception e)
        {
            GUIUtils.ShowDialog(e, "Error running Segmenter", GUIUtils.MESSAGE, mMainScreen);
View Full Code Here

TOP

Related Classes of com.meapsoft.Segmenter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.