Re: French Horn - transposing

2024-03-10 Thread David Sumbler
> Thank you all for your suggestions and time. I ended up using
> \transpose which was the easiest for me to understand, and worked
> great it seems.
> 
> Cheers!
> tjk :)

It's worth noting that, at least in an orchestral context, horns are
conventionally written without a key signature.  In other words, every
non-natural note needs an accidental (unless it already occurred in the
same bar).

David


Re: French Horn - transposing

2024-03-10 Thread Raphael Mankin




On 10/03/2024 01:14, TJ Kolev wrote:
Thank you all for your suggestions and time. I ended up using \transpose 
which was the easiest for me to understand, and worked great it seems.


Cheers!
tjk :)


And I learned something new w.r.t \quote* operators, which I did not 
know existed.





On Sat, Mar 9, 2024 at 1:21 AM Paul Scott > wrote:


On 3/8/24 4:46 PM, TJ Kolev wrote:
 > Greetings!
 >
 > So I've been notating a piece for my son's school band (junior
high).
 > Copying the music from paper into LilyPond using Frescobaldi. And
now
 > I hit a wall. The music piece is written for french horns in E flat
 > pitch. But the band's horns are in F pitch. I need to transpose the
 > score appropriately. The band director expects staff with three
flats
 > (E flat major). I hope there's some easier way to do this than me
 > manually re-writing the score. And I am not even sure how to do
that.
 > I would appreciate any help.
 >
 > I've played piano, so I can read notes. But these crazy pitched
brass
 > instruments are an intimidating concept... :-/
 >
 > Below is the initial part of the score for the E flat french horn.
 > Seems rather big for a small example, but I'd rather have a bit more
 > context.
 >
 > Thank you!
 > TJ Kolev :)
 >
 > ==
 >
 > \version "2.24.0"
 >
 > trl = \tuplet 3/2 \etc
 >
 > rpt = #(define-music-function (cnt snip) (integer? ly:music?)
 >   #{
 >     { \repeat unfold $cnt $snip }
 >   #}
 > )
 >
 > frhornInIIA = {
 >   \sectionLabel "Intro"
 >   \key f \major
 >   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[
r16 e]
 > | d8 r r4 \break
 >
 >   \sectionLabel "Part A"
 >   \repeat volta 2 {
 >     | \rpt 4 { r8 [ r ] } \break
 >     | \rpt 2 { r8 [ r ] } | r 4.:8 |  a'>2:8^"" \break
 >     | \rpt 4 { r8 [ r ] } \break
 >     | \rpt 2 { r8 [ r ] }  | r8 4.:8 |  a'>2:8^"" \break
 >     | \rpt 4 { r8 [ r ] } \break
 >     | \rpt 2 { r8 [ r ] } | r 4.:8 |  a'>2:8^"" \break
 >     | \rpt 2 { r8 [ r ] } | r8 [ r ]
| r8
 > 4.:8 \break
 >     | r8 [ r ] | r8 [ r ] | r8 [
 > r ]
 >   }
 >   \alternative {
 >     {  r r4 \break }
 >     { 8 r 4 }
 >   }
 > } % A part
 >
 >
 > frhornIIInIVA = {
 >   \sectionLabel "Intro"
 >   \key f \major
 >   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[
r16 e]
 > | d8 r r4 \break
 >
 >   \sectionLabel "Part A"
 >   \repeat volta 2 {
 >     | \rpt 4 { r8 [ r ] } \break
 >     | \rpt 2 { r8 [ r ] } | r 4.:8 |  a,>2:8^"" \break
 >     | \rpt 4 { r8 [ r ] } \break
 >     | \rpt 2 { r8 [ r ] }  | r8 4.:8 |  a,>2:8^"" \break
 >     | \rpt 4 { r8 [ r ] } \break
 >     | \rpt 2 { r8 [ r ] } | r 4.:8 |  a,>2:8^"" \break
 >     | \rpt 2 { r8 [ r ] } | r8 [ r ]
| r8
 > 4.:8 \break
 >     | r8 [ r ] | r8 [ r ] | r8 [ r
]
 >   }
 >   \alternative {
 >     {  r r4 \break }
 >     { 8 r 4 }
 >   }
 > } % A part
 >
 >
 > frhornInIINotes = {
 >   \time 2/4
 >   \relative c' {
 >     \frhornInIIA %{
 >     \frhornInIIB
 >     \frhornInIIC
 >     \frhornInIID
 >     \frhornInIIE
 >     \frhornInIIF %}
 >   }
 > }
 >
 >
 > frhornIIInIVNotes = {
 >   \time 2/4
 >   \relative c' {
 >     \frhornIIInIVA %{
 >     \frhornIIInIVB
 >     \frhornIIInIVC
 >     \frhornIIInIVD
 >     \frhornIIInIVE
 >     \frhornIIInIVF %}
 >   }
 > }
 >
 > sgFrenchHorn = \new StaffGroup <<
 >   \new Staff \with {
 >     instrumentName = \markup { \column { \line { French Horn E\flat}
 > \line {"I & II"} } }
 >     shortInstrumentName = \markup \teeny { \column { \line {"fhorn"}
 > \line {"I,II"} } }
 >   }
 >   \frhornInIINotes
 >
 >   \new Staff \with {
 >     instrumentName = \markup { \column { \line { French Horn E\flat}
 > \line {"III & IV"} } }
 >     shortInstrumentName = \markup \teeny { \column { \line {"fhorn"}
 > \line {"III,IV"} } }
 >   }
 >   \frhornIIInIVNotes
 > >>
 >
 > \score {
 >   \sgFrenchHorn
 > }
 >
