Skip to content

Instantly share code, notes, and snippets.

View Ryuk17's full-sized avatar
👻
Who can save me?

Ryuk Ryuk17

👻
Who can save me?
View GitHub Profile
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */
/*
All data are fixed-point short integers, in which -32768
to +32768 represent -1.0 to +1.0 respectively. Integer
arithmetic is used for speed, instead of the more natural
floating-point.
For the forward FFT (time -> freq), fixed scaling is
performed to prevent arithmetic overflow, and to map a 0dB
sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq
@dofuuz
dofuuz / cm_audaspec.py
Created March 10, 2022 07:16
Audacity spectrogram colormap for Matplotlib
# Audacity spectrogram colormap data
# https://github.com/dofuuz/audacity-colormap
audaspec_data = [
[0.000009, 0.000025, 0.000020],
[0.000227, 0.000394, 0.000344],
[0.000630, 0.001132, 0.000994],
[0.001157, 0.002212, 0.001945],
[0.001770, 0.003620, 0.003193],
[0.002441, 0.005351, 0.004740],