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 to create a scale from a root note and a scale type.
#[macro_export]
macro_rules! scale {
    ($scale_type:expr) => {
        Scale::from_steps($scale_type.as_steps())
    };
    ($str:literal) => {
        Scale::from_str($str)
    };
    ($scale_type:expr, $rot:expr) => {
        Scale::from_steps($scale_type.as_steps()).rotated($rot)
    };
}