Skip to main content

Crate ratatui_fretboard

Crate ratatui_fretboard 

Source
Expand description

§ratatui-fretboard 🎸

A Ratatui widget for displaying musical notes and their positions on a guitar fretboard.

Β§Example

let fretboard = Fretboard::default();
let mut state = FretboardState::default();
state.set_active_note(Note::A(4));
frame.render_stateful_widget(fretboard, area, &mut state);
E ║───┼───┼───┼───┼───┼─●─┼───┼───┼───┼───┼───┼───║
B ║───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼─●─┼───║
G ║───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───║
D ║───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───║
A ║───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───║
E ║───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───║
  0   1   2   3   4   5   6   7   8   9  10  11  12

Β§License

Licensed under either of Apache License Version 2.0 or The MIT License at your option.

πŸ¦€ γƒŽ( ΒΊ _ ΒΊ γƒŽ) - respect crables!

Copyright Β© 2025, Orhun ParmaksΔ±z

ModulesΒ§

error
Error implementation.
note
Error handling.
scale
Common guitar scales.

StructsΒ§

Fretboard
Represents a fretboard widget for displaying musical notes and their positions on a guitar fretboard.
FretboardState
State for the fretboard widget.