Skip to content

Non-fretted (non-guitar) instruments transposing for standard notation #916

Answered by Danielku15
mxAlexG asked this question in Q&A
Discussion options

You must be logged in to vote

Guitar Pro 6-8 files have this transposition encoded inside the data model. So it is Guitar Pro who decides there which tracks are visually transposed. In alphaTab this is handled as Staff.displayTranspositionPitch

private parsePartSounding(track: Track, node: XmlNode): void {
for (let c of node.childNodes) {
if (c.nodeType === XmlNodeType.Element) {
switch (c.localName) {
case 'TranspositionPitch':
for (let staff of track.staves) {
staff.displayTranspositionPitch = parseInt(c.innerText);
}
break;
}
}
}
}
private parseTranspose(track: Track, node

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Danielku15
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants