alphaTab.model.Tuning
This public class represents a predefined string tuning.
class TuningProperties​
isStandard​
Gets or sets whether this is the standard tuning for this number of strings.
- JavaScript
- C#
- Kotlin
isStandard: boolean;bool IsStandard { get; set; }var isStandard: Booleanname​
Gets or sets the name of the tuning.
- JavaScript
- C#
- Kotlin
name: string;string Name { get; set; }var name: StringnoteNames​
(no description)
- JavaScript
- C#
- Kotlin
static readonly noteNames: string[];static IList<string> NoteNames { get; }companion object { val noteNames: }tunings​
Gets or sets the values for each string of the instrument.
- JavaScript
- C#
- Kotlin
Methods​
findTuning​
Tries to find a known tuning by a given list of tuning values.
| Parameter | Summary |
|---|---|
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.
- JavaScript
- C#
- Kotlin
finish(): voidvoid Finish()fun finish(): UnitgetDefaultTuningFor​
Gets the default tuning for the given string count.
| Parameter | Summary |
|---|---|
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.
| Parameter | Summary |
|---|---|
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)
- JavaScript
- C#
- Kotlin
static getTextForTuning(tuning: number, includeOctave: boolean): stringstatic string GetTextForTuning(double tuning, bool includeOctave)fun getTextForTuning(tuning: Double, includeOctave: Boolean): String| Parameter | Summary |
|---|---|
tuningAll | (no description) |
includeOctaveAll | (no description) |
getTextPartsForTuning​
(no description)
- JavaScript
- C#
- Kotlin
static getTextPartsForTuning(tuning: number, octaveShift?: number): string[]static IList<string> GetTextPartsForTuning(double tuning, double? octaveShift)fun getTextPartsForTuning(tuning: Double, octaveShift: Double?): | Parameter | Summary |
|---|---|
tuningAll | (no description) |
octaveShiftAll | (no description) |
initialize​
(no description)
- JavaScript
- C#
- Kotlin
static initialize(): voidstatic void Initialize()fun initialize(): Unitreset​
(no description)
- JavaScript
- C#
- Kotlin
reset(): voidvoid Reset()fun reset(): Unit