Re: chord.ly to extract notes from chords breaks with new Guile

2023-06-01 Thread Jean Abou Samra
Better make that: > ``` > \version "2.24.1" > > #(define ((Keep_only_engraver i) context) > ``` > ``` #(define ((Keep_only_performer i) context) ``` > > ``` > (let ((j 0)) > (make-performer > (listeners >((note-event performer event) > (unless (eqv? i j)

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-30 Thread Jean Abou Samra
Le mardi 30 mai 2023 à 20:39 -0400, msk...@ansuz.sooke.bc.ca a écrit : > I need, at each point in time, to have at most one note per track, exactly one > track per note, and silence in any leftover tracks, regardless of the > voice/chord structure of the music. That sounds like you want a

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-30 Thread mskala
On Wed, 31 May 2023, Gilles Thibault wrote: > Not hardly tested but this should work : Thanks for looking at it further. I hate to impose on you because I've already decided to solve this problem in external postprocessing of the MIDI files, so I hope you won't put a lot of effort into trying

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-30 Thread Gilles Thibault
in the hope of separating MIDI notes that don't have identical timing. That is, if my input is << { a1 } \\ { b2 2 } >> it would be nice to be able to separate it out into three separate outputs for separate MIDI channels, like: { a1 } { b2 c2 } { r2 d2 } Not hardly tested but

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-29 Thread mskala
On Mon, 29 May 2023, Gilles Thibault wrote: > chord.ly has been renamed to chordsAndVoices.ly (it deals also now with > Voices) > You can donwload it here : Thanks a lot! As far as I know, the new version works fine. The problem in the old version was just because of the non-breaking spaces in

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-29 Thread Gilles Thibault
Le 2023-05-27 22:31, msk...@ansuz.sooke.bc.ca a écrit : Back in 2015 people on the list helped me with extracting notes from chords, in this thread: https://lists.gnu.org/archive/html/lilypond-user/2015-09/msg00394.html chord.ly has been renamed to chordsAndVoices.ly (it deals also now

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-27 Thread Jean Abou Samra
Le samedi 27 mai 2023 à 17:38 -0400, msk...@ansuz.sooke.bc.ca a écrit : > On Sat, 27 May 2023, Jean Abou Samra wrote: > > > Are you sure that this is the correct example? That the file chord.ly it > > uses is the same as the one you sent? That LilyPond is the one you believe > > and unpatched,

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-27 Thread mskala
On Sat, 27 May 2023, David Kastrup wrote: > which contains a delirious number of unbreakable spaces, code \xa0 > instead of \x20 as for a normal, breakable space. Thanks! Correcting these seems to have fixed the problem, at least for the moment. I don't know why the old version needed *some*

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-27 Thread mskala
On Sat, 27 May 2023, Jean Abou Samra wrote: > Are you sure that this is the correct example? That the file chord.ly it > uses is the same as the one you sent? That LilyPond is the one you believe > and unpatched, etc. ? Yes, using the chord.ly file I attached to my message, extracted from the

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-27 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > Here's a small example showing the problem: > > \include "chord.ly" > music = { 1 } > { \extractNote #3 \music } > > In version 2.21.0 that produces a whole-note rest. In version 2.24.1 with > Guile 2.2 it gives this error output: > > GNU LilyPond 2.24.1

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-27 Thread Jean Abou Samra
Le samedi 27 mai 2023 à 16:31 -0400, msk...@ansuz.sooke.bc.ca a écrit : > Here's a small example showing the problem: > > \include "chord.ly" > music = { 1 } > { \extractNote #3 \music } > > In version 2.21.0 that produces a whole-note rest.  In version 2.24.1 with > Guile 2.2 it gives this