bug-lilypond
[Top][All Lists]
Advanced

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

Re: Bar number on odd bars does not work on new release?


From: James
Subject: Re: Bar number on odd bars does not work on new release?
Date: Sat, 18 Jan 2014 21:31:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 06/01/14 20:47, Federico Bruni wrote:
2014/1/6 Esa Erola <address@hidden>


The snippet putting bar numbers on odd bars does not seem to work on 2.16.0
- it worked on an earlier release


\context {
     \Score
     barNumberVisibility = #all-bar-numbers-visible
     barNumberVisibility = #(lambda (n) (= (modulo n 2) 1))
     \override BarNumber #'break-visibility = #all-visible
}

The snipped is given here:

http://lsr.dsi.unimi.it/LSR/Snippet?id=712


the snippets in the LSR are compiled for an old lilypond version, currently
2.14
hopefully some power user or developer will help you to fix it, this is the
error:


  Interpreting music...lily-library.scm: In expression (process-procedure
book paper ...):
lily-library.scm: Wrong number of arguments to #<procedure #f (n)>
The offending line is

    barNumberVisibility = #(lambda (n) (= (modulo n 2) 1))

If you comment that out it works (or rather the file compiles but you don't get the output you want). That doesn't help anyone, but shows where the problem line is.

James



reply via email to

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