11 Apr
2010
11 Apr
'10
7:17 p.m.
Hello, Thanks to Taco, I have some progress in developing "guitar chord" command. My current trouble is how to develop the "mark" MP macro and where to put it? Inside startuseMPgraphic? \startuseMPgraphic{chordgrid}{e,B,G,D,A,E} drawoptions(withpen pencircle scaled 0.4pt withcolor black) ; draw hlingrid(0, 5, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4, 1, 1cm, 0.8cm) ; draw mark(1,\MPvar{e}); draw mark(2,\MPvar{B}); draw mark(3,\MPvar{G}); draw mark(4,\MPvar{D}); draw mark(5,\MPvar{A}); draw mark(6,\MPvar{E}); \stopuseMPgraphic \define[6]\Ch {\dontleavehmode \useMPgraphic{chordgrid}{e={#1},B={#2},G={#3},D={#4},A={#5},E={#6}}% \hskip2mm} \starttext \Ch{1}{3}{1}{2}{1}{1} \stoptext -- Best Regards, Vyatcheslav Yatskovsky