changeTrackTranspositionPitch
Description​
Changes the pitch transpose applied to the given tracks. These pitches are additional to the ones applied to the song via the settings and data model and allows a more live-update via a UI.
Signatures​
function changeTrackVolume(tracks, semitones)JavaScript |
void ChangeTrackVolume(Track[] tracks, double semitones).net |
fun changeTrackVolume(tracks: alphaTab.collections.List<alphaTab.model.Track>, semitones: Double): UnitAndroid |
Parameters​
Parameters | Type | Summary |
---|---|---|
tracksJavaScript | alphaTab.model.Tracks[] | The array of tracks that should be changed. |
tracks.net | AlphaTab.Model.Tracks[] | The array of tracks that should be changed. |
tracksAndroid | alphaTab.collections.List<alphaTab.model.Track> | The array of tracks that should be changed. |
semitonesAll | double | The number of semitones to apply as pitch offset |
Returns​
Nothing
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackTranspositionPitch([api.score.tracks[0], api.score.tracks[1]], 3);
api.changeTrackTranspositionPitch([api.score.tracks[2]], 2);
var api = new AlphaTabApi<MyControl>(...);
api.ChangeTrackTranspositionPitch(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, 3);
api.ChangeTrackTranspositionPitch(new Track[] { api.Score.Tracks[2] }, 3);
val api = AlphaTabApi<MyControl>(...);
api.changeTrackTranspositionPitch(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), 3);
api.changeTrackTranspositionPitch(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[2]), 2);