Thanks David,
one last question: is it possible to _check_  if x is a rest or a note?

(if...      )

I just made an easier implementation of the function, but I need this
check...

2018-03-05 18:12 GMT+01:00 David Kastrup <d...@gnu.org>:

> paolo prete <paoloprete...@gmail.com> 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
>
> No.
>
> > 2) add a list of articulations (for example:  "->", "\mp") to x
>
> Yes.
>
> Same reason:
>
> >> 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.
>
> --
> David Kastrup
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to