lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Experiment with an Alternative Notation for learning Guitar music


From: Paul Morris
Subject: Re: Experiment with an Alternative Notation for learning Guitar music
Date: Sat, 11 Jan 2014 07:21:55 -0800 (PST)

Hi Phil,  I'm replying to the whole list so others can also benefit from our
exchange.


Philip Rhoades wrote
> Thanks for that - I am starting make progress with the manual but could I
> impose on you once more so I can do some printing soon?  How do I use the
> stuff you have given me in the "Staff \with" format, with this sort of
> format:
> 
> \version "2.18.0"
> 
> upper = \relative c' {
>  e f fis g gis a ais b c cis d dis e
> }
> 
> lower = \relative c {
>  \clef bass
>  e f fis g gis a ais b c cis d dis e
> }
> 
> \score {
>  \new PianoStaff <<
>    \new Staff = "upper" \upper
>    \new Staff = "lower" \lower
>  >>
>  \layout { }
>  \midi { }
> }
> 
> - I couldn't get it to work and couldn't find an appropriate bit in the
> manual.

I think it's best to put the \with { ... } block after the individual staves
as shown here:

\version "2.18.0"

upper = \relative c' {
 e f fis g gis a ais b c cis d dis e
}

lower = \relative c {
 \clef bass
 e f fis g gis a ais b c cis d dis e
}

\score {
 \new PianoStaff
 <<
   \new Staff = "upper" \with {
     staffLineLayoutFunction = #ly:pitch-semitones
     \override StaffSymbol.line-positions = #'( -2 1 4 7 10 )
     \override StaffSymbol.ledger-positions = #'(-2 1 4 7 10)
     \override Stem.no-stem-extend = ##t
     \remove Accidental_engraver
   }
   {
     \upper
   }
   \new Staff = "lower" \with {
     staffLineLayoutFunction = #ly:pitch-semitones
     \override StaffSymbol.line-positions = #'( -2 1 4 7 10 )
     \override StaffSymbol.ledger-positions = #'(-2 1 4 7 10)
     \override Stem.no-stem-extend = ##t
     \remove Accidental_engraver
   }
   {
     \lower
   }
 >>
 \layout { }
 \midi { }
}

However, it looks like most of what you're doing now (so far) will actually
work if you put it after the \new PianoStaff except for \remove
Accidental_Engraver.  But in the long run I think it's more foolproof to
customize things at the individual staff level rather than at the PianoStaff
level.

And if you want to take this a step further... the way I do it with
Clairnote[1] is to define a custom staff context called "StaffClairnote"
that contains all the modifications.  This snippet shows how:
http://lsr.dsi.unimi.it/LSR/Item?id=882
(click the image to see the code that generated it)

Then I save that custom staff definition in a separate file that I include
at the beginning of my sheet music files like this (.ily just indicates a
.ly file that's meant for including like this):

\include "clairnote.ily"

Then I can just use:

\new PianoStaff
<<
\new StaffClairnote { \upper }
\new StaffClairnote { \lower }
>>

Another benefit to this approach is that if you should make a change to the
alternative notation, you can just make it in the include file in one place,
instead of having to make the same change in all of your sheet music files.

Let me know if you have further questions.

Regards,
-Paul

[1] see http://clairnote.org/software/



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Experiment-with-an-Alternative-Notation-for-learning-Guitar-music-tp157546p157637.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]