Function noteNumberToName

  • Note number (0~127) to name + octave (like "C4")

    Middle C is 60 = C4

    Parameters

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

    Returns string | {
        noteName: string;
        octave: number;
    }