-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cd3303
commit 6934ed6
Showing
27 changed files
with
455 additions
and
1,712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
use musika_rs::{ | ||
chords::{self}, | ||
C, C_SHARP, | ||
}; | ||
use musika_rs::C; | ||
|
||
fn main() { | ||
let chord = chords::Major::from(C); | ||
println!("Major C: {chord:X}"); | ||
let chord = C.maj(); | ||
println!("{chord:X}"); | ||
|
||
let chord = chords::Major7::from(C); | ||
println!("Major7 C: {chord:X}"); | ||
let chord = C.maj7(); | ||
println!("{chord:X}"); | ||
|
||
let chord = chords::Major7::from(C_SHARP); | ||
println!("Major7 C#: {chord:X}"); | ||
let chord = C.min(); | ||
println!("{chord:X}"); | ||
|
||
let chord = chords::Dominant7::from(C); | ||
println!("Dom7 C: {chord:X}"); | ||
let chord = C.dom7(); | ||
println!("{chord:X}"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.