Re: [NTG-context] Building a guitar chord using MP
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 on-the-fly insertion of Lilypond images does not work. 2) Generation of dozens of stand alone chords requires dozens of calls to lilypond, and, thus, terrifically slow. Am I right with this? -- Best Regards, Vyatcheslav Yatskovsky
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 dispersed in a text, then you'd have to \lower each one (i.e. I could implement a global voffset option). see also http://wiki.contextgarden.net/LilyPond#Typesetting_fret_diagrams http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Common-notation-fo... http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Predefined-fretboa...
2) Generation of dozens of stand alone chords requires dozens of calls to lilypond, and, thus, terrifically slow. Am I right with this?
Of course LilyPond would be called for every chord if you place them as snippets. But only once, as long as they don't change. Wouldn't you need to call MetaPost for every diagram? (I guess in MkIV it's a library, thus faster.) You didn't tell us what you finally want to accomplish - in your first post you talk only about one fret diagram. Oh, BTW: Can anyone explain to me, how I can implement the catcode trickery for hyphens (in http://wiki.contextgarden.net/LilyPond#Typesetting_fret_diagrams) in the module? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
participants (2)
-
Henning Hraban Ramm
-
Vyatcheslav Yatskovsky