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โ
This member is deprecated.
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โ
The interval in semitones the harmonic sounds above the played pitch. Natural harmonics are relative to the open string and therefore need a string, the other types are an interval above the played note on any pitched note.
- 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: BooleanisTrillStartโ
Gets or sets whether a separate trill starts on this note. If set, the trill does not continue a trill on the previous beat.
- JavaScript
- C#
- Kotlin
isTrillStart: boolean;bool IsTrillStart { get; set; }var isTrillStart: 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.
For pitched notes this requires string to be set.
- 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.
On pitched notes (no fret) the string is only an annotation shown via showStringNumber
and has no effect on playback. Staves without tuning assume a standard 6 string instrument for this case.
- 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โ
This member is deprecated.
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) |