[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doc bug: beams
From: |
Carl Sorensen |
Subject: |
Re: Doc bug: beams |
Date: |
Sun, 27 Sep 2009 10:26:49 -0600 |
On 9/27/09 3:27 AM, "Nicolas Sceaux" <address@hidden> wrote:
> Le 27 sept. 09 à 10:40, Nicolas Sceaux a écrit :
>
>> or is it considered too advanced for this section?
>
> Oops, actually this is poor advice, as it does not work well with beam
> setting reverts.
> Maybe that:
>
> %% at the end of scm/beam-settings.scm
> #(define-public (change-beam-setting time-signature rule-type grouping-
> rule beam-settings)
> "Change a default beam setting rule. It does not modify the `beam-
> settings' argument,
> but returns a modified copy."
> (let* ((new-beam-settings (list-copy beam-settings))
> (current-beam-setting (assoc (list time-signature rule-
> type) new-beam-settings)))
> (if current-beam-setting
> (set-cdr! current-beam-setting (append grouping-rule (cdr
> current-beam-setting)))
> (set! new-beam-settings (cons (cons (list time-signature
> rule-type) grouping-rule)
> new-beam-settings)))
> new-beam-settings))
>
> \layout {
> \context {
> \Score
> beamSettings = #(change-beam-setting '(4 . 4) 'end '(((1 . 8) .
> (2 2 2 2))) default-beam-settings)
> }
> }
I'll look into this.
Thanks,
Carl