Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make custom chords in the first 4 frets show with the nut #7

Open
davfive opened this issue May 8, 2022 · 5 comments
Open

Make custom chords in the first 4 frets show with the nut #7

davfive opened this issue May 8, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@davfive
Copy link
Owner

davfive commented May 8, 2022

For some reason, jTab/Raphael move the chord as high as possible on the display.

image

Requirements:

  • If a chord is in the first 4 frets, show the nut always
  • If a chord takes < 4 frets, leave the top fret blank
@davfive davfive reopened this Oct 13, 2022
@davfive
Copy link
Owner Author

davfive commented Oct 13, 2022

Mistakenly closed for 1.2.2 (reopened)

@gutobenn
Copy link

gutobenn commented Jan 7, 2023

@davfive I'm facing the same problem, that's an issue in jTab

Here you can see someone who got it fixed: tardate/jtab#39 (comment)
It would be awesome if we could somehow choose to use his fork

@davfive
Copy link
Owner Author

davfive commented Jan 7, 2023 via email

@RobColes
Copy link

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

@davfive
Copy link
Owner Author

davfive commented Mar 4, 2024

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.

@davfive davfive closed this as completed Mar 4, 2024
@davfive davfive added will not do Issue evaluated and decision made not to fix or implement help wanted Extra attention is needed and removed will not do Issue evaluated and decision made not to fix or implement labels Mar 4, 2024
@davfive davfive reopened this Mar 10, 2024
@davfive davfive added this to the v2.0 milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

3 participants