chewgum-dsp v0.1.0 is a narrow public extraction of shipped Web
Audio helpers: an NES-style triangle PeriodicWave
generator, MIDI-to-frequency conversion, and a small bell trigger.
- No OPL2 emulation.
- No AudioWorklet wrapper.
- No stroke interpretation layer.
- No private ChewGum DSP research code.
The library exists because the NES-style triangle source has a different audible character from the browser's native triangle oscillator, and that difference already appears in shipped public work. The first release keeps only the slice needed to name and reuse that sound honestly.
- Dead Beat: uses the same NES-style triangle-wave generator family for bell tones.
- Falling Hall: uses the same bell-synthesis lineage for wall-strike chimes.
- Native Triangle vs. NES-Style Triangle: uses chewgum-dsp v0.1.0 as the A/B source for comparing native and NES-style triangle tones.
- Phosphor: uses the browser's native triangle oscillator, so it is a contrast point rather than a deployment of this library.
This is a dependency-free ESM library. The public repository contains the source, MIT license, README, and v0.1.0 tag.
import { createNesTriangleWave, midiToFrequency, strikeBell } from '@chewgum/dsp';
The README includes a browser example. The npm package name is reserved in the source metadata, but this page only claims the GitHub repository and tag.
- Repository: chewgum-dsp v0.1.0.
- Source files:
src/nes-triangle.js,src/midi.js, andsrc/bell.js. - A/B page: Native Triangle vs. NES-Style Triangle.
- Deployed pages: Dead Beat and Falling Hall.
- Web Audio API
- triangle wave
PeriodicWave- bell synthesis
- MIDI frequency conversion
Shane Curry / ChewGum Labs, "chewgum-dsp v0.1.0," https://shanecurry.com/lab/tools/chewgum-dsp/, published 2026-04-30.