My go to is \quoteDuring:

%{ Transposing Eb horn music %}

\version "2.25.13"

\include "english.ly "

EfHornNotes = \fixed c' { % or \relative or \absolute

    \set Score.quotedCueEventTypes = #'(
  note-event rest-event tie-event beam-event tuplet-span-event
  `dynamic-event slur-event articulation-event span-dynamic-event
    )

    \transposition ef
    \time 2/4
    a4( b) c( d) e( f g2)
}
\addQuote qef 

Re: French Horn - transposing

2024-03-09 Thread TJ Kolev
Thank you all for your suggestions and time. I ended up using \transpose
which was the easiest for me to understand, and worked great it seems.

Cheers!
tjk :)

On Sat, Mar 9, 2024 at 1:21 AM Paul Scott  wrote:

> On 3/8/24 4:46 PM, TJ Kolev wrote:
> > Greetings!
> >
> > So I've been notating a piece for my son's school band (junior high).
> > Copying the music from paper into LilyPond using Frescobaldi. And now
> > I hit a wall. The music piece is written for french horns in E flat
> > pitch. But the band's horns are in F pitch. I need to transpose the
> > score appropriately. The band director expects staff with three flats
> > (E flat major). I hope there's some easier way to do this than me
> > manually re-writing the score. And I am not even sure how to do that.
> > I would appreciate any help.
> >
> > I've played piano, so I can read notes. But these crazy pitched brass
> > instruments are an intimidating concept... :-/
> >
> > Below is the initial part of the score for the E flat french horn.
> > Seems rather big for a small example, but I'd rather have a bit more
> > context.
> >
> > Thank you!
> > TJ Kolev :)
> >
> > ==
> >
> > \version "2.24.0"
> >
> > trl = \tuplet 3/2 \etc
> >
> > rpt = #(define-music-function (cnt snip) (integer? ly:music?)
> >   #{
> > { \repeat unfold $cnt $snip }
> >   #}
> > )
> >
> > frhornInIIA = {
> >   \sectionLabel "Intro"
> >   \key f \major
> >   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e]
> > | d8 r r4 \break
> >
> >   \sectionLabel "Part A"
> >   \repeat volta 2 {
> > | \rpt 4 { r8 [ r ] } \break
> > | \rpt 2 { r8 [ r ] } | r 4.:8 |  > a'>2:8^"" \break
> > | \rpt 4 { r8 [ r ] } \break
> > | \rpt 2 { r8 [ r ] }  | r8 4.:8 |  > a'>2:8^"" \break
> > | \rpt 4 { r8 [ r ] } \break
> > | \rpt 2 { r8 [ r ] } | r 4.:8 |  > a'>2:8^"" \break
> > | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8
> > 4.:8 \break
> > | r8 [ r ] | r8 [ r ] | r8 [
> > r ]
> >   }
> >   \alternative {
> > {  r r4 \break }
> > { 8 r 4 }
> >   }
> > } % A part
> >
> >
> > frhornIIInIVA = {
> >   \sectionLabel "Intro"
> >   \key f \major
> >   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e]
> > | d8 r r4 \break
> >
> >   \sectionLabel "Part A"
> >   \repeat volta 2 {
> > | \rpt 4 { r8 [ r ] } \break
> > | \rpt 2 { r8 [ r ] } | r 4.:8 |  > a,>2:8^"" \break
> > | \rpt 4 { r8 [ r ] } \break
> > | \rpt 2 { r8 [ r ] }  | r8 4.:8 |  > a,>2:8^"" \break
> > | \rpt 4 { r8 [ r ] } \break
> > | \rpt 2 { r8 [ r ] } | r 4.:8 |  > a,>2:8^"" \break
> > | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8
> > 4.:8 \break
> > | r8 [ r ] | r8 [ r ] | r8 [ r ]
> >   }
> >   \alternative {
> > {  r r4 \break }
> > { 8 r 4 }
> >   }
> > } % A part
> >
> >
> > frhornInIINotes = {
> >   \time 2/4
> >   \relative c' {
> > \frhornInIIA %{
> > \frhornInIIB
> > \frhornInIIC
> > \frhornInIID
> > \frhornInIIE
> > \frhornInIIF %}
> >   }
> > }
> >
> >
> > frhornIIInIVNotes = {
> >   \time 2/4
> >   \relative c' {
> > \frhornIIInIVA %{
> > \frhornIIInIVB
> > \frhornIIInIVC
> > \frhornIIInIVD
> > \frhornIIInIVE
> > \frhornIIInIVF %}
> >   }
> > }
> >
> > sgFrenchHorn = \new StaffGroup <<
> >   \new Staff \with {
> > instrumentName = \markup { \column { \line { French Horn E\flat}
> > \line {"I & II"} } }
> > shortInstrumentName = \markup \teeny { \column { \line {"fhorn"}
> > \line {"I,II"} } }
> >   }
> >   \frhornInIINotes
> >
> >   \new Staff \with {
> > instrumentName = \markup { \column { \line { French Horn E\flat}
> > \line {"III & IV"} } }
> > shortInstrumentName = \markup \teeny { \column { \line {"fhorn"}
> > \line {"III,IV"} } }
> >   }
> >   \frhornIIInIVNotes
> > >>
> >
> > \score {
> >   \sgFrenchHorn
> > }
> >
> My go to is \quoteDuring:
>
> %{ Transposing Eb horn music %}
>
> \version "2.25.13"
>
> \include "english.ly"
>
> EfHornNotes = \fixed c' { % or \relative or \absolute
>
>\set Score.quotedCueEventTypes = #'(
>  note-event rest-event tie-event beam-event tuplet-span-event
>  `dynamic-event slur-event articulation-event span-dynamic-event
>)
>
>\transposition ef
>\time 2/4
>a4( b) c( d) e( f g2)
> }
> \addQuote qef \EfHornNotes
>
> FHornNotes = \fixed c' {
>\transposition f
>\time 2/4
>\quoteDuring qef s2*4
> }
>
> \score{ \new Staff \new Voice \FHornNotes }
>
> HTH,
>
> Paul
>
>
>


