]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/regression/repeat-unfold-tremolo.ly: add dotted case.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 2 Apr 2004 22:35:10 +0000 (22:35 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 2 Apr 2004 22:35:10 +0000 (22:35 +0000)
* scm/music-functions.scm (unfold-repeats): handle dots too.

ChangeLog
THANKS
input/regression/repeat-unfold-tremolo.ly
mf/GNUmakefile
scm/music-functions.scm

index 5de407876fb4e965aa972872bae26bbcb94f8df7..a35b4c8016a75f953f754120c5b5594c40a596dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2004-04-03  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * input/regression/repeat-unfold-tremolo.ly: add dotted case.
+
+       * scm/music-functions.scm (unfold-repeats): handle dots too.
+
+2004-04-02  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * mf/GNUmakefile ($(outdir)/$(redhat-package)): fix URL.
+       (backportme)
+
 2004-04-02  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * input/wilhelmus.ly: Use raggedright.  Hack `Een prin -- ce'
diff --git a/THANKS b/THANKS
index a08635f2f3a39e2647a523eb4812d6646ae496ba..4b312c610fd779768d20510d964b230f7864f981 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -1,4 +1,23 @@
-Release 2.1
+
+Release 2.3
+***********
+
+
+HEAD HACKERS
+
+Han-Wen Nienhuys
+Jan Nieuwenhuizen
+
+
+CONTRIBUTORS
+
+
+BUG HUNTERS/SUGGESTIONS
+
+Stephen Pollei
+Michael Welsh Duggan
+
+Release 2.2
 ***********
 
 HEAD HACKERS
index c1a1bde861bf14963b76608920a8f152333eb241..ba1bde2268f7758f248b4330732dc5f987cedfca 100644 (file)
@@ -1,8 +1,8 @@
 \version "2.2.0"
 \header {
 
-    texidoc = "Unfolding tremolo repeats. Both fragments fill one 2/4
- measure with 32nd notes exactly."
+    texidoc = "Unfolding tremolo repeats. All fragments fill one
+ measure with 16th notes exactly."
 
 }
 
     \notes{
        \time 2/4 
        \apply #unfold-repeats  
-       { \repeat tremolo 8 { c'32 e' } |
-         \repeat tremolo 16 c'32 } | \bar "|."
+       { \repeat tremolo 4 { c'16 e' } |
+         \repeat tremolo 8 c'16 } |
+
+       \time 3/4 
+       \apply #unfold-repeats  
+       { \repeat tremolo 6 { c'16 e' } |
+         \repeat tremolo 12 c'16 } | \bar "|."
+       
+       \bar "|."
+
+       
     }
     \paper { raggedright = ##t }  
 }
index 753ceb7024ef0dc1961aadb2003073a8d3dce3d8..4df0a88138901e7c414acb10c4d10abc91714ac6 100644 (file)
@@ -118,7 +118,7 @@ get-deb-pfa: $(outdir)/$(debian-package)
 
 redhat-package=lilypond-$(TOPLEVEL_VERSION)-1.i386.rpm
 $(outdir)/$(redhat-package):
-       wget  --passive-ftp -P $(outdir) http://lilypond.org/download/binaries/RedHat-9/$(redhat-package)
+       wget  --passive-ftp -P $(outdir) http://lilypond.org/download/binaries/Fedora-1/$(redhat-package)
 
 get-rpm-pfa: $(outdir)/$(redhat-package)
        cd $(outdir) ; rm -rf usr/ # (root alert!) 
index 12965891520a7704b1d279a75c72bb97bd487538..a878dfde5f3231a863645f924d6e552d873e743d 100644 (file)
 
 (define-public (unfold-repeats music)
   "
-This function replaces all repeats  with unfold repeats. It was 
-written by Rune Zedeler. "
+This function replaces all repeats  with unfold repeats. "
   
   (let ((es (ly:music-property music 'elements))
        (e  (ly:music-property music 'element))
        (n  (ly:music-name music)))
     (if (equal? n "Repeated_music")
-       (let*
-           ((seq-arg? (memq 'sequential-music
-                                                  (ly:music-property e 'types))))
+       (begin
          
          (if (equal? (ly:music-property music 'iterator-ctor)
                      Chord_tremolo_iterator::constructor)
-             (begin
+             (let*
+                 ((seq-arg? (memq 'sequential-music
+                                  (ly:music-property e 'types)))
+                  (count  (ly:music-property music 'repeat-count))
+                  (dot-shift (if (= 0 (remainder count 3))
+                                 -1 0))
+                  )
+
+               (if (= 0 -1)
+                   (set! count (* 2 (quotient count 3))))
+               
                (shift-duration-log music (+ (if seq-arg? 1 0)
-                                            (ly:intlog2 (ly:music-property music 'repeat-count))) 0)
+                                            (ly:intlog2 count)) dot-shift)
+               
                (if seq-arg?
                    (ly:music-compress e (ly:make-moment (length (ly:music-property e 'elements)) 1)))
                ))