lilypond-user
[Top][All Lists]

## Re: question about transposing an interval of a 4th

 From: chip Subject: Re: question about transposing an interval of a 4th Date: Sun, 21 Dec 2008 22:57:17 -0700 User-agent: Thunderbird 2.0.0.17 (X11/20080925)

```
Am 21.12.2008 um 19:07 schrieb chip:

```
I input in Concert C, transpose to the key of D for Trumpet.
```\transpose c d {}

The First Trumpet part transposes to the key of D just fine. I
```
would like to just copy/paste the first part into the second part.
```What's the second part?
```
```
```
As mentioned just above your question - it's the first trumpet part, just copied/pasted into the 2nd trumpet part.
```
```
```    The second part I want to transpose also for Trumpet, also in the
```
key of D, but a fourth lower. In the key of d, but a fourth lower. Do you mean the key of a?
```Key of A? No, as I said in my post - in the key of D.

```
Or do you want the part in D major, but a fourth lower than the first part?
```Yes, as I said, a fourth lower, in the key of D.

```
I'm a little confused as to what you want. If it's the the latter, then yeah, it's probably doable in scheme, but I don't know scheme and can't help you there, and I would just say type it a fourth lower.
```
melody = {c d e f g a b}
trumpet 1 = {d e fâ g a b câ}
trumpet 2 = {a b câ d e fâ gâ} ??
trumpet 2 = {a b câ d e fâ g} ??
```
```If my piece were only 7 notes long that would work just fine.

Graham Percival wrote:
```
```Chip, I am 90% convinced that the solution to your problem was
posted here:
http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00586.html
http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00585.html
With another person trying to figure out what you wanted here:
http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00581.html

None of those solutions involve programming, and they are easily
constructed with the knowledge in the LM.  If you cannot, or will
not, describe what you actually want, it's very difficult to help
you.
```
How much clearer can I make it? The questions are answered in the posts right above the questions. A trumpet part in the key of D but notated a fourth lower, still in the key of D, as described above. The notes print on the .pdf one fourth lower than what is input in the .ly file. The transposing should not effect the key signature, it starts in the key of D and stays there for the transposed notes.
```Now, you've done this in Sibelius so it may seem irrelevant now,
http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00581.html
```
Ok, it's answered above. After all is said and done, the output from Sibelius sucks, so I've done the long-hand work and just typed in the notes a fourth lower in the .ly file so this will be ready for the band tomorrow.
```
```
I'm gonna re-read those posts your refer to tomorrow morning, and experiment a bit and see how it goes.
```--
chip
```
```- Graham

On Sun, Dec 21, 2008 at 09:40:34PM -0700, chip wrote:
```
Not everybody has a programmers mind. I don't. I have no interest whatsoever in programming. A person should be able to use a piece of software without having to be a programmer to do so. If a programming degree is necessary to use Lily then it is either a) not complete enough for the general public to use, and a warning message to this effect should be placed on the web site home page, or b) should be aimed at a different audience - programmers/brainiacs.
```--
Chip

Graham Percival wrote:
```
```On Sun, Dec 21, 2008 at 06:30:18PM -0800, Mark Polesky wrote:
```
```Graham,

```
```Great, that helps a lot. I haven't got a clue what scheme is.
```
In that case, may I courteously extend an invitation that you read the bloody Learning Manual?
```Please stop the sarcasm and the indecency. If
you're trying to be funny, it isn't working.
```
```It's a continuation of this email:
http://lists.gnu.org/archive/html/lilypond-user/2008-11/msg00439.html

If he doesn't know what scheme is, then he clearly *hasn't* read
the LM cover-to-cover yet.  This means that he's missed some
terminology, missed some of the possibilities of lilypond, and
won't be able to communicate with the lilypond community as
effectively.

```
```I leave it as an exercise for the reader. Neil,
```
```What are you doing? Are you trying to turn people away from LilyPond?
```
```You seem to be unfamiliar with the phrase "an exercise for the
reader".  The idea is that solving the problem is a useful
exercise.

```
There have been 15 replies to Chip's original message, and NO ONE has answered it yet.
```This is embarrassing. If it were as easy to the
rest of us as it obviously is to you, someone
legitimate question, and the response is, "go
```
figure it out".
```Give a man a fish, teach a man to fish...

```
```But what you're doing is the opposite of helpful.
So please, stop. Since it's such an elementary
exercise, please provide it, now. I assume it'll
only take a minute. Then we can all learn.
```
```1.  Look at the selected snippets for \transpose.  There's an
example that's very close to what he wants.

2.  Look at
{ \displayMusic { a ais d dis } }
to get some info about how lilypond treats pitches.  The idea is
to write a function that translates "a ais" into "d dis".

3.  Modify the existing example so that instead of producing notes
with few accidentals, it changes the notename by the desired
interval.

- Graham

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

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

```
```

```