void mainloopalgorithms(void) { eventBuffer.checkPoll(); // see if any notes need playing while (synth.getNoteCount() > 0) { processNote(synth.extractNote()); } }
void mainloopalgorithms(void) { eventBuffer.checkPoll(); // see if any notes to play while (synth.getNoteCount() > 0) { message = synth.extractNote(); processNote(message); } }
void mainloopalgorithms(void) { eventBuffer.checkPoll(); // see if any notes need playing while (synth.getNoteCount() > 0) { noteMessage = synth.extractNote(); if (noteMessage.getP2() != 0) { playchord(noteMessage, chordType, onset, duration); } } }
void mainloopalgorithms(void) { eventbuffer.checkPoll(); if (nextpatterntime <= t_time) { patternbeats = nextpattern + 2; if (nextpattern == 0) { patternbeats = 3; } nextpatterntime = t_time + (int)(60.0/tempo*1000*patternbeats + 0.5); playNextPattern(eventbuffer, rpscore, nextpattern, nextsubpattern, tempo); } }
void mainloopalgorithms(void) { eventBuffer.checkPoll(); if (pauseQ) { return; } if (timer.expired()) { playdata(data, linenum, timer); if (linenum >= data.getNumLines()) { printAllMarkers(cout, markers, data); std::fill(markers.begin(), markers.end(), 0); inputNewFile(); } } }
void mainloopalgorithms(void) { eventBuffer.checkPoll(); // see if any notes to play while (synth.getNoteCount() > 0) { message = synth.extractNote(); if (message.getP2() != 0) { lastnotes.insert(message.getP1()); lasttimes.insert(message.tick); distancee = lastnotes[0] - lastnotes[1]; duration = lasttimes[0] - lasttimes[1]; channel = 0x0f & message.getP0(); if (distancee != 0) { playgliss(message.getP1(), message.getP2(), channel, duration, distancee); } } } }
void mainloopalgorithms(void) { eventBuffer.checkPoll(); while (synth.getNoteCount() > 0) { message = synth.extractNote(); if (message.isNoteOn() && message.getP1() == A0) { direction = -direction; cout << "Direction = " << direction << endl; } else if (message.isNoteOn() && message.getP1() == C7) { // add one to the length of the tumble sequence length = limit(length+1, 2, 200); cout << "Sequence length = " << length << endl; } else if (message.isNoteOn() && message.getP1() == B6) { // subtract one from the length of the tumble sequence length = limit(length-1, 2, 200); cout << "Sequence length = " << length << endl; } else { processNote(message, length, direction); } } }