Re: French Horn - transposing

2024-03-09 Thread TJ Kolev
Elaine,

This was a great explanation. I used your suggestion and it seems to be
working just fine. Thank you very much!

Cheers!
tjk :)

On Fri, Mar 8, 2024 at 8:01 PM Flaming Hakama by Elaine <
ela...@flaminghakama.com> wrote:

> From: TJ Kolev 
>> To: lilypond-user@gnu.org
>> Cc:
>> Bcc:
>> Date: Fri, 8 Mar 2024 17:46:35 -0600
>> Subject: French Horn - transposing
>> Greetings!
>>
>> So I've been notating a piece for my son's school band (junior high).
>> Copying the music from paper into LilyPond using Frescobaldi. And now I hit
>> a wall. The music piece is written for french horns in E flat pitch. But
>> the band's horns are in F pitch. I need to transpose the score
>> appropriately. The band director expects staff with three flats (E flat
>> major). I hope there's some easier way to do this than me manually
>> re-writing the score. And I am not even sure how to do that. I would
>> appreciate any help.
>>
>> I've played piano, so I can read notes. But these crazy pitched brass
>> instruments are an intimidating concept... :-/
>>
>> Below is the initial part of the score for the E flat french horn. Seems
>> rather big for a small example, but I'd rather have a bit more context.
>>
>> Thank you!
>> TJ Kolev :)
>>
>> ==
>>
>> \version "2.24.0"
>>
>> trl = \tuplet 3/2 \etc
>>
>> rpt = #(define-music-function (cnt snip) (integer? ly:music?)
>>   #{
>> { \repeat unfold $cnt $snip }
>>   #}
>> )
>>
>> frhornInIIA = {
>>   \sectionLabel "Intro"
>>   \key f \major
>>   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] |
>> d8 r r4 \break
>>
>>   \sectionLabel "Part A"
>>   \repeat volta 2 {
>> | \rpt 4 { r8 [ r ] } \break
>> | \rpt 2 { r8 [ r ] } | r 4.:8 | > a'>2:8^"" \break
>> | \rpt 4 { r8 [ r ] } \break
>> | \rpt 2 { r8 [ r ] }  | r8 4.:8 | > a'>2:8^"" \break
>> | \rpt 4 { r8 [ r ] } \break
>> | \rpt 2 { r8 [ r ] } | r 4.:8 | > a'>2:8^"" \break
>> | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8 > bes'>4.:8 \break
>> | r8 [ r ] | r8 [ r ] | r8 [ r
>> ]
>>   }
>>   \alternative {
>> {  r r4 \break }
>> { 8 r 4 }
>>   }
>> } % A part
>>
>>
>> frhornIIInIVA = {
>>   \sectionLabel "Intro"
>>   \key f \major
>>   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] |
>> d8 r r4 \break
>>
>>   \sectionLabel "Part A"
>>   \repeat volta 2 {
>> | \rpt 4 { r8 [ r ] } \break
>> | \rpt 2 { r8 [ r ] } | r 4.:8 | > a,>2:8^"" \break
>> | \rpt 4 { r8 [ r ] } \break
>> | \rpt 2 { r8 [ r ] }  | r8 4.:8 | 2:8^""
>> \break
>> | \rpt 4 { r8 [ r ] } \break
>> | \rpt 2 { r8 [ r ] } | r 4.:8 | > a,>2:8^"" \break
>> | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8 > bes,>4.:8 \break
>> | r8 [ r ] | r8 [ r ] | r8 [ r ]
>>   }
>>   \alternative {
>> {  r r4 \break }
>> { 8 r 4 }
>>   }
>> } % A part
>>
>>
>> frhornInIINotes = {
>>   \time 2/4
>>   \relative c' {
>> \frhornInIIA %{
>> \frhornInIIB
>> \frhornInIIC
>> \frhornInIID
>> \frhornInIIE
>> \frhornInIIF %}
>>   }
>> }
>>
>>
>> frhornIIInIVNotes = {
>>   \time 2/4
>>   \relative c' {
>> \frhornIIInIVA %{
>> \frhornIIInIVB
>> \frhornIIInIVC
>> \frhornIIInIVD
>> \frhornIIInIVE
>> \frhornIIInIVF %}
>>   }
>> }
>>
>> sgFrenchHorn = \new StaffGroup <<
>>   \new Staff \with {
>> instrumentName = \markup { \column { \line { French Horn E\flat}
>> \line {"I & II"} } }
>> shortInstrumentName = \markup \teeny { \column { \line {"fhorn"}
>> \line {"I,II"} } }
>>   }
>>   \frhornInIINotes
>>
>>   \new Staff \with {
>> instrumentName = \markup { \column { \line { French Horn E\flat}
>> \line {"III & IV"} } }
>> shortInstrumentName = \markup \teeny { \column { \line {"fhorn"}
>> \line {"III,IV"} } }
>>   }
>>   \frhornIIInIVNotes
>> >>
>>
>> \score {
>>   \sgFrenchHorn
>> }
>>
>>
> %{
>
> First an attempt to try to clarify the problem:
>
> Writing for an Eb instrument means you write a C when you want to hear an
> Eb.
> That's the definition of how pitched instruments are named:  when the
> instrument plays a written C, the sounding note is the name of the
> instrument.
> A Bb trumpet playing a written C sounds like a Bb.
> A horn in F playing a written C sounds like an F.
> An alto flute in G playing a written C sounds like a G.
> A horn in Eb playing a written C sounds like an Eb.
>
> So, assuming that is what this existing part for Eb horn is, when the part
> writes a C, the sounding pitch is an Eb.
>
> The note you would write for an instrument in F to play a sounding Eb is
> the note a 5th above Eb, or Bb.
>
> This means that a written C in the original part for Eb horn would be
> written for horn in F as a Bb.
>
> So, everything goes down a whole step, including the key signature, from F
> to Eb, or one flat to three flats.
>
> In your case, it is easiest  to just transpose the entire staffgroup
>
> %}
>
> sgFrenchHorn = \new StaffGroup \transpose f 

