1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#![allow(clippy::upper_case_acronyms)]
pub mod chord;
pub mod chord_chart;
pub mod chord_sequence;
pub mod chord_type;
pub mod distance;
pub mod fingering;
pub mod fret_pattern;
pub mod interval;
pub mod note;
pub mod pitch_class;
pub mod staff_position;
pub mod tuning;
pub mod voicing;
pub mod voicing_graph;
pub use chord::Chord;
pub use chord_chart::ChordChart;
pub use chord_sequence::ChordSequence;
pub use chord_type::ChordType;
pub use distance::Distance;
pub use fingering::Fingering;
pub use fret_pattern::FretPattern;
pub use interval::Interval;
pub use note::Note;
pub use pitch_class::PitchClass;
pub use staff_position::StaffPosition;
pub use tuning::Tuning;
pub use voicing::Voicing;
pub use voicing_graph::VoicingGraph;
pub const STRING_COUNT: usize = 4;
pub const FINGER_COUNT: usize = 4;
pub const MIN_CHART_WIDTH: Semitones = 4;
pub type FretID = u8;
pub type Semitones = u8;
pub type StaffSteps = u8;
pub type FingerPosition = (u8, u8);
pub type UkeString = (Note, FretID, Note);
#[derive(Clone, Copy)]
pub struct VoicingConfig {
pub tuning: Tuning,
pub min_fret: FretID,
pub max_fret: FretID,
pub max_span: Semitones,
}
impl Default for VoicingConfig {
fn default() -> Self {
Self {
tuning: Tuning::C,
min_fret: 0,
max_fret: 12,
max_span: 4,
}
}
}