int CFITOM::InitInstance(TCHAR* profilepath) { lstrcpyn(profile, profilepath, MAX_PATH); LoadConfig(); for (int i=0; i<devs; i++) { fmdev[i]->Reset(); FMVOICE voice; GetVoice(&voice, fmdev[i]->GetDevice(), 0, 0); for (int j=0; j<fmdev[i]->GetAvailable(); j++) { //fmdev[i]->ResetVoice(NULL, NULL, 0); fmdev[i]->SetVoice(j, &voice); } } ResetAllCtrl(); AllNoteOff(); return 0; }
void MantaFlextPoly::PadAndValueHandler(int pad, int value) { SendOutput(GetVoice(pad), pad, value); StoredValue = -1; }