#channel #sample #mono #cavacore

cavacore

A rust wrapper of cavacore from the cava music visualizer

4 releases (stable)

2.0.2 Feb 3, 2025
0.1.0 Jan 26, 2025

#9 in #mono

Download history 91/week @ 2025-01-21 101/week @ 2025-01-28 139/week @ 2025-02-04 1/week @ 2025-03-04 4/week @ 2025-03-11

88 downloads per month

MIT license

28KB
577 lines

A rust rewrite of the core processing engine of cava.


Cavacore-rs

A rewrite in rust of cavacore.

Example

use cavacore::{CavaBuilder, Cava, Channels};

let mut cava = CavaBuilder::default()
    .audio_channels(Channels::Mono)
    .build()
    .unwrap();

// feed cava with some samples
let mut new_samples: [f64; 3] = [1., 2., 3.];
let mut bars = cava.make_output();

// and let it give you the bars
cava.execute(&new_samples, &mut bars);

Dependencies

~4MB
~70K SLoC