]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.16
authorfred <fred>
Tue, 26 Mar 2002 22:44:39 +0000 (22:44 +0000)
committerfred <fred>
Tue, 26 Mar 2002 22:44:39 +0000 (22:44 +0000)
input/test/auto-isknee.ly [new file with mode: 0644]
input/test/auto-knee.ly
input/test/beam-quanting.ly [new file with mode: 0644]
lily/include/musical-pitch.hh
lily/musical-pitch.cc
ly/generic-paper.ly
scm/lily.scm

diff --git a/input/test/auto-isknee.ly b/input/test/auto-isknee.ly
new file mode 100644 (file)
index 0000000..f2b30b9
--- /dev/null
@@ -0,0 +1,26 @@
+
+\score {
+       \notes \context PianoStaff <
+               \context Staff = "up" {
+                       \autochange Staff \relative c' { 
+                               [c8 e'] [c' c,,]
+                               \stemdown
+                               c'8 c c g,
+                               g8 d' d d 
+                               \stemup
+                               b8 c d e
+                       }
+               }
+               \context Staff = "down" {
+                       \clef bass; 
+                       s1*2
+               }
+       >
+       \paper{
+               \translator{
+                       \StaffContext
+                       autoKneeGap = #13.0
+                       autoInterstaffKneeGap = #4.0
+               }
+       }
+}
index e6541ec2ef0bd663a8475869e7ee22d50b882b14..3a3fbf55d2698bf550dec6b0d187640a661b1ff1 100644 (file)
@@ -1,26 +1,13 @@
 
 \score {
-       \notes \context PianoStaff <
-               \context Staff = "up" {
-                       \autochange Staff \relative c' { 
-                               [c8 e'] [c' c,,]
-                               \stemdown
-                               c'8 c c g,
-                               g8 d' d d 
-                               \stemup
-                               b8 c d e
-                       }
-               }
-               \context Staff = "down" {
-                       \clef bass; 
-                       s1*2
-               }
-       >
+         \context Staff \notes\relative c'{ 
+%              \property Voice.autoKneeGap = #13
+               [c8 e'] [c' c,,]
+       }
        \paper{
                \translator{
                        \StaffContext
-                       autoKneeGap = "13.0";
-                       autoInterstaffKneeGap = "4.0";
+                       autoKneeGap = #13
                }
        }
 }
diff --git a/input/test/beam-quanting.ly b/input/test/beam-quanting.ly
new file mode 100644 (file)
index 0000000..f0f9cc1
--- /dev/null
@@ -0,0 +1,17 @@
+%{
+Have some fun beam quanting
+%}
+
+% no y quantising
+#(define (beam-vertical-position-quants m dy) '())
+
+% rediculous dy quanting
+#(define beam-height-quants '(0 4))
+
+\score {
+    \notes\relative c'{
+        c8 c c c
+        c8 e g a
+        c,8 f b e
+    }
+}
index d4d0a60854c2c9bf6e91bd07b2f026cd24deecd8..54899cabb430597a42a8e43d13edd2e46a0ab585 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "lily-proto.hh"
 #include "input.hh"
+#include "lily-guile.hh" // we need SCM
 
 /** A "tonal" pitch. This is a pitch as it figures in diatonal western
    music (12 semitones in an octave), as opposed to a frequence in Hz
@@ -43,6 +44,9 @@ struct Musical_pitch : public Input
   void print () const;
 };
 
+SCM to_scm (Musical_pitch p);
+void scm_to (SCM s, Musical_pitch* p);
+
 #include "compare.hh"
 INSTANTIATE_COMPARE(Musical_pitch, Musical_pitch::compare);
 
index 409c71d92b496b6fb63563cdb317d87498f86d3a..d60a1fb832f2e043ce0aee6d82bb94c618465eb6 100644 (file)
 #include "debug.hh"
 #include "main.hh"
 
+SCM
+to_scm (Musical_pitch p)
+{
+  return gh_list (gh_int2scm (p.notename_i_),
+                 gh_int2scm (p.accidental_i_),
+                 gh_int2scm (p.octave_i_),
+                 SCM_UNDEFINED);
+}
+
+/*
+  TODO: check -- is_pitch () ?
+ */
+void
+scm_to (SCM s, Musical_pitch* p)
+{
+  *p = Musical_pitch (gh_scm2int (gh_car (s)),
+                     gh_scm2int (gh_cadr (s)),
+                     gh_scm2int (gh_caddr (s)));
+}
+
 Musical_pitch::Musical_pitch (int n, int a, int o)
 {
   notename_i_ = n;
index a4140bb73b209f9e8c5040953bc160cc2a28391a..3e3f28c4508733851cf63b117c79cb318c99ef99 100644 (file)
@@ -1,3 +1,6 @@
+
+#(eval-string (ly-gulp-file "paper.scm"))
+
 \paper {
        texsetting = "";
        pssetting = "";
index ce8c9eec87cfed6aaaebd5ba314fbecce86af2a1..f35e747fef51aaea91eb68e76182d5e647a3c4aa 100644 (file)
               '(minimum-space 0.0)))))
   
 
-;; Measured in interlines (urg: how to say #interline?)
-(define (stem-shorten flags) 0.5)
-(define (beamed-stem-shorten multiplicity) 0.5)
-
 
 ;;;;;;;; TeX