lilypond-user
[Top][All Lists]
Advanced

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

Re: What is a score?


From: Thomas Morley
Subject: Re: What is a score?
Date: Mon, 18 Sep 2017 10:18:54 +0200

2017-09-18 4:19 GMT+02:00 David F. <address@hidden>:
> 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



reply via email to

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