[−][src]Crate periodicsynth
This crate is a minimalist crate to generate signal with arbitrary functions to a limited time-resolution.
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 in a defined time-resolution which is controlled by the number of samples by by using those time-positions or a custom data structure to accomplish that. |