implement pitch macro

This commit is contained in:
tildearrow 2022-04-16 01:39:40 -05:00
parent af41e56acc
commit b4ac5c7e6a
30 changed files with 102 additions and 13 deletions

View file

@ -326,6 +326,9 @@ void DivPlatformQSound::tick(bool sysTick) {
chan[i].freqChanged=true;
}
}
if (chan[i].std.pitch.had) {
chan[i].freqChanged=true;
}
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
//DivInstrument* ins=parent->getIns(chan[i].ins);
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,false)+chan[i].std.pitch.val;