Browse Source

Allow Ukulele defines

Fix #85
pull/90/head
Oliverpool 9 years ago
parent
commit
93e40ebce0
  1. 4
      patacrep/songs/chordpro/data/latex/content_define
  2. 5
      test/test_chordpro/ukulelechords.sgc
  3. 4
      test/test_chordpro/ukulelechords.source
  4. 14
      test/test_chordpro/ukulelechords.tex

4
patacrep/songs/chordpro/data/latex/content_define

@ -1,4 +1,8 @@
(*- if content.frets|length == 4 -*)
\utab{
(*- else -*)
\gtab{ \gtab{
(*- endif -*)
((- render(content.key) -)) ((- render(content.key) -))
}{ }{
(*- if content.basefret -*) (*- if content.basefret -*)

5
test/test_chordpro/ukulelechords.sgc

@ -0,0 +1,5 @@
{language: english}
{define: G frets 0 2 3 2}
{define: D7 frets 2 2 2 3 fingers 1 1 1 2}
{define: G frets 3 2 0 0 0 3}
{define: A#+2 base-fret 7 frets 0 1 3 3 x x fingers - 1 2 3 - -}

4
test/test_chordpro/ukulelechords.source

@ -0,0 +1,4 @@
{define: G frets 0 2 3 2}
{define: D7 frets 2 2 2 3 fingers 1 1 1 2}
{define: G frets 3 2 0 0 0 3}
{define: A#+2 base-fret 7 frets 0 1 3 3 x x fingers - 1 2 3 - -}

14
test/test_chordpro/ukulelechords.tex

@ -0,0 +1,14 @@
\selectlanguage{english}
\beginsong{}[
by={
},
]
\utab{G}{0232}
\utab{D7}{2223:1112}
\gtab{G}{320003}
\gtab{A#+2}{7:0133XX:012300}
\endsong
Loading…
Cancel
Save