Expand description
Notes on the strings and frets of a fretted instrument.
Notes on the strings and frets of a fretted instrument: music21’s
tablature.
use music21_rs::tablature::{FretBoard, FretNote};
let board = FretBoard::guitar(vec![FretNote::new(Some(1), Some(2), Some(2))], 4);
let pitches = board.pitches()?;
assert_eq!(pitches[5].as_ref().map(|pitch| pitch.name_with_octave()), Some("F#4".to_string()));Structs§
- Chord
With Fret Board - A chord symbol with a fret diagram: music21’s
ChordWithFretBoard. - First
Fret - The fret a diagram starts at, and where its number is written: music21’s
FirstFret. - Fret
Board - A fretted instrument’s strings, the notes stopped on them, and their
open pitches: music21’s
FretBoard. - Fret
Note - A finger on a string at a fret: music21’s
FretNote. Strings count from the highest-sounding, one, as guitarists count them.