Changes

Jump to navigation Jump to search
1,265 bytes added ,  21:03, 12 September 2007
Added a section on fret diagrams
</texcode>
== Current workarounds ==
 
This section lists workarounds needed in some circumstances; we surely hope to move them to [[#Older_Workarounds|'''Older Workarounds''']] as soon as possible!
 
=== Typesetting fret diagrams ===
 
Lilypond has commands to typeset fret diagrams for the guitar chords. The most important one is called <code>\fret-diagram</code> and if you want to use it, you need to play a bit with the catcode of the <code>minus</code> sign since ConTeXt is apparently confused by this. In addition, you can't type the example found in [http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Overview-of-text-markup-commands#index-g_t_0040code_007bfret_002ddiagram_007d-935 the Lilypond documentation] on its own because Lilypond won't accept a score with only markup (the fret diagram) and nothing else; you have to place the markup on the page.
 
All in all, something like this will work:
 
<texcode>
\usemodule[lilypond]
\starttext
\catcode`\-=11
 
D chord:
\blank
 
\startlilypond
d'' ^ \markup { \fret-diagram #"s:0.75;f:1;6-x;5-x;4-o;3-2-1;2-3-3;1-2-2;" }
\stoplilypond
\catcode`\-=12
 
\stoptext
</texcode>
 
If you find a real solution to the <code>catcode</code> problem, please document it here, or report it to the list -- [[User:Arthur|Arthur]]
== Developer's Corner ==
45

edits

Navigation menu