Open davfive opened 2 years ago
Mistakenly closed for 1.2.2 (reopened)
@davfive I'm facing the same problem, that's an issue in jTab
Here you can see someone who got it fixed: https://github.com/tardate/jtab/issues/39#issuecomment-379587199 It would be awesome if we could somehow choose to use his fork
Thanks!
On Fri, Jan 6, 2023 at 6:50 PM Augusto Bennemann @.***> wrote:
I'm facing the same problem, that's an issue in jTab
Here you can see someone who got if fixes: tardate/jtab#39 (comment) https://github.com/tardate/jtab/issues/39#issuecomment-379587199 It would be awesome if we could choose to use his fork
— Reply to this email directly, view it on GitHub https://github.com/davfive/obsidian-jtab/issues/7#issuecomment-1374358449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGAYWZDCRYZHCTBWXED2XDWRDKWZANCNFSM5VMSYEUA . You are receiving this because you modified the open/close state.Message ID: @.***>
The "proper" fix is probably better, but this was annoying me too, so I just added the below to jtab.tardate.js
//find all the fret positions which arent X or 0. I'm sure there's a better way to do this.
const min = Math.min.apply(Math, fingeredFrets);
// ROB: Don't mess with starting at the nut if the whole fingering fits within the first 5 frets
max = Math.max.apply(Math, fingeredFrets);
if (max > 5) {
array.unshift(min - 1);
} else {
array.unshift(0);
}
return array;
};
Caveat: I don't really know what I am doing with JS but it is working for my test cases
Marking will-not-do since this is a core "feature" of jTab and I don't want to change at this level. Also, no actual use ever requested this.
For some reason, jTab/Raphael move the chord as high as possible on the display.
Requirements: