[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using
From: |
tomasherrmann |
Subject: |
Re: using |
Date: |
Thu, 6 Sep 2007 07:38:27 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Mats Bengtsson <mats.bengtsson <at> ee.kth.se> writes:
> > You wrote:
> >> I try to use \transpose with a variable as parameter like
> >> mykey = {d'}
> >> melody = \transpose c' \mykey
> >> \relative c' {... }
> Tomas probably wants to
> do the same transposition on a number of different scores and be able to
> change the transposition of all of them, by only modifying a single line
> in the
> .ly file, namely a definition of a variable that's used as the second
> argument of
> \transpose. Unfortunately, the parser of LilyPond is hard-coded to only
> accept
> an explicit pitch name. The solution is therefore to define your own
> music function
> in Scheme, that is equivalent to \transpose but can handle a variable as
> the input.
> See Chapter 12 "Interfaces for programmers" and in particular 12.3 "Building
> complicated functions", for hints on how to do it.
>
Mats explained exactly what I want to do - thank you!
I am afraid I am not able to write an own (complicated) function.
Perhaps an other user likes to create an alternative \transpose-command which
allows to get a variable as second argument??