]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3673: Make make-relative able to deal with music rather than just pitches
authorDavid Kastrup <dak@gnu.org>
Fri, 22 Nov 2013 08:54:26 +0000 (09:54 +0100)
committerDavid Kastrup <dak@gnu.org>
Sun, 8 Dec 2013 08:25:42 +0000 (09:25 +0100)
commit85b4febc9ec06fdbe52711d214bf9c6fdd549604
tree678a0f1a206b7a86099a150fb16ef1771d2b777d
parent0f7b01fc0bb37987e3405a7acbc14dc6aeb47d71
Issue 3673: Make make-relative able to deal with music rather than just pitches

The old behavior of make-relative was too cumbersome to use in many
cases.

This variant allows, for example:

withOctave =
  (ly:music?)
  (make-relative
   (music) music
   #{ \context Bottom << $music \transpose c c' $music >> #}))

\relative
\new Staff \withOctave {
  \partial 4. c'8 e g |
  c2 e,4 g |
  c,8 c' b a <g d'> <f c'> <e b'> <d a'> |
  <c g'>1 | \bar "|."
}
scm/music-functions.scm