Re: Extract notes from chords, with silence when there are none

2015-09-17 Thread mskala
On Thu, 17 Sep 2015, Gilles THIBAULT wrote: > So Chris, the last change you have to make in the code is to change > > line 73 (in \extractNote definition) > (extract-note music n)) > > by > > (extract-note (event-chord-wrap! music) n)) Assuming you mean me... I just found a message I thought I'd

Re: Extract notes from chords, with silence when there are none

2015-09-17 Thread Gilles THIBAULT
> Wrap the whole expression in event-chord-wrap! before handling it. The > LSR issue is probably from before issue 2240 changed the representation > of single notes. > No, it is because "chord.ly" deals only with chords and keeps notes unchanged. But yes, event-chord-wrap! is a quick way here to

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > On Thu, 17 Sep 2015, msk...@ansuz.sooke.bc.ca wrote: >> On my first few attempt to load this page the server didn't respond, but >> it seems to work now, and yes, that looks like it does what I want. > > I spoke too soon: the code doesn't handle single notes (no

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread mskala
On Thu, 17 Sep 2015, msk...@ansuz.sooke.bc.ca wrote: > On my first few attempt to load this page the server didn't respond, but > it seems to work now, and yes, that looks like it does what I want. I spoke too soon: the code doesn't handle single notes (non-chords), so it's not a complete solutio

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread mskala
On Wed, 16 Sep 2015, Thomas Morley wrote: > Is my recent coding here: > http://www.lilypondforum.de/index.php?topic=2080.msg11479#msg11479 > of any help? On my first few attempt to load this page the server didn't respond, but it seems to work now, and yes, that looks like it does what I want. Tha

REĀ : Extract notes from chords, with silence when there are none

2015-09-16 Thread Gilles Thibault
ProvenanceĀ : Courrier pour Windows 10 > That's right. I just want any two notes that play simultaneously to be > returned by separate index values into the extraction function, and any > other index values to return something that will be silent (either a skip > or a rest). I don't want t

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread Thomas Morley
2015-09-16 17:20 GMT+02:00 : > On Wed, 16 Sep 2015, David Kastrup wrote: >> > Just to clarify, in the case of 3-voice music, how would you expect it to >> > deal with a 2 note chord? >> > >> > One note to Treble, one to Bass, or one in Treble, one in Alto, or... what? >> >> As I read him, he does

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread mskala
On Wed, 16 Sep 2015, David Kastrup wrote: > > Just to clarify, in the case of 3-voice music, how would you expect it to > > deal with a 2 note chord? > > > > One note to Treble, one to Bass, or one in Treble, one in Alto, or... what? > > As I read him, he does not care. First note anywhere, second

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread David Kastrup
Chris Yate writes: > Just to clarify, in the case of 3-voice music, how would you expect it to > deal with a 2 note chord? > > One note to Treble, one to Bass, or one in Treble, one in Alto, or... what? As I read him, he does not care. First note anywhere, second note anywhere else, skip in the

Re: Extract notes from chords, with silence when there are none

2015-09-16 Thread Chris Yate
Just to clarify, in the case of 3-voice music, how would you expect it to deal with a 2 note chord? One note to Treble, one to Bass, or one in Treble, one in Alto, or... what? Chris On 16 September 2015 at 13:07, wrote: > I'd like to take a passage of music that contains chords with differing