Commit graph

15 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 9ff9fe2bb8 Charles Martinet 3-pack 2024-11-29 14:44:38 -05:00
Jeremy Penner e05f25eef3 Better pause button, load all samples at once 2024-11-29 14:14:21 -05:00
Jeremy Penner a630d0d81f More samples!! 2024-11-29 13:50:55 -05:00
Jeremy Penner 5dcb8038c4 clean up, more games, add deployment script 2024-11-28 22:12:11 -05:00
Jeremy Penner ba2fdd5caf nicer frequency textbox 2024-11-28 20:47:31 -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 8772714135 port nes-embed.js to svelte 2024-11-17 00:52:11 -05:00
Jeremy Penner c29f364957 adapt simple embedding example
(bring your own smb.nes)
2024-10-29 21:20:35 -04:00
Jeremy Penner 34e0367dff set up yarn 2024-10-29 20:26:16 -04: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
Jeremy Penner 1c64fa7436 initial commit 2024-10-29 20:12:08 -04:00