]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/user/refman.itely (Printing named chords): add
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 23 Feb 2003 10:58:38 +0000 (10:58 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 23 Feb 2003 10:58:38 +0000 (10:58 +0000)
chord name tweak doco.

* input/template/gregorian-transcription.ly: new file.

ChangeLog
Documentation/user/refman.itely
input/template/gregorian-transcription.ly [new file with mode: 0644]
lily/beam.cc
lily/separation-item.cc
lily/tie.cc
lily/time-signature.cc
lily/translator-ctors.cc
ly/chord-modifiers-init.ly
ly/engraver-init.ly

index b84d4eb579fcf2655a9dfe83111272fb5fe5f58e..c2fbd47f2e7f4b5454c3f710745d786d4de9a012 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-23  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * Documentation/user/refman.itely (Printing named chords): add
+       chord name tweak doco.
+
+       * input/template/gregorian-transcription.ly: new file.
+
 2003-02-22  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
        * input/test/*: lots of cleanups/comment-outs/removals in chord
index 9ae15291a7880bc6d1268a7ae7c0877ca43d6eb5..de6d69a9c94a0a6b761e27d794bed92a8cd7a9e8 100644 (file)
@@ -3516,8 +3516,68 @@ Klaus Ignatzek (See @ref{Literature}).
 
 [TODO: add description for banter other jazz.]
 
-[TODO: describe tweak options, chordNameFunction,chordNameExceptions,
-majorSevenSymbol, chordNameSeparator]
+The Ignatzek chord name formatting can be tuned in a number of ways
+through the following properties:
+@table @code
+@item chordNameExceptions
+This is a list that contains the chords that have special formatting.
+For example.
+@lilypond[verbatim,singleline]
+chExceptionMusic = \notes { <<c f g bes>>1-\markup { \super "7" "wahh" }}
+chExceptions = #(append
+  (sequential-music-to-chord-exceptions chExceptionMusic)
+  ignatzekExceptions)
+
+\score {   \context ChordNames
+    \chords {
+      c:7sus4 c:dim7
+      \property ChordNames.chordNameExceptions = #chExceptions
+      c:7sus4 c:dim7 } }
+@end lilypond
+
+Putting the exceptions list encoded as
+@example
+ \notes @{ <<c f g bes>>1-\markup @{ \super "7" "wahh" @} @}
+@end example
+into the property takes a little manoeuvring. The following code
+transforms  @code{chExceptionMusic} (which is a sequential music)
+into a list of exceptions.
+@example
+  (sequential-music-to-chord-exceptions chExceptionMusic)
+@end example
+Then,
+@example
+#(append
+  ... ignatzekExceptions)
+@end example
+adds the new exceptions to the default ones, which are defined in
+@file{ly/chord-modifier-init.ly}.
+
+@item majorSevenSymbol
+This property contains the markup object used for the 7th step, when
+it is major. Predefined options are @code{whiteTriangleMarkup},
+@code{blackTriangleMarkup}. The following uses another popular shorthand. 
+@lilypond[fragment,verbatim]
+\context ChordNames \chords {
+      c:7
+      \property ChordNames.majorSevenSymbol = \markup { "j7" }
+      c:7 } 
+@end lilypond
+@item chordNameSeparator
+Different parts of a chord name are normally separated by a
+slash. By setting @code{chordNameSeparator}, you can specify other
+separators, e.g.
+@lilypond[fragment,verbatim]
+\context ChordNames \chords {
+      c:7sus4
+      \property ChordNames.chordNameSeparator = \markup { "|" }
+      c:7sus4 }
+@end lilypond
+@end table
+
+
+
+
 
 @node Writing parts
 @section Writing parts
diff --git a/input/template/gregorian-transcription.ly b/input/template/gregorian-transcription.ly
new file mode 100644 (file)
index 0000000..f192862
--- /dev/null
@@ -0,0 +1,25 @@
+\header {
+texidoc = "Modern  transcriptions  of gregrorian music.
+Gregorian music has no measure, no stems, only uses half and quarter notes,
+and two types of barlines, a short one indicating a rest, a second indicating a breath mark."
+}
+
+
+barOne = \notes { \once \property Staff.BarLine \override #'bar-size = #2
+       \bar "|" }
+barTwo = \notes { \once \property Staff.BarLine \override #'extra-offset = #'(0 . 2)
+
+               \once \property Staff.BarLine \override #'bar-size = #2
+       \bar "|" }
+\score {
+
+\notes \relative c' {
+       \property Score.timing = ##f
+       \property Staff.Stem \set #'transparent = ##t
+       f4 a2 \barTwo g4 a2  f2 \barOne g4( )f f(
+       \bar "empty" 
+       \break
+       )g a2
+}
+
+}
index a74da01235f335fb53e70e62a7280fcff14d70cb..fc93ed4bc20f40fa330a9304bad41d5fe1f75f1d 100644 (file)
@@ -1227,9 +1227,6 @@ Beam::set_stem_lengths (Grob *me)
   Interval pos = ly_scm2interval (me->get_grob_property ("positions"));
   Real staff_space = Staff_symbol_referencer::staff_space (me);
 
-  bool french = to_boolean (me->get_grob_property ("french-beaming"));
-
-  
   bool gap = false;
   Real thick =0.0;
   if (gh_number_p (me->get_grob_property ("gap"))
index 1c46854c5ce0d12eea616f4286f82abc4f102ccb..0b8776eeadcc6a67055f2fd74e413e9d05f21a0c 100644 (file)
@@ -135,10 +135,9 @@ Separation_item::width (Grob *me)
 
 
 ADD_INTERFACE (Separation_item,"separation-item-interface",
-  "Item that computes widths to generate spacing rods.
-
-Calc dimensions for the Separating_group_spanner; this has to be
-an item to get dependencies correct.  It can't be an grob_group
-since these usually are in a different X_group
-",
+  "Item that computes widths to generate spacing rods.\n"
+"\n"
+"Calc dimensions for the Separating_group_spanner; this has to be "
+"an item to get dependencies correct.  It can't be an grob_group "
+"since these usually are in a different X_group ",
   "X-extent conditional-elements elements");
index 1b6ff9ed6bb7a56b06000ab3b9200b9e1942a353..99cf426d5c77a5ce8d09aa7d2e89ae8f1b72543a 100644 (file)
@@ -331,6 +331,6 @@ Tie::brew_molecule (SCM smob)
 
 
 ADD_INTERFACE (Tie,"tie-interface",
-  "A tie connecting two noteheads.
-direction = Forced direction for all ties",
+  "A tie connecting two noteheads.\n"
+"direction = Forced direction for all ties",
   "y-offset staffline-clearance control-points heads details thickness x-gap direction minimum-length");
index 606790e02e0d44139310a398995a43f6bda52a69..dd8e06682e62ec5c9ac7f64b84af874301ed32cd 100644 (file)
@@ -121,30 +121,29 @@ Time_signature::numbered_time_signature (Grob*me,int num, int den)
 }
 
 ADD_INTERFACE (Time_signature, "time-signature-interface",
-  "A time signature, in different styles.
-  The following values for 'style are are recognized:
-
-    @table @samp
-      @item @code{C}
-        4/4 and 2/2 are typeset as C and struck C, respectively.  All
-        other time signatures are written with two digits.
-
-      @item @code{neo_mensural}
-        2/2, 3/2, 2/4, 3/4, 4/4, 6/4, 9/4, 4/8, 6/8 and 9/8 are
-        typeset with neo-mensural style mensuration marks.  All other time
-        signatures are written with two digits.
-
-      @item @code{mensural}
-        2/2, 3/2, 2/4, 3/4, 4/4, 6/4, 9/4, 4/8, 6/8 and 9/8 are
-        typeset with mensural style mensuration marks.  All other time
-        signatures are written with two digits.
-
-      @item @code{1xxx}
-        All time signatures are typeset with a single
-        digit, e.g. 3/2 is written as 3. (Any symbol starting
-       with the digit @code{1} will do.)
-    @end table
-
-See also the test-file @file{input/test/time.ly}.
-",
+  "A time signature, in different styles.\n"
+"  The following values for 'style are are recognized:\n"
+"\n"
+"    @table @samp\n"
+"      @item @code{C}\n"
+"        4/4 and 2/2 are typeset as C and struck C, respectively.  All\n"
+"        other time signatures are written with two digits.\n"
+"\n"
+"      @item @code{neo_mensural}\n"
+"        2/2, 3/2, 2/4, 3/4, 4/4, 6/4, 9/4, 4/8, 6/8 and 9/8 are\n"
+"        typeset with neo-mensural style mensuration marks.  All other time\n"
+"        signatures are written with two digits.\n"
+"\n"
+"      @item @code{mensural}\n"
+"        2/2, 3/2, 2/4, 3/4, 4/4, 6/4, 9/4, 4/8, 6/8 and 9/8 are\n"
+"        typeset with mensural style mensuration marks.  All other time\n"
+"        signatures are written with two digits.\n"
+"\n"
+"      @item @code{1xxx}\n"
+"        All time signatures are typeset with a single\n"
+"        digit, e.g. 3/2 is written as 3. (Any symbol starting\n"
+"      with the digit @code{1} will do.)\n"
+"    @end table\n"
+"\n"
+"See also the test-file @file{input/test/time.ly}.\n",
   "fraction style");
index 000b01208616a0420db023cc74cd2c4e3470b159..3c3a1d7552cdc597ff84a342338e1ff0fad36e47 100644 (file)
@@ -20,8 +20,8 @@
 Dictionary<Translator*> *global_translator_dict=0;
 
 LY_DEFINE(get_all_translators,"ly:get-all-translators", 0, 0, 0,  (),
-         "Return an list of a all translator objects that may be instantiated
-during a lilypond run.")
+         "Return an list of a all translator objects that may be instantiated "
+during a lilypond run.")
 {
   SCM l = SCM_EOL;
   for (std::map<String,Translator*>::const_iterator (ci (global_translator_dict->begin()));
index f8266423c102374273478210353cb6d25edcf4fc..e01ab5d8ca4058e2c602af78ed53d0dc408c213c 100644 (file)
@@ -14,3 +14,6 @@ ignatzekExceptionMusic =  \notes {
        <<c es ges bes>>-\markup { \super \combine "o" "/" }
        <<c es ges beses>>-\markup { \super  "o7" }
 }
+
+ignatzekExceptions = #(sequential-music-to-chord-exceptions ignatzekExceptionMusic)
+
index b02c481b6e4565b6736abb70984fe84f334ddc42..7e23cf9e81a83ce49a54bd5226580bc960347861 100644 (file)
@@ -449,7 +449,7 @@ ScoreContext = \translator {
        chordNameFunction = #ignatzek-chord-names
        majorSevenSymbol = #whiteTriangleMarkup
        chordNameSeparator = #(make-simple-markup  "/")
-       chordNameExceptions = #(sequential-music-to-chord-exceptions ignatzekExceptionMusic)
+       chordNameExceptions = #ignatzekExceptions
 
        \grobdescriptions #all-grob-descriptions
 }