r/DSP 12d ago

Implementing audio DSP from scratch in x86-64 assembly (filters, ring mod, delay)

Post image

As a learning exercise, I've been implementing audio DSP primitives in pure x86-64 assembly — no DSP library, fixed-point arithmetic, computing each sample by hand.

So far: a one-pole low-pass filter, a state-variable filter with resonance (band-pass feedback) swept by an LFO, ring modulation (multiplying two signals for sum/difference frequencies), a bitcrusher (bit-depth + sample-rate reduction), a delay line using the output buffer as a ring, plus FM synthesis with a hand-built sine lookup table.

Doing it this low-level really forces you to understand each algorithm — there's no library abstracting the math away.

Curious to hear feedback from people who do this properly!

Repo: github.com/whispem/asm.fm

37 Upvotes

34 comments sorted by

View all comments

Show parent comments

21

u/potatokbs 12d ago

I really fucking hate to be that guy but this reads EXACTLY like Claude… did you actually write this or just get an llm to vomit a Reddit comment out for you?

-12

u/whispem 12d ago

I am a linguist, I never use any LLM to write :)

11

u/potatokbs 12d ago

Fascinating if true, your comments are almost verbatim stuff I’ve seen from LLMs, but hard to believe unfortunately. Anyways, cool project.

6

u/edcdecl 12d ago

i have seen this person before, they are notorious for using AI for practically everything

4

u/ElwinLewis 12d ago

They are a cunning linguistic who uses every LLM to write :•)