"Carl D. Sorensen" <c_soren...@byu.edu> writes: > You're right, it would be nice to have this. And fortunately, we do.
Hurray! > Please look in the file scm/music-functions.scm. Search for > music->make-music. Exactly what I asked for. This is a function I'm sure gonna play with! > In scheme, it does just what your pseudo-code below does. Except > that it works in the scheme language mode, which means it works > slightly differently that your pseudocode. Of course. The pseudocode only meant to make my intentions clear (and it worked). > But a better way to accomplish something like the diatonic transposition > that started all of this would be to define a function that diatonically > transposes a single pitch, and apply it to the music with the function > music-map, which is also defined in scm/music-functions.scm. Yes, indeed. The music->make-music function is very generic, and has the advantage of explicitly enumeration all kinds of things one can encounter in a music expression. > My main reason for this email is to address your request for a music > expression copier, and show how in general one would play with a > music expression. For which I'm very grateful. Stay tuned for nice examples of (ab)using it ;) -- Johan _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user