UBUHANZI
UBWIZA N'UBUZIMA
UBUKORIKORI
UMUCO N'AMATEKA
IMYIDAGADURO
IBIDUKIKIJE
IBIRIBWA N'IBINYOBWA
UBWUBATSI BUSUBIRA INYUMA
UBUMENYI
SIPORO
IKORANABUHANGA
IBYAMBARWA

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.
Utangiye
30 minutes
Amabwiriza
1
1
What the FFT reads
What the FFT reads
Gupakira ikaye ya Jupyter…
2
2
The program
The program
Install Python 3 with numpy, matplotlib and sounddevice, save this as spectrum.py and run it.
spectrum.pypython
Ibikoresho bikenewe:
Mudasobwa yo ku Meza3
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.
Ibikoresho bikenewe:
Mudasobwa yo ku Meza
Insinga y'ijwiIbikoresho bikenewe
2- Umwanya
- 1 vendor sell this, none ship to you yetUmwanya
Bishingiye kuri: ibikoresho by'ibishushanyo byabanje
Iki gishushanyo gikora
CC0 Umurenge rusange
Iki gishushanyo cyasohowe munsi ya CC0. Ushobora gukoporora, guhindura, gukwirakwiza no gukoresha nta kwemererwa.
Shyigikira Umuremyi ugura ibicuruzwa binyuze mu gishushanyo cye Komisiyo y'Umuremyi byashyizweho n'Abacuruzi, cyangwa kora verisiyo nshya y'iki gishushanyo ukayinjiza nk'isano mu gishushanyo cyawe kugira ngo musangire inyungu.

