4 texidoc = "@code{make-relative} can make relativization on music
5 function calls behave as one would expect from looking at the
6 function's arguments rather than at the actually resulting
7 expressions. This regtest defines an example function
8 @code{\\withOctave} which works equally well inside and outside of
13 #(define-music-function (music)
17 #{ \context Bottom << $music \transpose c c' $music >> #}))
22 c,8 c' b a <g d'> <f c'> <e b'> <d a'> |
27 \relative \new Staff { <>^"original" \mus }
28 \relative \new Staff { <>^\markup \typewriter "\\relative \\withOctave"
30 \new Staff { <>^\markup \typewriter "\\withOctave \\relative"
31 \withOctave \relative \mus }