7677787980818283848586
featFile = featFN; outFile = outFN; if (outFile == null) outFile = new EDLFile(""); this.beatsPerMeasure = beatsPerMeasure; this.numPositions = numPositions; rotateRight = !left; }
144145146147148149150151152153
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] + "."); }
8687888990919293949596979899100101102103104105106107108109
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); eF.readFile(); } } catch(Exception e) {
3536373839404142434445
{ GUIUtils.ShowDialog("MashupComposer: Please select a chunk database features file!", GUIUtils.MESSAGE, mParentTab.mMainScreen); return -1; } mParentTab.edlFile = new EDLFile(mParentTab.dataDirectory + mParentTab.slash + mParentTab.dataBaseName + "_using_" + mChunkDBFeaturesNameShort + ".edl"); FeatFile chunkDBFile = new FeatFile(mChunkDBFeaturesNameFull); if (!(new File(mChunkDBFeaturesNameFull).exists()))
7071727374757677
} public ThresholdComposer(String featFN, String outFN, double thresholdTop, double thresholdBottom, boolean insideThreshold) { this(new FeatFile(featFN), new EDLFile(outFN), thresholdTop, thresholdBottom, insideThreshold); }
87888990919293
this.thresholdTop = thresholdTop; this.thresholdBottom = thresholdBottom; this.insideThreshold = insideThreshold; if (outFile == null) outFile = new EDLFile(""); }
148149150151152153154155156157
80818283848586
trainFile = trainFN; outFile = outFN; if(outFile == null) outFile = new EDLFile(""); }
157158159160161162163164165166
printUsageAndExit(); trainFile = new FeatFile(args[args.length-1]); if(featsToQuantize == null) featsToQuantize = trainFile; outFile = new EDLFile(outFileName); System.out.println("Composing " + outFileName + " from " + args[args.length-1] + "."); }
24252627282930313233
initComponents(); } public int initComposer() { EDLFile input = new EDLFile(inputEDLFileNameFull); mComposer = new EDLComposer(input, mParentTab.edlFile); return 0; }