[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variables
From: |
Euler |
Subject: |
Re: Variables |
Date: |
Sun, 2 Jun 2019 10:45:18 -0700 (MST) |
Hello Karl,
let me give you the full context:
in the code file I have the music code
sonate.ly contains
PartMfluteVoiceOne = \relative fis' {
\clef "treble" \key d \major \time 3/4
d'2 ^"Menuetto" e8( d) }
PartMViolinVoiceOne = \relative fis' {
\clef "treble" \key d \major \time 3/4
fis2^"Menuetto" g8( fis)}
you can see here that i've put twice the Markup Menuetto
in an other file flute-part.ly
\score {
<<
\new Staff <<
\set Staff.instrumentName = "Flûte"
\set Staff.shortInstrumentName = "Fl."
\context Staff <<
\context Voice = "PartMfluteVoiceOne" { \PartMfluteVoiceOne
}
>>
>>
>>
\layout {}
}
in an other for the violin:
\score {
<<
\new Staff <<
\set Staff.instrumentName = "Violin"
\set Staff.shortInstrumentName = "Vl."
\context Staff <<
\context Voice = "PartMViolinVoiceOne" {
\PartMViolinVoiceOne }
>>
>>
>>
\layout {}
}
until here all is fine for the parts. The issue is when i want to join the
2parts to make a score:
sonate-score.ly contain:
\score {
<<
\new Staff <<
\set Staff.instrumentName = "Flute"
\set Staff.shortInstrumentName = "Fl."
\context Staff <<
\context Voice = "PartMfluteVoiceOne" { \PartMfluteVoiceOne
}
>>
>>
\new Staff <<
\set Staff.instrumentName = "Violin"
\set Staff.shortInstrumentName = "vl."
\context Staff <<
\context Voice = "PartMViolinVoiceOne" {
\PartMViolinVoiceOne }
>>
>>
>>
\layout {}
\midi{}
}
if i want to keep only one source file sonate.ly for both parts and the full
score i need a way to be able to manage the markup separately depending if i
wan to print the parts or the score as i do not want to duplicate the source
file (sonate.ly)
hope this is more clear.
thanks for your help
regards
Christophe
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html