Skip to content

Commit

Permalink
Correct natural minor
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Jan 20, 2024
1 parent 162a471 commit 13b02ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scales.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Base.getindex(s::Scale{Pitch}, n::Int)
n += 2 # offset so that scale[-2] means "go down by a second from the tonic"
end

octave = fld1(n, length(s.notes)) - 1
octave = fld1(n, length(s.notes)) - 1
n = mod1(n, length(s.notes))
if n < 0
n += length(s.notes)
Expand Down

0 comments on commit 13b02ae

Please sign in to comment.