lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: transpose from "treble" to "bass"


From: Fairchild
Subject: RE: transpose from "treble" to "bass"
Date: Thu, 9 Jun 2005 13:30:51 -0500

Andreas -

Starting by keying ly from a printed score in both bass and tenor clefs
(DUAL), it was converted to all bass (BASS), then to treble (TREB), and then
transposed to treble in an easier key (TRAN).  This code demonstrates with
one line for each.

                                 - Bruce

%%%%%%%%%%%%%%%%

\version "2.4.3"
                STUFF = {
        \relative c' {
\tag #'DUAL { \clef bass }
\tag #'BASS { \clef bass }
\tag #'TREB { \clef treble }
\tag #'TRAN { \clef treble }
\key d \major
a, b cis d  e fis g a
\tag #'DUAL {\clef tenor }
d, e fis g  a b cis d
        }%end relative
                }%end STUFF
                \score{ %DUAL
        \transpose d d {
\keepWithTag #'DUAL \STUFF
        }%end transpose
                }%end score DUAL
                \score{ %BASS
        \transpose d d {
\keepWithTag #'BASS \STUFF
        }%end transpose
                }%end score BASS
                \score { %TREB
        \transpose bes c'' {
\keepWithTag #'TREB \STUFF
        }%end transpose
                }%end score TREB
                \score { %TRAN
        \transpose bes des'' {
\keepWithTag #'TRAN \STUFF
        }%end transpose
                }%end score TRAN

%%%%%%%%%%%%%%%%

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
David Bobroff
Sent: Wednesday, June 08, 2005 1:56 PM
To: Andreas Gemperle
Cc: address@hidden
Subject: Re: transpose from "treble" to "bass"

On Wed, 2005-06-08 at 19:41 +0200, Andreas Gemperle wrote:
> Hi
> 
> I have a piece written for "barition in b" (\key c \major | "clef: 
> treble"). I'd like to transpose it for a "trombone in c". ("clef: 
> bass")
> 
> Theoretical: C major becomes B major (2b) and a "g" becomes" a "f".  
> And clef
> has to become bass
> How can I do this automaticly with lilypond?
> 
> I have looked for this in the documentation, but I couldn't find a  
> sufficient
> solution (for me). I know there is a transpose-command, but I don't know
how 
> to use it for changing the key and clef at the same time. I tried it, but
it 
> didn't work :(
> Is there a good example??
> 
> My version: GNU LilyPond 2.4.5
> System: Linux/Debian

When I think I'll be printing up different transpositions like this I try to
prepare for it when I input the notes.  For example: music = \relative c' {
  c d e f g a b c
}

\score {
%  \transpose c c {    % use this line for treble clef Bb
  \transpose c bes,, { % use this line for bass clef C
%   \clef G            % use this line for treble clef Bb
    \clef F            % use this line for bass clef C
    \music
  }
}


First I defined the music.  Then I set up a couple of switches so I can
easily change between transpositions.

Hope this helps.

-David



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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]