Expand description
This crate is a minimalist crate to generate signal with arbitrary functions to a limited time-resolution.
Some functions are given by default (eg. square, sine, cosine, null).
§Example
use periodicsynth::{sin, synth};
fn main()
{ let samp = synth(sin, &mut 440f64, 8000); }
Functions§
- Generate a co-sinusoid of an arbitrary frequency.
- This is just for covinience, generates 0-valued samples.
- Generate a sinusoid of an arbitrary frequency.
- Generate a square-wave of an arbitrary frequency.
- Synthesize a signal using a defined number of samples and a custom function.