lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieve (remaining) duration of beam (in C++)


From: Carl Sorensen
Subject: Re: Retrieve (remaining) duration of beam (in C++)
Date: Sat, 19 Dec 2015 05:43:54 +0000
User-agent: Microsoft-MacOutlook/14.5.8.151023


On 12/18/15 12:52 PM, "Urs Liska" <address@hidden> wrote:

>
>
>Am 18.12.2015 um 18:35 schrieb Carl Sorensen:
>>
>> On 12/18/15 9:49 AM, "address@hidden
>>on
>> behalf of Urs Liska" <address@hidden
>>on
>> behalf of address@hidden> wrote:
>>
>>
>>> If I could either retrieve the start_moment of the note *after* the
>>> current beam *or* the duration of the last item in infos_ I could
>>> calculate the value I need (I think). Or maybe there's a different
>>> solution altogether?
>> I believe that you can use the Beaming_pattern::end_moment(i) to get the
>> end_moment of the stem at infos_[i].
>
>Thanks Carl. This seems to bring me further.
>Although I was convinced it wouldn't work as end_moment actually counts
>beamlets - and I need this function during the calculation of the
>beamlet count. I expected it to cause a loop or something, but it seems
>to work, and now I seem to have at least one side of the division
>feature the right number of beams.

Every stem needs to have enough beamlets for its duration.

Subdivision just says whether they extend to the left, right, or both
sides.

Carl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]