Lilypond Transposition
  • I am in need of a transposed edition of CPDL #34161 from D minor up to F minor. I imagine this must be an easy thing to do, but I really don't know how to use LilyPond at all. Can anyone help?
  • a_f_hawkins
    Posts: 3,467
    Google's first response -
    Consider a piece written in the key of D-major. It can be transposed up to E-major; note that the key signature is automatically transposed as well.

    \transpose d e {
    \relative {
    \key d \major
    d'4 fis a d
    }
    }

    [image of music]

    I imagine it is simple as prefixing the entire piece with the instruction
    \transpose d f (
    and appending )
  • chonakchonak
    Posts: 9,216
    A \transpose command would be wrapped around each segment of notes, as in the example above.

    If you have trouble getting this to work, post a link to the Lilypond file and I or someone else can probably make the edit to demonstrate.
  • chonakchonak
    Posts: 9,216
    This was tricky because of the 'incipits' before the start of the score. Here's the transposed version: would you check it, please?


    Jachet_de_Mantua_-_Spem_in_alium-transposed.pdf
    119K
    Jachet_de_Mantua_-_Spem_in_alium-transposed.ly.txt
    13K
    Thanked by 1CHGiffen
  • Thank you, @chonak, this looks beautiful! I hope it didn't take up too much of your time. I was also able to copy and paste into Frescobaldi with the same results.
  • FSSPmusic
    Posts: 285
    Also in F minor, formatted to letter paper with treble clef for alto
    Spem in alim JACQUET F Minor.pdf
    117K
  • FSSPmusic
    Posts: 285
    Well, I thought it was formatted to letter! More proof that I really don't know what I'm doing :(
  • chonakchonak
    Posts: 9,216
    You can set the paper size with a one-line addition:

    \paper
    {
    #(set-paper-size "letter")
    top-margin = 1.7 \cm



    For more info, see
    https://lilypond.org/doc/v2.22/Documentation/notation/paper-size-and-automatic-scaling
    Thanked by 1FSSPmusic