|
From: | Urs Liska |
Subject: | Re: Iterating music for voiceOne. Checking with equal? |
Date: | Thu, 26 Jul 2018 12:20:05 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Am 26.07.2018 um 11:57 schrieb Thomas Morley:
Hi, I stumbled across (equal? #{ \voiceOne #} voiceOne) returning false. Is it expected behaviour?
Check with \displayMusic, but I'd suspect that #{ \voiceOne #} might add an additional layer of sequential-music around the variable.
Urs
And is the condition in the function below robust? check = #(define-music-function (mus) (ly:music?) (music-map (lambda (m) (if (equal? m #{ \voiceOne #}) ;; below will never be #t ;(equal? m voiceOne) (begin (display "\nvoiceOne found\n") m) m)) mus)) \check { \voiceOne c'1 \voiceTwo c'1 } Thanks, Harm _______________________________________________ lilypond-user mailing list address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |