Note.Octave returns an Octave

This commit is contained in:
Sasha Koshka 2023-02-09 15:06:41 -05:00
parent b38232ee24
commit 06e97461fa
1 changed files with 2 additions and 2 deletions

View File

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