[tablatures] parallelMusic |
[ Thread Index |
Date Index
| More lilynet.net/tablatures Archives
]
Hi all,
I have some questions for you ;-)
Some days ago I needed to insert a double glissando and I used the
trick explained here (add a new voice with hidden notes):
http://lsr.dsi.unimi.it/LSR/Snippet?id=303
My problem was how to implement it in the template I often use, which
is set - I think - to be with two voices only. Here it is:
upper= {
}
lower= {
}
\score {
\new StaffGroup <<
\new Staff = "guitar" <<
\context Voice = "upper guitar" { \clef "G_8" \voiceOne \upper }
\context Voice = "lower guitar" { \clef "G_8" \voiceTwo \lower }
>>
\new TabStaff = "tab" <<
\context TabVoice = "upper tab" { \clef "moderntab" \voiceOne
\upper }
\context TabVoice = "lower tab" { \clef "moderntab" \voiceTwo
\lower }
>>
>>
}
I guess I could add a third variable which acts as a third voice, but
it would not be that handy to write.. and it's not worth to add a new
variable just because I need a third voice in one or two measures in
the whole piece.
So I found out \parallelMusic, which is very interesting and handy
because you can see all the voices in a measure with a single glance
(no need to scroll from one variable to another).
And using \parallelMusic I managed to get what I wanted (double
glissando): please see the easy example attached.
As I'm thinkig I'll use it as my new default template, I wonder which
could be the drawbacks if I use \parallelMusic instead of the template
above..
I mean, I was never recommended to use it by expert users.. so that's
why I'm suspicious ;-)
Thanks for your help!
Federico
--
http://gnurag.net/blog/
http://fsfe.org/
http://groups.fsf.org/wiki/LibrePlanetItalia
\version "2.13.8"
\parallelMusic #'(VoiceA VoiceB VoiceC) {
% Bar 1
<a c>4 \glissando <b\3 d>2. |
r4 e,,2. |
\hideNotes a'4 \glissando b2.\3 |
% Bar 2
}
% New template
\new StaffGroup <<
\new Staff { \clef "G_8" \relative c' << \VoiceA \\ \VoiceB \\ \VoiceC >> }
\new TabStaff { \clef "moderntab" \relative c' << \VoiceA \\ \VoiceB \\ \VoiceC >> }
>>
%% Old template
%{
\score {
\new StaffGroup <<
\new Staff = "guitar" <<
\context Voice = "upper guitar" { \clef "G_8" \voiceOne \upper }
\context Voice = "lower guitar" { \clef "G_8" \voiceTwo \lower }
>>
\new TabStaff = "tab" <<
\context TabVoice = "upper tab" { \clef "moderntab" \voiceOne \upper }
\context TabVoice = "lower tab" { \clef "moderntab" \voiceTwo \lower }
>>
>>
}
%}