alphaTab.model.Note
A note is a single played sound on a fretted instrument. It consists of a fret offset and a string on which the note is played on. It also can be modified by a lot of different effects.
class NoteProperties​
accentuated​
Gets or sets the accentuation of this note.
- JavaScript
- C#
- Kotlin
accentuated: AccentuationType;AccentuationType Accentuated { get; set; }var accentuated: AccentuationTypeaccidentalMode​
Gets or sets how accidetnals for this note should be handled.
- JavaScript
- C#
- Kotlin
accidentalMode: NoteAccidentalMode;NoteAccidentalMode AccidentalMode { get; set; }var accidentalMode: NoteAccidentalModebeat​
Gets or sets the reference to the parent beat to which this note belongs to.
bendOrigin​
Gets or sets the note from which this note continues the bend.
bendPoints​
Gets or sets a list of the points defining the bend behavior.
bendStyle​
Gets or sets the bend style for this note.
bendType​
Gets or sets the bend type for this note.
displayValue​
(no description)
- JavaScript
- C#
- Kotlin
readonly displayValue: number;double DisplayValue { get; }val displayValue: DoubledisplayValueWithoutBend​
(no description)
- JavaScript
- C#
- Kotlin
readonly displayValueWithoutBend: number;double DisplayValueWithoutBend { get; }val displayValueWithoutBend: DoubledurationPercent​
Gets or sets the percentual duration of the note relative to the overall beat duration.
- JavaScript
- C#
- Kotlin
durationPercent: number;double DurationPercent { get; set; }var durationPercent: Doubledynamics​
Gets or sets the dynamics for this note.
- JavaScript
- C#
- Kotlin
effectSlurDestination​
(no description)
effectSlurOrigin​
(no description)
element​
Gets or sets the percusson element.
- JavaScript
- C#
- Kotlin
readonly element: number;double Element { get; }val element: Doublefret​
Gets or sets the fret on which this note is played on the instrument. 0 is the nut.
- JavaScript
- C#
- Kotlin
fret: number;double Fret { get; set; }var fret: DoublehammerPullDestination​
Gets the destination for the hammeron/pullof started by this note.
hammerPullOrigin​
Gets the origin of the hammeron/pulloff of this note.
harmonicPitch​
(no description)
- JavaScript
- C#
- Kotlin
readonly harmonicPitch: number;double HarmonicPitch { get; }val harmonicPitch: DoubleharmonicType​
Gets or sets the harmonic type applied to this note.
- JavaScript
- C#
- Kotlin
harmonicValue​
Gets or sets the value defining the harmonic pitch.
- JavaScript
- C#
- Kotlin
harmonicValue: number;double HarmonicValue { get; set; }var harmonicValue: DoublehasBend​
(no description)
- JavaScript
- C#
- Kotlin
readonly hasBend: boolean;bool HasBend { get; }val hasBend: BooleanhasEffectSlur​
(no description)
- JavaScript
- C#
- Kotlin
hasEffectSlur: boolean;bool HasEffectSlur { get; set; }var hasEffectSlur: BooleanhasQuarterToneOffset​
(no description)
- JavaScript
- C#
- Kotlin
readonly hasQuarterToneOffset: boolean;bool HasQuarterToneOffset { get; }val hasQuarterToneOffset: Booleanid​
Gets or sets the unique id of this note.
- JavaScript
- C#
- Kotlin
id: number;double Id { get; set; }var id: Doubleindex​
Gets or sets the zero-based index of this note within the beat.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleinitialBendValue​
(no description)
- JavaScript
- C#
- Kotlin
readonly initialBendValue: number;double InitialBendValue { get; }val initialBendValue: DoubleisContinuedBend​
Gets or sets whether this note continues a bend from a previous note.
- JavaScript
- C#
- Kotlin
isContinuedBend: boolean;bool IsContinuedBend { get; set; }var isContinuedBend: BooleanisDead​
Gets or sets whether the note is shown and played as dead note.
- JavaScript
- C#
- Kotlin
isDead: boolean;bool IsDead { get; set; }var isDead: BooleanisEffectSlurDestination​
(no description)
- JavaScript
- C#
- Kotlin
readonly isEffectSlurDestination: boolean;bool IsEffectSlurDestination { get; }val isEffectSlurDestination: BooleanisEffectSlurOrigin​
(no description)
- JavaScript
- C#
- Kotlin
isEffectSlurOrigin: boolean;bool IsEffectSlurOrigin { get; set; }var isEffectSlurOrigin: BooleanisFingering​
Gets or sets whether this note has fingering defined.
- JavaScript
- C#
- Kotlin
readonly isFingering: boolean;bool IsFingering { get; }val isFingering: BooleanisGhost​
Gets or sets whether the note is a ghost note and shown in parenthesis. Also this will make the note a bit more silent.
- JavaScript
- C#
- Kotlin
isGhost: boolean;bool IsGhost { get; set; }var isGhost: BooleanisHammerPullDestination​
(no description)
- JavaScript
- C#
- Kotlin
readonly isHammerPullDestination: boolean;bool IsHammerPullDestination { get; }val isHammerPullDestination: BooleanisHammerPullOrigin​
Gets or sets whether this note starts a hammeron or pulloff.
- JavaScript
- C#
- Kotlin
isHammerPullOrigin: boolean;bool IsHammerPullOrigin { get; set; }var isHammerPullOrigin: BooleanisHarmonic​
(no description)
- JavaScript
- C#
- Kotlin
readonly isHarmonic: boolean;bool IsHarmonic { get; }val isHarmonic: BooleanisLeftHandTapped​
Gets a value indicating whether the note is left hand tapped.
- JavaScript
- C#
- Kotlin
isLeftHandTapped: boolean;bool IsLeftHandTapped { get; set; }var isLeftHandTapped: BooleanisLetRing​
Gets or sets whether this note has a let-ring effect.
- JavaScript
- C#
- Kotlin
isLetRing: boolean;bool IsLetRing { get; set; }var isLetRing: BooleanisPalmMute​
Gets or sets whether this note has a palm-mute effect.
- JavaScript
- C#
- Kotlin
isPalmMute: boolean;bool IsPalmMute { get; set; }var isPalmMute: BooleanisPercussion​
(no description)
- JavaScript
- C#
- Kotlin
readonly isPercussion: boolean;bool IsPercussion { get; }val isPercussion: BooleanisPiano​
(no description)
- JavaScript
- C#
- Kotlin
readonly isPiano: boolean;bool IsPiano { get; }val isPiano: BooleanisSlurDestination​
Gets or sets whether this note finishes a slur.
- JavaScript
- C#
- Kotlin
isSlurDestination: boolean;bool IsSlurDestination { get; set; }var isSlurDestination: BooleanisSlurOrigin​
(no description)
- JavaScript
- C#
- Kotlin
readonly isSlurOrigin: boolean;bool IsSlurOrigin { get; }val isSlurOrigin: BooleanisStaccato​
Gets or sets whether the note is played as staccato.
- JavaScript
- C#
- Kotlin
isStaccato: boolean;bool IsStaccato { get; set; }var isStaccato: BooleanisStringed​
(no description)
- JavaScript
- C#
- Kotlin
readonly isStringed: boolean;bool IsStringed { get; }val isStringed: BooleanisTieDestination​
Gets or sets whether this note is ends a tied note.
- JavaScript
- C#
- Kotlin
isTieDestination: boolean;bool IsTieDestination { get; set; }var isTieDestination: BooleanisTieOrigin​
(no description)
- JavaScript
- C#
- Kotlin
readonly isTieOrigin: boolean;bool IsTieOrigin { get; }val isTieOrigin: BooleanisTrill​
(no description)
- JavaScript
- C#
- Kotlin
readonly isTrill: boolean;bool IsTrill { get; }val isTrill: BooleanisVisible​
Gets or sets whether this note is visible on the music sheet.
- JavaScript
- C#
- Kotlin
isVisible: boolean;bool IsVisible { get; set; }var isVisible: BooleanleftHandFinger​
Gets or sets the fingers used for this note on the left hand.
letRingDestination​
Gets or sets the destination note for the let-ring effect.
maxBendPoint​
Gets or sets the bend point with the highest bend value.
octave​
Gets or sets the octave on which this note is played.
- JavaScript
- C#
- Kotlin
octave: number;double Octave { get; set; }var octave: Doubleornament​
The ornament applied on the note.
- JavaScript
- C#
- Kotlin
palmMuteDestination​
Gets or sets the destination note for the palm-mute effect.
percussionArticulation​
Gets or sets the index of percussion articulation in the related track.percussionArticulations.
If the articulation is not listed in track.percussionArticulations the following list based on GP7 applies:
- 029 Ride (choke)
- 030 Cymbal (hit)
- 031 Snare (side stick)
- 033 Snare (side stick)
- 034 Snare (hit)
- 035 Kick (hit)
- 036 Kick (hit)
- 037 Snare (side stick)
- 038 Snare (hit)
- 039 Hand Clap (hit)
- 040 Snare (hit)
- 041 Low Floor Tom (hit)
- 042 Hi-Hat (closed)
- 043 Very Low Tom (hit)
- 044 Pedal Hi-Hat (hit)
- 045 Low Tom (hit)
- 046 Hi-Hat (open)
- 047 Mid Tom (hit)
- 048 High Tom (hit)
- 049 Crash high (hit)
- 050 High Floor Tom (hit)
- 051 Ride (middle)
- 052 China (hit)
- 053 Ride (bell)
- 054 Tambourine (hit)
- 055 Splash (hit)
- 056 Cowbell medium (hit)
- 057 Crash medium (hit)
- 058 Vibraslap (hit)
- 059 Ride (edge)
- 060 Hand (hit)
- 061 Hand (hit)
- 062 Conga high (mute)
- 063 Conga high (hit)
- 064 Conga low (hit)
- 065 Timbale high (hit)
- 066 Timbale low (hit)
- 067 Agogo high (hit)
- 068 Agogo tow (hit)
- 069 Cabasa (hit)
- 070 Left Maraca (hit)
- 071 Whistle high (hit)
- 072 Whistle low (hit)
- 073 Guiro (hit)
- 074 Guiro (scrap-return)
- 075 Claves (hit)
- 076 Woodblock high (hit)
- 077 Woodblock low (hit)
- 078 Cuica (mute)
- 079 Cuica (open)
- 080 Triangle (rnute)
- 081 Triangle (hit)
- 082 Shaker (hit)
- 083 Tinkle Bell (hat)
- 083 Jingle Bell (hit)
- 084 Bell Tree (hit)
- 085 Castanets (hit)
- 086 Surdo (hit)
- 087 Surdo (mute)
- 091 Snare (rim shot)
- 092 Hi-Hat (half)
- 093 Ride (edge)
- 094 Ride (choke)
- 095 Splash (choke)
- 096 China (choke)
- 097 Crash high (choke)
- 098 Crash medium (choke)
- 099 Cowbell low (hit)
- 100 Cowbell low (tip)
- 101 Cowbell medium (tip)
- 102 Cowbell high (hit)
- 103 Cowbell high (tip)
- 104 Hand (mute)
- 105 Hand (slap)
- 106 Hand (mute)
- 107 Hand (slap)
- 108 Conga low (slap)
- 109 Conga low (mute)
- 110 Conga high (slap)
- 111 Tambourine (return)
- 112 Tambourine (roll)
- 113 Tambourine (hand)
- 114 Grancassa (hit)
- 115 Piatti (hat)
- 116 Piatti (hand)
- 117 Cabasa (return)
- 118 Left Maraca (return)
- 119 Right Maraca (hit)
- 120 Right Maraca (return)
- 122 Shaker (return)
- 123 Bell Tee (return)
- 124 Golpe (thumb)
- 125 Golpe (finger)
- 126 Ride (middle)
- 127 Ride (bell)
- JavaScript
- C#
- Kotlin
percussionArticulation: number;double PercussionArticulation { get; set; }var percussionArticulation: DoublerealValue​
(no description)
- JavaScript
- C#
- Kotlin
readonly realValue: number;double RealValue { get; }val realValue: DoublerealValueWithoutHarmonic​
(no description)
- JavaScript
- C#
- Kotlin
readonly realValueWithoutHarmonic: number;double RealValueWithoutHarmonic { get; }val realValueWithoutHarmonic: DoublerightHandFinger​
Gets or sets the fingers used for this note on the right hand.
showStringNumber​
Gets or sets whether the string number for this note should be shown.
- JavaScript
- C#
- Kotlin
showStringNumber: boolean;bool ShowStringNumber { get; set; }var showStringNumber: BooleanslideInType​
Gets or sets the slide-in type this note is played with.
- JavaScript
- C#
- Kotlin
slideOrigin​
Gets or sets the source note for several slide types.
slideOutType​
Gets or sets the slide-out type this note is played with.
- JavaScript
- C#
- Kotlin
slideTarget​
Gets or sets the target note for several slide types.
slurDestination​
Gets or sets the note where the slur of this note ends.
slurOrigin​
Gets or sets the note where the slur of this note starts.
string​
Gets or sets the string number where the note is placed. 1 is the lowest string on the guitar and the bottom line on the tablature. It then increases the the number of strings on available on the track.
- JavaScript
- C#
- Kotlin
string: number;double String { get; set; }var string: DoublestringTuning​
(no description)
- JavaScript
- C#
- Kotlin
readonly stringTuning: number;double StringTuning { get; }val stringTuning: Doublestyle​
The style customizations for this item.
tieDestination​
Gets the desination of the tie.
tieOrigin​
Gets the origin of the tied if this note is tied.
tone​
Gets or sets the tone of this note within the octave.
- JavaScript
- C#
- Kotlin
tone: number;double Tone { get; set; }var tone: DoubletrillFret​
(no description)
- JavaScript
- C#
- Kotlin
readonly trillFret: number;double TrillFret { get; }val trillFret: DoubletrillSpeed​
Gets or sets the speed of the trill effect.
trillValue​
Gets or sets the target note value for the trill effect.
- JavaScript
- C#
- Kotlin
trillValue: number;double TrillValue { get; set; }var trillValue: Doublevariation​
Gets or sets the variation of this note.
- JavaScript
- C#
- Kotlin
readonly variation: number;double Variation { get; }val variation: Doublevibrato​
Gets or sets whether a vibrato is played on the note.
- JavaScript
- C#
- Kotlin
Methods​
addBendPoint​
(no description)
| Parameter | Summary |
|---|---|
pointAll | (no description) |
calculateRealValue​
Calculates the real note value of this note as midi key respecting the given options.
- JavaScript
- C#
- Kotlin
calculateRealValue(applyTranspositionPitch: boolean, applyHarmonic: boolean): numberdouble CalculateRealValue(bool applyTranspositionPitch, bool applyHarmonic)fun calculateRealValue(applyTranspositionPitch: Boolean, applyHarmonic: Boolean): Double| Parameter | Summary |
|---|---|
applyTranspositionPitchAll | Whether or not to apply the transposition pitch of the current staff. |
applyHarmonicAll | Whether or not to apply harmonic pitches to the note. |
Returns​
The calculated note value as midi key.
chain​
(no description)
- JavaScript
- C#
- Kotlin
chain(sharedDataBag?: Map<string, unknown> | null): voidvoid Chain(Map<string, object>? sharedDataBag)fun chain(sharedDataBag: alphaTab.collections.StringAnyMap<String, Any>?): Unit| Parameter | Summary |
|---|---|
sharedDataBagAll | (no description) |
findHammerPullDestination​
(no description)
| Parameter | Summary |
|---|---|
noteAll | (no description) |
findTieOrigin​
(no description)
| Parameter | Summary |
|---|---|
noteAll | (no description) |
finish​
(no description)
| Parameter | Summary |
|---|---|
settingsAll | (no description) |
sharedDataBagAll | (no description) |
getStringTuning​
(no description)
| Parameter | Summary |
|---|---|
staffAll | (no description) |
noteStringAll | (no description) |
nextNoteOnSameLine​
(no description)
| Parameter | Summary |
|---|---|
noteAll | (no description) |