Skip to main content

alphaTab.model.Tuning

This public class represents a predefined string tuning.

 class Tuning

Properties​

isStandard​

Gets or sets whether this is the standard tuning for this number of strings.

isStandard: boolean;

name​

Gets or sets the name of the tuning.

name: string;

noteNames​

(no description)

static readonly noteNames: string[];

tunings​

Gets or sets the values for each string of the instrument.

tunings: number[];

Methods​

findTuning​

Tries to find a known tuning by a given list of tuning values.

static findTuning(strings: number[]): Tuning | null
ParameterSummary
stringsAll

The values defining the tuning.

Returns​

The known tuning.

finish​

Tries to detect the name and standard flag of the tuning from a known tuning list based on the string values.

finish(): void

getDefaultTuningFor​

Gets the default tuning for the given string count.

static getDefaultTuningFor(stringCount: number): Tuning | null
ParameterSummary
stringCountAll

The string count.

Returns​

The tuning for the given string count or null if the string count is not defined.

getPresetsFor​

Gets a list of all tuning presets for a given stirng count.

static getPresetsFor(stringCount: number): Tuning[]
ParameterSummary
stringCountAll

The string count.

Returns​

The list of known tunings for the given string count or an empty list if the string count is not defined.

getTextForTuning​

(no description)

static getTextForTuning(tuning: number, includeOctave: boolean): string
ParameterSummary
tuningAll

(no description)

includeOctaveAll

(no description)

getTextPartsForTuning​

(no description)

static getTextPartsForTuning(tuning: number, octaveShift?: number): string[]
ParameterSummary
tuningAll

(no description)

octaveShiftAll

(no description)

initialize​

(no description)

static initialize(): void

reset​

(no description)

reset(): void