Examples of VQComposer


Examples of com.meapsoft.composers.VQComposer

      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);
    }
    else if (selectedComposer.equals("HMMComposer"))
    {
      composer = new HMMComposer(featFile, edlFile);
View Full Code Here

Examples of com.meapsoft.composers.VQComposer

        initComponents();
    }
   
    public int initComposer()
    {
    mComposer = new VQComposer(mParentTab.featFile, mParentTab.edlFile);

        VQComposer vqc = (VQComposer)mComposer;
        vqc.setCodebookSize(mNumSlider.getValue());
        vqc.setBeatsPerCodeword(mBeatsSlider.getValue());

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

        if(mQuantizeChk.isSelected())
            vqc.setFeatsToQuantize(mParentTab.featFile);
     
      return 0;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.