Blyx Nest Blyx language
Registry / Framework
framework · v0.1.1

Warbler

Flag sustained clipping while reporting the energy of an audio frame.

Source repository · Package JSON

Use Warbler

use vendor::warbler::warbler;

Run the example

nest demo warbler@0.1.1
blyxc native-run warbler-demo/main.blyx
Example source and expected output
use vendor::warbler::warbler;

fn main() {
    let samples = [1, -1, 0, 0];
    let ceiling = 1.0;
    let allowed = 1.0;
    let result = warbler_meter(samples, ceiling, allowed);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

1
0.5
2
1

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIPb98767600736ce6480635da39f2d260a591936c37ad7fed31f4f1293ff019cc9eb4a1c7dfb