2004-02-02 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * input/test/text-rotate.ly: new file.
+
* scm/new-markup.scm (markup): a macro that provides a
LilyPond-like syntax in scheme for building markups, in order to
help markup command definition. (Nicolas Sceaux)
\transpose @var{from} @var{to} @var{musicexpr}
@end example
-This means that @var{musicexpr} is transposed by the interval
-between the pitches @var{from} and @var{to}.
-Since @var{from} and @var{to} are pitches, @code{\transpose} must be
-inside a @code{\notes} section.
+This means that @var{musicexpr} is transposed by the interval between
+the pitches @var{from} and @var{to}: any note with pitch @code{from}
+is changed to @code{to}.
+
+
+For example, consider a piece written in the key of D major. If
+this piece is a little too low for its performer, it can be
+transposed up to E major with
+@example
+ \tranpose d e @ldots{}
+@end example
-@code{\transpose} distinguishes between enharmonic pitches: both
-@code{\transpose c cis} or @code{\transpose c des} will transpose up
-half a tone. The first version will print sharps and the second
-version will print flats:
+Consider a part written for violin (a C instrument). If
+this part is to be played on the A clarinet, the following
+transposition will produce the appropriate part
+
+@example
+ \transpose a c
+@end example
+
+Since @var{from} and @var{to} are pitches, @code{\transpose} must be
+inside a @code{\notes} section. @code{\transpose} distinguishes
+between enharmonic pitches: both @code{\transpose c cis} or
+@code{\transpose c des} will transpose up half a tone. The first
+version will print sharps and the second version will print flats:
@lilypond[singleline, verbatim]
mus =\notes { \key d \major cis d fis g }
--- /dev/null
+\header {
+ latexpackages = "graphicx"
+
+ texidoc = "
+@cindex rotated text
+@cindex choir, rotated text
+
+Rotated text may be faked using inline TeX (or inline
+postscript). To see the result, this files must be processed with
+the lilypond.py script.
+
+"
+
+
+ }
+\score {
+\new Staff \notes \relative c'' {
+ \property Staff.instrument = #"\\rotatebox{90}{Chor}"
+
+ c4 c4 }
+
+\paper { raggedright = ##t }
+}
+
+
}
-%{
-Hi all,
-
-I have extend Mats' patches to allow accidental transposition:
- \keysignature bes es fis
- = \transpose c' d =>>
- \keysignature gis
-
-As you can see in output = the example file "test.ly" there are a few problems left:
-- key undo (already in the Todo)
-- "wrong" transposition: e.g. \transpose c' d of fis-major = gis-major (better as-major?).
- The solution gis=as etc. would concern both note and key transposistion
-
-Eric
-
-- Note that transpose eses of fis-major = as-major
-- Note also that key signatures specified with \property keySignature
- are not transposed!
-
- /Mats B, March 21, 2001
-%}
-
-
-
vOne = \notes \relative c''{
\clef"violin"
vThree = \notes \relative c''{
\clef"violin"
-% \keysignature fis cis
+% keysignature fis cis
\property Staff.keySignature = #'((0 . 2)(3 . 2))
\time 2/4
d4 d |
-% \keysignature bes es fis
+% keysignature bes es fis
\property Staff.keySignature = #'((3 . 2)(2 . -2)(6 . -2))
fis4 fis |
-% \keysignature fis cis gis dis ais eis
+% keysignature fis cis gis dis ais eis
\property Staff.keySignature = #'((2 . -2)(5 . -2)(1 . 2)(4 . 2)(0 . 2)(3 . 2))
cis4 ais4 |
}
+
vFour = \notes \transpose c d \vThree
\score {