Skip to main content

Module wav

Module wav 

Source
Expand description

WAV file I/O for testing and offline rendering.

Uses hound to write processed audio to WAV files so circuits can be auditioned without a running JACK server.

Constants§

DEFAULT_SAMPLE_RATE
WAV output spec: 48 kHz, 32-bit float, mono.

Functions§

guitar_pluck
Generate a guitar-like test signal (sum of harmonics with decay).
read_wav_mono
Read a WAV file and return mono f64 samples normalized to [-1, 1] plus the sample rate.
render_to_wav
Process a buffer of samples through a pedal and write the result to a WAV file.
sine_wave
Generate a sine wave test signal.
write_stereo_wav
Write both input and output (stereo) to a WAV for A/B comparison.
write_wav
Write raw f64 samples to a WAV file.