r/DSP • • Jul 17 '26

My new real-time finite-difference time-domain string synthesiser

396 Upvotes

PartialString simulates the vibration of a plucked string by numerically solving the one-dimensional wave equation in real time using the finite-difference time-domain (FDTD) method. The string is represented as a list of displacements in memory. A lower note requires a longer string, which needs more points to represent it. You can then excite the string at any point along its length, and the FDTD scheme will compute how that change in displacement propagates. A pickup measures the displacement at a chosen location, and this generates the audio output.

I've been (very occasionally) working on this since releasing https://github.com/crnbaker/gostringsynth in 2022. I did something similar (but not real-time) for my MSc at Edinburgh back in 2009, using MATLAB.

Free to download at: http://www.differentinstruments.com.


r/DSP • • Aug 30 '25

Just sharing my DSP self-learning books

Post image
218 Upvotes

Currently loving the “Strum & Kirk” and is currently my main study guide.

I have not been past Chapter 2 of that book since I want to understand the basics by heart and mind.

Despite that, I’m already feeling burnt-out so help me God! 😁


r/DSP • • Aug 26 '26

Richard Lyons has passed away

Thumbnail
dsprelated.com
164 Upvotes

r/DSP • • Mar 07 '22

Sub-Nyquist Sampling While Listening to My Girlfriend

Thumbnail
gallery
150 Upvotes

r/DSP • • Jan 06 '23

fft go brrr

Post image
146 Upvotes

r/DSP • • Sep 15 '25

[OC] How the Cooley-Tukey Algorithm Computes the Discrete Fourier Transform of a Signal

144 Upvotes

I made this interactive visualization as part of my blog post explaining how the Cooley-Tukey algorithm works


r/DSP • • Feb 16 '26

OPEN BOOK: Engineering Signal Analysis: From Fourier to filtering: Theory

Post image
139 Upvotes

Released last week. Free Ebook from TU Delft OPEN BOOKS licensed under a Creative Commons Attribution 4.0 International License. https://books.open.tudelft.nl/home/catalog/book/247

Highly recommended.

Image mockup: MockupFree.co


r/DSP • • Aug 16 '25

A Python to C short-time fast Fourier transform migration

Post image
137 Upvotes

I've been working on the latest release for Spectre - a receiver-agnostic Python program for recording radio spectrograms. I use it for solar radio observations, and have attached a spectrogram I captured in my garden showing a very nice Type II solar radio burst from earlier this year.

To generate these images, the core of the program is executing many, many and many more repeated short-time fast Fourier transforms (STFFT) on I/Q samples streamed from software-defined radios. For a long time, I was using the ShortTimeFFT class from Scipy - the docs are great, and it got the job done. However, some unrecorded time profiling revealed it was a significant bottleneck during post-processing. So, after a year or so of having it as an ever-present pending task at the back of my mind, I finally got round to replacing it !

I've since migrated to the excellent pyfftw package, a Pythonic wrapper around the FFTW C library. To do this, I first implemented my own STFFT in C using FFTW, which is housed on the spectre-lite GitHub repo. What was cool was that getting a strong understanding of the memory model in C meant that the implementation could be effectively lifted and shifted into Python. For the curious (and critical - do have mercy!), you can see the implementation here.

The hard part was making sure that the code performed identically before and after the migration. To ensure this, I wrote a bunch of tests which compare spectrograms generated by the program in the case of synthetically generated signals (mostly, cosine waves) to corresponding analytically derived results.

Anyway, if you're interested do take a look at the release and the related PR.


r/DSP • • Aug 03 '21

I hate to say it, DSP engineers are the worst

136 Upvotes

Sorry about the rant..but...

I work with a lot of different engineers. Every time I work with someone who is a "DSP engineer", it is just always a horrible experience, having to deal with the most conceited, tight-lipped, and gatekeeping of all my coworkers. Look, I love DSP. I love the math behind it, I love learning new algorithms. But having to deal with another person who thinks they speak to God because they can design a PLL using a pole/zero plot makes me want to puke. Or another DSP grey-beard who just won't answer any questions, even when they know the answer, or share a damn thing about some code they wrote. Or another DSP bullshitter, who rants about the MUSIC algorithm and comb filters, and who's cutting edge algorithm when I finally cut through the nonsense is just a CORDIC and a 10-tap FIR filter. Or finally a DSP manager, who gets to tap whichever disciple is worthy enough to join the Holy Order of the Nyquists and gets to use Simulink, while the other infidels are destined to ignorance writing C++.

