Skip to content

Commit

Permalink
Merge pull request #208 from shorepine/pcm_note_off
Browse files Browse the repository at this point in the history
Pcm note off
  • Loading branch information
dpwe authored Sep 8, 2024
2 parents 638d07b + 4b9d398 commit 8a56b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void pcm_mod_trigger(uint16_t osc) {
void pcm_note_off(uint16_t osc) {
if(msynth[osc].feedback == 0) {
// Non-looping note: Set phase to the end to cause immediate stop.
synth[osc].phase = F2P(pcm_map[synth[osc].patch].length / (float)(1 << PCM_INDEX_FRAC_BITS));
synth[osc].phase = F2P(pcm_map[synth[osc].patch].length / (float)(1 << PCM_INDEX_BITS));
} else {
// Looping is requested, disable future looping, sample will play through to end.
// (sending a second note-off will stop it immediately).
Expand Down

0 comments on commit 8a56b26

Please sign in to comment.