]> git.donarmstrong.com Git - lilypond.git/commitdiff
(The Lyrics context): add note
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 11 Apr 2004 23:46:26 +0000 (23:46 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 11 Apr 2004 23:46:26 +0000 (23:46 +0000)
about manual durations

Documentation/user/notation.itely
lily/context-scheme.cc
lily/context.cc
lily/grob-scheme.cc
lily/lily-guile.cc

index ec8499d4b607e5b2385fde1fc4421a9f4ee250a3..4558754152b63b5f8fe8eaaf975086017942c72b 100644 (file)
@@ -3485,6 +3485,7 @@ Here is an example demonstrating manual lyric durations,
 
 @lilypond[relative=1,verbatim,fragment]
 << \context Voice = melody {
+     \time 3/4
      c2 e4 g2.
   } 
   \new Lyrics \lyrics {
index 1de64aef27ceeeaf19c1f95cd992a3ab6c94895e..5cbce02ddd3a57c444842b21a55d11bb36b938ed 100644 (file)
@@ -33,7 +33,7 @@ LY_DEFINE (ly_context_name, "ly:context-name",
   return ly_symbol2scm (tr->context_name ().to_str0 ()); 
 }
 
-LY_DEFINE (is_contextushpop_property, "ly:context-pushpop-property",
+LY_DEFINE (ly_context_pushpop_property, "ly:context-pushpop-property",
           3, 1, 0, (SCM context, SCM grob, SCM eltprop, SCM val),
           "Do a single @code{\\override} or @code{\\revert} operation "
           "in @var{context}.  The grob definition @code{grob} is extended "
@@ -50,7 +50,7 @@ LY_DEFINE (is_contextushpop_property, "ly:context-pushpop-property",
   return SCM_UNDEFINED;
 }
 
-LY_DEFINE (is_contextroperty, "ly:context-property",
+LY_DEFINE (ly_context_property, "ly:context-property",
           2, 0, 0, (SCM c, SCM name),
          "Return the value of @var{name} from context @var{c}")
 {
@@ -76,7 +76,7 @@ LY_DEFINE (ly_context_set_property, "ly:context-set-property!",
   return SCM_UNSPECIFIED;
 }
 
-LY_DEFINE (is_contextroperty_where_defined, "ly:context-property-where-defined",
+LY_DEFINE (ly_context_property_where_defined, "ly:context-property-where-defined",
           2, 0, 0, (SCM context, SCM name),
           "Return the context above @var{context} "
           "where @var{name} is defined.")
@@ -104,7 +104,7 @@ LY_DEFINE (ly_unset_context_property, "ly:context-unset-property", 2, 0, 0,
   return SCM_UNSPECIFIED;
 }
 
-LY_DEFINE (is_contextarent, "ly:context-parent",
+LY_DEFINE (ly_context_parent, "ly:context-parent",
           1, 0, 0, (SCM context),
           "Return the parent of @var{context}, @code{#f} if none.")
 {
@@ -137,17 +137,3 @@ LY_DEFINE (ly_context_find, "ly:context-find",
   
   return SCM_BOOL_F;
 }
-
-#if 0
-/*
-  What is this used for? Should remove? --hwn
- */
-LY_DEFINE (is_contextroperties, "ly:context-properties",
-          1, 0, 0, (SCM context),
-          "Return all properties  of @var{context} in an alist.")
-{
-  Context *tr = unsmob_context (context);
-  SCM_ASSERT_TYPE (tr, context, SCM_ARG1, __FUNCTION__, "Context");
-  return tr->properties_as_alist ();
-}
-#endif
index bbd12474322d3f2addd4f7dbb0026abcf074bf81..d9f4b2ccef424439340af01f85b8b42d621e4a3c 100644 (file)
@@ -301,7 +301,7 @@ Context *
 find_context_below (Context * where,
                    SCM type, String id)
 {
-  if (where->is_alias (ly_symbol2scm (type.to_str0 ())))
+  if (where->is_alias (type))
     {
       if (id == "" || where->id_string_ == id)
        return where;
index 38d3d1da94dbf3d136d426420445c50df18a4efd..39590e6f65afb33b74a078c9cbdb1948c251f22e 100644 (file)
@@ -176,7 +176,7 @@ LY_DEFINE (ly_grob_translate_axis_x, "ly:grob-translate-axis!",
   return SCM_UNDEFINED;
 }
 
-LY_DEFINE (is_spanner, "ly:spanner?",
+LY_DEFINE (ly_spanner_p, "ly:spanner?",
           1, 0, 0, (SCM g),
           "Is  @var{g} a spanner object?")
 {
@@ -186,7 +186,7 @@ LY_DEFINE (is_spanner, "ly:spanner?",
   return ly_bool2scm (b);
 }
 
-LY_DEFINE (is_item, "ly:item?",
+LY_DEFINE (ly_item_p, "ly:item?",
           1, 0, 0, (SCM g),
           "Is @var{g} an @code{Item} object?")
 {
index 24cbc9e069a6c4b83a85283d5956bd645b1b5196..20fff1c73098a4ddf302b4b93ed3e2aef41ba540 100644 (file)
@@ -182,7 +182,7 @@ LY_DEFINE (ly_warning,"ly:warn", 1, 0, 0,
   return SCM_BOOL_T;
 }
 
-LY_DEFINE (is_dir,  "ly:dir?", 1,0, 0,  (SCM s),
+LY_DEFINE (ly_dir_p,  "ly:dir?", 1,0, 0,  (SCM s),
          "type predicate. A direction is @code{-1}, @code{0} or "
           "@code{1}, where @code{-1} represents "
          "left or down and @code{1} represents right or up.")
@@ -356,27 +356,6 @@ LY_DEFINE (ly_number2string, "ly:number->string",
   return scm_makfrom0str (str);
 }
 
-/*
-  Undef this to see if GUILE GC is causing too many swaps.
- */
-
-//#define TEST_GC
-
-#ifdef TEST_GC
-#include <libguile/gc.h>
-
-static void *
-greet_sweep (void *dummy1, void *dummy2, void *dummy3)
-{
-  fprintf (stderr, "entering sweep\n");
-}
-
-static void *
-wave_sweep_goodbye (void *dummy1, void *dummy2, void *dummy3)
-{
-  fprintf (stderr, "leaving sweep\n");
-}
-#endif
 
 
 LY_DEFINE (ly_version,  "ly:version", 0, 0, 0, (),
@@ -395,24 +374,13 @@ LY_DEFINE (ly_unit,  "ly:unit", 0, 0, 0, (),
 
 
 
-LY_DEFINE (is_dimension,  "ly:dimension?", 1, 0, 0, (SCM d),
+LY_DEFINE (ly_dimension_p,  "ly:dimension?", 1, 0, 0, (SCM d),
          "Return @var{d} is a number. Used to distinguish length "
          "variables from normal numbers.")
 {
   return scm_number_p (d);
 }
 
-static void
-init_functions ()
-{
-#ifdef TEST_GC 
-  scm_c_hook_add (&scm_before_mark_c_hook, greet_sweep, 0, 0);
-  scm_c_hook_add (&scm_before_sweep_c_hook, wave_sweep_goodbye, 0, 0);
-#endif
-}
-
-ADD_SCM_INIT_FUNC (funcs, init_functions);
-
 SCM
 ly_deep_copy (SCM src)
 {