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