Plinky wavetable generator
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:
- a single cycle waveform, of at least 512 samples (this tool resamples it to 512)
- 16 bits
- mono
The generator downsamples the waves for Plinky (32kHz) and generates various octaves pre-filtered.
Building
clang++ -O2 wavetable.cpp -o wavetable
Running
./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.