Re: French Horn - transposing

2024-03-08 Thread Paul Scott

On 3/8/24 4:46 PM, TJ Kolev wrote:

Greetings!

So I've been notating a piece for my son's school band (junior high). 
Copying the music from paper into LilyPond using Frescobaldi. And now 
I hit a wall. The music piece is written for french horns in E flat 
pitch. But the band's horns are in F pitch. I need to transpose the 
score appropriately. The band director expects staff with three flats 
(E flat major). I hope there's some easier way to do this than me 
manually re-writing the score. And I am not even sure how to do that. 
I would appreciate any help.


I've played piano, so I can read notes. But these crazy pitched brass 
instruments are an intimidating concept... :-/


Below is the initial part of the score for the E flat french horn. 
Seems rather big for a small example, but I'd rather have a bit more 
context.


Thank you!
TJ Kolev :)

==

\version "2.24.0"

trl = \tuplet 3/2 \etc

rpt = #(define-music-function (cnt snip) (integer? ly:music?)
  #{
    { \repeat unfold $cnt $snip }
  #}
)

frhornInIIA = {
  \sectionLabel "Intro"
  \key f \major
  | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] 
| d8 r r4 \break


  \sectionLabel "Part A"
  \repeat volta 2 {
    | \rpt 4 { r8 [ r ] } \break
    | \rpt 2 { r8 [ r ] } | r 4.:8 | a'>2:8^"" \break

    | \rpt 4 { r8 [ r ] } \break
    | \rpt 2 { r8 [ r ] }  | r8 4.:8 | a'>2:8^"" \break

    | \rpt 4 { r8 [ r ] } \break
    | \rpt 2 { r8 [ r ] } | r 4.:8 | a'>2:8^"" \break
    | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8 
4.:8 \break
    | r8 [ r ] | r8 [ r ] | r8 [ 
r ]

  }
  \alternative {
    {  r r4 \break }
    { 8 r 4 }
  }
} % A part


