PCE: add noise macro (finally!)

This commit is contained in:
tildearrow 2022-03-04 02:20:13 -05:00
parent 8758277199
commit 59d813db7c
3 changed files with 18 additions and 1 deletions

View file

@ -710,6 +710,13 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) {
fm.tomTopFreq=reader.readS();
}
// clear noise macro if PCE instrument and version<63
if (version<63 && type==DIV_INS_PCE) {
std.dutyMacroLen=0;
std.dutyMacroLoop=-1;
std.dutyMacroRel=-1;
}
return DIV_DATA_SUCCESS;
}