Re: How to enter explicit voices for use in Staff and TabStaff?

2015-03-27 Thread Keith OHara
Thomas Morley thomasmorley65 at gmail.com writes:

 Or any chance to get a neutral 'Bottom-context for use with LilyPond-syntax?
 

We have close, with

mus = \relative c'' {

  \context Bottom = 1 { \voiceOne c4 r c r }
  \context Bottom = 2 { \voiceTwo r a r a}
 }


  \new Staff  \clef G_8 \mus 
  \new TabStaff \mus




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to enter explicit voices for use in Staff and TabStaff?

2015-03-27 Thread Thomas Morley
2015-03-27 7:05 GMT+01:00 Keith OHara k-ohara5...@oco.net:
 Thomas Morley thomasmorley65 at gmail.com writes:

 Or any chance to get a neutral 'Bottom-context for use with LilyPond-syntax?


 We have close, with

 mus = \relative c'' {
 
   \context Bottom = 1 { \voiceOne c4 r c r }
   \context Bottom = 2 { \voiceTwo r a r a}
  }

 
   \new Staff  \clef G_8 \mus 
   \new TabStaff \mus


Hi Keith,

in one of my own attempts I tried (the not working code):

\relative c'' {

  \new Bottom { \voiceOne c4 r c r }
  \new Bottom { \voiceTwo r a r a }


Obviously the command has to be \context and the Bottom-contexts have
to be named.

I wasn't aware of the possibility you demonstrated.


Thanks a lot,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How to enter explicit voices for use in Staff and TabStaff?

2015-03-26 Thread Thomas Morley
Hi all,

consider the following code:

\version 2.19.17

mus =
\relative c'' {

  { \voiceOne c r c r }
  { \voiceTwo r a r a}

}


\new Staff  \clef G_8 \mus 
\new TabStaff \mus


It returns some warnings.
Although it could be resolved using the {...}\\{...} construct,
let us think about how to use explicit voices.
Though, using \new Voice like:

mus =
\relative c'' {

  { \voiceOne c r c r }
  \new Voice { \voiceTwo r a r a}

}


\new Staff  \clef G_8 \mus 
\new TabStaff \mus


ouputs an additional Staff, entering TabVoice would output an
additional TabStaff.
It's absolut clear to me why this happens, though how to code that
Staff _and_ TabStaff behave as wanted?
Best would be to have a neutral Bottom-context.
Though, I found no way to do it within LilyPond, best I can come up with is:


mus =
\relative c'' {

  { \voiceOne c r c r }
  %\new Voice { \voiceTwo r a r a}
  #(context-spec-music #{ \voiceTwo r a r a #} 'Bottom foo)

}


\new Staff  \clef G_8 \mus 
\new TabStaff \mus


Is there a better way to do it?
Or any chance to get a neutral 'Bottom-context for use with LilyPond-syntax?

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user