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โ€‹

Deprecated

This member is deprecated.

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โ€‹

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.

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;

isTrillStartโ€‹

Gets or sets whether a separate trill starts on this note. If set, the trill does not continue a trill on the previous beat.

isTrillStart: 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. For pitched notes this requires string to be set.

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. 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.

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โ€‹

Deprecated

This member is deprecated.

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)