Skip to content

GP Exporter should write correct instrument articulation indexes #2056

@Danielku15

Description

@Danielku15

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When creating an alphaTex percussion track, we use the built-in percussion articulations which we lookup via MIDI key. When exporting this to a Guitar Pro file, we write the midi keys 1:1 but this does not match the articulation list we write. Guitar Pro expects the articulation to be an index.

Expected Behavior

alphaTab should write proper GP files with the correct articulation list and references on notes.

Steps To Reproduce

Export this alphaTex to Guitar Pro and check it there.

\track Drums
\instrument percussion
\clef neutral 
\articulation Kick 36
Kick.4 Kick.8 Kick.8 Kick.4 Kick.4

Link to jsFiddle, CodePen, Project

No response

Version and Environment

Logger.ts:7 [AlphaTab][VersionInfo] alphaTab 1.5.0
[AlphaTab][VersionInfo] commit: 9000162eff4af40895bb41771fc792791e10b2e6
[AlphaTab][VersionInfo] build date: 2025-05-02T14:20:42.726Z
[AlphaTab][VersionInfo] High DPI: 0.8999999761581421
[AlphaTab][VersionInfo] Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
[AlphaTab][VersionInfo] Platform: BrowserModule
[AlphaTab][VersionInfo] WebPack: false
[AlphaTab][VersionInfo] Vite: false
[AlphaTab][VersionInfo] Window Size: 1930x1159
[AlphaTab][VersionInfo] Screen Size: 3840x1200

Platform

Web

Anything else?

Its likely best if we collect the used articulations when parsing alphaTex and then set the index instead of midi numbers.-

Metadata

Metadata

Assignees

Labels

area-file-formatsRelated to supported file formatsplatform-allAffects all platformsstate-acceptedThis is a valid topic to work on.

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions