Hi, Pierre:

On Sunday, April 27, 2014 6:52:36 PM, MING TSANG <tsan...@rogers.com> wrote:
 
Pierre,
Thank you. You save my day.
Emmanuel,
Ming.
On Sunday, April 27, 2014 6:37:18 PM, Pierre Perol-Schneider 
<pierre.schneider.pa...@gmail.com> wrote:
 
2014-04-28 0:07 GMT+02:00 MING TSANG <tsan...@rogers.com>:

 
I try to code the following two lines for male staff
>    instrumentName = \markup \center-column { "T." "B." }
>    shortInstrumentName = \markup \center-column { "T." "B." }
>and I got the following error:  Updated .ly is attached.  Where should I place 
>the two lines?


See enclosed,

HTH

~Pierre 



I remove the \EzNum from Female staff; I am expecting to see normal staff 
display, but it give me the easyNoteheadsOn .  I want female Staff display 
normal staff and male staff display as selfege noteheads. Any idea to resolve 
this.  Sorry that I impose so much problems on you. I appreciate your patience 
with me.
Emmanuel,
Ming
\version "2.19.5"

\language "english"

#(define solfege (circular-list "d" "r" "m" "f" "s" "l" "t"))
#(define numbers (circular-list "1" "2" "3" "4" "5" "6" "7"))

#(define (Ez_noteheads-engraver lst )
   (list
    (cons 'acknowledgers
      (list
       (cons 'note-head-interface
         (lambda (engraver grob source-engraver)
           (let* ((context (ly:translator-context engraver))
                  (tonic-pitch (ly:context-property context 'tonic))
                  (tonic-name (ly:pitch-notename tonic-pitch))
                  (delta (- 7 tonic-name))
                  (solfege-base lst)
                  (solfege (take (drop solfege-base delta) 7))
                  (note-names (apply vector solfege)))
             ; (display solfege)(newline)
             (ly:grob-set-property! grob 'note-names
               note-names))))))))

EzON = {
  \easyHeadsOn
  \override StaffSymbol.staff-space = #1.25  
  \override StaffSymbol.line-thickness = #1.25  
  \override NoteHead.font-size = #+3.25  
  \override Clef.font-size = #+1.35  
  \override TimeSignature.font-size = #+1.35  
  %\override Accidental.font-size = #+1.35  
  \override NoteHead.font-size = #-5.0  
}

EzNum = \with { \consists #( Ez_noteheads-engraver numbers ) } 
#(define eznum  #( Ez_noteheads-engraver numbers )) 
EzSol = \with { \consists #( Ez_noteheads-engraver solfege   ) } 
ezsol =   #( Ez_noteheads-engraver solfege   )

% {
#(set-global-staff-size 26)

globalii = {
  \key c \major
  \numericTimeSignature
  \time 3/4
}
SA = { \globalii
 
  
  <<{\voiceOne c''4. b'8 }\new Voice{\voiceTwo d'4 c'4  }>> \oneVoice <f'a'>4 |%m27
  <e'g'>4 r4 q4 | <d'f'>4 <c'e'>4 <c'f'>4 |%m28-29
  <b d'>4 <c'a'>4 <b g'>4 |%m30
  <<{\voiceOne e'2.^~ | e'4}\new Voice{\voiceTwo d'4( c'2~ | c'4)}>> \oneVoice %m31-32.
  r4 g'4 |%m32..
  
}
TB = { \globalii

  <e g>4 q4 <f c'>4 | <c c'>4 r4 q4 |%m27-28 
  <d a>4 q4 <<{\voiceOne a8( g8)}\new Voice{\voiceTwo d4}>> \oneVoice |%m29 
  <g,f>4 q4 q4 |<c g>2.~ q4 r4 g4 |%m30-32
  
  
}

\score {
  \new ChoirStaff <<
    \new Staff  
     
    <<
      \new Voice = "female"   
      \SA 
    >>
   
    \new Staff 
    \EzSol  
    {
      \set Staff.instrumentName = \markup \center-column { "T." "B." }
      \set Staff.shortInstrumentName = \markup \center-column { "T." "B." }
      <<
        \clef bass
        \new Voice = "male"   
        \voiceOne 
        \TB 
      >>
    }
  >>
  \layout { 
    \context { 
      \Score
      \EzON 
    }
  }
}


%{
convert-ly.py (GNU LilyPond) 2.19.5  convert-ly.py: Processing `'...
Applying conversion: 2.19.2
%}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to