lilypond-user
[Top][All Lists]
Advanced

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

Re: Help needed - missing .pdf file after running lilypond sucessfully.


From: MING TSANG
Subject: Re: Help needed - missing .pdf file after running lilypond sucessfully.
Date: Sun, 26 Sep 2010 11:18:10 -0700 (PDT)

Carl,

I mess up Mark Polesky and Carl Sorensen as Mark Sorensen.  Sorry!
What does it mean "top post in lilypond"?

The following code produce large numbers when using noteHeadOn with number.  When I copy the same Ez_numbers_engraver and EzNum onto my other .ly file I did not get the larger number effect. I have no idea what's wrong.

Ming.

<><><> .ly file
\version "2.13.33"
#(ly:set-option 'delete-intermediate-files #f)
\header {
%  #(before-title-space 10\mm)    
  title = "The Lord Is In His Holy Temple"
  subtitle = "主在聖殿中 "
  poet = "詞"
  composer = " 曲"
  meter = \markup { "D" "4/4" }
 
  enteredby="ymingT"
  maintainer="ymingT"
  texidoc = ""
}

ignoreMelisma =    \set ignoreMelismata = ##t
ignoreMelismaOff = \unset ignoreMelismata
#(define Ez_numbers_engraver
   (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))
                          (grob-pitch
                           (ly:event-property (event-cause grob) 'pitch))
                          (grob-name (ly:pitch-notename grob-pitch))
                          (delta (modulo (- grob-name tonic-name) 7))
                          (note-names
                           (make-vector 7 (number->string (1+ delta)))))
                     (ly:grob-set-property! grob 'note-names note-names))))))))

#(set-global-staff-size 20)

EzNum = {
         \override Staff.StaffSymbol #'staff-space = #2.25
         \override Staff.StaffSymbol #'line-thickness = #1.25
         \override Staff.NoteHead #'font-size = #+2.75
         \override Staff.Clef #'font-size = #+2.25
         \override Staff.TimeSignature #'font-size = #+2.25
         \override Staff.Accidental #'font-size = #+2.25
         \easyHeadsOn
         \override Voice.NoteHead #'font-size = #-0.25
        }
\paper  {
                %#(set-global-staff-size (* 5.8 mm))
  indent = #(* mm 0)
  line-width = #(* mm 180)
  interscoreline = 2.\mm
  between-system-space = 36\mm
  ragged-bottom = ##t
}

\include "english.ly"
TimeKey = { \time 4/4  \key d \major  }   % \partial 4
SopMusic   = \relative c' {
    \EzNum 
    fs2 fs4 fs | fs( g) fs2 |                        %bar 01-02
    a2 a4 a | a( b) a2 |                            %bar 03-04
    g4. g8 g4 g | fs2 r4 b4 |                        %bar 05-06
    a4 fs d e | fs2 fs4( g) |                        %bar 07-08
    e1 | d2 r4 d4 |                                %bar 09-10
    d2 r4 d4 | d2 r4 d4 |                            %bar 11-12
    d2 cs2 | d1 |                                %bar 13-14
    d1 | d1 |                                %bar 15-16
              }
AltoMusic  = \relative c' {
    \EzNum
    \override NoteHead #'color = #blue
    d2 d4 d | d2 d2 |                            %bar 01-02
    fs2 fs4 fs | fs2 fs |                            %bar 03-04
    g4. g8 e4 e | cs2 s4 d4 |                        %bar 05-06
    d4 d d d | d2 d |                            %bar 07-08
    d2( cs2) | a2 s4 a4 |                            %bar 09-10
    b2 s4 d4 | a2 s4 a4 |                            %bar 11-12
    b2 a2 | a1 |                                %bar 13-14
    b1 | a1 |                                %bar 15-16
              }
TenorMusic = \relative c  {
    \EzNum
    a'2 a4 a4 | a4( b4) a2 |                        %bar 01-02
    c2 cs?4 cs4 | c4( d4) cs2 |                        %bar 03-04
    b4. b8 b4 b4 | as2 r4 g4 |                        %bar 05-06
    a4 a4 b4 b4 | a2 a2 |                            %bar 07-08
    a2( g2) | fs2 r4 fs4 |                            %bar 09-10
    fs2 r4 fs4 | fs2 r4 fs4 |                        %bar 11-12
    g2 g2 | fs1 |                                %bar 13-14
    g1 | fs1 |                                %bar 15-16
                          }
BassMusic  = \relative c  {
    \EzNum
    \override NoteHead #'color = #red
    d2 d4 d4 | d2 d2 |                            %bar 01-02
    d2 d4 d4 | d2 d2 |                            %bar 03-04
    e4. e8 e4 e4 | fs2 s4 g4 |                        %bar 05-06
    f4 d4 b4 g4 | a2 a2 |                            %bar 07-08
    a1 | d2 s4 cs4 |                            %bar 09-10
    b2 s4 b4 | a2 s4 a4 |                             %bar 11-12
    g2 a2 | d1 |                                %bar 13-14
    d1 | d1 |                                %bar 15-16
                 }

