[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rehearsal Mark positioning
From: |
Mats Bengtsson |
Subject: |
Re: Rehearsal Mark positioning |
Date: |
Wed, 26 Sep 2001 00:04:46 +0200 |
> > address@hidden writes:
> > > > Maybe it would be easier for me to figure out a way to put a counter
> > > > in the normal ^"text..." kind of syntax.
> > >
> > > The following LaTeX lines defines a macro \marknumber that
> > > can be used in a text script, for example: c^"\marknumber"
> > >
> > > \newcounter{markcounter}
> > > \newcommand{\marknumber}{\stepcounter{markcounter}\arabic{markcounter}}
> > >
> > > Unless you use lilypond-book, you have to put these definitions
> > > into a separate file, say global.tex and then add
> >
> > Beware that there is no requirement that these strings ^"\marknumber"
> > strings are output in the order that they were defined, (nor do I plan
> > to support this explicitly) if two of them should happen on the same
> > system.
>
> OK, then a Guile implementation would be preferable.
> Shouldn't be too hard.
>
> /Mats
Well, it wasn't hard, here's an example file that
provides automatically numbered text scripts.
/Mats
#(define c 0)
#(define (count) (begin (set! c (+ c 1))(number->string c)))
\score{\notes\relative c'{
c1 ^#(count)
d ^#`(mark ,(count)) |
e ^#`(large ,(count)) |
f ^#`(Large ,(count)) |
g ^#`(finger ,(count)) |
a
}}