Folks,
is it possible for a scheme function to return a whole \book ?
test = #(define-scheme-function (suffix) (string?) #{
\book {
\bookOutputSuffix #suffix
\score {
d4
}
}
#} )
\test
causes a "Bad expression type" error.
In
http://lilypond.1069038.n5.nabble.com/Dynam
Lukas-Fabian Moser writes:
> Folks,
>
> is it possible for a scheme function to return a whole \book ?
>
> test = #(define-scheme-function (suffix) (string?) #{
> \book {
> \bookOutputSuffix #suffix
> \score {
> d4
> }
> }
> #} )
>
> \test
>
> causes a "Bad expression type"
Hi David,
\test apparently expects a string argument.
Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:
\version "2.19.82"
test = #(define-scheme-function (suffix) (string?) #{
\book {
\bookOutputSuffix #suffix
\score {
d4
}
}
#} )
\test "surnam
Lukas-Fabian Moser writes:
> Hi David,
>> \test apparently expects a string argument.
>
> Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:
>
> \version "2.19.82"
>
> test = #(define-scheme-function (suffix) (string?) #{
> \book {
> \bookOutputSuffix #suffix
> \
\version "2.19.82"
test = #(define-scheme-function (suffix) (string?) #{
\book {
\bookOutputSuffix #suffix
\score {
d4
}
}
#} )
\test "surname"
(still) causes a "Bad expression type" error.
Ah, well. Turns out that copying the code for \xxx here where \xxx was
a
Lukas-Fabian Moser writes:
>>> \version "2.19.82"
>>>
>>> test = #(define-scheme-function (suffix) (string?) #{
>>> \book {
>>> \bookOutputSuffix #suffix
>>> \score {
>>> d4
>>> }
>>> }
>>> #} )
>>>
>>> \test "surname"
>>>
>>> (still) causes a "Bad expression type" er
Hi David,
> Does anybody have an idea what is supposed to distinguish
> a book from a bookpart outside of actual
>
> \book {
> \bookpart { ... } }
>
> usage?
You can’t have multiple book parts in a single output file?
That’s the way I understand it.
K.
Kieren
Kieren MacMillan writes:
> Hi David,
>
>> Does anybody have an idea what is supposed to distinguish
>> a book from a bookpart outside of actual
>>
>> \book {
>> \bookpart { ... } }
>>
>> usage?
>
> You can’t have multiple book parts in a single output file?
> That’s the way I understand it.
"
On 2019-01-15 4:11 pm, Kieren MacMillan wrote:
Hi David,
Does anybody have an idea what is supposed to distinguish
a book from a bookpart outside of actual
\book {
\bookpart { ... } }
usage?
You can’t have multiple book parts in a single output file?
That’s the way I understand it.
Is th
Here's an oddity:
\version "2.19.82"
test = #(define-scheme-function (suffix) (string?) #{
\book { \bookOutputSuffix $suffix \score { b'4 } } #} )
foo = \test "foo"
bar = \test "bar"
\foo \bar
This works.
-- Aaron Hill
___
lilypond-user m
Am Mi., 16. Jan. 2019 um 00:14 Uhr schrieb David Kastrup :
>
> Lukas-Fabian Moser writes:
>
> > Hi David,
> >> \test apparently expects a string argument.
> >
> > Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:
> >
> > \version "2.19.82"
> >
> > test = #(define-scheme-fun
On 2019-01-15 4:40 pm, Aaron Hill wrote:
Here's an oddity:
\version "2.19.82"
test = #(define-scheme-function (suffix) (string?) #{
\book { \bookOutputSuffix $suffix \score { b'4 } } #} )
foo = \test "foo"
bar = \test "bar"
\foo \bar
Oops. Probably shouldn't go around redefining \
Thomas Morley writes:
> Am Mi., 16. Jan. 2019 um 00:14 Uhr schrieb David Kastrup :
>>
>> Lukas-Fabian Moser writes:
>>
>> > Hi David,
>> >> \test apparently expects a string argument.
>> >
>> > Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:
>> >
>> > \version "2.19.82"
Aaron Hill writes:
> Here's an oddity:
>
>
> \version "2.19.82"
> test = #(define-scheme-function (suffix) (string?) #{
> \book { \bookOutputSuffix $suffix \score { b'4 } } #} )
> foo = \test "foo"
> bar = \test "bar"
> \foo \bar
>
>
> This works.
For historical reasons. It cannot r
Hi Aaron,
Going back to the original function posted, if the output is meant to
be a book that is more-or-less immutable and ready for printing, one
could just do the following instead:
\version "2.19.82"
test = #(define-void-function (suffix) (string?)
(print-book-with-defaults #{
15 matches
Mail list logo