[NTG-context] Where to put MP macro?

Vyatcheslav Yatskovsky yatskovsky at gmail.com
Sun Apr 11 19:17:03 CEST 2010


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


More information about the ntg-context mailing list