find/
find.rs

1use musika_rs::{chords::Chords, A, C, E, G};
2
3fn main() {
4    // let notes = [A, G, A_SHARP, C_SHARP, F];
5    let notes = [C, E, G];
6    let chords = Chords::find_contain_notes(A, notes.into_iter()).collect::<Vec<_>>();
7
8    if chords.is_empty() {
9        println!("Didn't find any chord!")
10    } else {
11        for chord in chords {
12            println!("{chord:X}")
13        }
14    }
15}