all repos — xyw @ f4ae1f7b2b4447693b14a4701aec895785f00871

A minimal virtual machine and assembler for terminals.

Removed min frequency clamping (low freqs could be used for pauses).
h3rald h3rald@h3rald.com
Tue, 10 Feb 2026 16:00:07 +0100
commit

f4ae1f7b2b4447693b14a4701aec895785f00871

parent

246bd1fccc57b6891e225666020ba1a5f7aa2e84

1 files changed, 0 insertions(+), 3 deletions(-)

jump to
M devices/beeper.cdevices/beeper.c

@@ -16,7 +16,6 @@

/* 8-bit era constraints */ #define BEEPER_MAX_FREQ 0x2000 // 8192 Hz - typical PC speaker limit #define BEEPER_MAX_LEVEL 0x0F // 4-bit volume (0-15) -#define BEEPER_MIN_FREQ 0x14 // 20 Hz - below human hearing threshold #define BEEPER_SAMPLE_RATE 22050 // Period-accurate low sample rate // State for the beeper callback

@@ -121,8 +120,6 @@

// Clamp to 8-bit era constraints if (pitch > BEEPER_MAX_FREQ) pitch = BEEPER_MAX_FREQ; - if (pitch < BEEPER_MIN_FREQ && pitch > 0) - pitch = BEEPER_MIN_FREQ; if (level > BEEPER_MAX_LEVEL) level = BEEPER_MAX_LEVEL;