delay_line 0.1.2

A delay-line buffer for real-time use.
Documentation
  • Coverage
  • 20.63%
    13 out of 63 items documented12 out of 57 items with examples
  • Size
  • Source code size: 40.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • sigurd4/delay_line
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sigurd4

A delay-line buffer for real-time use.

Examples

In this example, we mix in a delayed version of the signal x, delayed by 2 samples.

use delay_line::*;

let mut x = [1.0, 0.0, 0.0, 1.0, 0.0, 0.0];

let mut delay = delay_line![0.0; 2];

for x in &mut x
{
    *x += delay.delay(*x)*0.5;
}

assert_eq!(x, [1.0, 0.0, 0.5, 1.0, 0.0, 0.5])