void Seq::setScoreView(ScoreView* v) { if (oggInit) { ov_clear(&vf); oggInit = false; } if (cv !=v && cs) { unmarkNotes(); stopWait(); } cv = v; cs = cv ? cv->score() : 0; if (!heartBeatTimer->isActive()) heartBeatTimer->start(20); // msec playlistChanged = true; _synti->reset(); if (cs) { // _synti->setState(cs->synthesizerState()); initInstruments(); seek(cs->playPos()); } tackRest = 0; tickRest = 0; }
void Seq::setScoreView(ScoreView* v) { if (oggInit) { ov_clear(&vf); oggInit = false; } if (cv !=v && cs) { unmarkNotes(); stopWait(); } cv = v; if (cs) disconnect(cs, SIGNAL(playlistChanged()), this, SLOT(setPlaylistChanged())); cs = cv ? cv->score() : 0; if (!heartBeatTimer->isActive()) heartBeatTimer->start(20); // msec playlistChanged = true; _synti->reset(); if (cs) { initInstruments(); connect(cs, SIGNAL(playlistChanged()), this, SLOT(setPlaylistChanged())); } }
void Seq::setScoreView(ScoreView* v) { if (cv !=v && cs) { cs->setSyntiState(synti->state()); markedNotes.clear(); stopWait(); } cv = v; cs = cv ? cv->score() : 0; if (!heartBeatTimer->isActive()) heartBeatTimer->start(1000/guiRefresh); playlistChanged = true; synti->reset(); if (cs) { synti->setState(cs->syntiState()); initInstruments(); seek(cs->playPos()); } tackRest = 0; tickRest = 0; }