Class Tuning

Tuning implements varies types of tunings for tablature.

Hierarchy

  • Tuning

Constructors

  • Constructor.

    Parameters

    • tuningString: string = 'E/5,B/4,G/4,D/4,A/3,E/3,B/2,E/2'

      tuning name (eg. 'dagdad') or comma separated note strings

    Returns Tuning

Accessors

  • get names(): Record<string, string>
  • Returns Record<string, string>

Methods

  • Return the note string associated with tablature string and fret.

    Parameters

    • fretNum: string | number
    • stringNum: string | number

    Returns string

  • Return the note number associated with a tablature string and fret.

    Parameters

    • fretNum: string | number
    • stringNum: string | number

    Returns number

  • Return the note number associated with a tablature string.

    Parameters

    • stringNum: string | number

    Returns number

  • Return the note number associated to the note string.

    Parameters

    • noteString: string

    Returns number

  • Set tuning identified by tuning name (eg. 'dagdad')

    Parameters

    • tuningString: string

      tuning name (eg. 'dagdad') or comma separated note strings

    Returns void