frhornIIInIVA = {
  \sectionLabel "Intro"
  \key f \major
  | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] 
| d8 r r4 \break


  \sectionLabel "Part A"
  \repeat volta 2 {
    | \rpt 4 { r8 [ r ] } \break
    | \rpt 2 { r8 [ r ] } | r 4.:8 | a,>2:8^"" \break

    | \rpt 4 { r8 [ r ] } \break
    | \rpt 2 { r8 [ r ] }  | r8 4.:8 | a,>2:8^"" \break

    | \rpt 4 { r8 [ r ] } \break
    | \rpt 2 { r8 [ r ] } | r 4.:8 | a,>2:8^"" \break
    | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8 
4.:8 \break

    | r8 [ r ] | r8 [ r ] | r8 [ r ]
  }
  \alternative {
    {  r r4 \break }
    { 8 r 4 }
  }
} % A part


frhornInIINotes = {
  \time 2/4
  \relative c' {
    \frhornInIIA %{
    \frhornInIIB
    \frhornInIIC
    \frhornInIID
    \frhornInIIE
    \frhornInIIF %}
  }
}


frhornIIInIVNotes = {
  \time 2/4
  \relative c' {
    \frhornIIInIVA %{
    \frhornIIInIVB
    \frhornIIInIVC
    \frhornIIInIVD
    \frhornIIInIVE
    \frhornIIInIVF %}
  }
}

sgFrenchHorn = \new StaffGroup <<
  \new Staff \with {
    instrumentName = \markup { \column { \line { French Horn E\flat} 
\line {"I & II"} } }
    shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} 
