Transposing tuning #636
Replies: 1 comment
-
In general for stringed instruments there are two aspects on the final displayed notes: the string tuning of the related staff, but also the fret/string the individual notes are played. So it strongly depends on what you actually want as feature to users. If you want to offer a feature where you can change the tuning, but keep the original note height, you will have to adjust the string and fret of each individual note in the model to fit the new tuning. The code you're showing, will change the tuning, but keep the string/frets of the notes. This will change the display of the tuning annotation and the note height of the standard notation will adapt. Maybe you want to share some insights on the actual feature you're trying to build. This way I might be able to help better. 😉 |
Beta Was this translation helpful? Give feedback.
-
I am trying to find where the guitar tuning is parsed in the alhatab.js Ver:1/3/0 to
transpose the tuning like for example: Eb Ab Gb Gb Bb Eb - > E A D G B E (standard)
I am trying this, and looks promising. It keeps the string/frets and adjusts the
notes. Later on after each note has the fret/string I do some corrections if the tunes/string
have different offsets.
If you have a better idea would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions