Re: [NTG-context] Building a guitar chord using MP

2010-04-12 Thread Vyatcheslav Yatskovsky
Hurray! I've got first draft version of guitar chord building macro. (With the help of this excellent manual http://www.tug.org/docs/metapost/mpman.pdf ) % -- working version --- \startuseMPgraphic{chordgrid}{e,B,G,D,A,E} def fretmark(expr a,b) = % a = string number % b = fret

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread R. Bastian
On Fri, 09 Apr 2010 21:05:06 +0300 Vyatcheslav Yatskovsky yatskov...@gmail.com scribit: Hello, I have interesting task. I want to build a picture of a guitar chord using metapost. For now, I only knew how to make a chord grid: \startreusableMPgraphic{chordgrid} drawoptions(withpen

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread Vyatcheslav Yatskovsky
I usually tackle this sort of thing by first drawing the entire image in metapost code alone. Then, when that works, write a tex command that fills in bits and pieces of the metapost image. I understand your idea. Indeed, MP code draws underlying grid. How to overlay circles on it using TeX?

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread Vyatcheslav Yatskovsky
Hi Hraban I wouldn't use MetaPost at all (because I can't) but use LilyPond's great possibilities... (Never tried fret diagrams with the LilyPond module, but it should work.) I thought about it, and i have two objections (maybe, false ones) against using Lily: 1) Recently we concluded that

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread Taco Hoekwater
Vyatcheslav Yatskovsky wrote: I usually tackle this sort of thing by first drawing the entire image in metapost code alone. Then, when that works, write a tex command that fills in bits and pieces of the metapost image. I understand your idea. Indeed, MP code draws underlying grid. How to

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread Henning Hraban Ramm
Am 2010-04-10 um 12:01 schrieb Vyatcheslav Yatskovsky: 1) Recently we concluded that on-the-fly insertion of Lilypond images does not work. It should work again since a while. If you need the fret diagrams above lyrics, I'd use LilyPond without a Staff context. If you need fret diagrams

[NTG-context] Building a guitar chord using MP

2010-04-09 Thread Vyatcheslav Yatskovsky
Hello, I have interesting task. I want to build a picture of a guitar chord using metapost. For now, I only knew how to make a chord grid: \startreusableMPgraphic{chordgrid} drawoptions(withpen pencircle scaled 0.4pt withcolor black) ; draw hlingrid(0, 5, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4,

Re: [NTG-context] Building a guitar chord using MP

2010-04-09 Thread Taco Hoekwater
Vyatcheslav Yatskovsky wrote: Please, help me with it. I usually tackle this sort of thing by first drawing the entire image in metapost code alone. Then, when that works, write a tex command that fills in bits and pieces of the metapost image. Best wishes, Taco

Re: [NTG-context] Building a guitar chord using MP

2010-04-09 Thread Henning Hraban Ramm
Am 2010-04-09 um 20:30 schrieb Taco Hoekwater: Vyatcheslav Yatskovsky wrote: Please, help me with it. I usually tackle this sort of thing by first drawing the entire image in metapost code alone. Then, when that works, write a tex command that fills in bits and pieces of the metapost image.