code: func KeyInt(n string, octave int) int {
  	key := notesToInt[strings.ToUpper(n)]
  	// octave starts at -2 but first note is at 0
  	return key + (octave+2)*12
  }
docs: // KeyInt converts an A-G note notation to a midi note number value.