Package com.meapsoft

Examples of com.meapsoft.FeatFile


    }
   
    mParentTab.edlFile = new EDLFile(mParentTab.dataDirectory + mParentTab.slash + mParentTab.dataBaseName + "_using_" +
        mChunkDBFeaturesNameShort + ".edl");

        FeatFile chunkDBFile = new FeatFile(mChunkDBFeaturesNameFull);
       
    if (!(new File(mChunkDBFeaturesNameFull).exists()))
    {
      GUIUtils.ShowDialog("MashupComposer: Please select a chunk database features file!", GUIUtils.MESSAGE, mParentTab.mMainScreen);
      return -1;
View Full Code Here


   
    numDrawableFeatures = 1;
    setProgress(new DefaultBoundedRangeModel());
   
    String fileName = args[args.length - 1];
    FeatFile fF = null;
    EDLFile eF = null;
   
    String featName = "ChunkLength";//args[args.length-1];
   
    try
    {
      fF = new FeatFile(fileName);
      fF.readFile();
     
      if (edlFileName != null)
      {
        System.out.println("making EDLFile from " + edlFileName);
        eF = new EDLFile(edlFileName);
View Full Code Here

   
    //System.out.println("spectrum seyz: frameSize: " + frameSize + " frameRate: " + frameRate +
      //  " fileFrameLength: " + fileFrameLength + " fileTimeLength: " + fileTimeLength +
      //  " framesPerPixel: " + framesPerPixel + " timePerPixel: " + timePerPixel + " w: " + w);
   
    FeatFile fF = new FeatFile("small_chunks_temp.feat");

    double currTime = localFirstEventTime;
    String srcFileName = fCTD.srcFile;

    for (int x = 0; x < w; x++)
    {
      FeatChunk fC = new FeatChunk(srcFileName, currTime, timePerPixel, null);
      fF.chunks.add(fC);
      currTime += timePerPixel;
    }

    try
    {
      fF.writeFile();
    }
    catch (IOException e1)
    {
      e1.printStackTrace();
    }

    Vector extractors = new Vector();
    extractors.add(new AvgMelSpec());

    FeatFile spectrumFeats = new FeatFile("temp.feat");

    FeatExtractor fE = new FeatExtractor(fF, spectrumFeats, extractors);

    fE.setProgress(progress);

    try
    {
      fE.setup();
      fE.processFeatFiles();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }

    int elementsPerFeature[] = { 0 };

    elementsPerFeature = spectrumFeats.getFeatureLengths();
    featureSize = elementsPerFeature[0];

    featureNumber = 0;

    shortEvents = spectrumFeats.chunks;
View Full Code Here

  }
 
  public ThresholdComposer(String featFN, String outFN, double thresholdTop,
      double thresholdBottom, boolean insideThreshold)
  {
    this(new FeatFile(featFN), new EDLFile(outFN), thresholdTop,
        thresholdBottom, insideThreshold);
  }
View Full Code Here

    // parse arguments
    int ind = opt.getOptind();
    if (ind > args.length)
      printUsageAndExit();

    featFile = new FeatFile(args[args.length - 1]);
    outFile = new EDLFile(outFileName);

    System.out.println("Composing " + outFileName + " from "
        + args[args.length - 1] + ".");
  }
View Full Code Here

                break;
      case 'b':
        beatsPerCodeword = Integer.parseInt(opt.getOptarg());
        break;
      case 'f':
        featsToQuantize = new FeatFile(opt.getOptarg());
        break;
            case 'c'// already handled above
                break;
            case 'd'// already handled above
                break;
            case 'i'// already handled above
                break;
      case '?':
        printUsageAndExit();
        break;
      default:
        System.out.print("getopt() returned " + c + "\n");
      }
    }
       
    // parse arguments
    int ind = opt.getOptind();
    if(ind > args.length)
      printUsageAndExit();
       
    trainFile = new FeatFile(args[args.length-1]);
        if(featsToQuantize == null)
            featsToQuantize = trainFile;
    outFile = new EDLFile(outFileName);

    System.out.println("Composing " + outFileName +
View Full Code Here

  FeatFile featFile;
  boolean debug = false;
 
  public MeapaeMComposer(String featFN, String outFN)
  {
    this(new FeatFile(featFN), new EDLFile(outFN));
  }
View Full Code Here

    // parse arguments
    int ind = opt.getOptind();
    if(ind > args.length)
      printUsageAndExit();
       
    featFile = new FeatFile(args[args.length-1]);
    outFile = new EDLFile(outFileName);

    System.out.println("Composing " + outFileName +
               " from " +  args[args.length-1] + ".");
  }
View Full Code Here

  }

  public HeadBangComposer(String featFN, String outFN, int binsNum,
      int newPieceLength)
  {
    this(new FeatFile(featFN), new EDLFile(outFN), binsNum, newPieceLength);
  }
View Full Code Here

    // parse arguments
    int ind = opt.getOptind();
    if (ind > args.length)
      printUsageAndExit();

    featFile = new FeatFile(args[args.length - 1]);
    outFile = new EDLFile(outFileName);

    System.out.println("Composing " + outFileName + " from "
        + args[args.length - 1] + ".");
  }
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.