Lilypond: Personalizza stanghette, in modo ricorsivo, automaticamente?
-
24-09-2019 - |
Domanda
su cui sto lavorando Carnatic spartiti musicali che coinvolgono le firme di tempo complessi, che richiederà stanghette modificati
del reticolo a stanghette per: 8/4
beats: 1 2 3 4 (dashed bar here) 5, 6 (Dotted Bar) 7, 8 (double bar)
Ecco una barra di punteggio effettivo
g16( f) d8 ees( ees) d16( c d8) bes16[( d c bes \bar "dashed"
a g]) a[( bes c] d[ c d]) \bar ":"
g8( f16) ees8( d16 c d) \bar "||"
C'è un modo per automatizzare queste stanghette?
Soluzione
Dare questo una prova. Non è completamente automatizzato in quanto è necessario avere una voce "invisibile" assegnato per specificare le stanghette, ed è necessario tenere traccia di come molte misure questa forma di blocco delle esigenze di estendere e specificare un valore di unfold appropriata. La "s", se non si conosce già, è un distanziale invisibile, con durata come un periodo di riposo.
\version "2.13.19"
fooBar = { s1 \bar "dashed" s2 \bar ":" s2 \bar "||" }
\new Staff <<
\new Voice = "theMusic" \relative c'' {
% bar 1
g16( f) d8 ees( ees) d16( c d8) bes16[( d c bes
a g]) a[( bes c] d[ c d])
g8( f16) ees8( d16 c d)
% bar 2
g16( f) d8 ees( ees) d16( c d8) bes16[( d c bes
a g]) a[( bes c] d[ c d])
g8( f16) ees8( d16 c d)
}
\new Voice = "theBarLines" { \repeat unfold 2 \fooBar }
>>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow