Hello list,

I use a music function to tweak the X and Y-offsets for a grob. This function used to work in 2.19.8, but in 2.19.15 and .16 it just remains without effect – there are no kind of messages. Any idea where this might come from?

Best, Simon
% 2.19.8 works, 2.19.15 doesn’t
\version "2.19.16"
\paper { #(set-paper-size "a10" 'landscape) }
\header { tagline = ##f }

% permits the y-offset argument to be omitted
off = #(define-music-function (parser location x y ev) (number? (number? #f) ly:music?)
         #{ -\tweak X-offset $x
            $(if
              y
              #{ -\tweak Y-offset $y $ev #}
              #{ $ev #})
         #})

\score {
  { c'-\off 0 1 \f }
  \layout {
    \context { \Voice
               \dynamicUp
               \override DynamicLineSpanner.outside-staff-priority = ##f }
  }
}

Attachment: off-function-2.19.16-fail.pdf
Description: Adobe PDF document

_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to