Re: Modify a NoteEvent to RestEvent

2018-03-11 Thread David Kastrup
paolo prete writes: > 2018-03-11 8:26 GMT+01:00 David Kastrup : > >> paolo prete writes: >> >> > Hello. >> > Do you know how to modify a NoteEvent so that it becomes a RestEvent, or >> > (vice-versa) in Scheme? >> >> You can't. >> > > Why do you say that I can't, if changing the 'name property d

Re: Modify a NoteEvent to RestEvent

2018-03-11 Thread paolo prete
2018-03-11 8:26 GMT+01:00 David Kastrup : > paolo prete writes: > > > Hello. > > Do you know how to modify a NoteEvent so that it becomes a RestEvent, or > > (vice-versa) in Scheme? > > You can't. > Why do you say that I can't, if changing the 'name property did the job (look at the snippet belo

Re: Modify a NoteEvent to RestEvent

2018-03-10 Thread David Kastrup
paolo prete writes: > Hello. > Do you know how to modify a NoteEvent so that it becomes a RestEvent, or > (vice-versa) in Scheme? You can't. > I tried: > > (ly:music-set-property! x 'name 'RestEvent) > > The note actually becomes a rest, but I don't know if it's the proper way > to obtain that,

Modify a NoteEvent to RestEvent

2018-03-10 Thread paolo prete
Hello. Do you know how to modify a NoteEvent so that it becomes a RestEvent, or (vice-versa) in Scheme? I tried: (ly:music-set-property! x 'name 'RestEvent) The note actually becomes a rest, but I don't know if it's the proper way to obtain that, because if I display the scheme object with \disp