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: David Kastrup
Subject: Re: Using 'scheme?' as predicate in a markup function.
Date: Mon, 15 Feb 2016 00:35:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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]