Function music_theory::query::queries::find_scale_from_ionian_relative
source · pub fn find_scale_from_ionian_relative(rel: &[Interval]) -> Option<ModeObj>
Expand description
Finds all the scales with the given relative properties.
Example:
use music_theory::{ theory::*, query::* };
let res = find_scale_from_ionian_relative(
&[Interval::NAT, Interval::NAT, Interval::NAT, Interval::NAT,
Interval::NAT, Interval::NAT, Interval::NAT]
).unwrap();
assert_eq!(&res.fam_name, "Ionian");
assert_eq!(res.mode_nr, 0);