Suggestion for guitar tab hack

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
Julien_Vincenot
Posts: 36
Joined: Fri Apr 26, 2013 8:01 am

Suggestion for guitar tab hack

Post by Julien_Vincenot » Wed Aug 09, 2023 3:26 pm

Hi there,

I'm wondering if people have an idea in mind to turn bach.roll or score to display some kind of guitar tab notation.
I'm not sure how to proceed or if that's possible. I can easily add an extra staff, but then how about turning noteheads into numbers?

I found an example with linknoteheadtoslot, but it doesn't work with text, only with int, so I'm limited by symbols from 0 to 9 maybe (the ones used in time signatures), but I would need to be able to get higher than that (up to 12 or more). I'm not sure how I could do that.

Also I wish I could display those numbers with some small opaque background to improve readability, like in this picture I found online

If anyone has a cool trick I could use I'm very interested !
Best,

Julien
Unknown.png
Unknown.png (3.96 KiB) Viewed 38839 times
--
Julien Vincenot
creator of the MOZ'Lib package

danieleghisi
Site Admin
Posts: 1349
Joined: Fri Dec 03, 2010 1:25 pm

Re: Suggestion for guitar tab hack

Post by danieleghisi » Sat Aug 19, 2023 7:56 pm

Hey,

off the top of my head:
- use 6 lines
- put TAB by hand ;-)
- change the noteheads to custom noteheads (there's an example in the help center: #custom+noteheads)
- hide stems/beams

I won't bet too much money but I think that should work fine ;-)

Julien_Vincenot
Posts: 36
Joined: Fri Apr 26, 2013 8:01 am

Re: Suggestion for guitar tab hack

Post by Julien_Vincenot » Fri Sep 08, 2023 4:33 am

Hola Daniele,

Again I completely missed your reply I'm sorry, hopefully my email notif are properly set now.

That's the thing, I tried that example you showed as well, the char attribute works with letters but I cannot make it work with numbers,
even with forced quotes \"2\".

Also obviously in the example below, 12 is not a character, how would you do with numbers above 9 (which are necessary in tabs)?

Also in my previous question :
I wish I could display those numbers with some small opaque background to improve readability, like in the picture above.
Do you think that would reasonable for a feature request? :)
Attachments
Capture d’écran 2023-09-08 à 12.25.03 PM.png
Capture d’écran 2023-09-08 à 12.25.03 PM.png (157.81 KiB) Viewed 38751 times
--
Julien Vincenot
creator of the MOZ'Lib package

danieleghisi
Site Admin
Posts: 1349
Joined: Fri Dec 03, 2010 1:25 pm

Re: Suggestion for guitar tab hack

Post by danieleghisi » Fri Sep 08, 2023 10:33 am

Integer numbers are treated as ascii/Unicode numbers, so you'll have to use the corresponding ones.

That doesn't solve the "12" issue. As for now, the best way would be to tweak the font to have 10, 11, 12 etc. natively. Not ideal, I know, but feasible with font forge or similar...

Yes, the opaque background makes sense. It should be implementable fairly easily, I'll look into it next week. I'll also see what I can do for multichars.

D

Julien_Vincenot
Posts: 36
Joined: Fri Apr 26, 2013 8:01 am

Re: Suggestion for guitar tab hack

Post by Julien_Vincenot » Thu Sep 21, 2023 9:17 pm

Fantastic, thank you !
Sorry again for some reason I still didn't get any notification…
--
Julien Vincenot
creator of the MOZ'Lib package

Post Reply