lilypond-user
[Top][All Lists]
Advanced

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

Re: Using 'scheme?' as predicate in a markup function.


From: Pierre Perol-Schneider
Subject: Re: Using 'scheme?' as predicate in a markup function.
Date: Mon, 15 Feb 2016 05:26:59 +0100

Yess!
Thank you David.

2016-02-15 0:35 GMT+01:00 David Kastrup <address@hidden>:
Pierre Perol-Schneider <address@hidden> writes:

> Hi,
>
> After some fights with 'draw-line thickness in a score containing numbers
> of arrows I've created this markup function:
> http://lsr.di.unimi.it/LSR/Item?id=1026
> My intention was to stick to the 'arrow-head syntax. So it goes:
>
> #(define-markup-command (foo layout props  axis  direction) (scheme?
> scheme?)
>   (interpret-markup layout props
>     (if (and (eq? axis X)(eq? direction 1))
>         (markup "foo")
>         (markup "no foo"))))
>
> I've never use 'scheme? before. Could this be problematic? If yes, is there
> any other way?

ly:dir? maybe.

--
David Kastrup


reply via email to

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