2017-04-17 14:21 GMT+02:00 Andrew Bernard :
> Hi Simon,
>
> It's the signum function sgn of course,
Ofcourse.
> implemented in racket as sgn, but
> not in guile or the SRFI's with guile AFAIK.
Don't know racket, but it's not in guile, afaik.
> You could also say in Scheme:
>
> (define (sgn n)
>
Hi Simon,
It's the signum function sgn of course, implemented in racket as sgn, but
not in guile or the SRFI's with guile AFAIK.
You could also say in Scheme:
(define (sgn n)
(cond ((negative? n) -1)
((positive? n) 1)
(else 0)))
A dozen ways to implement, of course, Would be
Am 16.04.2017 um 19:29 schrieb Thomas Morley:
#(define (sign x)
(if (= x 0)
0
(if (< x 0) -1 1)))
I can hardly imagine that default guile or any SRFI doesn’t already
provide such a function – unfortunately I’m not well-versed enough to
know… Anyone?
Best, Simon
___
Thanks for the fix, but I think I'll wait for the next release.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
2017-04-16 15:00 GMT+02:00 Thomas Morley :
> 2017-04-16 12:59 GMT+02:00 Robert Murdoch :
>> When I adjust my score's size with #(layout-set-staff-size N) and the score
>> has a tempo with a metronome mark, the metronome mark's stem gets longer if
>> the size is smaller, and shorter if the size is l
2017-04-16 12:59 GMT+02:00 Robert Murdoch :
> When I adjust my score's size with #(layout-set-staff-size N) and the score
> has a tempo with a metronome mark, the metronome mark's stem gets longer if
> the size is smaller, and shorter if the size is larger. There should be
> examples attached at si
When I adjust my score's size with #(layout-set-staff-size N) and the
score has a tempo with a metronome mark, the metronome mark's stem gets
longer if the size is smaller, and shorter if the size is larger. There
should be examples attached at sizes 20 and 12 to show you.
The question is, how