Skip to content

Commit

Permalink
Add time signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Jan 22, 2024
1 parent c748e65 commit 5495a43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion examples/scale.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ function draw_scale()

sc = StaveWithClef(s, treble_clef)

x0 = 2

draw_text!(ax, s, x0, 2, "4")
draw_text!(ax, s, x0, -2, "4")

x0 += 1

draw!(ax, sc)
draw!(ax, sc, notes, x0=3, w = 1.1)
draw!(ax, sc, notes, x0=x0, w=1)

@show notes

Expand Down
2 changes: 1 addition & 1 deletion src/MusicMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using MusicTheory, MusicTheory.PitchNames
using MusicTheory: tone

export Stave, StaveWithClef, Clef, treble_clef, draw!, map_to_stave, height, make_canvas,
draw_bar_line!
draw_bar_line!, draw_text!
export make_canvas

const sharp_symbol = ""
Expand Down

0 comments on commit 5495a43

Please sign in to comment.