]> git.donarmstrong.com Git - lilypond.git/commitdiff
add 'resolution to ly:get-option argument
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 29 Oct 2004 00:57:30 +0000 (00:57 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 29 Oct 2004 00:57:30 +0000 (00:57 +0000)
list.

ChangeLog
VERSION
input/test/coriolan-margin.ly
lily/scm-option.cc
scm/framework-ps.scm
scm/framework-tex.scm

index 287af839fdccb12cec7fe586e65289daf56e4d40..62667a79a3353e9b557e9697020d2674726fe36c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-29  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/scm-option.cc: add 'resolution to ly:get-option argument
+       list.
+
 2004-10-28  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/stencil-scheme.cc (LY_DEFINE): add ly:stencil-origin
@@ -78,6 +83,8 @@
 
 2004-10-25  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * VERSION: 2.3.24
+       
        * scm/define-context-properties.scm
        (all-user-translation-properties): add verticallySpacedContexts.
 
diff --git a/VERSION b/VERSION
index acffe86084ea72c8e7546ccd931725a79e324efe..217cde28660579bca2e0cb5b9fdc52fcdc1d7624 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=3
-PATCH_LEVEL=24
+PATCH_LEVEL=25
 MY_PATCH_LEVEL=
 
index 8a22a8ec252749cef287b97f8554f19d289fb6f0..5621ab11858db99cd88780cc5e03b9f8a97e9b05 100644 (file)
@@ -101,10 +101,10 @@ violoncello =  \relative c' {
 }
 
 
-% ugf, must be here?
 \paper {
     indent=10.0\mm
     linewidth=150.0\mm
+    raggedbottom = ##t 
 }
 
 #(set-global-staff-size 16)
index 5da31ef2408e826859cccde458196c454a4ddbb0..6118d561d02ac5bcbb843ccf4df3262ccc869984 100644 (file)
@@ -32,6 +32,9 @@
 /* Write midi as formatted ascii stream? */
 bool midi_debug_global_b;
 
+int preview_resolution_global = 90;
+
+
 /* General purpose testing flag */
 int testing_level_global;
 
@@ -122,6 +125,8 @@ LY_DEFINE (ly_set_option, "ly:set-option", 1, 1, 0, (SCM var, SCM val),
       /*  Needs to be reset for each file that uses this option.  */
       lily_1_8_compatibility_used = false;
     }
+  else if (var == ly_symbol2scm ("resolution"))
+    preview_resolution_global = robust_scm2int (val, 90);
   else if (var == ly_symbol2scm ("new-relative"))
     lily_1_8_relative = false;
   else
@@ -143,6 +148,8 @@ LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
           "Report whether old-relative compatibility mode is used\n"
           "@item verbose\n"
           "Report whether we are running in verbose mode\n"
+          "@item resolution\n"
+          "Resolution for the PNG output."
           "@end table\n"
           "\n")
 {
@@ -156,6 +163,8 @@ LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
     o = ly_bool2scm (lily_1_8_relative);
   else if (var == ly_symbol2scm ("verbose"))
     o = ly_bool2scm (verbose_global_b);
+  else if ( var == ly_bool2scm ("resolution"))
+    o = scm_from_int (preview_resolution_global);
   else
     warning (_f ("No such internal option: %s", ly_scm2string (var)));
   return o;
index c487c36b914b2d2ee83631a148de8011f3673295..f4752253b6bbeee6a5e4d89920cc1775574b0823 100644 (file)
   (let* ((defs (ly:paper-book-paper book))
         (resolution (ly:output-def-lookup defs 'pngresolution)))
 
-    (postscript->png (if (number? resolution) resolution 90)
+    (postscript->png (if (number? resolution) resolution
+
+                        (ly:get-option 'preview-resolution))
                     name)))
 
 (define-public (convert-to-dvi book name)
index 93c5fedbc320aaedab79bc8ee2c37c6d4b49811b..671eca81b86cafe7eb19e9c7a3daa4f88bc7cd85 100644 (file)
   (let* ((defs (ly:paper-book-paper book))
         (resolution (ly:output-def-lookup defs 'pngresolution)))
     (postscript->png
-     (if (number? resolution) resolution 90)
+     (if (number? resolution)
+        resolution
+        (ly:get-option 'preview-resolution))b
      (string-append (basename name ".tex") ".ps"))))
 
 (define-public (convert-to-ps book name)