4 texidoc = "@code{make-relative} has to copy its argument expressions
5 in case the generated music expression is getting copied and modified.
7 The code here defines a @code{\\reltranspose} function working inside
8 of @code{\\relative} and uses it. Both staves should appear
17 #(define-music-function (from to music)
18 (ly:pitch? ly:pitch? ly:music?)
19 (make-relative (music) music
20 #{ \transpose #from #to $music #}))
25 c2 r8 c, e g c1 | \bar "|."
29 \new Staff \relative \mus
30 \new Staff \relative \mus