]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.5.35
authorfred <fred>
Wed, 27 Mar 2002 02:06:09 +0000 (02:06 +0000)
committerfred <fred>
Wed, 27 Mar 2002 02:06:09 +0000 (02:06 +0000)
lily/grob.cc
lily/lexer.ll
scm/grob-description.scm

index 4077188023f22a9ab952a30d153a3a7bd3f82d84..064b68faabba5bc4d54787c0ba0b4128929bf454 100644 (file)
@@ -815,27 +815,13 @@ SCM
 ly_set_grob_property (SCM elt, SCM sym, SCM val)
 {
   Grob * sc = unsmob_grob (elt);
-
-  if (!gh_symbol_p (sym))
-    {
-      error ("Not a symbol");
-      ly_display_scm (sym);
-      return SCM_UNSPECIFIED;
-    }
+  SCM_ASSERT_TYPE(sc, elt, SCM_ARG1, __FUNCTION__, "grob");
+  SCM_ASSERT_TYPE(gh_symbol_p(sym), sym, SCM_ARG2, __FUNCTION__, "symbol");  
 
   if (!type_check_assignment (sym, val, ly_symbol2scm ("backend-type?")))
-    return SCM_UNSPECIFIED;
+    error ("typecheck failed");
       
-  if (sc)
-    {
-      sc->internal_set_grob_property (sym, val);
-    }
-  else
-    {
-      error ("Not a score element");
-      ly_display_scm (elt);
-    }
-
+  sc->internal_set_grob_property (sym, val);
   return SCM_UNSPECIFIED;
 }
 
@@ -844,17 +830,10 @@ SCM
 ly_get_grob_property (SCM elt, SCM sym)
 {
   Grob * sc = unsmob_grob (elt);
-  
-  if (sc)
-    {
-      return sc->internal_get_grob_property (sym);
-    }
-  else
-    {
-      error ("Not a score element");
-      ly_display_scm (elt);
-    }
-  return SCM_UNSPECIFIED;
+  SCM_ASSERT_TYPE(sc, elt, SCM_ARG1, __FUNCTION__, "grob");
+  SCM_ASSERT_TYPE(gh_symbol_p(sym), sym, SCM_ARG2, __FUNCTION__, "symbol");  
+
+  return sc->internal_get_grob_property (sym);
 }
 
 
index fa5a4dad89743a89d2d74bbf4b7f8194282a4726..7bff8df6f4b16026132d488f5d397afcd9e29e86 100644 (file)
@@ -269,6 +269,15 @@ HYPHEN             --
        return SCM_T;
 }
 <figures>{
+       _       {
+               return FIGURE_SPACE;
+       }
+       \]      {
+               return FIGURE_BRACKET_CLOSE;
+       }
+       \[      {
+               return FIGURE_BRACKET_OPEN;
+       }
        \>              {
                return FIGURE_CLOSE;
        }
index 02bfd0d36d96627e090d6b2a7731e4911277bb7d..3ea708e2f7b399d3292a39d8a7deb3fd7a9e535b 100644 (file)
@@ -8,14 +8,6 @@
 ; distances are given in stafflinethickness (thicknesses) and
 ; staffspace (distances)
 
-(define default-alteration-alist
-  '(
-    (0 . ((raise . 0.5) (music "accidentals-0")))
-    (-1 . ((raise . 0.5) (music "accidentals--1")))
-    (-2 . ((raise . 0.5) (music "accidentals--2")))
-    (1 . ((raise . 0.5) (music  "accidentals-1")))
-    (2 . ((raise . 0.5) (music "accidentals-2")))
-    ))
 
 
 ;;; WARNING: the meta field should be the last one.
        ))
 
        (BassFigure . (
-                      (molecule-callback . ,Text_item::brew_molecule)
+                      (molecule-callback . ,brew-bass-figure)
                       (Y-offset-callbacks . (,Side_position_interface::aligned_on_self))
                       (direction . 0)
-                      (accidental-alist . ,default-alteration-alist)
                       (font-family . number)
                       (font-relative-size . -1)
                       (meta . ,(grob-description text-interface font-interface ))
                (padding . 0.29) 
                (X-offset-callbacks . (,Side_position_interface::centered_on_parent))
                (before-line-breaking-callback . ,Script::before_line_breaking)
+               (font-family . music)
                (meta . ,(grob-description script-interface side-position-interface font-interface))
        ))