]> git.donarmstrong.com Git - lilypond.git/commitdiff
(quote-substitute): set iterators-ctor
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 2 Apr 2006 23:36:51 +0000 (23:36 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 2 Apr 2006 23:36:51 +0000 (23:36 +0000)
ChangeLog
input/regression/beam-funky-beamlet.ly
input/regression/collision-merge-differently-dotted.ly
input/regression/fill-line-test.ly
lily/quote-iterator.cc
ly/declarations-init.ly
scm/define-music-types.scm
scm/music-functions.scm
scm/part-combiner.scm

index 9378b301780b14f5da7e44fb270a47640ec2715e..0f247266ec080bee87b04daf10b866fa8bdce3a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-04-03  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * scm/music-functions.scm (quote-substitute): set iterators-ctor
+
 2006-03-31  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
        * Documentation/bibliography/GNUmakefile ($(outdir)/%.html): set
index 0a1e0e03966fb941e61e39e760983df7dc1e000f..f78f76f91e543b231b788c482fa4fce010b49f3e 100644 (file)
@@ -11,9 +11,21 @@ should be pointing to the note head.
 \layout { ragged-right = ##t}
 
 \relative c' {
-  c16 c''8 c,,16
-  c16 c''8 c16
-  c16 c,,8 c16          
+  \once \override Stem #'direction = #UP
+  c16
+  \once \override Stem #'direction = #DOWN
+
+  c''8 c,,16
+  \once \override Stem #'direction = #UP
+  c16
+  \once \override Stem #'direction = #DOWN
+
+  c''8 c16
+  \once \override Stem #'direction = #DOWN
   
+  c16 c,,8
+  \once \override Stem #'direction = #UP
+
+  c16          
 }
          
index b0216732611e5a60d47d73ccc354c04e9059bebe..2fba4ae37d1e12e8fc016b001ac32873bc4ec2fd 100644 (file)
@@ -1,7 +1,8 @@
 \version "2.7.39"
 \header {
     
-    texidoc = "If NoteCollision has merge-differently-dotted = ##t note
+    texidoc = "If @code{NoteCollision} has
+ @code{merge-differently-dotted = ##t} note
 heads that have differing dot counts may be merged anyway.  Dots
 should not disappear when merging similar note heads."
     
index 324f14b5bbb69ecf381dfceaee9fc807126e2af5..cf3a643c83abcd91f54157605c5c224e559c1034 100644 (file)
@@ -7,8 +7,8 @@
   column."
 
 }
-
 \paper {
+  linewidth = 15\cm
   bookTitleMarkup = \markup {
   \column {
    \fill-line {
index aa06734e00c363a6a65611df52e62364f8b5420d..f0a2d46e6b1c9d92e8601394a48dde20b6825182 100644 (file)
@@ -28,7 +28,7 @@ public:
   SCM event_vector_;
   int event_idx_;
   int end_idx_;
-
+  
   SCM transposed_musics_;
 
   DECLARE_SCHEME_CALLBACK (constructor, ());
@@ -107,7 +107,7 @@ void
 Quote_iterator::construct_children ()
 {
   Music_wrapper_iterator::construct_children ();
-
+      
   SCM name = get_music ()->get_property ("quoted-context-type");
   SCM id = get_music ()->get_property ("quoted-context-id");
 
index f60c9f4578ba2004ecfe1bbebffe7aefc4711291..7dbc3b3c298c4ebefd8a8a85cc51bf887528d4de 100644 (file)
@@ -98,6 +98,7 @@ partCombineListener = \layout {
     }
     \context {
        \Score
+       ignoreQuotes = ##t 
        skipTypesetting = ##t
        ignoreBarChecks = ##t 
     }
index da13e221d2baf756228ceffac5dda1c70013d8e1..8fc012277edfb00bda49abb96a179fcf627aa288 100644 (file)
@@ -397,7 +397,7 @@ goes down).")
     (QuoteMusic
      . (
        (description . "Quote preprocessed snippets of music. ")
-       (iterator-ctor . ,ly:quote-iterator::constructor)
+       (iterator-ctor . ,ly:music-wrapper-iterator::constructor)
        (length-callback . ,ly:music-wrapper::length-callback)
        (start-callback . ,ly:music-wrapper::start-callback)
        (types . (general-music music-wrapper-music))
index 2207e18601f6812641f0dad2c7aaa45317e0838a..deba74c08c8f81ad899cb51894f2754bc5c885da 100644 (file)
@@ -701,7 +701,7 @@ Syntax:
             (cue-voice (if (eq? 1 dir) 0 1))
             (main-music (ly:music-property quote-music 'element))
             (return-value quote-music))
-       
+
        (if (or (eq? 1 dir) (eq? -1 dir))
            
            ;; if we have stem dirs, change both quoted and main music
@@ -732,11 +732,15 @@ Syntax:
         (quoted-vector (if (string? quoted-name)
                            (hash-ref quote-tab quoted-name #f)
                            #f)))
+
     
     (if (string? quoted-name)
-       (if  (vector? quoted-vector)
-            (set! (ly:music-property music 'quoted-events) quoted-vector)
-            (ly:warning (_ "can't find quoted music `~S'" quoted-name))))
+       (if (vector? quoted-vector)
+           (begin
+             (set! (ly:music-property music 'quoted-events) quoted-vector)
+             (set! (ly:music-property music 'iterator-ctor)
+                   ly:quote-iterator::constructor))
+           (ly:warning (_ "can't find quoted music `~S'" quoted-name))))
     music))
 
 
@@ -819,6 +823,7 @@ if appropriate.
      (skip-to-last x parser)
    )))
 
+
 ;;;;;;;;;;;;;;;;;
 ;; lyrics
 
index 0a055a5136a88024d5ea0b50149210a6ceb29c70..56b43892b98d8b2759a5c6b83f0b9cbab778de14 100644 (file)
@@ -461,7 +461,6 @@ the mark when there are no spanners active."
                                     part-combine-listener))
         (first-voice-handle (last-pair noticed)))
 
-    ;;(display first-voice-handle)
     (if (pair? first-voice-handle)
        (hash-set! tab name
                   ;; cdr : skip name string