Re: [tablatures] tremolos in tablature

[ Thread Index | Date Index | More lilynet.net/tablatures Archives ]


On 30 August 2010 15:17, Marc Hohl <marc@xxxxxxxxxx> wrote:
> Marc Hohl schrieb:
>>
>> Neil Puttock schrieb:
>>>
>>> On 28 August 2010 16:17, Carl Sorensen <c_sorensen@xxxxxxx> wrote:
>>>
>>>
>>>>
>>>> Why not use 1/staff-space?  This would adjust things regardless of how
>>>> staff-space was tweaked, wouldn't it?
>>>>
>>>
>>> Yes.  A simple helper function using ly:staff-symbol-staff-space would
>>> suffice (apart from 'beam-width, which needs a wrapper around
>>> ly:stem-tremolo::calc-width).
>>>
>>
>> Thanks you both for your answers, I'll try to include all your proposals..
>> I think uploading to Rietveld does now make more sense, what do you think?
>
> Adding just <10 lines to the code, I just send you another patch directly..

LGTM; will push soon.

Cheers,
Neil

> +;; normal staves; this wrapper function scales accordingly:
> +(define-public (stem-tremolo::calc-tab-width grob)
> +  (let* ((width (ly:stem-tremolo::calc-width grob))

let

> +         (staff-space (ly:staff-symbol-staff-space grob)))
> +        (/ width staff-space)))

indent

> +

rogue newline



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/