]> git.donarmstrong.com Git - lilypond.git/commitdiff
* tex/titledefs.tex: Define \fetafont for use in titles.
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Tue, 27 Aug 2002 12:21:58 +0000 (12:21 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Tue, 27 Aug 2002 12:21:58 +0000 (12:21 +0000)
* scm/music-functions.scm (shift-duration-log), lily/parser.yy
(Repeated_music): Handle dots correctly for \repeat tremolo.

lily/parser.yy
scm/music-functions.scm
tex/titledefs.tex

index 32084a3e3e4461ad7b69a1a45769f7ee966ed243..357baad39bc48c526895006f2b956f78c5439977 100644 (file)
@@ -747,11 +747,12 @@ Repeated_music:
                /*
                we can not get durations and other stuff correct down the line, so we have to
                add to the duration log here.
-
-               TODO: do dots.
                */
                        SCM func = scm_primitive_eval (ly_symbol2scm ("shift-duration-log"));
-                       gh_call2 (func, r->self_scm (), gh_int2scm(-intlog2 ($3)));
+                       if (($3 % 3) == 0)
+                         gh_call3 (func, r->self_scm (), gh_int2scm(-intlog2 ($3*2/3)),gh_int2scm(1));
+                       else
+                         gh_call3 (func, r->self_scm (), gh_int2scm(-intlog2 ($3)), gh_int2scm(0));
                }
 
                set_music_properties (r, result);
index cab888da1769c81757d8709a54289c8fe7fab46a..047a0114ebca6ad32edcd7ebc389984ad3774c94 100644 (file)
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
 
-(define (shift-duration-log music shift )
-  "Recurse through music, adding SHIFT to duration-log to any note
-encountered. This scales the music up by a factor 2^k."
+(define (shift-duration-log music shift dot)
+  "Recurse through music, adding SHIFT to duration-log and optionally 
+  a dot to any note encountered. This scales the music up by a factor 
+  2^shift."
   (let* ((es (ly-get-mus-property music 'elements))
          (e (ly-get-mus-property music 'element))
          (n  (ly-music-name music))
-        (f  (lambda (x)  (shift-duration-log x shift)))
+        (f  (lambda (x)  (shift-duration-log x shift dot)))
         )
     (if (or (equal? n "Note_req")
            (equal? n "Rest_req"))
        (let* (
-             (d (ly-get-mus-property music 'duration))
-             (cp (duration-factor d))
-             (nd (make-duration (+ shift (duration-log d))
-                                (duration-dot-count d)
-                                (car cp)
-                                (cdr cp)))
-         
-             )
+              (d (ly-get-mus-property music 'duration))
+              (cp (duration-factor d))
+              (nd (make-duration (+ shift (duration-log d))
+                                 (+ dot (duration-dot-count d))
+                                 (car cp)
+                                 (cdr cp)))
+              
+              )
          (ly-set-mus-property! music 'duration nd)
-       ))
-
+         ))
+    
     (if (pair? es)
         (ly-set-mus-property!
          music 'elements
          (map f es)))
-
+    
     (if (music? e)
         (ly-set-mus-property!
          music 'element
          (f e)))
-
+    
     music))
 
 
index fd680ff7e47c0eb8420d93633ab35549f0467d8c..653afeb09cd1d3922d2c230a74d734e22ee33c96 100644 (file)
@@ -8,6 +8,13 @@
 %%    makes LaTeX break on the \\ in:
 %%        \ifx\lilypondfoo\undefined\else{\lilypondfoo\\}\fi
 %%
+% The feta characters for use in titles
+\input feta20.tex
+%
+\font\fetasixteen=feta16
+\def\fetafont{\fetasixteen}
+\def\fetachar#1{\hbox{\fetasixteen#1}}
+%
 \def\makelilypondtitle
 {
   \begin{center}