Re: [tablatures] tremolos in tablature |
[ Thread Index |
Date Index
| More lilynet.net/tablatures Archives
]
- To: Marc Hohl <marc@xxxxxxxxxx>
- Subject: Re: [tablatures] tremolos in tablature
- From: Neil Puttock <n.puttock@xxxxxxxxx>
- Date: Thu, 2 Sep 2010 00:46:31 +0100
- Cc: Carl Sorensen <c_sorensen@xxxxxxx>, Patrick Schmidt <p.l.schmidt@xxxxxx>, "tablatures@xxxxxxxxxxx" <tablatures@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=o50d/yHmyEYchT/i+uQtUi3X1UYQkthQEqU9Sn0yAhU=; b=njcBqwr0yVhhzJe2zFKvM7k2Bl1Qef+esbQJljVVCCgFAiMIcAgT80KItQMFVZvMfS B3XVVHnixU8oykj+z21jhInpRoyIPuvGjs5GqTM9BoJn3euL70eZ5X+VYSfBAEaLMpOj Fw+E7M7v4I7ViWotSSmaVTJeXo6umL8uLuO1o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sIhlYgvvh7M8C8vJ0yxwYGer3JDwEITkzUC4Pz3HRPsZXlShxMZDg1NEndcO7wlFBR 4hBgEgaeT02GsL9LWesNuNRNgNqG5sEBDhr78jFOgP80UtlNaLYYqMsEpWPX9h+Rt/De KZ8lrbniiyHYUx3DYe5n/hfiq0P7qmVX7oLxg=
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