On 4 July 2015 at 17:17, David Kastrup d...@gnu.org wrote:
You are thinking of LilyPond/Scheme as a procedural language here.
(begin
( … )
( … )
( … )
( … )
( … )
( … )
( … ))
Oops :-)
Vaughan
___
lilypond-user mailing list
Am 04.07.2015 um 09:17 schrieb David Kastrup:
[...]
You are thinking of LilyPond/Scheme as a procedural language here. What
happens here is that you calculate a suitable override and, well, throw
it away. The return value of this function, calculated later as arg,
does not care what you have
Am 04.07.2015 um 10:08 schrieb David Kastrup:
[...]
Well, I'm not enthusiastic about both code and interface. The problem
with the code is that
{ c'8-\parenthesize-1 [ f'8] }
will no longer compile.
Ah, I see.
The first reason for that is that one-paren
parenthesize will not work for any
Marc Hohl m...@hohlart.de writes:
Now I got
\version 2.19.20
lparenthesize =
#(define-music-function (arg) (ly:music?)
(_i Tag @var{arg} to be left parenthesized.)
(if (memq 'event-chord (ly:music-property arg 'types))
;; arg is an EventChord - set the parenthesize property
Hi list,
my scheme-fu is a bit rusty, so I tried to get a new start
by enhancing the parenthesize function defined in
ly/music-functions-init.ly with the code to be found in
http://lsr.di.unimi.it/LSR/Snippet?id=902
Here is what I have so far:
\version 2.19.20
parenthesize =
Marc Hohl m...@hohlart.de writes:
my scheme-fu is a bit rusty, so I tried to get a new start
by enhancing the parenthesize function defined in
ly/music-functions-init.ly with the code to be found in
http://lsr.di.unimi.it/LSR/Snippet?id=902
Here is what I have so far:
\version 2.19.20
Am 04.07.2015 um 09:17 schrieb David Kastrup:
[...]
You are thinking of LilyPond/Scheme as a procedural language here. What
happens here is that you calculate a suitable override and, well, throw
it away. The return value of this function, calculated later as arg,
does not care what you have
Marc Hohl m...@hohlart.de writes:
\version 2.19.20
parenthesize =
#(define-music-function (dir arg) ((number? 0) ly:music?)
(_i Tag @var{arg} to be parenthesized. @arg{dir} is optional and may be
set to @code{#LEFT} or @code{#RIGHT} for left/right parentheses only.)
(if (memq
Am 04.07.2015 um 11:12 schrieb Marc Hohl:
[...]
I remember getting such error messages in combination with some
unbalanced parentheses, but my editor tells me that this is not the case
here :-(
Found it!
It was unbalanced ''s in the doc string here!
Marc
Am 04.07.2015 um 10:08 schrieb David Kastrup:
[...]
Well, I'm not enthusiastic about both code and interface.
What about
\version 2.19.20
#(define (set-paren-property arg)
(if (memq 'event-chord (ly:music-property arg 'types))
;; arg is an EventChord - set the parenthesize property
10 matches
Mail list logo