import { OctaveIndex , PitchIndex } from "./note" ; export type Key = string ; export type Keys = Key [ ] ; export const TOP_ROW = Array . from ( "q2w3er5t6y7u" ) ; export const BOTTOM_ROW = Array . from ( "zsxdcvgbhnjm" ) ; export function selectKey ( octave , index ) { const keysRow = octave < 5 ? TOP_ROW : BOTTOM_ROW ; return keysRow [ index ] ; }