> 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