lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?


From: Han-Wen Nienhuys
Subject: Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?
Date: Wed, 20 Feb 2008 03:10:02 -0300

2008/2/19, Nicolas Sceaux <address@hidden>:

> +LY_DEFINE (ly_score_set_header_x, "ly:score-set-header!",
> +          2, 0, 0, (SCM score, SCM module),
> +          "Set the score header.")
> +{
> +  LY_ASSERT_SMOB (Score, score, 1);
> +  SCM_ASSERT_TYPE (ly_is_module (module), module, SCM_ARG2,
> __FUNCTION__,
> +                  "module");
> +
> +  Score *sc = unsmob_score (score);
> +  return sc->get_header ();
>   }
>
>
> Shoudn't ly:score-set-header! actually set the header, rather than
> returning it?

ah yes, a cut & paste error.


-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]