Skip to content

Commit

Permalink
Update internal pitch of voices to get faster feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielku15 committed Dec 9, 2023
1 parent c438985 commit e2ac25c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/synth/synthesis/TinySoundFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ export class TinySoundFont {
}

voice.playingKey += pitchDifference;

if(this._channels) {
voice.updatePitchRatio(this._channels!.channelList[voice.playingChannel], this.outSampleRate);
}
}
}

Expand Down

0 comments on commit e2ac25c

Please sign in to comment.