void MNMClass::setMachine(uint8_t track, uint8_t idx) { assignMachine(track, kit.models[idx]); for (int i = 0; i < 56; i++) { setParam(track, i, kit.parameters[idx][i]); } setTrackLevel(track, kit.levels[idx]); }
void MNMClass::setMachine(uint8_t track, MNMMachine *machine) { assignMachine(track, machine->model); for (int i = 0; i < 56; i++) { setParam(track, i, machine->params[i]); } setTrackLevel(track, machine->level); }