resonata 0.3.0

A music theory library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// A macro for creating intervals.
#[macro_export]
macro_rules! inv {
    ($s:literal) => { 
        Interval::from_str($s)
    };
    ($quality:expr, $size:expr) => { 
        Interval::build($quality, $size, 0)
    };
    ($quality:expr, $size:expr, $octaves:literal) => { 
        Interval::build($quality, $size, $octaves)
    };
}