lilypond-user
[Top][All Lists]
Advanced

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

Re: Iterating music for voiceOne. Checking with equal?


From: Urs Liska
Subject: Re: Iterating music for voiceOne. Checking with equal?
Date: Thu, 26 Jul 2018 12:39:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0



Am 26.07.2018 um 12:32 schrieb Thomas Morley:
2018-07-26 12:20 GMT+02:00 Urs Liska <address@hidden>:

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.
Hi Urs,

thanks for your reply.

Though:

#(format #t "\nequal? ~a"
   (equal?
     (with-output-to-string (lambda () (display-lily-music voiceOne)))
     (with-output-to-string (lambda () (display-lily-music #{ \voiceOne #})))))

returns true.

What I meant is


voiceOne = { c' d' e' }

#(displayMusic voiceOne)
#(displayMusic #{ \voiceOne #})

But in fact that returns the same expressions as well.
So you should better go with David's insight ...

Thanks




reply via email to

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