Skip to main content

Module tablature

Module tablature 

Source
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§

ChordWithFretBoard
A chord symbol with a fret diagram: music21’s ChordWithFretBoard.
FirstFret
The fret a diagram starts at, and where its number is written: music21’s FirstFret.
FretBoard
A fretted instrument’s strings, the notes stopped on them, and their open pitches: music21’s FretBoard.
FretNote
A finger on a string at a fret: music21’s FretNote. Strings count from the highest-sounding, one, as guitarists count them.