> Uh, there is a difference between \markup and \mark .

I put \mark just to make things more interesting.....  I'm joking.
Shit!!!!! I made the usual stupid mistake that's perfect to complicate
things :(


> Once you fixed
> that, your counter will be reset to 0 for each invocation of the
> function.  You need
>
> nextcount =
>   #(let ((counter 0))
>      (define-scheme-function ...
>

Uhm.... I tried changing it like this:

\version "2.19.82"
nextcount =
  #(let  ((counter 0))
    (define-scheme-function () ()
     (lambda ()
       (set! counter (1+ counter))
       (number->string counter)
       )
     ))

\markup \nextcount
\markup \nextcount


but it doesn't compile....
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to