implement pitch macro

TODO: test!
This commit is contained in:
tildearrow 2022-04-15 03:37:16 -05:00
parent c743a9e96a
commit d47a59f5f0
33 changed files with 44 additions and 39 deletions

View file

@ -180,7 +180,7 @@ void DivPlatformSwan::tick() {
}
}
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true)+chan[i].std.pitch.val;
if (i==1 && pcm && furnaceDac) {
double off=1.0;
if (dacSample>=0 && dacSample<parent->song.sampleLen) {