Function transposeFifths

  • Transpose a note by a number of perfect fifths.

    Parameters

    • noteName: string
    • fifths: number

    Returns NoteName

    the transposed note name

    Function

    Example

    import { transposeFifths } from "../note"
    transposeFifths("G4", 1) // => "D"
    [0, 1, 2, 3, 4].map(fifths => transposeFifths("C", fifths)) // => ["C", "G", "D", "A", "E"]