[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Coda : pas de renvoi 2 avec \set Score.repeatCommands = #' ((volta "2°")
From: |
gegeours |
Subject: |
Coda : pas de renvoi 2 avec \set Score.repeatCommands = #' ((volta "2°")) c'4 ~ c8^\markup \italic "Al Trio" \stemDown c32 [bes a {g] \petitBemol #-2 \set Score.repeatCommands = #' ((volta #f))\bar "||" } |
Date: |
Tue, 2 Jun 2020 08:47:39 -0700 (MST) |
Bonjour à tous,
J'ai un petiti problème qui vient de survenir. je n'ai pas le renvoi 2 après
avoir codifié :
\set Score.repeatCommands = #' ((volta "2°"))
c'4 ~ c8^\markup \italic "Al Trio" \stemDown c32 [bes a {g] \petitBemol
#-2 \set Score.repeatCommands = #' ((volta #f))\bar "||" }
Voici le code :
\version "2.18.2"
#(allow-volta-hook "|")
#(allow-volta-hook "||")
voltaPourSuivre = \markup\text "Pour suivre"
voltaPourTrio = \markup\text "Pour Trio"
\header {
title = "Marche du Coucou"
instrument = "Accordéon"
composer = "Yvette Horner"
tagline = \markup {
Gravé avec LilyPond, un logiciel gratuit et libre
\concat { ( \with-url #"http://lilypond.org" http://lilypond.org ) }
}
}
\paper {
system-system-spacing.padding = #0
oddFooterMarkup = \markup \fill-line {
\center-column {
\line { \fontsize #-4 \fromproperty #'header:title }
\on-the-fly #last-page \line { \fontsize #-1 \fromproperty
#'header:tagline }
\italic \line {
\fontsize #-1 {
GR le #(strftime "%d %b %Y" (localtime (current-time)))
}
}
}
}
}
\layout {
\override Score.BarNumber #'color = #red
\override Score.BarNumber #'font-shape = #'italic
\override Score.BarNumber #'font-size = #0.2
% pour "aérer" la partition (chiffre final entre 0.5 et 5) (funca !)
%
\override Score.NonMusicalPaperColumn #'padding = #2
}
global = {
\time 2/4
\override Staff.Fingering.direction = #DOWN
\accidentalStyle PianoStaff.modern
}
petitBemol =
#(define-music-function (num) (number?)
#{
\once \override BreathingSign.stencil =
#(lambda (grob)
(grob-interpret-markup grob
(markup
(make-raise-markup num
(make-parenthesize-markup (make-flat-markup)))
(make-hspace-markup .5))))
\breathe
#})
right = \relative c' {\key c \major
\partial 8
g''8 \autoBeamOff ^\markup {\italic \smaller "Mouvement de marche"}
e g' e g,
e g' e \autoBeamOn g,16 g
g8 gis a ais
b4 r8 g \bar "||"
\noBeam e8^ \markup \musicglyph #"scripts.segno" \ottava #1
g'8 [ e]\ottava #0 g,
[ e]\ottava #1 g' [ e]\ottava #0 g,16 g
<dis fis>8 <e g> <f a> <e g>
<e g> <es ges> <d f> f\noBeam
\autoBeamOff d8\ottava #1 f [ d]\ottava #0 f
[ d]\ottava #1 f' [ d]\ottava #0 g,16 [ g]
\autoBeamOn <b, d>8 <d f> <d g> <d f>
<d f> <c e> \autoBeamOff <c e> g'\noBeam
e\ottava #1 g [ e]\ottava #0 g
e\ottava #1 g' [ e]\ottava #0 g,16 [ g]
\autoBeamOn <dis fis>8 <e g> <f a> <e g>
<e g> <es ges> <d f> f\noBeam
\autoBeamOff d8\ottava #1 f' [ d]\ottava #0 f,
[ d]\ottava #1 f' [ d]\ottava #0 g,16 [ g]
fis8 [ g] a [ b]\mark \markup { \musicglyph #"scripts.coda"} \bar "||"
c4^\markup \italic "Poursuivre" r \set Score.repeatCommands = #' ((volta
"1°")) \bar "||"
}
rightI = \relative c' {
\set Score.repeatCommands = #' ((volta "2°"))
c'4 ~ c8^\markup \italic "Al Trio" \stemDown c32 [bes a {g] \petitBemol
#-2 \set Score.repeatCommands = #' ((volta #f))\bar "||" }
\autoBeamOn \stemUp c16 aes c aes c aes c aes
\stemDown es' c es c es c es c
f es c es c es c es
e c a c g4
a'16 g f g a8 f
g16 f e f g8 e
f16 e d e f d b d
e d c d e8 c
a'16 g f g a8 f
g16 f e f g8 e
<<
{g,16 a b c d e f g}
\\
{s16 s g, a b c d e}
>>
<f a>8 <d f b> <e g e'>\noBeam g \mark \markup {\musicglyph
#"scripts.segno"} \bar "||"
}
rightII = \relative c' {\key f \major
f8 <c f a> <c f a> r
r <c f a> <c f a> r
\repeat volta 2 {a'16 bes b c a' e g f
e f d e c d a bes
c f, a c f, a c e
d4 r8 bes'
g\ottava #1 \noBeam bes' [ g] \ottava #0 bes,
[ g]\ottava #1 bes' [ g] \ottava #0 bes,
g bes a16 g f e
d4 c
a16 bes b c a' e g f
e f d e c d a bes
c\noBeam d, e fis g a bes c
d4 r
des16 ces des f aes f des f
c' a f d a' f d c
g' f e d c bes a g \bar "||"}
\alternative {
{ f4 8 c\noBeam}
{f,4 8 g\mark \markup {\musicglyph #"scripts.segno"} \bar "||" \key c
\major}
}
}
rightCoda = \relative c' {
e''4 r8 g,
e\noBeam \ottava #1 g' [ e]\ottava #0 g,
[ e] \ottava #1 g' [ e] \ottava #0 g,
e4 *
<c e g c>4 r \bar "||"
}
left = \relative c' {
r8
R1*2/4
r4 r8 <g b d>16 <g b d>
q8 q q q
q4 g,
\repeat unfold 3 { c8 <c' e> g, <c' e>}
d, <b' d> g, <b' d>
b, <g' b d> g, <g' b d>
b, <g' b d> g, <g' b d>
b, <g' b d> g, <g' b d>
\repeat unfold 4 { c, <c' e> g, <c' e>}
d, <b' d> g, <b' d>
b, <g' b d> g, <g' b d>
b, <g'b d> g, <g' b d>
d <b' d> g, <b' d>
\set Score.repeatCommands = #'((volta "1"))
}
leftI = \relative c {
c'8 g c, {r\petitBemol #-2 \set Score.repeatCommands = #' ((volta #f))\bar
"||" }
\repeat unfold 4 {aes'8 <c es> es, <c' es>}
c, < c' e> g <c e>
f, d, <f a f'>
e <g c> c, <g' c>
g * gis *
a <c e> g <c e>
f, d, <a' d f>
e <g c> c, <g' c>
<g b f'> r r4
r8 g [ c,] r8
}
leftII = \relative c {
\key f \major
<f, f'>4 r8 c'
<f, f'>4 r8 c'
\repeat unfold 3 {f c, < a' c>}
e <bes' c> c, <bes' c>
e, <bes' c> es, <bes' c>
d, <bes' c> des, <bes' c>
c, <bes' c> bes, <bes' c>
aes, <f' b d> g, <bes' c e>
\repeat unfold 2 {f c, <a' c>}
fis d, <a' c>
g <bes d> g <bes d>
aes <ces des f> f, <ces' des f>
a <c f> f,
e <bes' c> c, <bes' c>
f c f, r
f' c f, r \key c \major
}
leftCoda = \relative c {
c'8 g c, r
R1*2/4
R1*2/4
r4 <g g'>
c r
}
%% Image de logo.
\markup {
\with-dimensions #'(0 . -0) #'(0 . 1)
\translate #'(-3 . -1)
\epsfile #X #15 #"/home/gerard/Documents/Mespartitions/accordéon.eps"
}
accords = \chordmode {
}
accordsI = \chordmode {
}
accordsII = \chordmode { s2.*17 }
accordsCoda = \chordmode { }
%% Trois partitions :
\score {
\new PianoStaff <<
\new Staff = "right" { \global \right \rightI }
\new ChordNames { \frenchChords \accords \accordsI }
\new Staff = "left" { \clef bass \global \left \leftI }
>>
\layout { }
%% Pas de midi -vv
}
\score {
\new PianoStaff \with { instrumentName = \markup\center-column {
\musicglyph #"scripts.coda" "TRIO" }}
<<
\new Staff = "right" { \global \rightII }
\new ChordNames { \frenchChords \accordsII }
\new Staff = "left" { \clef bass \global \leftII }
>>
\layout { }
%% Pas de midi -vv
}
\score {
\new PianoStaff \with {
instrumentName = \markup \center-column {
\musicglyph #"scripts.coda" "CODA"
}
} <<
\new Staff = "right" { \global \rightCoda }
\new ChordNames { \frenchChords \accordsCoda }
\new Staff = "left" { \clef bass \global \leftCoda }
>>
\layout { ragged-last = ##f }
%% Pas de midi -vv
}
%% Nouveau bloc \score rien que pour le midi :
\score {
\new Staff \with {
midiInstrument = "accordion"
} <<
{\right \rightI \right \rightII \right \rightCoda }
{\left \leftI \left \leftII \left \leftCoda }
>>
%% pas de \layout ici -vv
\midi { }
}
Je n'arrive pas à mettre le 2 al Trio ?
Pourtant il me semblait l'avoir bien mis.
Merci pour votre aide.
--
Sent from: http://lilypond-french-users.1298960.n2.nabble.com/
- Coda : pas de renvoi 2 avec \set Score.repeatCommands = #' ((volta "2°")) c'4 ~ c8^\markup \italic "Al Trio" \stemDown c32 [bes a {g] \petitBemol #-2 \set Score.repeatCommands = #' ((volta #f))\bar "||" },
gegeours <=