[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: part combiner
From: |
kristof |
Subject: |
Re: part combiner |
Date: |
Wed, 8 Jun 2005 19:47:47 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.3a-9.EL3 |
<address@hidden> wrote:
> address@hidden wrote:
>>>address@hidden wrote:
>>>
>>>>Hi, I am not sure of the function of Recording_group_engraver. What
>>>>should I change, and how will it change the scheme code?
>>>>>From looking at the c++ code it doesn't appear to do much.
>>>>If it records the time signature, then will it be added between the
>>>>other
>>>>events?
>>>>
>>>
>>>the Recording_group_engraver now records events. You could also record
>>>changes to properties. The result is a vector, which is
>>>read out from
>>>
>>> make-part-combine-music
>>>
>>>(see scm/part-combiner.scm).
>>
>>
>> As far as I can see the music events are recorded in try_music. Which
>> method do I have to add to record property changes?
>
> Try process_music(). You will have to read the properties, check them
> against values in the previous time steps, and modify the data structure
> where events are stored to also contain property values.
>
> <snip>
> --
> Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
>
Ok, I think I understand most of it. Just one question, is there a method
which get called before the first events are handled? That would be
useful to get the initial values for the properties.
Thanks,
Kristof Bastiaensen