Commit graph

6 commits

Author SHA1 Message Date
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
Jeremy Penner 47cd770a9e Cache samples, fix frequency display 2024-11-28 20:02:11 -05:00
Jeremy Penner a36eb82dda custom samples tweaking 2024-11-27 22:36:55 -05:00
Jeremy Penner 56fab04753 Add triangle sampling, tweak sample auto-reset logic, local ROMs 2024-11-25 22:18:02 -05:00
Jeremy Penner 82591aa870 Add sampling capability to square wave channels 2024-11-23 20:52:16 -05:00
Jeremy Penner 8dc252d70f git subrepo clone https://github.com/bfirsh/jsnes.git
subrepo:
  subdir:   "jsnes"
  merged:   "d8021d0"
upstream:
  origin:   "https://github.com/bfirsh/jsnes.git"
  branch:   "master"
  commit:   "d8021d0"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2024-10-29 20:12:13 -04:00