Note.Octave returns an Octave
This commit is contained in:
parent
b38232ee24
commit
06e97461fa
@ -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.
|
||||||
|
Reference in New Issue
Block a user