Skip to main content

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 Note

Properties​

accentuated​

Gets or sets the accentuation of this note.

accentuated: AccentuationType;

accidentalMode​

Gets or sets how accidetnals for this note should be handled.

accidentalMode: NoteAccidentalMode;

beat​

Gets or sets the reference to the parent beat to which this note belongs to.

beat: Beat;

bendOrigin​

Gets or sets the note from which this note continues the bend.

bendOrigin: Note | null;

bendPoints​

Gets or sets a list of the points defining the bend behavior.

bendPoints: BendPoint[] | null;

bendStyle​

Gets or sets the bend style for this note.

bendStyle: BendStyle;

bendType​

Gets or sets the bend type for this note.

bendType: BendType;

displayValue​

(no description)

readonly displayValue: number;

displayValueWithoutBend​

(no description)

readonly displayValueWithoutBend: number;

durationPercent​

Gets or sets the percentual duration of the note relative to the overall beat duration.

durationPercent: number;

dynamics​

Gets or sets the dynamics for this note.

dynamics: DynamicValue;

effectSlurDestination​

(no description)

effectSlurDestination: Note | null;

effectSlurOrigin​

(no description)

effectSlurOrigin: Note | null;

element​

Gets or sets the percusson element.

readonly element: number;

fret​

Gets or sets the fret on which this note is played on the instrument. 0 is the nut.

fret: number;

hammerPullDestination​

Gets the destination for the hammeron/pullof started by this note.

hammerPullDestination: Note | null;

hammerPullOrigin​

Gets the origin of the hammeron/pulloff of this note.

hammerPullOrigin: Note | null;

harmonicPitch​

(no description)

readonly harmonicPitch: number;

harmonicType​

Gets or sets the harmonic type applied to this note.

harmonicType: HarmonicType;

harmonicValue​

Gets or sets the value defining the harmonic pitch.

harmonicValue: number;

hasBend​

(no description)

readonly hasBend: boolean;

hasEffectSlur​

(no description)

hasEffectSlur: boolean;

hasQuarterToneOffset​

(no description)

readonly hasQuarterToneOffset: boolean;

id​

Gets or sets the unique id of this note.

id: number;

index​

Gets or sets the zero-based index of this note within the beat.

index: number;

initialBendValue​

(no description)

readonly initialBendValue: number;

isContinuedBend​

Gets or sets whether this note continues a bend from a previous note.

isContinuedBend: boolean;

isDead​

Gets or sets whether the note is shown and played as dead note.

isDead: boolean;

isEffectSlurDestination​

(no description)

readonly isEffectSlurDestination: boolean;

isEffectSlurOrigin​

(no description)

isEffectSlurOrigin: boolean;

isFingering​

Gets or sets whether this note has fingering defined.

readonly isFingering: boolean;

isGhost​

Gets or sets whether the note is a ghost note and shown in parenthesis. Also this will make the note a bit more silent.

isGhost: boolean;

isHammerPullDestination​

(no description)

readonly isHammerPullDestination: boolean;

isHammerPullOrigin​

Gets or sets whether this note starts a hammeron or pulloff.

isHammerPullOrigin: boolean;

isHarmonic​

(no description)

readonly isHarmonic: boolean;

isLeftHandTapped​

Gets a value indicating whether the note is left hand tapped.

isLeftHandTapped: boolean;

isLetRing​

Gets or sets whether this note has a let-ring effect.

isLetRing: boolean;

isPalmMute​

Gets or sets whether this note has a palm-mute effect.

isPalmMute: boolean;

isPercussion​

(no description)

readonly isPercussion: boolean;

isPiano​

(no description)

readonly isPiano: boolean;

isSlurDestination​

Gets or sets whether this note finishes a slur.

isSlurDestination: boolean;

isSlurOrigin​

(no description)

readonly isSlurOrigin: boolean;

isStaccato​

Gets or sets whether the note is played as staccato.

isStaccato: boolean;

isStringed​

