If you know the Scheme programming language, you can do this
fairly easily, see for example the example smart-transpose.ly in
the Tips and Tricks document. However, there's no builtin support
for this kind of variables using the \transpose syntax.

   /Mats

Gilles wrote:
Hello.

Is it possible to have a variable for referring to a pitch?
I.e to be able to write something like:
-----
from = e
to = g
music = \notes { a4 b a c d }
transposedmusic = \transpose \from \to \music
-----

Best regards,
Gilles


_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe =============================================


_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to