Thank you so much, Graham!

It works, and thank you also for your explanation!  It is much clearer to me 
now!

Thanks again!

dirck
________________________________
From: Graham King <lilyp...@tremagi.org.uk>
Sent: Tuesday, May 13, 2025 3:52 AM
To: Dirck Nagy <dn...@uwlax.edu>; Lilypond-User Mailing List 
<lilypond-user@gnu.org>
Subject: Re: How to transpose my entire score?


Caution: *External Email: Use caution responding, opening attachments, or 
clicking on links.*

At line 137:

  } \transpose g e { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree 
\\ \VoiceFour \\ \SpacingVoice >> }

Here's the clue:  The Notation Reference says of \transpose "The syntax is

\transpose frompitch topitch musicexpr"


You want musicexpr to be the entirety of your score, and that is most concisely 
achieved where your \score block gathers everything together.

HTH
-- Graham

On Tue, 2025-05-13 at 08:15 +0000, Dirck Nagy wrote:
Dear Lilypond folks:

I can't figure out how to transpose a score.

In my example, i want to transpose the score from G major to E major.

I have tried to paste  \transpose g e in various parts of the score, but 
nothing works.  When i create a tiny example, the transpose function works fine.

I apologize for sending this entire score, but i have tried creating tiny 
examples, and the \transpose function works fine. I think i either have a 
mistake in my score, or i am missing something obvious.

If anyone has the time, could they please show me how to move all these notes 
down a minor 3rd?

I have already spent so much time wrestling with this that i could have simply 
transposed the piece manually and re-entered everything, but there are times 
when a transposition function would be useful...

Thanks in advance!
Dirck

Example follows:

\version "2.24.1"

\header {
  dedication = ""
  title = "Ricercar IV (Fantasia)"
  subtitle = ""
  subsubtitle = \markup \normal-text \italic {
    \center-column {
      \line { }
      \line {
      }
    }
  }
  composer = \markup {
    \right-column {
      \line {Francesco Canova da Milano}
       \line {1497-1543}
    }
  }

   arranger = \markup \normal-text \italic { \vspace #1.1
    \right-column {
      \line {arr. for guitar by Dirck Nagy}
      \line {after Arthur Ness, et al.}
    }
  }
  poet = ""
  meter = ""
  copyright = "© 2025 by Dirck Nagy, Moley‘s Excavation and Publishing Company"
  % Remove default LilyPond tagline
  tagline = ##f
}
#(define RH rightHandFinger)
global = {
  \key g \major
  \numericTimeSignature
  \time 2/4
  %tempo padding
  \override Score.MetronomeMark.padding = #5
  \tempo ""
  %pickup measure
 % \partial 4
}

VoiceOne = \relative c' {
  \global
  % Music follows here.

  <d g>4   \tweak #'extra-offset #'(0. . 2.5) ^\markup {\bold\circle "3" = F 
\super \sharp  } <d g>
  <e g>8 c16 d e fis g a
  <d, b'>8 g f16 e d c
  <b d>8 g16 a b c d e
  f8 d c16 b a g
  a4 c4
  b8 d8 <c e> g'
  fis8 d 16 e fis g a8
  g4 fis8 d
  a'4 c4
  b8 c4 g8~
  g8 f[ e d]
  c[ b a g]
  %3/4
  \time 3/4 a8 c d b16 a d4
  e8 c'16 b a g f e d c b a
  b c d e d a b c d e fis g
  %2/4
  \time 2/4 fis8 g~ g fis
  g2
  g4 <c, e g>
   <c e g>2 \fermata
  \bar "|."

}

VoiceTwo = \relative c' {
  \global
   \stemDown
  % Music follows here.
  g4 g
  c,2
  g2
  g
  <d' g>
  d8 g, a4
  g c
  <d a'>4. <d d'>8
  <e b'> <c c'> <d~ a'~>4
  <d a'>8  d'8 e c
  d4 c8 b
  a4 g8. f16
  e8[  d c b]
  %3/4
  a4 g g
  c2 g4~
  g4 g2
  %2/4
  d'8 c d4
  e8. d16 c8 b
  c4 c
  g2



}

VoiceThree = \relative c' {
  \global
  % Music follows here.
  s2*5
  fis,8 g~ g fis
  g2
  s2*6
  s2.*3
  a4 a4
  g8 b c d
  e c_~ \hideNotes \once \override NoteColumn.force-hshift = #-0.5 c4




}

VoiceFour = \relative c' {
  \global
  % Music follows here.

}

SpacingVoice = {


}

\score {
  \new Staff \with {
    midiInstrument = "acoustic guitar (nylon)"
  } { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\ \VoiceFour 
\\ \SpacingVoice >> }
  \layout { }

}
\paper {
system-system-spacing.basic-distance =  20
markup-markup-spacing.basic-distance =  8
markup-system-spacing.basic-distance =  36
last-bottom-spacing.basic-distance =  24
top-system-spacing.basic-distance =  1
top-system-spacing.basic-distance =  24
score-system-spacing.padding = 8

       }



Reply via email to