2 texidoc = "@code{make-relative} has to copy its argument expressions
3 in case the generated music expression is getting copied and modified.
5 The code here defines a @code{\\reltranspose} function working inside
6 of @code{\\relative} and uses it. Both staves should appear
15 #(define-music-function (parser location from to music)
16 (ly:pitch? ly:pitch? ly:music?)
17 (make-relative (music) music
18 #{ \transpose #from #to $music #}))
23 c2 r8 c, e g c1 | \bar "|."
27 \new Staff \relative \mus
28 \new Staff \relative \mus