alphaTab.model.Beat
A beat is a single block within a bar. A beat is a combination of several notes played at the same time.
class BeatPropertiesโ
absoluteDisplayStartโ
(no description)
- JavaScript
- C#
- Kotlin
readonly absoluteDisplayStart: number;double AbsoluteDisplayStart { get; }val absoluteDisplayStart: DoubleabsolutePlaybackStartโ
(no description)
- JavaScript
- C#
- Kotlin
readonly absolutePlaybackStart: number;double AbsolutePlaybackStart { get; }val absolutePlaybackStart: Doubleautomationsโ
Gets or sets a list of all automations on this beat.
- JavaScript
- C#
- Kotlin
automations: Automation[];IList<Automation> Automations { get; set; }var automations: alphaTab.collections.List<Automation>barreFretโ
The fret of a barrรฉ being played on this beat.
- JavaScript
- C#
- Kotlin
barreFret: number;double BarreFret { get; set; }var barreFret: DoublebarreShapeโ
The shape how the barre should be played on this beat.
- JavaScript
- C#
- Kotlin
beamingModeโ
Gets or sets how the beaming should be done for this beat.
- JavaScript
- C#
- Kotlin
beamingMode: BeatBeamingMode;BeatBeamingMode BeamingMode { get; set; }var beamingMode: BeatBeamingModebrushDurationโ
Gets or sets the duration of the brush between the notes in midi ticks.
- JavaScript
- C#
- Kotlin
brushDuration: number;double BrushDuration { get; set; }var brushDuration: DoublebrushTypeโ
Gets or sets the brush type applied to the notes of this beat.
chordโ
(no description)
chordIdโ
Gets or sets the ID of the chord used on this beat.
- JavaScript
- C#
- Kotlin
chordId: string | null;string? ChordId { get; set; }var chordId: String?crescendoโ
Gets or sets whether a crescendo/decrescendo is applied on this beat.
- JavaScript
- C#
- Kotlin
deadSlappedโ
Whether this beat should rendered and played as "dead slapped".
- JavaScript
- C#
- Kotlin
deadSlapped: boolean;bool DeadSlapped { get; set; }var deadSlapped: BooleandisplayDurationโ
Gets or sets the duration that is used for the display of this beat. It defines the size/width of the beat in the music sheet. (unit: midi ticks).
- JavaScript
- C#
- Kotlin
displayDuration: number;double DisplayDuration { get; set; }var displayDuration: DoubledisplayEndโ
The calculated visual end position of this beat in midi ticks.
- JavaScript
- C#
- Kotlin
readonly displayEnd: number;double DisplayEnd { get; }val displayEnd: DoubledisplayStartโ
The timeline position of the voice within the current bar as it is displayed. (unit: midi ticks) This might differ from the actual playback time due to special grace types.
- JavaScript
- C#
- Kotlin
displayStart: number;double DisplayStart { get; set; }var displayStart: Doubledotsโ
Gets or sets the number of dots applied to the duration of this beat.
- JavaScript
- C#
- Kotlin
dots: number;double Dots { get; set; }var dots: Doubledurationโ
Gets or sets the duration of this beat.
dynamicsโ
Gets or sets the dynamics applied to this beat.
- JavaScript
- C#
- Kotlin
effectSlurDestinationโ
(no description)
effectSlurOriginโ
(no description)
fadeโ
Gets or sets a value indicating whether this beat is fade-in.
fadeInโ
Use fade
Gets a value indicating whether this beat is fade-in.
- JavaScript
- C#
- Kotlin
fadeIn: boolean;bool FadeIn { get; set; }var fadeIn: Booleanfermataโ
Gets or sets the fermata applied to this beat.
golpeโ
The type of golpe to play.
graceGroupโ
Gets or sets the grace group this beat belongs to. If this beat is not a grace note, it holds the group which belongs to this beat.
- JavaScript
- C#
- Kotlin
graceIndexโ
Gets or sets the index of this beat within the grace group if this is a grace beat.
- JavaScript
- C#
- Kotlin
graceIndex: number;double GraceIndex { get; set; }var graceIndex: DoublegraceTypeโ
Gets or sets the grace style of this beat.
hasChordโ
(no description)
- JavaScript
- C#
- Kotlin
readonly hasChord: boolean;bool HasChord { get; }val hasChord: BooleanhasRasgueadoโ
Gets or sets a value indicating whether the beat is played in rasgueado style.
- JavaScript
- C#
- Kotlin
readonly hasRasgueado: boolean;bool HasRasgueado { get; }val hasRasgueado: BooleanhasTupletโ
(no description)
- JavaScript
- C#
- Kotlin
readonly hasTuplet: boolean;bool HasTuplet { get; }val hasTuplet: BooleanhasWhammyBarโ
(no description)
- JavaScript
- C#
- Kotlin
readonly hasWhammyBar: boolean;bool HasWhammyBar { get; }val hasWhammyBar: Booleanidโ
Gets or sets the unique id of this beat.
- JavaScript
- C#
- Kotlin
id: number;double Id { get; set; }var id: Doubleindexโ
Gets or sets the zero-based index of this beat within the voice.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleinvertBeamDirectionโ
Gets or sets a value indicating whether the beam direction should be inverted.
- JavaScript
- C#
- Kotlin
invertBeamDirection: boolean;bool InvertBeamDirection { get; set; }var invertBeamDirection: BooleanisBarreโ
Gets a value indicating whether the beat should be played as Barrรฉ
- JavaScript
- C#
- Kotlin
readonly isBarre: boolean;bool IsBarre { get; }val isBarre: BooleanisContinuedWhammyโ
Gets or sets whether this beat continues a whammy effect.
- JavaScript
- C#
- Kotlin
isContinuedWhammy: boolean;bool IsContinuedWhammy { get; set; }var isContinuedWhammy: 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: BooleanisEmptyโ
Gets or sets a value indicating whether this beat is considered empty.
- JavaScript
- C#
- Kotlin
isEmpty: boolean;bool IsEmpty { get; set; }var isEmpty: BooleanisFullBarRestโ
Gets a value indicating whether this beat is a full bar rest.
- JavaScript
- C#
- Kotlin
readonly isFullBarRest: boolean;bool IsFullBarRest { get; }val isFullBarRest: BooleanisLastOfVoiceโ
(no description)
- JavaScript
- C#
- Kotlin
readonly isLastOfVoice: boolean;bool IsLastOfVoice { get; }val isLastOfVoice: BooleanisLegatoDestinationโ
(no description)
- JavaScript
- C#
- Kotlin
readonly isLegatoDestination: boolean;bool IsLegatoDestination { get; }val isLegatoDestination: BooleanisLegatoOriginโ
Gets a value indicating whether this beat starts a legato slur.
- JavaScript
- C#
- Kotlin
isLegatoOrigin: boolean;bool IsLegatoOrigin { get; set; }var isLegatoOrigin: BooleanisLetRingโ
Gets or sets whether any note in this beat has a let-ring applied.
- JavaScript
- C#
- Kotlin
isLetRing: boolean;bool IsLetRing { get; set; }var isLetRing: BooleanisPalmMuteโ
Gets or sets whether any note in this beat has a palm-mute applied.
- JavaScript
- C#
- Kotlin
isPalmMute: boolean;bool IsPalmMute { get; set; }var isPalmMute: BooleanisRestโ
(no description)
- JavaScript
- C#
- Kotlin
readonly isRest: boolean;bool IsRest { get; }val isRest: BooleanisTremoloโ
Whether this beat has a tremolo picking effect.
- JavaScript
- C#
- Kotlin
readonly isTremolo: boolean;bool IsTremolo { get; }val isTremolo: Booleanlyricsโ
Gets or sets the lyrics shown on this beat.
- JavaScript
- C#
- Kotlin
maxNoteโ
Gets or sets the note with the highest pitch in this beat. Only visible notes are considered.
maxStringNoteโ
Gets or sets the note with the highest string number in this beat. Only visible notes are considered.
maxWhammyPointโ
Gets or sets the highest point with for the highest whammy bar value.
minNoteโ
Gets or sets the note with the lowest pitch in this beat. Only visible notes are considered.
minStringNoteโ
Gets or sets the note with the lowest string number in this beat. Only visible notes are considered.
minWhammyPointโ
Gets or sets the highest point with for the lowest whammy bar value.
nextBeatโ
Gets or sets the next beat within the whole song.
notesโ
Gets or sets the list of notes contained in this beat.
noteStringLookupโ
Gets the lookup where the notes per string are registered. If this staff contains string based notes this lookup allows fast access.
noteValueLookupโ
Gets the lookup where the notes per value are registered. If this staff contains string based notes this lookup allows fast access.
ottavaโ
Gets or sets the ottava applied to this beat.
overrideDisplayDurationโ
The duration in midi ticks to use for this beat on the displayDuration
controlling the visual display of the beat. This is used in scenarios where the bar might not have 100% exactly
a linear structure between the beats. e.g. in MusicXML when using <forward />.
- JavaScript
- C#
- Kotlin
overrideDisplayDuration?: number;double OverrideDisplayDuration { get; set; }var overrideDisplayDuration: DoublepickStrokeโ
Gets or sets the pickstroke applied on this beat.
- JavaScript
- C#
- Kotlin
playbackDurationโ
Gets or sets the duration that the note is played during the audio generation.
- JavaScript
- C#
- Kotlin
playbackDuration: number;double PlaybackDuration { get; set; }var playbackDuration: DoubleplaybackStartโ
The timeline position of the voice within the current bar as it is played. (unit: midi ticks) This might differ from the actual playback time due to special grace types.
- JavaScript
- C#
- Kotlin
playbackStart: number;double PlaybackStart { get; set; }var playbackStart: Doublepopโ
Gets or sets a value indicating whether the notes on this beat are played with a pop-style (bass).
- JavaScript
- C#
- Kotlin
pop: boolean;bool Pop { get; set; }var pop: BooleanpreferredBeamDirectionโ
Gets or sets the preferred beam direction as specified in the input source.
- JavaScript
- C#
- Kotlin
preferredBeamDirection: BeamDirection | null;BeamDirection? PreferredBeamDirection { get; set; }var preferredBeamDirection: BeamDirection?previousBeatโ
Gets or sets the previous beat within the whole song.
rasgueadoโ
The Rasgueado pattern to play with this beat.
restDisplayOctaveโ
Gets or sets the octave at which this rest should be displayed.
Only relevant when restDisplayTone is set. NaN means use the default position formula.
- JavaScript
- C#
- Kotlin
restDisplayOctave: number;double RestDisplayOctave { get; set; }var restDisplayOctave: DoublerestDisplayToneโ
Gets or sets the chromatic tone value (0โ11) of the pitch at which this rest should be displayed. A value of NaN means use the default position formula.
- JavaScript
- C#
- Kotlin
restDisplayTone: number;double RestDisplayTone { get; set; }var restDisplayTone: DoubleshowDynamicsโ
Whether a dynamics marking with the dynamics of this beat is shown. If not set, a marking is shown where the dynamics change.
Formats encoding the written markings (e.g. MusicXML) set it, as the dynamics in effect can differ
from the shown markings: e.g. a single marking on a piano applies to both staves.
- JavaScript
- C#
- Kotlin
showDynamics?: boolean;bool ShowDynamics { get; set; }var showDynamics: BooleanshowTimerโ
Whether to show the time when this beat is played the first time. (requires that the midi for the song is generated so that times are calculated). If no midi is generated the timer value might be filled from the input file (or manually).
- JavaScript
- C#
- Kotlin
showTimer: boolean;bool ShowTimer { get; set; }var showTimer: Booleanslapโ
Gets or sets a value indicating whether the notes on this beat are played with a slap-style (bass).
- JavaScript
- C#
- Kotlin
slap: boolean;bool Slap { get; set; }var slap: Booleanslashedโ
Gets or sets whether this beat should be rendered as slashed note.
- JavaScript
- C#
- Kotlin
slashed: boolean;bool Slashed { get; set; }var slashed: Booleanstyleโ
The style customizations for this item.
tapโ
Gets or sets a value indicating whether the notes on this beat are played with a tap-style (bass).
- JavaScript
- C#
- Kotlin
tap: boolean;bool Tap { get; set; }var tap: Booleantextโ
Gets or sets the text annotation shown on this beat.
- JavaScript
- C#
- Kotlin
text: string | null;string? Text { get; set; }var text: String?timerโ
The absolute time in milliseconds when this beat will be played the first time.
- JavaScript
- C#
- Kotlin
timer: number | null;double? Timer { get; set; }var timer: Double?tremoloPickingโ
The tremolo picking effect.
- JavaScript
- C#
- Kotlin
tremoloPicking?: TremoloPickingEffect;TremoloPickingEffect TremoloPicking { get; set; }var tremoloPicking: TremoloPickingEffecttremoloSpeedโ
Set tremoloPicking instead.
The speed of the tremolo.
tupletDenominatorโ
Gets or sets the tuplet denominator.
- JavaScript
- C#
- Kotlin
tupletDenominator: number;double TupletDenominator { get; set; }var tupletDenominator: DoubletupletGroupโ
(no description)
- JavaScript
- C#
- Kotlin
tupletNumeratorโ
Gets or sets the tuplet numerator.
- JavaScript
- C#
- Kotlin
tupletNumerator: number;double TupletNumerator { get; set; }var tupletNumerator: Doublevibratoโ
Gets or sets the vibrato effect used on this beat.
- JavaScript
- C#
- Kotlin
voiceโ
Gets or sets the reference to the parent voice this beat belongs to.
wahPedalโ
Whether the wah pedal should be used when playing the beat.
whammyBarPointsโ
Gets or sets the points defining the whammy bar usage.
whammyBarTypeโ
Gets or sets the whammy bar style of this beat.
- JavaScript
- C#
- Kotlin
whammyStyleโ
Gets or sets which whammy bar style should be used for this bar.
Methodsโ
addNoteโ
(no description)
| Parameter | Summary |
|---|---|
noteAll | (no description) |
addWhammyBarPointโ
(no description)
| Parameter | Summary |
|---|---|
pointAll | (no description) |
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) |
finishโ
(no description)
| Parameter | Summary |
|---|---|
settingsAll | (no description) |
sharedDataBagAll | (no description) |
finishTupletโ
(no description)
- JavaScript
- C#
- Kotlin
finishTuplet(): voidvoid FinishTuplet()fun finishTuplet(): UnitgetAutomationโ
(no description)
- JavaScript
- C#
- Kotlin
getAutomation(type: AutomationType): Automation | nullAutomation? GetAutomation(AutomationType type)fun getAutomation(type: AutomationType): Automation?| Parameter | Summary |
|---|---|
typeAll | (no description) |
getNoteOnStringโ
(no description)
| Parameter | Summary |
|---|---|
noteStringAll | (no description) |
getNoteWithRealValueโ
(no description)
| Parameter | Summary |
|---|---|
noteRealValueAll | (no description) |
hasNoteOnStringโ
(no description)
- JavaScript
- C#
- Kotlin
hasNoteOnString(noteString: number): booleanbool HasNoteOnString(double noteString)fun hasNoteOnString(noteString: Double): Boolean| Parameter | Summary |
|---|---|
noteStringAll | (no description) |
isAfterโ
Checks whether the current beat is timewise after the given beat.
| Parameter | Summary |
|---|---|
beatAll | (no description) |
isBeforeโ
Checks whether the current beat is timewise before the given beat.
| Parameter | Summary |
|---|---|
beatAll | (no description) |
removeNoteโ
(no description)
| Parameter | Summary |
|---|---|
noteAll | (no description) |
removeWhammyBarPointโ
(no description)
- JavaScript
- C#
- Kotlin
removeWhammyBarPoint(index: number): voidvoid RemoveWhammyBarPoint(double index)fun removeWhammyBarPoint(index: Double): Unit| Parameter | Summary |
|---|---|
indexAll | (no description) |
updateDurationsโ
(no description)
- JavaScript
- C#
- Kotlin
updateDurations(): voidvoid UpdateDurations()fun updateDurations(): Unit