[−][src]Crate periodicsynth
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, 440f, 8000); }
Functions
cos | Generate a co-sinusoid of an arbitrary frequency. |
null | This is just for covinience, generates 0-valued samples. |
sin | Generate a sinusoid of an arbitrary frequency. |
sqr | Generate a square-wave of an arbitrary frequency. |
synth | Synthesize a signal using a defined number of samples and a custom function. |