Skip to main content

changeTrackTranspositionPitch

since 1.4.0

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.

changeTrackTranspositionPitch(tracks: Track[], semitones: number): void
ParameterSummary
tracksAll

The list of tracks to change.

semitonesAll

The number of semitones to apply as pitch offset.

Examples​

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