r/DSP • u/phunkshunz • 3h ago
r/DSP • u/i38white • 1d ago
Live DSP out of buffer bounds delay
I'm working on a project involving live (audio) dsp, where I want to implement a larger delay.
Unfortunately, I am completely fresh to this field and though this calls for extra reading and studying, there is a bit of a pressure on time. As far as I understand it, live DSP always centers around buffers, and that is what I'm trying to implement, however I don't understand how it would be possible to delay a sample for example, by thousands of samples, i.e. completly out of bounds of the buffer
The only way I could come up with on my own is to implement some logic that counts how many buffer lengths the desired delay is, and then that writes an array that through logic is outputted some buffer lengths later. But then I'm not sure how to implement that, if I need to keep saving the amount of arrays that can accommodate the delay, especially if the delay can also be changed live. Also, I just don't know how much processing time that would take away
I made a free library of 152 DSP animations, each with a step-by-step explanation
I teach audio DSP and have been making short animations for my lectures. I've now put them all in one place, sorted by topic instead of by lecture:
https://samdsmithuk.gitlab.io/dsplab/
There are 152 animations in 22 topics, from sampling and aliasing through convolution, the DFT/FFT, FIR/IIR filters and the z-plane, to reverb (Schroeder, FDNs), the phase vocoder, MDCT and masking, and the DCT/JPEG. Each one has a short written explanation, and about 40 have sound.
A few things that might be useful:
- You can link straight to one animation (e.g. .../dsplab/#AliasingSweep), for slides or reading lists
- Search covers the explanations as well as the titles
- It works on phones
They're made with Manim. Feedback is very welcome, especially if anything is wrong or unclear, or there's a topic you'd like to see.
r/DSP • u/padmapatil_ • 4d ago
Interpretation of Signals in Time and Geometry
Please Read!
This post is for discussion for the fundamentals. There is no any irony/hidden fact. The goal is brainstorming together without discouraging each other. So please do not be someone’s supporter when it comes to attitude. Please, take me serious and answer questions about signal processing. My goal is not collecting ups from the post but just discussion. I learned a lot while discussing the topics with the Redditors and I am so thankful for that. Please do not discourage someone and be polite while expressing yourself.
Today, I’ve just realized that one of the fundamentals sometimes causes confusion while interpreting signals. I wanted to discuss, because this is quite important if you are a newbie.
We keep saying that sin(x) and cos(x) correspond to x and y in a coordinate system. This is true, but confusion starts here too.
- First of all, x and y are like scaled version of sin(x) and cos(x).
- Sin(x) and cos(x) are functions, they build another coordinate system.
- When you look at the spectrum of a signal, the y is amplitude, not sin(x). So the frequency information is related to time.
- Again, we are realizing frequency; it is cyclic, then we again get sin(x) and cos(x). All of the processing is placed in time; it yields results in sin(x) and cos(x). The behavior of sin(x) and cos(x) is like an arrow; we get the vector notation for a single tone.
- We have such confusion because we are forgetting that we label x as time, which is not a cos(x) directly. Time carries a dense view of cyclic information, like a number. The sin(x) and cos(x) just lies in deeper part.
Long story short, we should know the importance of the labeling coordinate system. When we say sin(x) is y and cos(x) for x, we should know that this is another coordinate system. We are also be aware that we are mixing geometry and algebra while observing spectrum. I think this is the coolest part.
What do you think?
r/DSP • u/Usual-Emphasis-1950 • 6d ago
Note/Chord detection with microphone guidance
Hello everyone!
I built a piano app a couple of months ago ( Pianly.org) but have been spending most of my time trying to implement one feature: accurate and fast mic detection. I’ve taken some audio signal processing courses and tried implementing algorithms like FFT, HPS, etc, but I always encounter some sort of problem (usually annoying stray harmonics). Currently the app uses Basic Pitch (spotifies note detector) which is accurate, but also slow.
Could someone point me in the right direction, or maybe consider contributing to the repository if they know a solution?
Link to GitHub is https://github.com/KeerCode/Pianly
Thank you!
r/DSP • u/Fearless-Can-1634 • 6d ago
DSP in Ukraine war
I have seen some video of a very interesting explanation of how Ukraine attacked the Crimea bridge. And it was talking to some very advanced DSP stuff. Is that Ukraine tech or they’re getting help from somewhere?
r/DSP • u/Working_Hat5120 • 8d ago
Real-time sound event detection for dashcams in 7.6 MB of plain C (no deps, streaming API)
I built a small ( 1.9M params ) on-device model that labels dashcam and in-cabin audio live: crashes, skids, debris, horns, sirens, shouts, and 15 more categories, each with a start and end time.
It runs causally (decides every 0.1 s from past audio only) at ~47x real time on one x86 core (checked on desktop CPU only), in plain C with no dependencies.
I also published the test set we evaluate on (37 real dashcam recordings, human-reviewed timestamps) and ran 7 open models through the identical protocol: same category mapping, same decoder, thresholds chosen by two-fold cross-validation for every system.
Model Card huggingface.co/WhissleAI/arc-sound-dashcam
Test set: huggingface.co/datasets/WhissleAI/arc-sound-dashcam-test-v1 (also includes comparison results)
r/DSP • u/IlMerlo20 • 8d ago
PhaseVocoder: 4-voice polyphonic MIDI-controlled vocal harmonizer
r/DSP • u/Obvious_Rabbit848 • 9d ago
How to approach Digital Signal Processing?
Hello everyone, I recently finished my semester with Signals and Systems, and looking at my end semester exam it doesn't seem likely I'll be getting good marks in that. Next semester we have DSP which according to our professors is amongst the hardest subjects and has all its fundamentals in this semester's Signals and Systems. I don't want to repeat the same mistakes and bomb DSP also. Since I will have a month of winter break before the next semester starts, any advice on how to approach topics again? Any resources, courses, lectures referred will be appreciated.
r/DSP • u/fox-and-tiger • 9d ago
Which textbooks to keep
Hi community,
I might have to move soon, so I'm trying to downsize on my textbook collections. Which of these would be best to keep as good reference for years to come? Should I just keep all of them, or one or two?
I would appreciate your opinions/reasons/twocents.
r/DSP • u/Promising_Out • 10d ago
Hiring: Audio DSP Engineer – Palo Alto, CA (Onsite)
Hey Everyone,
We're looking for an Audio DSP Engineer to join us in Palo Alto, CA.
Quick details:
• Location: Palo Alto, CA
• Rate: Flexible and open to discussion
• Accommodation: We can help provide it
• Visa: Unfortunately, we can't sponsor visas at this time
If you have 5+ years of audio DSP experience and are interested, comment below or send me a DM with your resume and availability. Referrals are welcome too.
Thanks!
r/DSP • u/HMAudioDesign • 11d ago
Wavefolding in Mutable Instruments Plaits
Hey,
Let me preface this question by saying that I don't have any formal education in DSP beyond intro-level classes I took while studying audio engineering at uni more than a decade ago. So, apologies if this is a noob question!
I've been re-creating one of the algorithms from Mutable Instruments Plaits in the modular environment PlugData, just for the sake of learning more about waveshaping and wavefolding, and also because it's fun.
The model in question is the second model from the first bank (green models, the more tonal ones) (see manual). It's quite simple: a triangle oscillator with adjustable asymetry (you can 'morph' it into a sawtooth), into a waveshaper, into a wavefolder.
The transfer curves for the waveshaping and wavefolding are pre-calculated using python in this file: lookup_tables.py (and then applied to the output of the oscillator using the table lookup method, as the name implies - in this file: waveshaping_engine.cc).
Most of the waveshaping/wavefolding in that file is pretty standard (different flavours of trigonometric functions), but I'm curious about this last wavefolding method (the one that is applied to the auxiliary output):
x = numpy.arange(0, WAVESHAPER_SIZE + 4) / (WAVESHAPER_SIZE / 2.0) - 1.0
x[-1] = x[-2][...]
def deadband(v_in, r_in, r_load, r_fb=150.0e3, v_sat=10.47):
v_out = -r_fb / r_in * v_in
v_out[v_out >= v_sat] = v_sat
v_out[v_out < -v_sat] = -v_sat
return (v_in * r_fb * r_load + v_out * r_in * r_load) / (r_fb * r_load + r_in * r_load + r_in * r_fb)
def diode(x):
return 0.7 * x / (0.3 + numpy.abs(x))
v_in = x * 12.0
stage_1 = deadband(v_in, 10e3, 100e3)
stage_2 = deadband(v_in, 49.9e3, 44.2e3)
stage_3 = deadband(v_in, 91e3, 18e3)
stage_4 = deadband(v_in, 30e3, 71.4e3)
stage_5 = deadband(v_in, 68e3, 33.0e3)
stage_45 = -33.0 / 71.4 * stage_4 -33.0 / 33.0 * stage_5 - 33.0 / 240.0 * v_in
v_out = diode(-150.0 / 100.0 * stage_1 -150.0 / 44.2 * stage_2 - 150.0 / 18.0 * stage_3 - 150.0 / 33.0 * stage_45)
lookup_tables.append(('fold_2', v_out / v_out.max()))I used pyplot to graph:
- the resulting 'wavefolding' curve
That last transfer function inverts the polarity of the incoming signal, but this is cancelled in the implementation in waveshaping_engine.cc:
float sine = Sine(aux[i] * 0.25f + 0.5f);
[...]aux[i] = sine + (fold_2 - sine) * overtone_gain_modulation.Next();
I'm curious where Émilie Gillet (the creator of Mutable Instruments modules) takes inspiration from for these 'deadband' and 'diode' methods? Are those commonly encountered transfer functions? In electronic circuit modeling maybe? I did a bit of googling but couldn't find anything that looks similar
Thanks in advance!
r/DSP • u/Huge-Leek844 • 11d ago
Hired for Radar Signal Procesing Enginner, got reorged into Embedded
Hello all,
I was recently hired as a Radar Signal Processing Engineer. During onboarding, I was working on MIMO, linear algebra, field issues, light data science.
Our team just got reorganized, and the roles were split up. Each person is now responsible for one area. I was assigned to firmware because i have experience wuth coding.
Wtf? I feel like I just got hit with a classic corporate bait-and-switch. Instead of working on the math, i am reading datasheets and debugging CAN.
For those of you working in radar/DSP: how bad is this? Should I push back immediately or start looking elsewhere? Do i need to start making side projects?
Thank you
r/DSP • u/ScamSchoolBrian • 12d ago
Field-testing 5 DSP countermeasures against aircraft Doppler audio geolocation (FFT bin scrambling, spectral gating, ML denoising, and synthetic Doppler chaff)
Following up on colsto's video on geolocating unedited recordings from faint aircraft Doppler curves + ADS-B logs, my audio engineer (Brandt Hughes) and I wanted to see what practical real-time DSP mitigations actually hold up for livestreamers, where simple jump-cuts aren't an option.
We recorded 30 minutes of outdoor dialogue with 3 prop-plane flyovers (fundamentals around ~100 Hz shifting over ~20 Hz in a low-resolution FFT band, with strong harmonics cutting right through the vocal range) and ran our raw tracks through one of the early open-source vibe-coded programs. Right now those early scripts produce a lot of false positives on human voice (it dropped us in completely wrong towns), though another open-source build reportedly got within ~240m on colsto's reference audio.
Assuming automated detection gets better, here is what happened across 5 DSP approaches we benchmarked on the same 3 flyovers:
- FFT Bin Scrambler (Andrew Reeman Spectral Suite, applied <=500 Hz)
Randomizes frequency bins under 500 Hz. It wipes the fundamental Doppler curve cleanly off the spectrogram, but completely wrecks vocal intelligibility (sounds like severe noise-cancellation artifacts). Fun open-source proof of concept, totally unusable for speech.
2. Classic Time-Domain Noise Gate (Kilohearts / Ableton 12, zero latency)
Destructively zeroes quiet flyover tails (genuinely unrecoverable even with heavy gain boost) and can poison silence-gap filtering if it eliminates one pass out of several. Fails completely whenever speech, AC hum, or a loud overhead pass pushes the broadband signal above threshold.
3. FFT Spectral Noise Gate (iFeature Spectral Gate, ~25ms latency)
Applies per-bin amplitude gating, which solved the classic gate's AC-whine problem (high-frequency room/AC noise no longer opens the low-frequency band where the plane lives) and cleaned up flyovers #1 and #2 well. Unexpected edge case on loud flyover #3: because the plane exceeded the low-end threshold while surrounding broadband ambient noise did not, the spectral gate stripped the ambient noise around the plane and effectively isolated/highlighted the Doppler curve.
4. ML Vocal Denoising (iZotope RX 12)
The full Repair Assistant module erased even the loudest overhead flyover on the spectrogram, leaving only faint artifacts on word tails, at a heavy cost (~85ms latency and ~50% CPU on Brandt's 10-year-old rig, unworkable for live streaming). The much more practical finding for livestreamers was cascading RX 12's lightweight real-time Voice De-noise (1-2% CPU, live latency) ahead of a zero-latency classic gate: the denoiser didn't erase the plane alone, but attenuated it cleanly below the gate's threshold so the gate finished it off.
5. Additive "Sonic Chaff" (Synthetic Doppler Curves in Kilohearts Phase Plant)
Instead of subtracting the plane, Brandt adapted LAxemann's vehicle-engine Phase Plant patch into a velocity-sensitive prop-plane synth (MIDI velocity scales the Doppler curve length/steepness) and mixed synthetic passes around -20 dB under dialogue. Psycho-acoustically it blends in as mundane background noise, and on the open-source detector 6 of the first 8 high-confidence hits latched onto the synthetic decoys (1 real, 1 false positive), shifting the location estimate entirely.
SUPER curious to hear what we missed, and what were pretty good ideas.
Here's the full episode (39 minutes) https://youtu.be/9A8WlXG7SK4
r/DSP • u/Middle-Ad-5385 • 13d ago
Using a dsp on mostly stock settings??
With helix next v eight I adjusted the signal management and typed in a few crossovers and I am really enjoying the sound so far… my question is
How much better does it get after using a mic for calibration and is it worth paying 500 bucks to have it professionally done? Looking for real life experience/scenarios and not the “ai” answer please
r/DSP • u/JadedAlternative4487 • 16d ago
Is signal possessing and communications cooked by AI ?
I'm considering going into signal processing for my EE masters , especially DSP, radar, and communications. With how quickly AI is advancing, do you think signal processing engineering is at risk of being automated or replaced? Is it still a good field to pursue long-term, or should I be concerned about AI taking over these jobs?
r/DSP • u/Ok-Concentrate-5679 • 16d ago
Need a book. Name = Communication Systems Engineering with GNU Radio: A Hands-on Approach.
reddit.comr/DSP • u/pradeep765 • 16d ago
Recovering a sentence from a phone accelerometer sampled at 398 Hz by aliasing it on purpose
Setup: Android phone, accelerometer at ~398 Hz (Nyquist ~199 Hz). Audio is played through the phone's own speaker, which only shakes the chassis above ~120 Hz (measured with a 20–400 Hz sweep). The sensor has little anti-aliasing, so 285–390 Hz folds cleanly into 10–113 Hz.
Pipeline:
- Band-limit speech to 250–1900 Hz
- Slow down 16x, to 15.6–119 Hz
- Single-sideband shift +269 Hz (Hilbert), to 285–388 Hz
- The sensor folds it to 10–113 Hz, mirrored
- Receiver: resample the jittery timestamps onto a uniform grid, pick the axis with the best in-band SNR, spectral subtraction using a silent lead-in, conjugate the analytic signal to unmirror, shift back down, speed up 16x
In-band SNR is ~16 dB. Pre-emphasis plus 2:1 companding (the expander driven only by the received envelope) made the pauses silent, but hiss inside the words remains.
Spectrograms, audio and code: https://github.com/pradeeppc/accel-voice-temple-inspired
Question for the sub: how would you push intelligibility further at a ~16 dB in-band SNR? Better noise reduction, or using the direct 120–199 Hz band and the folded band at the same time?
r/DSP • u/Asleep_Investment962 • 17d ago
I’ve open-sourced LiveWDF
I've been working on LiveWDF for a while, and I've finally made the repository public.
LiveWDF is a C++ project built around Wave Digital Filters (WDFs), focused on simulating analog audio circuits in real time.
I've been working on the simulation engine, component models, tube models and a lot of the underlying stuff that makes circuit simulation possible.
There's no official release yet. The project is still under development, and there's quite a bit of work to do before it's ready for one.
That's partly why I'm opening it up now. I'd love to get other people involved, whether that's contributing code, testing things, working on circuit models, improving documentation, sharing ideas or just helping figure out where the project should go next.
If you're into C++, electronics, circuit simulation, audio DSP or any of this stuff, come have a look. I'd be happy to have you involved.
GitHub: https://github.com/Yahiake/LiveWDF
Discord: https://discord.gg/8CV9S2zAQ
Let's get this thing to its first release together.
r/DSP • u/PlaceOriginal2006 • 18d ago
Is DSP in demand in defense ?
Hello,
I want to know if DSP is in demand in defense ? Mostly radar, I’m interested in doing DSP or RF in the future, just want some feedback/ information about the industry in general
I’m a Comp engineering major wanting to get a MS in EE in either DSP or RF
r/DSP • u/MeasurementDull7350 • 19d ago
PPG 빛으로 읽는 생체신호: 심박수부터 비접촉 측정까지 완전정복 #rPPG #light #biosignal #heartrate ...
r/DSP • u/Greedy-Cucumber9200 • 20d ago