Re: detecting the start and end of a polyphonic passage from scheme

2020-07-01 Thread Maurits Lamers
Hi all, The way the staff is usually printed (through format and display) already gave me that idea, but it is good to see it confirmed. Let me try to sketch my problem and perhaps you could help me find an answer on how to achieve it. I am trying to find a way that I can serialize the voices

Re: detecting the start and end of a polyphonic passage from scheme

2020-07-01 Thread Thomas Morley
Am Mi., 1. Juli 2020 um 11:08 Uhr schrieb Maurits Lamers : > > Hi all, > > Follow up question: is there a way to know the "parent" of the voices as they > are defined in the code? > In the following example, I would like to determine that voice "two" splits > off from voice "one" without relying

Re: detecting the start and end of a polyphonic passage from scheme

2020-07-01 Thread Aaron Hill
On 2020-07-01 2:07 am, Maurits Lamers wrote: Follow up question: is there a way to know the "parent" of the voices as they are defined in the code? In the following example, I would like to determine that voice "two" splits off from voice "one" without relying on the context-id.

Re: detecting the start and end of a polyphonic passage from scheme

2020-07-01 Thread Maurits Lamers
Hi all, Follow up question: is there a way to know the "parent" of the voices as they are defined in the code? In the following example, I would like to determine that voice "two" splits off from voice "one" without relying on the context-id. (ly:context-parent ctx) gives me the staff, not the

Re: detecting the start and end of a polyphonic passage from scheme

2020-06-25 Thread Maurits Lamers
Hi, Great solution, thanks a lot! cheers Maurits > On 2020-06-25 7:01 am, Maurits Lamers wrote: > Hi all, > > I am trying to build a system based on the listener system which can > identify voices in a piece of music. > I use a listener to the Voice context to give me the note events. > >

Re: detecting the start and end of a polyphonic passage from scheme

2020-06-25 Thread Aaron Hill
On 2020-06-25 7:01 am, Maurits Lamers wrote: Hi all, I am trying to build a system based on the listener system which can identify voices in a piece of music. I use a listener to the Voice context to give me the note events. In the following passage I can use (ly:context-id