Hello David,
thank you for answering!
Now I know about (make-module) and (module-define! ...) - these are the
two I was missing, while reading the guile 1.8 docs ...
So these are the set-book/score-headers! functions:
--snip--
(define-public (set-book-headers! book header)
(let ((bookhead
Jan-Peter Voigt jp.vo...@gmx.de writes:
So AFAICS there are at least 3 different ways to create a module to
use in a header:
1: (eval-string (define-module (a b)))
What's with the eval-string nonsense? Why don't you just use
(define-module (a b)) instead?
because: define-module can only be
Hello David,
sorry for this kind-a-basic-scheme-question(s) ... ;-)
How do I inject variables into an empty module?
I assume, the string-eval approach loads up the whole guile-tool-chain,
so that define is defined.
The function I am thinking of shall work like this:
pseudo-snip
Jan-Peter Voigt jp.vo...@gmx.de writes:
sorry for this kind-a-basic-scheme-question(s) ... ;-)
How do I inject variables into an empty module?
I assume, the string-eval approach loads up the whole
guile-tool-chain, so that define is defined.
The function I am thinking of shall work like
Jan-Peter Voigt jp.vo...@gmx.de writes:
On 02.03.2012 10:30, David Kastrup wrote:
Jan-Peter Voigtjp.vo...@gmx.de writes:
Hello David, hello lists,
now, when we have a book-predicate, we are dealing with books in
scheme. And then we might want to set a header after creating a book
Hello David, hello lists,
now, when we have a book-predicate, we are dealing with books in scheme.
And then we might want to set a header after creating a book.
There is a function ly:score-set-header!, which I copied and adapted for
the Book-class.
This patch compiled and works
Jan-Peter Voigt jp.vo...@gmx.de writes:
Hello David, hello lists,
now, when we have a book-predicate, we are dealing with books in
scheme. And then we might want to set a header after creating a book.
There is a function ly:score-set-header!, which I copied and adapted
for the Book-class
On 02.03.2012 10:30, David Kastrup wrote:
Jan-Peter Voigtjp.vo...@gmx.de writes:
Hello David, hello lists,
now, when we have a book-predicate, we are dealing with books in
scheme. And then we might want to set a header after creating a book.
There is a function ly:score-set-header!, which I
Again: Thank you, David!
So now (with upcoming 2.15.31 or 2.16) one can write functions like:
--snip--
bookif = #(define-scheme-function (parser location book pred)(ly:book?
procedure?)
(if (pred parser location)(collect-bookpart-for-book parser book) ))
--snip--
to conditionally add
Jan-Peter Voigt jp.vo...@gmx.de writes:
Am 24.02.2012 um 16:24 schrieb:
Jan-Peter Voigt jp.vo...@gmx.de writes:
Hello list,
when I use books or bookparts for (scheme-)function arguments, I
haven't found the predicate for it.
paper-book? is something else, or am I missing something?
Hello list,
when I use books or bookparts for (scheme-)function arguments, I haven't
found the predicate for it.
paper-book? is something else, or am I missing something?
Cheers, Jan-Peter
___
lilypond-user mailing list
lilypond-user@gnu.org
Hello list,
when I use books or bookparts for (scheme-)function arguments, I haven't
found the predicate for it.
paper-book? is something else, or am I missing something?
Cheers, Jan-Peter
___
lilypond-user mailing list
lilypond-user@gnu.org
Jan-Peter Voigt jp.vo...@gmx.de writes:
Hello list,
when I use books or bookparts for (scheme-)function arguments, I
haven't found the predicate for it.
paper-book? is something else, or am I missing something?
Well, you can always use scheme? and file a feature request in the mean
time.
Thank you David,
the scheme?-solution is what I do right now. I will send a feature request next
days.
Cheers, Jan-Peter
Am 24.02.2012 um 16:24 schrieb David Kastrup d...@gnu.org:
Jan-Peter Voigt jp.vo...@gmx.de writes:
Hello list,
when I use books or bookparts for (scheme-)function
14 matches
Mail list logo