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

2008-02-23 Thread Han-Wen Nienhuys
2008/2/21, Reinhold Kainhofer [EMAIL PROTECTED]: \makeScore Test { c'4 d' e' f' g'1 } Dang, that looked so promising! It worked fine in all my tests, until I started switching my orchestral score to my own createscore function... The problem is that cue notes do not appear in the

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

2008-02-21 Thread Reinhold Kainhofer
Am Mittwoch, 20. Februar 2008 schrieb Nicolas Sceaux: module-define! is the function you were looking for. Ah, thanks... I was confused by the name and didn't even consider it (thinking it somehow defines a module, while in fact it is defining INSIDE a module). Here is function that builds a

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

2008-02-20 Thread Nicolas Sceaux
Le 19 févr. 08 à 14:53, Reinhold Kainhofer a écrit : Thanks for adding these bindings. However, should ly:score-header always return a header module, or do I have to create the header module myself? For me it simply returns an empty list... In particular, the following code does not

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

2008-02-19 Thread Mats Bengtsson
Nicolas Sceaux wrote: A score is a Score :-) Not if you want to attach a \header, \layout or \midi block to it, though it seems that Han-Wen has just added some support for doing that. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org

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

2008-02-19 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Han-Wen,, Thanks a lot for your great help and all the hints! I'm starting to get a little insight into how lilypond works internally at toplevel. check out toplevel-score-handler in ly/declarations-init.ly; this shows how to

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

2008-02-19 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 18. Februar 2008 schrieben Sie: Reinhold Kainhofer wrote: ... Also, how can I create a staff in scheme? A staff is no music expression, is it? Finally a question I can answer, or rather that LilyPond can answer for you. Just use

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

2008-02-19 Thread Nicolas Sceaux
Le 19 févr. 08 à 09:48, Mats Bengtsson a écrit : Nicolas Sceaux wrote: A score is a Score :-) Not if you want to attach a \header, \layout or \midi block to it Of course it is, even with a header, layouts or a midi blocks. By the way, this is strange: --- a/lily/score-scheme.cc +++

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

2008-02-19 Thread Han-Wen Nienhuys
2008/2/19, Nicolas Sceaux [EMAIL PROTECTED]: +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,

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

2008-02-19 Thread Han-Wen Nienhuys
2008/2/19, Reinhold Kainhofer [EMAIL PROTECTED]: Thanks for adding these bindings. However, should ly:score-header always return a header module, or do I have to create the header module myself? For It's inited as empty, so you will need to do (ly:score-set-header! score (make-module ... )) in

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

2008-02-18 Thread Mats Bengtsson
Reinhold Kainhofer wrote: ... Also, how can I create a staff in scheme? A staff is no music expression, is it? Finally a question I can answer, or rather that LilyPond can answer for you. Just use the \displayMusic function. For example, run LilyPond on the following example and look at

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

2008-02-18 Thread Nicolas Sceaux
Le 18 févr. 08 à 00:17, Reinhold Kainhofer a écrit : Am Sonntag, 17. Februar 2008 schrieb Han-Wen Nienhuys: 2008/2/13, Reinhold Kainhofer [EMAIL PROTECTED]: In particular, what is the scheme equivalent, producing the same as the following lilypond code? IChorObIScore = \score {

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

2008-02-18 Thread Han-Wen Nienhuys
2008/2/17, Reinhold Kainhofer [EMAIL PROTECTED]: Thanks for the hint... Works so far (see attached example). However, how can I define a function so that instead of scheme, i.e. \score { #(createscore test) } i can simply do: % This does NOT work (syntax error) \score {

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

2008-02-17 Thread Han-Wen Nienhuys
2008/2/13, Reinhold Kainhofer [EMAIL PROTECTED]: Hi all, In the large vocal and orchestral piece that I'm currently typesetting, I have lots of score and staff definitions, which look exactly the same, except for the variable names. Thus it would make tremendous sense to not hard-code them,

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

2008-02-17 Thread Reinhold Kainhofer
Am Sonntag, 17. Februar 2008 schrieb Han-Wen Nienhuys: 2008/2/13, Reinhold Kainhofer [EMAIL PROTECTED]: In particular, what is the scheme equivalent, producing the same as the following lilypond code? IChorObIScore = \score { \IChorObIStaff \header { piece = \IChorPieceName }

Doing \score { ...... } and \context Staff .... in scheme?

2008-02-13 Thread Reinhold Kainhofer
Hi all, In the large vocal and orchestral piece that I'm currently typesetting, I have lots of score and staff definitions, which look exactly the same, except for the variable names. Thus it would make tremendous sense to not hard-code them, but generate them on the fly by some scheme