Re: Opposite hand indicator

2014-10-18 Thread Michael Rivers
Thank you!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Opposite-hand-indicator-tp167641p167664.html
Sent from the User mailing list archive at Nabble.com.

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


Opposite hand indicator

2014-10-17 Thread Abraham Lee

Greetings, All!

I just though I'd share a little solution I made up for piano notation 
when you want to indicate that a note or chord or whatever should be 
played by the opposite hand. It uses the \finger function and \set 
fingerOrientations override to place them in the right spot. There are 
two versions of each kind, with and without the text annotations l.h. 
for left hand and r.h. for right hand. They should be easy to 
customize if you want to make it look different than I've done it or 
use text for another language other than English. 

This really could use a dedicated engraver, probably pulling much of 
the functionality from the FingeringEngraver, but this should work for 
most cases as it is. Enjoy!


Happy Engraving,
Abraham
\version 2.18.2

% Hand indicators
%   Note: To use these correctly, the note MUST be part of a chord, even
%   if it's by itself, using, for example, the following syntax:
%
%   \set fingeringOrientations = #'(left)
%   c\finger \lhMark  % or \lhMarkText to add l.h. to the mark
%
lhMarkText = \markup { 
  \concat {
\override #'(font-encoding . latin1) \italic l.h.  
\path #0.1 #'((moveto 0 -0.5)(rlineto 0 1.5)(rlineto 0.5 0))
  }
}
rhMarkText = \markup { 
  \concat {
\override #'(font-encoding . latin1) \italic r.h.  
\path #0.1 #'((moveto 0 1)(rlineto 0 -1.5)(rlineto 0.5 0))
  }
}
lhMark = \markup { 
  \path #0.1 #'((moveto -1 0)(rlineto 0 1.5)(rlineto 0.5 0))
}
rhMark = \markup { 
  \path #0.1 #'((moveto -1 0)(rlineto 0 -1.5)(rlineto 0.5 0))
}

\relative c'' {
  c4-1 
  d-2 
  \set fingeringOrientations = #'(left)
  c\finger \lhMarkText f\finger \markup \tied-lyric #4~3 
  c\finger \rhMark\finger 2 - 3
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user