StaffScene::StaffScene(QGraphicsView* view, QObject *parent) : QGraphicsScene(parent), m_view(view) { m_view->setScene(this); makeLine(); makeTrebleClef(); makeNote(); m_note->installSceneEventFilter(m_lineManager); setBoundries(); }
void mainloopalgorithms(void) { sensor.checkPoll(); // see if it is time to check for new data frame makeNote(); // check if it is time to play a MIDI note if (display && displayTimer.expired()) { displayTimer.reset(); cout << "\r\t\t\t\t\t\t\t\t\t"; cout << "\rkey0= " << (int)(100 * keymin)/100.0 << " keyx= " << (int)(100 * keymax)/100.0 << " keyc= " << (int)(100 * sensor[keychan][0])/100.0 << " \tvel0= " << (int)(100 * velmin)/100.0 << " velx= " << (int)(100 * velmax)/100.0 << " velc= " << (int)(100 * sensor[velchan][0])/100.0 << " " << flush; } }