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