void initialization(void) { eventBuffer.setPollPeriod(10); for (int i=0; i<notestates.getSize(); i++) { notestates[i] = 0; onvels[i] = 0; decaystates[i] = 0.0; } }
void initialization(void) { eventBuffer.setPollPeriod(10); notetimes.reset(); notetimes.insert(0); notetimes.insert(0); notes.reset(); notes.insert(0); notes.insert(0); noteontimes.zero(); }
void initialization(void) { eventBuffer.setPollPeriod(10); onset[0] = 0; onset[1] = 100; onset[2] = 200; onset[3] = 300; duration[0] = 600; duration[1] = 500; duration[2] = 400; duration[3] = 300; }
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; }
void initialization(void) { eventBuffer.setPollPeriod(10); // look in the algorithm buffer every 10 ms. tparam.setSize(PARAMSIZE); // 256 simultaneous algorithms at once. tparam.allowGrowth(0); }
void initialization(void) { eventBuffer.setPollPeriod(10); lastnotes.reset(); lasttimes.reset(); }