コード例 #1
0
void BatchCommands::SetWavToMp3Chain() // a function per default chain?  This is flawed design!  MJS
{
   ResetChain();
 
   AddToChain( wxT("Normalize") );
   AddToChain( wxT("ExportMP3") );
}
コード例 #2
0
ファイル: BatchCommands.cpp プロジェクト: andreipaga/audacity
void BatchCommands::SetWavToMp3Chain()
{
   ResetChain();
 
   AddToChain( wxT("Import") );
   AddToChain(   _("Normalize") );
   AddToChain( wxT("ExportMp3") );
}
コード例 #3
0
ファイル: muiWindow.cpp プロジェクト: FMJ-Software/md
void muiMultiWindowedAppWindow::Run()
{
	AddToChain();

	if (bRunningMsgLoop) return;

	bRunningMsgLoop = true;

	MSG	msg;
	while (GetMessage(&msg, NULL, 0, 0)) {

		bool bTranslatedAccl = false;
		for (muiMultiWindowedAppWindow *pWnd = *&pFirstWindow; pWnd; pWnd = pWnd->pNextWindow) {			
			if ((msg.hwnd != pWnd->hwnd) || !pWnd->hAccel) continue;
			bTranslatedAccl = TranslateAccelerator(pWnd->hwnd, pWnd->hAccel, &msg);
			if (bTranslatedAccl) break;
		}

		if (!bTranslatedAccl)
			TranslateMessage(&msg); // Translate virtual keycodes

		DispatchMessage(&msg);  // Dispatches message to window
	}

	bRunningMsgLoop = false;
}
コード例 #4
0
ファイル: BatchCommands.cpp プロジェクト: andreipaga/audacity
void BatchCommands::SetCleanSpeechChain()
{
   ResetChain();

// TIDY-ME: Effects change their name with localisation.
// Commands (at least currently) don't.  Messy.

/* i18n-hint: Effect name translations must agree with those used elsewhere, or batch won't find them */
   AddToChain( wxT("Import") );
   AddToChain(   _("Stereo To Mono") );
   AddToChain(   _("Normalize") );
   AddToChain( wxT("Save Hq Master1") );
   AddToChain(   _("Noise Removal") );
   AddToChain(   _("Truncate Silence") );
   AddToChain(   _("Leveller") );
   AddToChain(   _("Normalize") );
   AddToChain( wxT("ExportMp3") );
}
コード例 #5
0
ファイル: runMET.cpp プロジェクト: thongonary/HcalTupleMaker
void runMET()
{
    gROOT->Reset();
    gSystem->Load("libPhysics.so");

    //TProof::Open("[email protected]:21002");
    //TProof::Open("lite://");

    TChain *c = new TChain("hcalTupleTree/tree","");
    //AddToChain(c, "inputMET.txt");
    AddToChain(c, "inputSingleMuon.txt");
    //AddToChain(c, "inputHPD.txt");
    //AddToChain(c, "inputNoBPTX_2015C.txt");
    //AddToChain(c, "inputTestSingleMuon.txt");
    //AddToChain(c, "inputTestNoBPTX_2015C.txt");
    //c->SetProof();
    c->Process("MET.C+g");
    //
}
コード例 #6
0
void BatchCommands::AddToChain(const wxString &command, int before)
{
   AddToChain(command, GetCurrentParamsFor(command), before);
}