lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

def-rel-music-function


From: Erik Sandberg
Subject: def-rel-music-function
Date: Wed, 8 Feb 2006 13:41:16 +0100
User-agent: KMail/1.8.3

Hi,

Here's another hack that enables proper relative handling of function 
arguments.

The solution is a bit hairy, and it does not scale (it is only a workaround 
for the current implementation of \relative). The function is called twice if 
there is a \relative around it, therefore this solution is inefficient, and 
it also doesn't work well with functions that have side-effects.

The positive thing about this hack, is that it doesn't touch any existing 
code, so if you reject it, I can use it privately.

Here's a test:

partcombine =
#(def-rel-music-function (parser location part1 part2) (ly:music? ly:music?)
                (make-part-combine-music (list part1 part2)))

\relative \new Staff \partcombine { c' e } { g b }

-- 
Erik

Attachment: def-rel-music-funciton.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]