Note.Octave returns an Octave

This commit is contained in:
Sasha Koshka 2023-02-09 15:06:41 -05:00
parent b38232ee24
commit 06e97461fa

View File

@ -48,8 +48,8 @@ const (
) )
// Octave returns the octave of the note // Octave returns the octave of the note
func (note Note) Octave () int { func (note Note) Octave () Octave {
return int(note / 12 - 1) return Octave(note / 12 - 1)
} }
// Degree returns the scale degree of the note in the chromatic scale. // Degree returns the scale degree of the note in the chromatic scale.