|Subject:||Re: Replace ly:music elements in a Scheme function|
|Date:||Mon, 5 Mar 2018 18:38:33 +0100|
paolo prete <address@hidden> writes:
> I see.
> Then I ask if is it possible at least, by placing a simple instruction
> inside lambda (x y) ( ...) while iterating, to:
> 1) replace x with a rest
> 2) add a list of articulations (for example: "->", "\mp") to x
>> No. x and y are values stored in lists. The relation to their lists
>> is not passed into your function, so you cannot change it there.
>> You'd need to use something like pair-for-each to modify the first
>> list in-place, and that gets old fast as music structures change.
>> There is an actual reason functions like map-some-music are provided.
|[Prev in Thread]||Current Thread||[Next in Thread]|