Skip to content

Commit

Permalink
Add hanon 1
Browse files Browse the repository at this point in the history
  • Loading branch information
veminovici committed Mar 20, 2024
1 parent 0b8e8c4 commit 477e7fc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/jazz_hanon_1.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use musika_rs::{Bar, A, B, C, D, E, F, G};

fn main() {
let bar = Bar::new()
.with_note(C, 8)
.with_note(E, 8)
.with_note(F, 8)
.with_note(G, 8)
.with_note(A, 8)
.with_note(G, 8)
.with_note(F, 8)
.with_note(E, 8);
println!("{bar:X}");

let bar = Bar::new()
.with_note(D, 8)
.with_note(F, 8)
.with_note(G, 8)
.with_note(A, 8)
.with_note(B, 8)
.with_note(A, 8)
.with_note(G, 8)
.with_note(F, 8);
println!("{bar:X}");
}

0 comments on commit 477e7fc

Please sign in to comment.