2017-09-18 4:19 GMT+02:00 David F. <dav...@gmx.us>:
> If I have a score,
>
> myScore = \score { … }
>
> and I try to pass it into a function that expects music (ly:music?), I get an
> error:
>
> error: wrong type for argument 2. Expecting music, found #<Score>
>
> So if a score is not a music, what it is it? Where can I find that object
> described in Lilypond’s documentation? If I wanted to pass a score into a
> function, how would I specify its type?
>
> And ditto to all of the above for book and bookpart.
A score contains a music-expression, but maybe also layout, midi and header.
ly:score? is the correct predicate, see IR scheme-functions.
LM 3.1.1 f may be a good starting point.
Cheers,
Harm
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user