Crates.io | tui-equalizer |
lib.rs | tui-equalizer |
version | 0.2.0-alpha |
created_at | 2025-02-11 02:02:20.073816+00 |
updated_at | 2025-07-12 02:29:23.647024+00 |
description | An equalizer widget for Ratatui with multiple frequency bands. |
homepage | |
repository | https://github.com/joshka/tui-equalizer |
max_upload_size | |
id | 1550880 |
size | 74,769 |
An equalizer widget for Ratatui with multiple frequency bands.
The equalizer is a vertical bar chart where each band represents a frequency range. Each band can display a value from 0.0 to 1.0, where 1.0 is the maximum value.
This demo can be found in the examples folder in the git repo.
cargo run --example demo
Inspired by a comment in the ratatui repo.
use tui_equalizer::{Band, Equalizer};
let equalizer = Equalizer {
bands: vec![
Band::from(0.5),
Band::from(0.8),
Band::from(0.3),
],
brightness: 1.0,
};
equalizer.render(area, &mut buf);
Copyright (c) Josh McKinney
This project is licensed under either of:
at your option.