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