meowio/jsnes/src
Jeremy Penner 0f73094113 Tweak note-change detection
Values have been tuned to ensure samples aren't retriggered during
Mario's jump, but are generally retriggered in every other situation
where the frequency is changed. Retriggering more often makes the music
in games like Pictionary and Rad Gravity sound _way_ better, as well as
the sound effects in games with slower music.

* do not repeat samples for sustained notes; this never sounds great.
* reset after _any_ frequency change if we have been sitting on the
  same note for longer than a couple of frames.
* fix the "reset if the note has jumped by ~2 semitones" logic, which
  was *wildly* wrong.
2024-11-30 22:14:20 -05:00
..
controller.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
cpu.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
index.js Add sampling capability to square wave channels 2024-11-23 20:52:16 -05:00
mappers.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
nes.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
papu.js Add triangle sampling, tweak sample auto-reset logic, local ROMs 2024-11-25 22:18:02 -05:00
ppu.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
rom.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
sample.js Tweak note-change detection 2024-11-30 22:14:20 -05:00
tile.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00
utils.js git subrepo clone https://github.com/bfirsh/jsnes.git 2024-10-29 20:12:13 -04:00