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