\line {"I,II"} } }

  }
  \frhornInIINotes

  \new Staff \with {
    instrumentName = \markup { \column { \line { French Horn E\flat} 
\line {"III & IV"} } }
    shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} 
\line {"III,IV"} } }

  }
  \frhornIIInIVNotes
>>

\score {
  \sgFrenchHorn
}


My go to is \quoteDuring:

%{ Transposing Eb horn music %}

\version "2.25.13"

\include "english.ly"

EfHornNotes = \fixed c' { % or \relative or \absolute

  \set Score.quotedCueEventTypes = #'(
    note-event rest-event tie-event beam-event tuplet-span-event
    `dynamic-event slur-event articulation-event span-dynamic-event
  )

  \transposition ef
  \time 2/4
  a4( b) c( d) e( f g2)
}
\addQuote qef \EfHornNotes

FHornNotes = \fixed c' {
  \transposition f
  \time 2/4
  \quoteDuring qef s2*4
}

\score{ \new Staff \new Voice \FHornNotes }

HTH,

Paul





Re: French Horn - transposing

2024-03-08 Thread Flaming Hakama by Elaine
>
> From: TJ Kolev 
> To: lilypond-user@gnu.org
> Cc:
> Bcc:
> Date: Fri, 8 Mar 2024 17:46:35 -0600
> Subject: French Horn - transposing
> Greetings!
>
> So I've been notating a piece for my son's school band (junior high).
> Copying the music from paper into LilyPond using Frescobaldi. And now I hit
> a wall. The music piece is written for french horns in E flat pitch. But
> the band's horns are in F pitch. I need to transpose the score
> appropriately. The band director expects staff with three flats (E flat
> major). I hope there's some easier way to do this than me manually
> re-writing the score. And I am not even sure how to do that. I would
> appreciate any help.
>
> I've played piano, so I can read notes. But these crazy pitched brass
> instruments are an intimidating concept... :-/
>
> Below is the initial part of the score for the E flat french horn. Seems
> rather big for a small example, but I'd rather have a bit more context.
>
> Thank you!
> TJ Kolev :)
>
> ==
>
> \version "2.24.0"
>
> trl = \tuplet 3/2 \etc
>
> rpt = #(define-music-function (cnt snip) (integer? ly:music?)
>   #{
> { \repeat unfold $cnt $snip }
>   #}
> )
>
> frhornInIIA = {
>   \sectionLabel "Intro"
>   \key f \major
>   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] |
> d8 r r4 \break
>
>   \sectionLabel "Part A"
>   \repeat volta 2 {
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 |  a'>2:8^"" \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] }  | r8 4.:8 |  a'>2:8^"" \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 |  a'>2:8^"" \break
> | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8  bes'>4.:8 \break
> | r8 [ r ] | r8 [ r ] | r8 [ r
> ]
>   }
>   \alternative {
> {  r r4 \break }
> { 8 r 4 }
>   }
> } % A part
>
>
> frhornIIInIVA = {
>   \sectionLabel "Intro"
>   \key f \major
>   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] |
> d8 r r4 \break
>
>   \sectionLabel "Part A"
>   \repeat volta 2 {
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 |  a,>2:8^"" \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] }  | r8 4.:8 | 2:8^""
> \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 |  a,>2:8^"" \break
> | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8  bes,>4.:8 \break
> | r8 [ r ] | r8 [ r ] | r8 [ r ]
>   }
>   \alternative {
> {  r r4 \break }
> { 8 r 4 }
>   }
> } % A part
>
>
> frhornInIINotes = {
>   \time 2/4
>   \relative c' {
> \frhornInIIA %{
> \frhornInIIB
> \frhornInIIC
> \frhornInIID
> \frhornInIIE
> \frhornInIIF %}
>   }
> }
>
>
> frhornIIInIVNotes = {
>   \time 2/4
>   \relative c' {
> \frhornIIInIVA %{
> \frhornIIInIVB
> \frhornIIInIVC
> \frhornIIInIVD
> \frhornIIInIVE
> \frhornIIInIVF %}
>   }
> }
>
> sgFrenchHorn = \new StaffGroup <<
>   \new Staff \with {
> instrumentName = \markup { \column { \line { French Horn E\flat} \line
> {"I & II"} } }
> shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} \line
> {"I,II"} } }
>   }
>   \frhornInIINotes
>
>   \new Staff \with {
> instrumentName = \markup { \column { \line { French Horn E\flat} \line
> {"III & IV"} } }
> shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} \line
> {"III,IV"} } }
>   }
>   \frhornIIInIVNotes
> >>
>
> \score {
>   \sgFrenchHorn
> }
>
>
%{

First an attempt to try to clarify the problem:

Writing for an Eb instrument means you write a C when you want to hear an
Eb.
That's the definition of how pitched instruments are named:  when the
instrument plays a written C, the sounding note is the name of the
instrument.
A Bb trumpet playing a written C sounds like a Bb.
A horn in F playing a written C sounds like an F.
An alto flute in G playing a written C sounds like a G.
A horn in Eb playing a written C sounds like an Eb.

So, assuming that is what this existing part for Eb horn is, when the part
writes a C, the sounding pitch is an Eb.

The note you would write for an instrument in F to play a sounding Eb is
the note a 5th above Eb, or Bb.

This means that a written C in the original part for Eb horn would be
written for horn in F as a Bb.

So, everything goes down a whole step, including the key signature, from F
to Eb, or one flat to three flats.

In your case, it is easiest  to just transpose the entire staffgroup

%}

sgFrenchHorn = \new StaffGroup \transpose f ees <<
  \new Staff \with {
instrumentName = \markup { \column { \line { French Horn F} \line {"I &
II"} } }
shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} \line
{"I,II"} } }
  }
  \frhornInIINotes

  \new Staff \with {
instrumentName = \markup { \column { \line { French Horn F} \line {"III
& IV"} } }
shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} \line
{"III,IV"} } }
  

Re: French Horn - transposing

2024-03-08 Thread Jeff Kopmanis
I use the transpose function just before rendering stuff.  Here's a typical
file that should demonstrate what I do.  The \book sections at the bottom
are where the transpose is done, while the Melody variable contains the
music.  If I have chords, I'll use the \transpose function in the same way.


 EverydayPeople-Ab.ly



On Fri, Mar 8, 2024 at 7:24 PM Knute Snortum  wrote:

>
> On Fri, Mar 8, 2024 at 3:49 PM TJ Kolev  wrote:
>
>> Greetings!
>>
>> So I've been notating a piece for my son's school band (junior high).
>> Copying the music from paper into LilyPond using Frescobaldi. And now I hit
>> a wall. The music piece is written for french horns in E flat pitch. But
>> the band's horns are in F pitch. I need to transpose the score
>> appropriately. The band director expects staff with three flats (E flat
>> major). I hope there's some easier way to do this than me manually
>> re-writing the score. And I am not even sure how to do that. I would
>> appreciate any help.
>>
>
> I've never used it myself, but there is a whole section on transposing
> music in the manual:
>
>
> https://lilypond.org/doc/v2.24/Documentation/notation/displaying-pitches#instrument-transpositions
>
>
> --
> Knute Snortum
>
>
>
>


-- 
*Jeff Kopmanis*
Medium: https://kopmanis.medium.com
GLAAC: https://www.glaac.org/
University Lowbrow Astronomers: http://umich.edu/~lowbrows
Orange Can Astronomy: https://www.facebook.com/orangecanastronomy/

** Go Green and leave this email on the Screen! **


Re: French Horn - transposing

2024-03-08 Thread Kevin Pye
I'm a little confused as to what you want. If the band's horns are in F pitch, 
why do you want the score in E♭?

But anyway, to transpose from F to E♭, modify the lines which use your 
variables to

\transpose F ees \frhornInIINotes

and
   \transpose F ees \frhornIIInIVNotes

There is also \transposition, but I don't think that's what you want in this 
case.

Kevin.

On Sat, 9 Mar 2024, at 10:46, TJ Kolev wrote:
> Greetings!
> 
> So I've been notating a piece for my son's school band (junior high). Copying 
> the music from paper into LilyPond using Frescobaldi. And now I hit a wall. 
> The music piece is written for french horns in E flat pitch. But the band's 
> horns are in F pitch. I need to transpose the score appropriately. The band 
> director expects staff with three flats (E flat major). I hope there's some 
> easier way to do this than me manually re-writing the score. And I am not 
> even sure how to do that. I would appreciate any help.
> 
> I've played piano, so I can read notes. But these crazy pitched brass 
> instruments are an intimidating concept... :-/
> 
> Below is the initial part of the score for the E flat french horn. Seems 
> rather big for a small example, but I'd rather have a bit more context.
> 
> Thank you!
> TJ Kolev :)
> 
> ==
> 
> \version "2.24.0"
> 
> trl = \tuplet 3/2 \etc
> 
> rpt = #(define-music-function (cnt snip) (integer? ly:music?)
>   #{
> { \repeat unfold $cnt $snip }
>   #}
> )
> 
> frhornInIIA = {
>   \sectionLabel "Intro"
>   \key f \major
>   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] | d8 r 
> r4 \break
> 
>   \sectionLabel "Part A"
>   \repeat volta 2 {
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 | 2:8^"" 
> \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] }  | r8 4.:8 | 2:8^"" 
> \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 | 2:8^"" 
> \break
> | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8  bes'>4.:8 \break
> | r8 [ r ] | r8 [ r ] | r8 [ r  a'>]
>   }
>   \alternative {
> {  r r4 \break }
> { 8 r 4 }
>   }
> } % A part
> 
> 
> frhornIIInIVA = {
>   \sectionLabel "Intro"
>   \key f \major
>   | \trl {a'8( bes a)} g r | \trl {g( a g)} f[ r16 e] | g8 r f[ r16 e] | d8 r 
> r4 \break
> 
>   \sectionLabel "Part A"
>   \repeat volta 2 {
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 | 2:8^"" 
> \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] }  | r8 4.:8 | 2:8^"" 
> \break
> | \rpt 4 { r8 [ r ] } \break
> | \rpt 2 { r8 [ r ] } | r 4.:8 | 2:8^"" 
> \break
> | \rpt 2 { r8 [ r ] } | r8 [ r ] | r8  bes,>4.:8 \break
> | r8 [ r ] | r8 [ r ] | r8 [ r ]
>   }
>   \alternative {
> {  r r4 \break }
> { 8 r 4 }
>   }
> } % A part
> 
> 
> frhornInIINotes = {
>   \time 2/4
>   \relative c' {
> \frhornInIIA %{
> \frhornInIIB
> \frhornInIIC
> \frhornInIID
> \frhornInIIE
> \frhornInIIF %}
>   }
> }
> 
> 
> frhornIIInIVNotes = {
>   \time 2/4
>   \relative c' {
> \frhornIIInIVA %{
> \frhornIIInIVB
> \frhornIIInIVC
> \frhornIIInIVD
> \frhornIIInIVE
> \frhornIIInIVF %}
>   }
> }
> 
> sgFrenchHorn = \new StaffGroup <<
>   \new Staff \with {
> instrumentName = \markup { \column { \line { French Horn E\flat} \line 
> {"I & II"} } }
> shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} \line 
> {"I,II"} } }
>   }
>   \frhornInIINotes
> 
>   \new Staff \with {
> instrumentName = \markup { \column { \line { French Horn E\flat} \line 
> {"III & IV"} } }
> shortInstrumentName = \markup \teeny { \column { \line {"fhorn"} \line 
> {"III,IV"} } }
>   }
>   \frhornIIInIVNotes
> >>
> 
> \score {
>   \sgFrenchHorn
> }
> 


Re: French Horn - transposing

2024-03-08 Thread Knute Snortum
On Fri, Mar 8, 2024 at 3:49 PM TJ Kolev  wrote:

> Greetings!
>
> So I've been notating a piece for my son's school band (junior high).
> Copying the music from paper into LilyPond using Frescobaldi. And now I hit
> a wall. The music piece is written for french horns in E flat pitch. But
> the band's horns are in F pitch. I need to transpose the score
> appropriately. The band director expects staff with three flats (E flat
> major). I hope there's some easier way to do this than me manually
> re-writing the score. And I am not even sure how to do that. I would
> appreciate any help.
>

I've never used it myself, but there is a whole section on transposing
music in the manual:

https://lilypond.org/doc/v2.24/Documentation/notation/displaying-pitches#instrument-transpositions


--
Knute Snortum