This is a wavetable header generator for Plinky.
It expects files from c0.wav
to c14.wav
in the same folder.
Wavs must be in this format:
- 1024 or 2048 samples
- 16 bits
- mono
The generator downsamples the waves for Plinky (32kHz).
clang++ -O2 wavetable.cpp -o wavetable
./wavetable
It should generate a wavetable.h
which you can use in the main Plinky project- just copy it to Core/Src/wavetable.h
and recompile the Plinky firmware.