Skip to content

joshka/tui-equalizer

Repository files navigation

tui-equalizer

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.

Made with VHS

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.

Example

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);

License

Copyright (c) Josh McKinney

This project is licensed under either of:

at your option.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy