On 12/17/13, Mathieu Stumpf <[email protected]> wrote:
> Hello,
>
> I would like to use the score extension to generate guitar chords
> diagrams, but writing something like
>         <score>
>         \fret-diagram #"s:0.75;6-x;5-x;4-o;3-2;2-3;1-2;"
>         </score>
>
> I get this message error:
>         Processing `.../file.ly'
>         Parsing...
>         .../file.ly:12:0: error: unknown escaped string: `\fret'
>
>         \fret-diagram #"s:0.75;6-x;5-x;4-o;3-2;2-3;1-2;"
>         .../file.ly:12:0: error: syntax error, unexpected STRING
>
>         \fret-diagram #"s:0.75;6-x;5-x;4-o;3-2;2-3;1-2;"
>         .../file.ly:21:24: error: syntax error, unexpected '}'
>
>                                 }error: failed files: ".../file.ly"
>
>         exited with status: 1
>
> The code works just fine when I compile it with my local lilypond. That
> functionality would be really interesting, since with a little scribunto
> module, it would allow to generate chords diagram on the fly, and even a
> chord book.
>
> Also I would like to make even more with colored diagrams showing a set
> of interval on the neck. It would be fine if the mediawiki environnement
> would allow this.
>
> kind regards
>
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

I'm not very familiar with lilypond, so there is probably a better
way, but I was able to generate that fret board with code like:

<score raw>
\markup {\fret-diagram #"s:0.75;6-x;5-x;4-o;3-2;2-3;1-2;"}
\score {
  \new Score { c1 }
  \midi { }
}
\header { tagline = ##f}
</score>

See https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=586519066


--bawolff

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to