alphaTab.model.Voice
A voice represents a group of beats that can be played during a bar.
class VoicePropertiesโ
barโ
Gets or sets the reference to the bar this voice belongs to.
beatsโ
Gets or sets the list of beats contained in this voice.
idโ
Gets or sets the unique id of this bar.
- JavaScript
- C#
- Kotlin
id: number;double Id { get; set; }var id: Doubleindexโ
Gets or sets the zero-based index of this voice within the bar.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleisEmptyโ
Gets or sets a value indicating whether this voice is empty.
- JavaScript
- C#
- Kotlin
readonly isEmpty: boolean;bool IsEmpty { get; }val isEmpty: BooleanisRestOnlyโ
Gets or sets a value indicating whether this voice is empty.
- JavaScript
- C#
- Kotlin
readonly isRestOnly: boolean;bool IsRestOnly { get; }val isRestOnly: Booleanstyleโ
The style customizations for this item.
- JavaScript
- C#
- Kotlin
Methodsโ
addBeatโ
(no description)
| Parameter | Summary |
|---|---|
beatAll | (no description) |
addGraceBeatโ
(no description)
| Parameter | Summary |
|---|---|
beatAll | (no description) |
calculateDurationโ
(no description)
- JavaScript
- C#
- Kotlin
calculateDuration(): numberdouble CalculateDuration()fun calculateDuration(): Doublefinishโ
(no description)
| Parameter | Summary |
|---|---|
settingsAll | (no description) |
sharedDataBagAll | (no description) |
getBeatAtPlaybackStartโ
(no description)
| Parameter | Summary |
|---|---|
playbackStartAll | (no description) |
insertBeatโ
(no description)
| Parameter | Summary |
|---|---|
afterAll | (no description) |
newBeatAll | (no description) |