|
From: | tisimst |
Subject: | Re: Switching on/off instrument staff |
Date: | Wed, 8 Jul 2015 10:43:30 -0700 (MST) |
Abraham:
You just gave me a wonderful solution, I'll explain myself:
My current file layout is like this:
formato.ly
\version "2.19.15"
\include "snippets.ly" % file with lots of snippets (really)
\include "tipografia.ly" % typographies
\layout {
% some overrides here
}
% some format snippets here:
formatoPerc = { \stemDown }
voice_with_piano_example.ly
\include "formato.ly"But now I've realized that \score should be declared in a separate file, something like voz_y_piano.ly, and there I can easely comment out the piano staff for all my files at once, avoiding both pain and human mistakes.
control { } % this normaly stays empty, but can be used to add code to the voice without "polluting" it
voz = { a4 b c }
verso = \lyricmode { la la la }
pianoDer = { a4 b c }
pianoIzq = {a4 b c }
dinamicas = { s4\pp s4 s4\f } % some dynamics here
\score {
<<
\new Staff \with { instrumentName = \vozSolo } << % this variable is defined in formato.ly
\new Voice \voz
\addlyrics \verso
\new Voice \control
>>
\new PianoStaff \with { instrumentName = \pianoIns } <<
\new Staff = "MD" <<
\new Voice \pianoDer
\new Dynamics \dinamicas
>>
\new Staff = "MI" {
\clef bass
\pianoIzq
}
>>
>>
}
Thanks again to all of you for your support. Best regards,
Víctor.
[Prev in Thread] | Current Thread | [Next in Thread] |