From 13b02aeaab7c47e86f869f6232a5892d7498ab23 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Sat, 20 Jan 2024 17:26:50 -0600 Subject: [PATCH] Correct natural minor --- src/scales.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scales.jl b/src/scales.jl index de4f49c..e224913 100644 --- a/src/scales.jl +++ b/src/scales.jl @@ -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)