[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggestions for macro tools to generate .ly files
From: |
Nicolas Sceaux |
Subject: |
Re: Suggestions for macro tools to generate .ly files |
Date: |
Tue, 12 Oct 2004 18:30:44 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Jack O'Quin" <address@hidden> writes:
> [...]
> Conceptually, something like this should suffice...
>
> %% B-flat major arpeggio, second inversion
> \exercise{f-1 bf-1 \pos{3} d-3 f-1 bf-1 \pos{7} d-1 |
> f-4 d-1 bf-2 f-2 \pos{5} d-1 bf-2 |}
> [...]
> %% B-flat major arpeggio, second inversion
> \version "2.0.0"
> \include "english.ly"
> fingerings = \notes \relative c, {
> \clef bass \key bf \major
> \repeat volta 2 {f-1 bf-1 d-3\startGroup f-1 bf-1\stopGroup
> d-1\startGroup | f-4 d-1 bf-2 f-2\stopGroup
> d-1\startGroup bf-2\stopGroup}
> }
> tablature = \notes \relative c, {
> f bf
> \property TabStaff.minimumFret = #3
> d f bf
> \property TabStaff.minimumFret = #7
> d | f d bf f
> \property TabStaff.minimumFret = #5
> d bf |
> }
> \score {
> \include "fingerings.ly"
> }
>
> %% fingerings.ly contains..
> \notes <<
> \time 3/4
> \context Staff \fingerings
> \context TabStaff \relative c, {
> \applyoutput #(outputproperty-compatibility
> (make-type-checker 'staff-symbol-interface)
> 'line-count 4)
> \property TabStaff.stringTunings = #'(-5 -10 -15 -20)
> \tablature
> }
> >>
> \paper{ papersize = "letter"
> \translator {
> \StaffContext \consists "Horizontal_bracket_engraver"
> } }
I'd definitely use LilyPond itself for that kind of work, but a more
recent version (2.3.x), featuring user-defined music functions.
If you want, I may help you doing that.
The following sections of the manual are worth reading:
http://lilypond.org/doc/v2.3/Documentation/user/out-www/lilypond/Programmer-interfaces-for-input.html
nicolas