wavegen
wavegen
is a wavefrom generator made with 🦀
Refer to documentation for usage examples.
How to use it?
- Define a waveform with sampling frequency and function components
let wf = with_components;
- Turn it into an iterator and sample
let some_samples: = wf.into_iter.take.collect;
Show me some examples!
- Simple sine
- Two superposed phase-shifted sines
- Sawtooth
- Superposition of sine + sawtooth
- Square wave
- Superposition of Sine, Square and Sawtooth with different frequencies
All above examples are generated with simple program found in examples/plot.rs
. Run cargo run --example plot
to generate them yourself.
no_std
?
Yes. This crate requires no standard library features, and uses the no_std
declaration.