[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Personalizar número de compases dentro de repeticiones con casillas
From: |
Francisco Vila |
Subject: |
Re: Personalizar número de compases dentro de repeticiones con casillas |
Date: |
Tue, 21 Sep 2021 11:57:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Aparentemente has encontrado un bug. Según mi entendimiento, el 12(16)
es en realidad 12, y el 13(17) es en realidad el 16, no es que queramos
forzar la numeración, es que no está correctamente numerado.
El 21/9/21 a las 1:39, Kelvin Angeles escribió:
\version "2.23.3"
#(define (double-bar-number increase-amount)
(lambda (barnum measure-pos alt-number context)
#{
\markup {
\line {
#(robust-bar-number-function barnum measure-pos alt-number
context)
\concat { (
#(robust-bar-number-function
(+ increase-amount barnum) measure-pos alt-number context) )
}
}
}
#}
)
)
musica = \relative c'' {
\override MultiMeasureRest.expand-limit = #3
\compressEmptyMeasures
| R1*7
| r4 b a g
\set Score.barNumberFormatter = #(double-bar-number 4)
\repeat volta 2 {
| fis1~
| fis4 b a g
\break
| fis1~
}
\alternative {
{ | fis4 b a g }
{ | b8 b a a g g fis fis }
}
\set Score.barNumberFormatter = #robust-bar-number-function
\set Score.currentBarNumber = #17
| b b a a g g fis fis
}
\score {
\new Staff \musica
\layout{
\override Score.SystemStartBar.collapse-height = #1
\override Score.BarNumber.break-visibility = #end-of-line-invisible
\override Score.BarNumber.direction = #DOWN
}
}
--
Francisco Vila, Ph.D. - Badajoz (Spain)