(no description)

readonly isStringed: boolean;

isTieDestination​

Gets or sets whether this note is ends a tied note.

isTieDestination: boolean;

isTieOrigin​

(no description)

readonly isTieOrigin: boolean;

isTrill​

(no description)

readonly isTrill: boolean;

isVisible​

Gets or sets whether this note is visible on the music sheet.

isVisible: boolean;

leftHandFinger​

Gets or sets the fingers used for this note on the left hand.

leftHandFinger: Fingers;

letRingDestination​

Gets or sets the destination note for the let-ring effect.

letRingDestination: Note | null;

maxBendPoint​

Gets or sets the bend point with the highest bend value.

maxBendPoint: BendPoint | null;

octave​

Gets or sets the octave on which this note is played.

octave: number;

ornament​

The ornament applied on the note.

ornament: NoteOrnament;

palmMuteDestination​

Gets or sets the destination note for the palm-mute effect.

palmMuteDestination: Note | null;

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)
percussionArticulation: number;

realValue​

(no description)

readonly realValue: number;

realValueWithoutHarmonic​

(no description)

readonly realValueWithoutHarmonic: number;

rightHandFinger​

Gets or sets the fingers used for this note on the right hand.

rightHandFinger: Fingers;

showStringNumber​

Gets or sets whether the string number for this note should be shown.

showStringNumber: boolean;

slideInType​

Gets or sets the slide-in type this note is played with.

slideInType: SlideInType;

slideOrigin​

Gets or sets the source note for several slide types.

slideOrigin: Note | null;

slideOutType​

Gets or sets the slide-out type this note is played with.

slideOutType: SlideOutType;

slideTarget​

Gets or sets the target note for several slide types.

slideTarget: Note | null;

slurDestination​

Gets or sets the note where the slur of this note ends.

slurDestination: Note | null;

slurOrigin​

Gets or sets the note where the slur of this note starts.

slurOrigin: Note | null;

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.

string: number;

stringTuning​

(no description)

readonly stringTuning: number;

style​

The style customizations for this item.

style?: NoteStyle;

tieDestination​

Gets the desination of the tie.

tieDestination: Note | null;

tieOrigin​

Gets the origin of the tied if this note is tied.

tieOrigin: Note | null;

tone​

Gets or sets the tone of this note within the octave.

tone: number;

trillFret​

(no description)

readonly trillFret: number;

trillSpeed​

Gets or sets the speed of the trill effect.

trillSpeed: Duration;

trillValue​

Gets or sets the target note value for the trill effect.

trillValue: number;

variation​

Gets or sets the variation of this note.

readonly variation: number;

vibrato​

Gets or sets whether a vibrato is played on the note.

vibrato: VibratoType;

Methods​

addBendPoint​

(no description)

addBendPoint(point: BendPoint): void
ParameterSummary
pointAll

(no description)

calculateRealValue​

Calculates the real note value of this note as midi key respecting the given options.

calculateRealValue(applyTranspositionPitch: boolean, applyHarmonic: boolean): number
ParameterSummary
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)

chain(sharedDataBag?: Map<string, unknown> | null): void
ParameterSummary
sharedDataBagAll

(no description)

findHammerPullDestination​

(no description)

static findHammerPullDestination(note: Note): Note | null
ParameterSummary
noteAll

(no description)

findTieOrigin​

(no description)

static findTieOrigin(note: Note): Note | null
ParameterSummary
noteAll

(no description)

finish​

(no description)

finish(settings: Settings, sharedDataBag?: Map<string, unknown> | null): void
ParameterSummary
settingsAll

(no description)

sharedDataBagAll

(no description)

getStringTuning​

(no description)

static getStringTuning(staff: Staff, noteString: number): number
ParameterSummary
staffAll

(no description)

noteStringAll

(no description)

nextNoteOnSameLine​

(no description)

static nextNoteOnSameLine(note: Note): Note | null
ParameterSummary
noteAll

(no description)