Improvement: Transposing tabs with string adjustments.
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
I'm experiencing issues with the transposition feature not working as expected. When I set transpositionPitches: [-4], the notes incorrectly go below 0. Instead, they should move up a string rather than displaying a -1.
Steps to Reproduce:
- Open the attached guitar tab file with no transposition applied (see Screenshot 1).
- Set
transpositionPitchesto[-4]. - Observe the transposed guitar tab (see Screenshot 2).
Expected Behavior: The notes should transpose correctly by moving up a string instead of displaying a negative value, as demonstrated in the expected output from Songsterr (see Screenshot 3).
Screenshots:
-
No transposition applied:
-
After Setting
transpositionPitchesto[-4]: -
Expected Transposition Output - Screenshot from Songsterr for the same tab:
Expected Behavior
The notes should transpose correctly by moving up a string instead of displaying a negative value, as demonstrated in the expected output from Songsterr (see Screenshot 3 above).
Steps To Reproduce
-
Download the GP File:
- Download the file 58202729.gp.zip.
-
Set the Transposition:
- Open the downloaded file and set
transpositionPitchesto[-4].
- Open the downloaded file and set
-
Observe the Issue:
- You will notice that the notes incorrectly move below 0, displaying negative values.
-
Compare with Songsterr:
- Access the tab on Songsterr: Ed Sheeran - Love Can Hurt Tab to see the correct transposition.
Link to jsFiddle, CodePen, Project
No response
Found in Version
1.4 (alpha)
Platform
Web
Environment
- **OS**:
- **Browser**:
- **.net Version**:
Anything else?
No response
This is currently the expected behavior and not a bug. AlphaTab doesn't have a feature to dynamically transpose tabs (adjusting strings).
In simple scenarios like yours it is maybe not a problem. But consider scenarios where the transpostion and string change leads to overlaps. Also there are scenarios where you notes are lost as they cannot be played anymore on the current tuning.