Example #1
0
void BatchCommands::SetWavToMp3Chain() // a function per default chain?  This is flawed design!  MJS
{
   ResetChain();
 
   AddToChain( wxT("Normalize") );
   AddToChain( wxT("ExportMP3") );
}
Example #2
0
void BatchCommands::SetWavToMp3Chain()
{
   ResetChain();
 
   AddToChain( wxT("Import") );
   AddToChain(   _("Normalize") );
   AddToChain( wxT("ExportMp3") );
}
Example #3
0
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;
}
Example #4
0
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") );
}
Example #5
0
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");
    //
}
Example #6
0
void BatchCommands::AddToChain(const wxString &command, int before)
{
   AddToChain(command, GetCurrentParamsFor(command), before);
}