Package com.meapsoft

Examples of com.meapsoft.FeatFile


        this(featFN, DBFN, outFN, new EuclideanDist());
    }

    public MashupComposer(String featFN, String DBFN, String outFN, ChunkDist cd)
    {
        this(new FeatFile(featFN), new FeatFile(DBFN), new EDLFile(outFN), cd);
    }
View Full Code Here


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

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

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

            FeatFile chunkDBFile = new FeatFile(chunkDBFeaturesNameFull);
           
      if (!(new File(chunkDBFeaturesNameFull).exists()))
      {
        GUIUtils.ShowDialog("MashupComposer: Please select a chunk database features file!", GUIUtils.MESSAGE, meapsoftGUI.jframe);
        return -1;
      }
       
            composer = new MashupComposer(featFile, chunkDBFile, edlFile);
    }
    else if (selectedComposer.equals("MeapaeMComposer"))
    {
      composer = new MeapaeMComposer(featFile, edlFile);
    }
    else if (selectedComposer.equals("IntraChunkShuffleComposer"))
    {
      int numSubChunks = 4;
     
      try
      {
        numSubChunks = new Integer(intraChunkShuffleNumChunksField.getText()).intValue();
      }
      catch (Exception e)
      {
        GUIUtils.ShowDialog("The number of sub chunks must be >= 2.", GUIUtils.MESSAGE, meapsoftGUI.jframe);
                return -1;
      }
      composer = new IntraChunkShuffleComposer(featFile, edlFile, numSubChunks);
    }
    else if (selectedComposer.equals("HeadBangComposer"))
    {
      composer = new HeadBangComposer(featFile, edlFile, headbangBinSlider.getValue(), headbangLengthSlider.getValue());
    }
    else if (selectedComposer.equals("ThresholdComposer"))
    {
      double top = new Double(thresholdTopField.getText()).doubleValue();
      double bottom = new Double(thresholdBottomField.getText()).doubleValue();
      composer = new ThresholdComposer(featFile, edlFile, top, bottom, insideThresholdButton.isSelected());
    }
    else if (selectedComposer.equals("RotComposer"))
    {
      int bpm = new Integer(rotBeatsPerMeasureField.getText()).intValue();
      int positions = new Integer(rotNumPositionsField.getText()).intValue();
      composer = new RotComposer(featFile, edlFile, bpm, positions, rotLeftButton.isSelected());
    }
    else if (selectedComposer.equals("EDLComposer"))
    {
      EDLFile input = new EDLFile(inputEDLFileNameFull);
      composer = new EDLComposer(input, edlFile);
    }
    else if (selectedComposer.equals("VQComposer"))
    {
      composer = new VQComposer(featFile, edlFile);

            VQComposer vqc = (VQComposer)composer;
            vqc.setCodebookSize(vqNumCodewords.getValue());
            vqc.setBeatsPerCodeword(vqBeatsPerCW.getValue());

            if(vqFeaturesNameFull != null)
            {
                if (!(new File(vqFeaturesNameFull).exists()))
                {
                    GUIUtils.ShowDialog("VQComposer: Please select a valid feature file!",
                                        GUIUtils.MESSAGE, meapsoftGUI.jframe);
                    return -1;
                }
                else
                    vqc.setFeatsToQuantize(new FeatFile(vqFeaturesNameFull));
            }

            if(vqQuantizeTrainingFile.isSelected())
                vqc.setFeatsToQuantize(featFile);
    }
View Full Code Here

        this(featFN, outFN, 5000,300);
    }

    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

        this(featFN, outFN, new EuclideanDist());
    }

    public SortComposer(String featFN, String outFN, ChunkDist cd)
    {
        this(new FeatFile(featFN), new EDLFile(outFN), cd);
    }
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

   
    numDrawableFeatures = -1;
    setProgress(new DefaultBoundedRangeModel());
   
    String fileName = args[args.length - 2];
    FeatFile fF = null;
    EDLFile eF = null;
   
    String featName = 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

  }
 
  public RotComposer(String featFN, String outFN, int beatsPerMeasure,
      int numPositions, boolean left)
  {
    this(new FeatFile(featFN), new EDLFile(outFN), beatsPerMeasure,
        numPositions, left);
  }
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.