https://github.com/xigh/spectrogram
Taking an audio signal (wav) and converting it into a spectrogram. Written in Go programming language.
https://github.com/xigh/spectrogram
dft fft golang hamming-window image png pre-emphasis spectrogram wav
Last synced: 10 months ago
JSON representation
Taking an audio signal (wav) and converting it into a spectrogram. Written in Go programming language.
- Host: GitHub
- URL: https://github.com/xigh/spectrogram
- Owner: xigh
- License: bsd-3-clause
- Created: 2018-09-05T10:30:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T21:22:39.000Z (almost 5 years ago)
- Last Synced: 2025-04-03T22:23:38.941Z (11 months ago)
- Topics: dft, fft, golang, hamming-window, image, png, pre-emphasis, spectrogram, wav
- Language: Go
- Size: 10.9 MB
- Stars: 45
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spectrogram
Taking an audio signal (wav) and converting it into a spectrogram. Written in Go programming language.

# Install
git clone https://github.com/xigh/spectrogram
# Example
python3 sine_wav.py && ../../xigh/spectrogram/spectrogram -hamming -hideavg -bins=256 sine.wav

# Usage
./spectrogram [options] input_file.wav
```
-preemp float64
set pre-emphasis parameter (0 means no pre-emp)
-rectangle
disable hamming window support
-BG0 string
set background color 0 (default "000000")
-BG1 string
set background color 1 (default "333")
-BG2 string
set background color 2 (default "447744")
-FG0 string
set forground color 0 (default "0972a2")
-FG1 string
set forground color 1 (default "6b5f7e")
-RUL string
set rulers color (default "a0b0c0")
-bins int
set freq bins (default 512)
-dft
use dft instead of fft
-height int
set height (default 450)
-hideavg
hide average
-hiderulers
hide rulers
-length int
set number of samples [0 means all]
-offset int
sey begin of samples
-out string
set output filename (default "out.png")
-ratio float
set ratio (default 0.8)
-width int
set width (default 2048)
```