|
From: Jerome F. <kin...@us...> - 2011-03-11 16:29:58
|
Update of /cvsroot/munt/mt32emu/src
In directory vz-cvs-4.sog:/tmp/cvs-serv21573
Modified Files:
part.cpp
Log Message:
- Fixed the bender range not being properly updated when modifying the patch temp area via sysex.
- As a side-effect, fixed a Valgrind warning due to the bender range not being initialised on the rhythm part.
Index: part.cpp
===================================================================
RCS file: /cvsroot/munt/mt32emu/src/part.cpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** part.cpp 11 Mar 2011 01:45:09 -0000 1.45
--- part.cpp 11 Mar 2011 16:29:56 -0000 1.46
***************
*** 161,164 ****
--- 161,165 ----
}
}
+ updatePitchBenderRange();
}
***************
*** 171,174 ****
--- 172,176 ----
}
memcpy(currentInstr, timbreTemp->common.name, 10);
+ updatePitchBenderRange();
}
***************
*** 241,245 ****
void Part::setProgram(unsigned int patchNum) {
setPatch(&synth->mt32ram.patches[patchNum]);
- updatePitchBenderRange();
allSoundOff();
setTimbre(&synth->mt32ram.timbres[getAbsTimbreNum()].timbre);
--- 243,246 ----
|