[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replace ly:music elements in a Scheme function
From: |
David Kastrup |
Subject: |
Re: Replace ly:music elements in a Scheme function |
Date: |
Mon, 05 Mar 2018 18:48:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
paolo prete <address@hidden> writes:
> Thanks David,
> one last question: is it possible to _check_ if x is a rest or a note?
>
> (if... )
Sure. (if (music-is-of-type? x 'rest-event) ...) and 'note-event,
respectively. There is also 'event-chord for multiple note events in a
chord.
--
David Kastrup