use crate::core::semitone;
use crate::TONIC;
pub struct Notary {
pub tonic: f64,
pub octave: i64,
pub chord: Vec<f64>,
}
impl Notary {
pub fn new() -> Self {
Self {
tonic: TONIC,
octave: 0,
chord: vec![],
}
}
pub fn _0 (&mut self) {
self.chord.push(semitone(self.tonic, 0));
}
pub fn _1 (&mut self) {
self.chord.push(semitone(self.tonic, 1));
}
pub fn _2(&mut self) {
self.chord.push(semitone(self.tonic, 2));
}
pub fn _3(&mut self) {
self.chord.push(semitone(self.tonic, 3));
}
pub fn _4(&mut self) {
self.chord.push(semitone(self.tonic, 4));
}
pub fn _5(&mut self) {
self.chord.push(semitone(self.tonic, 5));
}
pub fn _6(&mut self) {
self.chord.push(semitone(self.tonic, 6));
}
pub fn _7(&mut self) {
self.chord.push(semitone(self.tonic, 7));
}
pub fn _8(&mut self) {
self.chord.push(semitone(self.tonic, 8));
}
pub fn _9(&mut self) {
self.chord.push(semitone(self.tonic, 9));
}
pub fn _x(&mut self) {
self.chord.push(semitone(self.tonic, 10));
}
pub fn _y(&mut self) {
self.chord.push(semitone(self.tonic, 11));
}
pub fn _a(&mut self) {
self.chord.push(semitone(self.tonic, 12));
}
pub fn _b(&mut self) {
self.chord.push(semitone(self.tonic, 13));
}
pub fn _c(&mut self) {
self.chord.push(semitone(self.tonic, 14));
}
pub fn _d(&mut self) {
self.chord.push(semitone(self.tonic, 15));
}
pub fn _e(&mut self) {
self.chord.push(semitone(self.tonic, 16));
}
pub fn _f(&mut self) {
self.chord.push(semitone(self.tonic, 17));
}
pub fn _g(&mut self) {
self.chord.push(semitone(self.tonic, 18));
}
pub fn _h(&mut self) {
self.chord.push(semitone(self.tonic, 19));
}
pub fn _i(&mut self) {
self.chord.push(semitone(self.tonic, 20));
}
pub fn _j(&mut self) {
self.chord.push(semitone(self.tonic, 21));
}
pub fn _k(&mut self) {
self.chord.push(semitone(self.tonic, 22));
}
pub fn _l(&mut self) {
self.chord.push(semitone(self.tonic, 23));
}
pub fn _m(&mut self) {
self.chord.push(semitone(self.tonic, 24));
}
}
#[test]
fn get_amaj0 () {
}