KUNST
SCHÖNHEIT & WELLNESS
HANDWERK
KULTUR & GESCHICHTE
UNTERHALTUNG
UMFELD
ESSEN & GETRÄNKE
REVERSE ENGINEERING
WISSENSCHAFTEN
SPORT
TECHNOLOGIE
WEARABLES

Audio Spectrum Analyser: an FFT Program for the Sound Card
A short Python program that turns a computer's sound input into a spectrum analyser: it takes a block of samples, windows it, runs an FFT and plots the level of every frequency in dB. It reads a sine's amplitude and frequency, shows harmonics and noise, and also works on WAV files.
Anfänger
30 minutes
Anweisungen
1
1
What the FFT reads
What the FFT reads
Jupyter-Notebook wird geladen …
2
2
The program
The program
Install Python 3 with numpy, matplotlib and sounddevice, save this as spectrum.py and run it.
spectrum.pypython
Benötigte Werkzeuge:
Desktop-Computer3
3
Measure a signal
Measure a signal
Feed the signal into the line input with an audio cable and run python3 spectrum.py: it prints the bin width and the strongest peak and plots the spectrum. If the peak reads near 0 dBFS the input is clipping: turn the signal down. A clean sine shows one peak; harmonics show at 2x, 3x its frequency. The sound card only sees up to half its sample rate, 24 kHz at 48 kHz.
Benötigte Werkzeuge:
Desktop-Computer
AudiokabelBenötigte Werkzeuge
2- Platzhalter
- 1 vendor sell this, none ship to you yetPlatzhalter
Basiert auf: Materialien aus früheren Blaupausen
Dieser Bauplan stellt her
CC0 Gemeinfrei
Diese Blaupause ist unter CC0 veröffentlicht. Sie dürfen dieses Werk für jeden Zweck frei kopieren, ändern, verbreiten und verwenden, ohne um Erlaubnis zu fragen.
Unterstützen Sie den Maker, indem Sie Produkte über seine Blaupause kaufen, wo er eine Maker-Provision von Anbietern festgelegt, verdient. Oder erstellen Sie eine neue Iteration dieser Blaupause und verbinden Sie sie in Ihrer eigenen Blaupause, um Einnahmen zu teilen.

