void initialization(void) { eventbuffer.setPort(synth.getInputPort()); nextpatterntime = t_time; voicetokey.setSize(5); readScore(rpscore); voicetokey[0] = GM_CLAVES; voicetokey[1] = GM_COWBELL; voicetokey[2] = GM_HIGH_AGOGO; voicetokey[3] = GM_LOW_AGOGO; voicetokey[4] = GM_HI_BONGO; activevoice.setSize(5); activevoice.setAll(1); }
void initialization(void) { checkOptions(); timer.setPeriod(500); timer.reset(); eventIdler.setPeriod(0); eventBuffer.setPollPeriod(10); eventBuffer.setPort(synth.getOutputPort()); if (colorQ) { colormessage(cout, COLOR_INIT, colormode, colorQ); colormessage(cout, COLOR_CLEAR_SCREEN, colormode, colorQ); //if (!options.getBoolean("Q")) { // print_commands(); //} //sleep(1); } trackmute.resize(1000); // maximum track in humdrum file assumed to be 1000 // space 1000-10 is used for a special purpose. std::fill(trackmute.begin(), trackmute.end(), 0); markers.resize(1001); std::fill(markers.begin(), markers.end(), 0); markerindex = 0; }