[Top][All Lists]
[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: |
Sun, 24 Feb 2008 02:03:30 -0300 |
2008/2/23, Reinhold Kainhofer <address@hidden>:
> Thanks for the hint.
>
> Now, my next problem is that if my createscore function is called within a
> \book block, I'd need to use book-score-handler instead of
> toplevel-score-handler.
> Is there an easy way to detect wheter we are inside a book block?
> From parser.yy I see that lilypond does not explicitly check this, but uses
> the implicit context information from the parser instead...
Not that I know. We'd have to modify the parser.
> The other issue I'm running into now is: How can I call a music-function from
> within another music-function? I haven't found any example for this in the
> docs or the LSR...
> However, I always get an error message:
> music_function_calls_another.ly:4:76: In expression (identity parser
> location ...):
> music_function_calls_another.ly:4:76: Wrong type to apply: #<Music function
> #<procedure #f (parser location music)>>
You have to use ly:music-function-extract to get the scheme function
from the object.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, (continued)
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Han-Wen Nienhuys, 2008/02/18
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Reinhold Kainhofer, 2008/02/19
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Han-Wen Nienhuys, 2008/02/20
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Nicolas Sceaux, 2008/02/20
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Reinhold Kainhofer, 2008/02/21
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Han-Wen Nienhuys, 2008/02/23
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?, Reinhold Kainhofer, 2008/02/23
- Re: Doing \score { <<...>... } and \context Staff << .... >> in scheme?,
Han-Wen Nienhuys <=