Closed cknadler closed 9 years ago
Another idea for this would be to have bass
and guitar
modes for marktab to parse.
Type: bass
would default to Strings: 4
and Tuning: E A D G
.
New take on this issue:
Config header should be YAML:
---
strings: 7
tuning: B E A D G b e
import: some_chords.mt
---
For easier parsing?
Yes, and it stands out better, to me at least. The ---
is pretty universally YAML while the #
means comment in ruby. So, in the grammar, I changed ---
to indicate a config header and #
to be a comment. I'm going to remove the c-style comments as well.
Adding a new config option:
line_length: 80 #default
That brings us to:
---
strings: 6
tuning: E A D G B e
import: stdlib.mt
line_length: 80
---
For the first implementation of the parser, I have a few changes I want to make to the conf header.
These two are redundant. By declaring what tuning you are using, you are inherently telling MarkTab how many strings have.
I think that removing the strings
option altogether is the easiest.
A stdlib of chords would be awesome, but slightly beyond the scope of the first implementation. For now, I'm leaving this out.
tuning: E A D G B e
line_length: 80
Much simpler.
<3 <3 <3
:ok_hand:
marktab needs an optional header that allows you to configure miscellaneous parts of the tab.
Currently running with the idea preceding each config line with a
#
.defaults: