int main(int argc, char* argv[]) { DPI = 120; PDPI = 120; DPMM = DPI / INCH; QApplication app(argc, argv); mscore = new MScore; mscore->init(); loadInstrumentTemplates("../../mscore/share/templates/instruments.xml"); score = new Score(mscore->baseStyle()); if (!testNote()) { printf("test note failed\n"); ++bugs; } if (!testHairpin()) { printf("test hairpin failed\n"); ++bugs; } if (!testMidi()) { printf("test midi failed\n"); ++bugs; } if (bugs) printf("==%d tests failed==\n", bugs); else printf("==passed==\n"); return bugs; }
void MTest::initMTest() { MScore::DPI = 120; MScore::PDPI = 120; MScore::DPMM = MScore::DPI / INCH; mscore = new MScore; mscore->init(); root = TESTROOT "/mtest"; loadInstrumentTemplates(":/instruments.xml"); score = new Score(mscore->baseStyle()); }
void MTest::initMTest() { MScore::DPI = 120; MScore::PDPI = 120; MScore::DPMM = MScore::DPI / INCH; synti = new MasterSynthesizer(); mscore = new MScore; mscore->init(); preferences.shortestNote = MScore::division / 4; // midi quantization: 1/16 root = TESTROOT "/mtest"; loadInstrumentTemplates(":/instruments.xml"); score = readScore("/test.mscx"); }
void MTest::initMTest() { initMyResources(); // DPI = 120; // PDPI = 120; MScore::noGui = true; synti = new MasterSynthesizer(); mscore = new MScore; new MuseScoreCore; mscore->init(); preferences.shortestNote = MScore::division / 4; // midi quantization: 1/16 root = TESTROOT "/mtest"; loadInstrumentTemplates(":/instruments.xml"); score = readScore("/test.mscx"); }
void InstrumentsDialog::on_loadButton_clicked() { QString fn = QFileDialog::getOpenFileName( this, tr("Load Instrument List"), mscoreGlobalShare + "/templates", tr("MuseScore Instruments") + " (*.xml)", 0, preferences.getBool(PREF_UI_APP_USENATIVEDIALOGS) ? QFileDialog::Options() : QFileDialog::DontUseNativeDialog ); if (fn.isEmpty()) return; QFile f(fn); if (!loadInstrumentTemplates(fn)) { QMessageBox::warning(0, QWidget::tr("Load Style Failed"), QString(strerror(errno)), QString::null, QWidget::tr("Quit"), QString::null, 0, 1); return; } instrumentsWidget->buildTemplateList(); }
void MTest::initMTest() { qputenv("QML_DISABLE_DISK_CACHE", "true"); qSetMessagePattern("%{function}: %{message}"); initMyResources(); // DPI = 120; // PDPI = 120; MScore::noGui = true; synti = new MasterSynthesizer(); mscore = new MScore; new MuseScoreCore; mscore->init(); ed.init(); preferences.init(true); root = TESTROOT "/mtest"; loadInstrumentTemplates(":/instruments.xml"); score = readScore("test.mscx"); }