PianoRHand = \relative c' {
    << {d'8 bf8 ef8 d8 a'8 g8 bf8 a8} \\ {f,2\mf df'2} >> |            %bar 01
                         }
PianoLHand = \relative c {
    bf'2 a2 | g2 gf2 | f2^\markup{poco rit.} f,2 |                %bar 01-03
                         }
                        
VerseOne   = \lyricmode {
主 在 聖 | 殿 中 | 主 在 聖 | 殿 中 |
普 天 下 的 | 人 在 | 主 面 前 都 |
應 當 | 肅 | 靜  肅 | 靜 肅 |
靜 應 | 當 肅 | 靜 | 阿 | 們 |
                        }
%VerseTwo   = \lyricmode { voice two  }
%VerseThree = \lyricmode { }
%VerseFour  = \lyricmode { |

\score {
  \new GrandStaff = "GrandStaff_score" <<   
    \new ChoirStaff <<
      \tempo 4 =  90
      \set Score.markFormatter = #format-mark-box-numbers
      \new Staff <<
        \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
        \clef "treble"
        \new Voice = "Sop"  { \voiceOne  \TimeKey \SopMusic  }
        \new Voice = "Alto" { \voiceTwo  \TimeKey \AltoMusic }
         \new Lyrics \lyricsto "Sop" { \VerseOne   }
%        \new Lyrics \lyricsto "Sop" { \VerseTwo   }
%        \new Lyrics \lyricsto "Sop" { \VerseThree }
%        \new Lyrics \lyricsto "Sop" { \VerseFour  }
      >>
      \new Staff <<
        \clef "bass"
        \new Voice = "Tenor" { \voiceOne \TimeKey \TenorMusic }
        \new Voice = "Bass"  { \voiceTwo \BassMusic  }
      >>
    >>
%    \new PianoStaff <<
%      \new Staff = "RH" { \TimeKey  \PianoRHand }
%      \new Staff = "LH" { \TimeKey \clef bass \PianoLHand }
%    >>
  >>

  \layout {
    \context {
    \RemoveEmptyStaffContext
    \override VerticalAxisGroup #'remove-first = ##t
%    \Voice
     \consists \Ez_numbers_engraver
    }
  }
  \midi { }
}




From: Carl Sorensen <address@hidden>
To: MING TSANG <address@hidden>; Ian Hulin <address@hidden>
Cc: "address@hidden" <address@hidden>
Sent: Sun, September 26, 2010 9:07:32 AM
Subject: Re: Help needed - missing .pdf file after running lilypond sucessfully.

On 9/26/10 6:49 AM, "MING TSANG" <address@hidden> wrote:

> Ian,
>
> Thank you. I follow your prescribed steps and my problem is resolved. Thank
> you. My problem starts when I install multiple versions: v2.13.32 in default
> and 2.6.5 & 2.12.3 in its own folders.  v2.6.5 is the last install I did. Now
> my computer is clean up. I have only v2.13.33.  I went to lilypond.org and I
> didn't see v2.13.34 as you suggested to use.

As of right now, the following website:

<http://lilypond.org/web/install/#2.13>

list 2.13.34-1 as the current development release.
>
> Lilypond users:  I want to use mup2ly.py, but it is in v2.6.5 How can I use it
> with v2.13.33 and up. I don't want go through the problem of installing multi
> versions of lilypond. Is it possible to include mup2ly.pf with v2.13.33 and
> up?
>
> More questions / help require:
> (1). How can I increase the fontsize of the numbers in easyHeadOn with
> numbers.  The following .ly produce number too small when in print (hardcopy).
> I have been trying very hard but in vain.

Please generate a small snippet that shows what you have tried.  I have sent
you  a snippet that increases the font size in easy heads.  I have tested
it and it works.  I'll be happy to help you work through these issues, but
we should do it on a small snippet, instead of a big file.

> (2). It seems that I lost tagline on my last page. What happened?
> (3). Apprceiate snippet for generating midi file for voice part - ie soprano,
> alto, tenor bass. My intention is to provide voice part for choir member to
> practice.

I think that you can create separate scores with midi blocks for the
individual parts.

\version 2.13
soprano = \relative c'' {
  c d e
}

alto  = \relative c'' {
  a b c
}

\score {
  \new Staff {
    <<
      \soprano
      \alto
    >>
  }
  \layout {}
}

\score {
  \soprano
  \midi{}
}

\score {
  \alto
  \midi{}
}


> (4). Is it possible to print title on every page?

Search the user archives for "header on every page".


HTH,

Carl

P.S. Please don't top post on lilypond lists.  It's against our list
etiquette.


reply via email to

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