"Carl D. Sorensen" <[email protected]> writes:
> Examples of how LilyPond uses scheme are found in [...]
It would be nice to have a boilerplate scheme function that processes
an arbitrary music expression and returns a new expression that is an
identical copy of the original expression.
In some arbitrary pseudo-code:
function X takes music-expression Y returns music-expression
new Z
for each element of Y
if element is note
append note to Z
else
if element is rest
append rest to Z
else
... maybe some more cases ...
else
append element to Z
return Z
This would make it easy to experiment with manipulation of music
expressions. In Chip's case:
...
if element is note
subtrackt 4 from pitch
append note to Z
else
...
-- Johan
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user