lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add scheme engraver for StaffTab notation


From: Werner LEMBERG
Subject: Re: [PATCH] Add scheme engraver for StaffTab notation
Date: Tue, 24 Feb 2015 09:38:31 +0100 (CET)

> [...] in string-tunings-init.ly there are also other tunings that
> exceed 80 characters, such as "guitar-seven-string-tuning",
> "bass-five-string-tuning", and "bass-six-string-tuning".

Indeed.  Mhmm.  I would define an auxiliary, temporary function

  T = #(define-void-function (parser location name chord)
        (string? ly:music?)
        "Auxiliary function to set up tunings."
        (let ((sym (string->symbol (string-append name "-tuning"))))
         #{ \makeDefaultStringTuning #sym \stringTuning #chord #}))

that simplifies

  \makeDefaultStringTuning #'guitar-tuning \stringTuning <e, a, d g b e'>

to the much more readable

  \T "guitar" <e, a, d g b e'>

The only thing I don't know how to remove this function after it has
been used – AFAIK, Scheme doesn't allow this, but what about LilyPond?

> Can a tuning definition be continued on the next line?  If so: how?

You can break a line at whitespace as you like.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]