x(


r/DSP • • Jun 16 '25

Update: I got a job after my rant on r/DSP

108 Upvotes

Two months ago, I went on a rant here with my unsuccessful job search in theoretical wireless communication. This is an update, shortly after, I got a job after quite a lot of technical rounds. It was a job I applied for before posting my rant. Cheers. It starts in August. A lot of people helped me in that post and I'll forever be grateful.

Thank you!


r/DSP • • Oct 23 '25

I compiled the fundamentals of two big subjects, computers and electronics in two decks of 55 playing cards. [OC]

Post image
102 Upvotes

r/DSP • • Nov 22 '20

What type of Christmas tree do DSP engineers prefer setting up?

94 Upvotes

Fir trees. Because they're guaranteed to be stable.

(I'll see myself out…)


r/DSP • • Jul 08 '26

DFT, DTFT, FIR Filter Response Demo with Spinning Phasors

92 Upvotes

The VectorSpin program by dsp-coach.com is now live for interactive use. Here we see it demonstrating the frequency response for a 5 tap unity gain FIR filter (moving average filter). The frequency response is plotted as a magnitude and phase plot (showing how it is a low pass filter), as well as the same plot on a complex plane, showing the concept of spinning phasors:

The transfer function for this filter is H(z) = 1 + z⁻¹ + z⁻² + z⁻³ + z⁻⁴.

The frequency response (when z is restricted to the unit circle) for each of these components are phasors in the frequency domain (we see this with the IQ plot):

1 is a phasor in the frequency domain with magnitude 1 and angle zero (it does not rotate).

z⁻¹ is a phasor in the frequency domain rotating clockwise once.

z⁻² rotates twice, etc.

Combining all 5 phasors is the result we see above, here scaled by dividing by 5.

Fast link to the tool so you can try your own samples and many other options:

https://vectorspin.dsp-coach.com/vector_spin.html

More detailed explanations:

https://www.dsp-coach.com/reference


r/DSP • • Jan 06 '26

Hay, I dunno how to put this gracefully...

88 Upvotes

But the Signal Processing Stack Exchange has experienced a steady decline in traffic since covid. We have no explanation.

This sub is good, but you can't really post decent math expressions without LaTeX and that sometimes limits how deep you can get into a topic. The SP Stack Exchange allows for links of course, and LaTeX math, and posting figures.

If you haven't considered going over there to either ask questions or contribute an answer, I would gushingly recommend the DSP SE.


r/DSP • • Feb 23 '21

Just released my first video about Fourier Transforms.

Thumbnail
youtu.be
85 Upvotes

r/DSP • • Jul 01 '25

Educational interactive tools for learning about DSP - leonwurr.com

Post image
81 Upvotes

Howdy! Ever watched a 3brown1blue video or similar, about things like the Fourier Transform, and thought "Ah, I wish I could play with those animations and change the parameters myself!"?
Welp, that was what inspired me to create a few interactive tools to teach/learn about the Fourier Transform, specifically the Short-Time DFT, and how parameters such as Frequency Resolution, Overlap, Sampling Rate are affecting how a Spectrogram looks for example.

My goal with this post here is just to share it around, and maybe gather some feedback about it :)
It's available here if anyone is interested, completely free, no login, no newsletter nonsense: https://leonwurr.com/

On the "About" page there are some explanations and videos on how to use the tools, and what is their goal, example: Short-time Fourier Transform (STFT) - Interactive DSP Tools (Part 3)

As part of my job I've been teaching about DSP for a few years now, and I always found it hard to explain these abstract concepts to novices, without the aid of such tool. It's hard to answer a question like "ok, but what frequency resolution should I use for my processing then?" without showing how it affects the processed data, so, with these tools I've been managing to cut the DSP teaching time from hours to minutes :D

Hope this "AI Slop" I created together with my LLMs friends 😅 might be useful to other people!


r/DSP • • Jul 24 '21

Z-Transform - Practical Applications

Thumbnail
youtu.be
81 Upvotes

r/DSP • • Jun 20 '21

We made a tutorial about how to design and implement a low-pass filter on an Arduino

Thumbnail
youtu.be
81 Upvotes

r/DSP • • Feb 26 '26

Has anyone here read Digital Signal Processing – Principles, Algorithms, and Applications by Proakis?

Post image
80 Upvotes

I’m planning to study DSP seriously (especially for communications/RF applications). Has anyone read this book?

How is it in terms of depth, clarity, and practical understanding?

Would you recommend it over other DSP books?

Thanks!


r/DSP • • Oct 12 '19

Engineers solve 50-year-old puzzle in signal processing

Thumbnail
techxplore.com
79 Upvotes

r/DSP • • Mar 04 '26

Homemade spectrum analyzer

78 Upvotes

Hey guys!

Here's a spectrogram & spectrum analyzer I implemented on a cheap FPGA using the hardware description language VHDL.

The video show it analyzing a bunch of ocean sounds. Note the visible sonar signals. The second half of the clip shows an OSINT recording I found of an undisclosed warship/submarine sonar.

FIR filters in action:

https://imgur.com/a/gedTv8N

Music with visible overtones from instruments:

https://imgur.com/a/nPDdHSR

Singing pilot whales:

https://imgur.com/a/wBNu3mk

Highlights:

  • Filter bank: FIR filters with runtime adjustable cutoff frequencies

  • N-point FFT: a radix-2 Cooley-Tukey implementation. Uses a time-shared butterfly implementation, which works just fine when sampling at 48.8 kHz. Instantiated as 1024 points

  • DVI/HDMI video drivers: coded from looking at the HDMI specs. Had it collecting dust from a previous retro Breakout implementation I did. Also uses an ascii ROM and tile-scaling to generate text

  • On-board ARM core: configures ADC/DAC and handles FIR coefficients. LPF coefficients generated via Kaiser windowing and HPF from LPF spectral inversion!

  • Internal Signal Generator: used in early design stages to produce reference signals when debugging the FFT. Can produce chirps, noise, tones, sinc etc... A mux can be toggled between ADC and Signal Generator samples with the push of a button.

  • 1D Spectrum Analyzer & 2D Spectrogram: uses a log2() compressor to store 240 batches of FFT output in order to view it in a waterfall plot.

Test framework:

I found that using a Python framework was incredibly powerful for this specific development. I could generate filter coefficients or FFT twiddle factors in Python then load those along with a reference input, simulate the FPGA gate logic and then parse the output data and automatically check against a reference. This also allowed me to use plotting to view frequency/phase responses etc.

I wanted to code everything from scratch in VHDL. Being new to FPGAs it was way harder than I thought but the end results turned out pretty neat! This project was basically an amalgamation of different ideas I had. I just wanted to do something in order to learn more about different subjects. I also wanted to view the tones produced by a nasty guitar tone on my Fender.

Further improvements would be stuff like window functions, Ethernet stream to a PC etc. I'd also love to run RF through this setup, but that'd require another FPGA board I guess...

Lmk if you have any questions :-)

P.S. I see that I misspelled "Waterfall" in the GUI. Oh well...


r/DSP • • Jun 01 '26

I had to....

Post image
75 Upvotes

They need to take my AI access away


r/DSP • • May 24 '18

Great explanation of the Z-transform

Thumbnail
youtube.com
72 Upvotes

r/DSP • • Jan 29 '26

Can we have a rule against deletes?

71 Upvotes

It happens way too often here that someone asks for help, we provide answers, and then as soon as the OP has learned what they needed, the question gets yoinked. I find that pretty discouraging. The effort is now wasted in the sense that nobody else can find the question and answers, and presumably any karma is gone as well.

There are other subreddits where 'dirty deletes' result in a ban. There are also subreddits where a bot reposts the question so the original question remains (not sure whether that protects against deleting the top post).

Is this something that annoys you as well? Is this something we want to address?