From 09b4099d882c1bddf12a0c26fd9203b0fb01e283 Mon Sep 17 00:00:00 2001 From: hanwen Date: Mon, 2 Feb 2004 11:11:58 +0000 Subject: [PATCH] new file. --- ChangeLog | 2 ++ Documentation/user/refman.itely | 32 ++++++++++++++++++++++++-------- input/test/text-rotate.ly | 25 +++++++++++++++++++++++++ input/test/transposition.ly | 31 ++++--------------------------- 4 files changed, 55 insertions(+), 35 deletions(-) create mode 100644 input/test/text-rotate.ly diff --git a/ChangeLog b/ChangeLog index 44877335ec..687ea79baf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-02-02 Han-Wen Nienhuys + * 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) diff --git a/Documentation/user/refman.itely b/Documentation/user/refman.itely index a806975515..053a0423d4 100644 --- a/Documentation/user/refman.itely +++ b/Documentation/user/refman.itely @@ -4356,15 +4356,31 @@ is \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 } diff --git a/input/test/text-rotate.ly b/input/test/text-rotate.ly new file mode 100644 index 0000000000..c449cb8787 --- /dev/null +++ b/input/test/text-rotate.ly @@ -0,0 +1,25 @@ +\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 } +} + + diff --git a/input/test/transposition.ly b/input/test/transposition.ly index 79007d0df9..1667e5a7b7 100644 --- a/input/test/transposition.ly +++ b/input/test/transposition.ly @@ -6,30 +6,6 @@ Transposition test file." } -%{ -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" @@ -46,18 +22,19 @@ vTwo = \notes \transpose c d { \vOne } 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 { -- 2.39.5