> What happens if you use \applyContext for the 2nd value too? It gets ignored. See attached file. A bug?
Werner
#(define lastBarNumber 10) \score { \relative { c1 | \break d1 | \break e1 | \break f1 | \applyContext #(lambda (x) (set! lastBarNumber (ly:context-property x 'currentBarNumber))) } } \score { \relative { \applyContext #(lambda (x) (ly:context-set-property! x 'currentBarNumber lastBarNumber)) c1 | \break d1 | \break e1 | \break f1 | } }
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user