[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Iterating music for voiceOne. Checking with equal?
From: |
Thomas Morley |
Subject: |
Iterating music for voiceOne. Checking with equal? |
Date: |
Thu, 26 Jul 2018 11:57:49 +0200 |
Hi,
I stumbled across
(equal? #{ \voiceOne #} voiceOne)
returning false.
Is it expected behaviour?
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
- Iterating music for voiceOne. Checking with equal?,
Thomas Morley <=