Skip to content

1681-engine / index / SYNTH_RATE

Variable: SYNTH_RATE ​

ts
const SYNTH_RATE: 22050 = 22050;

Defined in: src/audio/synth.ts:6

The combat sounds are written, not recorded: a few oscillator or noise layers rendered straight into a buffer (sounds.json → recipes). Lo-fi on purpose — 22 kHz mono, short and soft — so they sit with the pixel art instead of pretending to be a recording.

Released under the MIT License.