Crate musika_rs

source ·
Expand description

A crate for musical basic elements.

§Example for chords

use musika_rs::{
    chords::{self},
    C, C_SHARP,
};

let chord = C.maj();
println!("C: {chord:X}");

let chord = C.maj7();
println!("Cmaj7: {chord:X}");

let chord = C.dom7();
println!("C7: {chord:X}");

let chord = C.maj13();
println!("Cmaj13: {chord:X}");

§Example for scales

use musika_rs::{
    scales::{self},
    C,
};

let scale = scales::major(C);
println!("{scale:X}");

let scale = scales::minor(C);
println!("{scale:x}");

Modules§

Structs§

Enums§

Constants§