Package com.meapsoft

Examples of com.meapsoft.FeatFile


   
    numDrawableFeatures = -1;
    setProgress(new DefaultBoundedRangeModel());
   
    String featFileName = args[args.length - 3];
    FeatFile fF = new FeatFile(featFileName);
   
    String edlFileName = args[args.length - 2];
    EDLFile eF = new EDLFile(edlFileName);
   
    String featName = args[args.length-1];
   
    try
    {
      fF.readFile();
      eF.readFile();
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here


    String names[] = GUIUtils.FileSelector(GUIUtils.OPENFEAT, dataDirectory, mainWindow);
     
    if (names[0] == null)
      return;

    featInputFile = new FeatFile(names[0]);
    try
    {
      featInputFile.readFile();
    }
    catch(Exception e)
View Full Code Here

    String names[] = GUIUtils.FileSelector(GUIUtils.SAVEFEAT, dataDirectory, mainWindow);
     
    if (names[0] == null)
      return;
   
    featOutputFile = new FeatFile(names[0]);
   
    Vector selectedChunks = drawingPanel.renderer.getSelectedFeatChunks();
   
    double currentTime = 0.0;
   
View Full Code Here

    }

    public static void main(String[] args)
    {   
  EDLFile eDLFile = null;
  FeatFile featFile = null;
   
    if (args.length == 1)
    {
      featFile = new FeatFile(args[0]);
    }
    else if (args.length == 2)
    {
      featFile = new FeatFile(args[0]);
      eDLFile = new EDLFile(args[1]);
    }
    else
    {
      System.out.println("I don't understand your command line arguments.");
      System.exit(-1);
    }

    try
    {
      if (featFile != null)
        featFile.readFile();
       
      if (eDLFile != null)
        eDLFile.readFile();
    }
    catch(Exception e)
View Full Code Here

    protected static void initSegmentFile()
    {       
        String fn = dataDirectory + slash + outputSegmentsFileName;

        if(segmentFile == null || segmentFile.filename != fn)
            segmentFile = new FeatFile(fn);
    }
View Full Code Here

    protected static void initFeatFile()
    {
        String fn = dataDirectory + slash + outputFeaturesFileName;

        if(featFile == null || featFile.filename != fn)
            featFile = new FeatFile(fn);
    }
View Full Code Here

    {
        // parse arguments
        int[] featdim = MEAPUtil.parseFeatDim(args,"i:");
        String filename = args[args.length-1];

        FeatFile f = new FeatFile(filename);

        try
        {
            f.readFile();
        }
        catch(Exception e)
        {
            e.printStackTrace();
            System.exit(1);
        }
       
        DataDisplayPanel p = new DataDisplayPanel(f.getFeatures(featdim), filename);

        JFrame jframe = new JFrame(p.getClass().getName() + ": " + filename);
        jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        jframe.setContentPane(p);
        jframe.pack();
View Full Code Here

    if (beats)
      messageBox.setText("doing beat segmentation on " + soundFileName);
    else
      messageBox.setText("doing event segmentation on " + soundFileName);
 
    FeatFile segments = MEAPAppletUtils.segment(soundFileName, beats);
   
    System.out.println("got segs!: " + segments.filename);
   
    System.out.println("chunks.size(): " + segments.chunks.size());
   
    String[] featureStrings = {"AvgPitch", "AvgChunkPower", "AvgSpecCentroid"};
   
    FeatFile features = MEAPAppletUtils.getFeatures(segments, featureStrings);
   
    System.out.println("got features! " + features.filename);
   
    NNComposer nNComposer = new NNComposer(features, new EDLFile(features.filename + ".edl"));
   
View Full Code Here

        System.out.println("uh oh in getFeatures...");
        System.out.println(e.getMessage());
      }
    }
   
    FeatFile featsFile = new FeatFile(segsFile.filename + ".feat");
   
    FeatExtractor extractor = new FeatExtractor(segsFile, featsFile, featureExtractors);
    extractor.run();

    return featsFile;
View Full Code Here

    protected void initSegmentFile()
    {       
        String fn = dataDirectory + slash + outputSegmentsFileName;

        if(segmentFile == null || segmentFile.filename != fn)
            segmentFile = new FeatFile(fn);
    }
View Full Code Here

TOP

Related Classes of com.meapsoft.FeatFile

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.