How marklindstorff/image2wave works
Image2Wave is a CLI converter that turns an image into a wavetable-ready WAV. The user supplies an image and may specify an output path; the CLI loads the image, converts it to a grayscale heightmap, samples columns into waveform frames, normalizes them, and exports the concatenated frames as mono WAV. The README identifies synthesizers such as Serum as intended consumers. The sampled source shows the CLI’s calls and conversion details; the synthesizer handoff is documented rather than implemented here.
Main entry points: main.py CLI workflow · exporter.py WAV export · image_loader.py Image loader · heightmap.py Heightmap conversion
Components 9
Input and CLI
- CLI workflow
image2wave/main.py - Image loader
image2wave/image_loader.py
Signal conversion
- Heightmap conversion
image2wave/heightmap.py - Frame sampling
image2wave/wavetable.py
WAV output
- Global normalization
image2wave/exporter.py - WAV export
image2wave/exporter.py - WAV file
Other components
- User
- Wavetable synthesizer
Connections 8
- User → CLI workflow: runs
README.md - CLI workflow → Image loader: loads image
image2wave/main.py - CLI workflow → Heightmap conversion: converts image
image2wave/main.py - CLI workflow → Frame sampling: slices frames
image2wave/main.py - CLI workflow → Global normalization: normalizes frames
image2wave/main.py - CLI workflow → WAV export: exports frames
image2wave/main.py - WAV export → WAV file: writes WAV
image2wave/exporter.py - WAV file → Wavetable synthesizer: imports as wavetable
README.md