Function noteNumberToNameAndOctave

  • Note number (0~127) to object { noteName, octave }

    Parameters

    • note: any
    • options: {
          octaveOffset?: number;
          sharp?: boolean;
      } = {}
      • Optional octaveOffset?: number
      • Optional sharp?: boolean

    Returns {
        noteName: string;
        octave: number;
    }

    • noteName: string
    • octave: number