[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about eval-string
From: |
Malte Meyn |
Subject: |
Re: Question about eval-string |
Date: |
Sat, 2 Mar 2019 13:30:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 |
Am 02.03.19 um 13:06 schrieb Paolo Cantamessa:
%this doesn't work
<<
$(map eval-string '("voiceA" "voiceB"))
>>
The map returns a list which means that the 'elements of the
SequentialMusic (produced by << >>) is a list of lists instead of a list.
Try the following and have a look at the output produced by \displayMusic:
%%%%%%%%%%%%%%%%%%%%
\version "2.19.82"
voiceA = { e' f' g' }
voiceB = { c' d' e' }
%this works
\displayMusic <<
$(eval-string "voiceA")
$(eval-string "voiceB")
>>
%this works too
$(make-music
'SimultaneousMusic
'elements
(map eval-string '("voiceA" "voiceB")))
%%%%%%%%%%%%%%%%%%%%