lilypond-user
[Top][All Lists]
Advanced

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

Re: Creating music with Scheme - can this be done in a simpler way?


From: Neil Puttock
Subject: Re: Creating music with Scheme - can this be done in a simpler way?
Date: Wed, 11 Jul 2007 20:10:25 +0100

Hi Neil,

Thanks for your solution! It works fine on its own, but I'm having
trouble using it for something like

    \applyMusic #transform {
        << \pedalMotif { c } { s4-\< s2. s4-\! } >>
    }

which fails to compile:

GNU LilyPond 2.10.25
Processing `test.ly'
Parsing...ERROR: Wrong type (expecting pair): ()

A solution would be to place the function inside the polyphonic section, i.e.

<< { \applyMusic #transform {
        \pedalMotif { g, }
        }
    } \\ { s4-\< s2. s4-\! }
    >>

or

<< { \applyMusic #transform {
        \pedalMotif { g, }
        }
    }
    \new Voice { s4-\< s2. s4-\! }
    >>

Regards,
Neil

reply via email to

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