[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: review of a Mutopia file (why TabStaff gives error here?)
From: |
David Kastrup |
Subject: |
Re: review of a Mutopia file (why TabStaff gives error here?) |
Date: |
Tue, 27 Nov 2012 01:52:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
Thomas Morley <address@hidden> writes:
> 2012/11/26 Nick Payne <address@hidden>:
>
>> Thanks. I had a look at http://lsr.dsi.unimi.it/LSR/Item?id=857. However,
>> even with a single sequence, in some situations it doesn't handle braces
>> during the barre - e.g. if you try
>>
>> \barre V { c4 c c \times 2/3 { c8 c c } }
>>
>> there's no error indication but the spanner stops too soon at the start of
>> the tuplet. Interestingly, this problem only happens if the contained braces
>> terminate at the same point as the barre, as
>>
>> \barre V { c4 c \times 2/3 { c8 c c } c4 }
>>
>> continues the spanner to the correct note. I don't know enough about Scheme
>> to figure out what the problem is.
>>
>> Nick
>
> Hi Nick,
>
> thanks for testing.
>
> The problem is, that my code inserts the \stopTextSpan-equivalent
> before the last of the music-elements. In your example, _before_
> starting \times and not before the last note of \times.
Probably try something like
#(define (text-spanner-start-stop mus)
(let ((elts (extract-typed-music mus 'rhythmic-event)))
(for-each
(lambda (sel)
(let ((m (sel elts)))
(set! (ly:music-property m 'articulations)
(cons (make-music 'TextSpanEvent
'span-direction (sel '(-1 1)))
(ly:music-property m 'articulations)))))
(list last first)))
mus)
--
David Kastrup
- Re: review of a Mutopia file (why TabStaff gives error here?), (continued)
- Re: review of a Mutopia file (why TabStaff gives error here?), Federico Bruni, 2012/11/24
- Re: review of a Mutopia file (why TabStaff gives error here?), Nick Payne, 2012/11/25
- Re: review of a Mutopia file (why TabStaff gives error here?), Keith OHara, 2012/11/25
- Re: review of a Mutopia file (why TabStaff gives error here?), Nick Payne, 2012/11/26
- Re: review of a Mutopia file (why TabStaff gives error here?), Thomas Morley, 2012/11/26
- Re: review of a Mutopia file (why TabStaff gives error here?),
David Kastrup <=
- Re: review of a Mutopia file (why TabStaff gives error here?), Nick Payne, 2012/11/27
- Re: review of a Mutopia file (why TabStaff gives error here?), Thomas Morley, 2012/11/27
- Re: review of a Mutopia file (why TabStaff gives error here?), Nick Payne, 2012/11/27
- Re: review of a Mutopia file (why TabStaff gives error here?), Thomas Morley, 2012/11/28
- Re: review of a Mutopia file (why TabStaff gives error here?), Nick Payne, 2012/11/28
- Re: review of a Mutopia file (why TabStaff gives error here?), David Kastrup, 2012/11/29
- Re: review of a Mutopia file (why TabStaff gives error here?), Thomas Morley, 2012/11/27
Re: review of a Mutopia file (why TabStaff gives error here?), Keith E OHara, 2012/11/24
Re: review of a Mutopia file (why TabStaff gives error here?), Keith E OHara, 2012/11/24