[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: notes in brackets
From: |
David Raleigh Arnold |
Subject: |
Re: notes in brackets |
Date: |
Fri, 28 Jun 2002 15:54:05 +0000 |
On Fri, 28 Jun 2002 17:18:39 Han-Wen wrote:
> address@hidden writes:
> > \score {
> > \notes \relative c''' {
> > a4
> > <{c4} \context Voice = bottom {\openbracket c, \closebracket}>
> > }
> > }
> >
> > is there anyway to get this construct a bit neater? i'm not bothered
> > about typing this a few times, but i was wondering if there's a way
> to
> > pass values to a scheme function,
You could do it the non-programmer's way. Use sly, (see sly.txt, to
this list, contains all.) If you use ptfilter.sed, it is easy to write
a simple
substitution
@b c,
could make
\openbracket c, \closebracket
in the part lilypond-ly2dvi reads, and you can read it that
way too, in lilypond's style, next year even. There is a working
example in ptfilter.sed. Ptfilter.sed is automatically
created by sly as an empty file so you have to copy a non
empty version of it into
your working directory. If you elect not to use it
because you don't like preprocessors, well, type away. :-)
The really good part is being able to pass numerical values,
say for stem length, \sl5, \sl2.1, @sl8.5 LEn4.7 etc., your
call. Of course it's much better to use macros that don't
need such a value by passing them straight through without
preprocessing anything.
A .sly file has this format:
pt1 | pt2 | pt3 etc.---
pt1 | pt2 | pt3
etc.
-
-
-
And each is a ready to run lilypond \notes or \lyrics or
whatever if you do no
substitutions. Sly-tidy will straighten the field
separators for you so it doesn't take iron discipline
to keep it pretty either.
------------------------------------------------------------
Information is not knowledge. Belief is not truth.
Indoctrination is not teaching. Tradition is not evidence.
David Raleigh Arnold address@hidden