* scm/music-functions.scm (unfold-repeats): handle dots too.
+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'
-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
\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 }
}
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!)
(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)))
))