Fontmap Ghostscript error

2013-10-20 Thread Nicholas Moe
Hello,

I have a fresh install of Lilypond 2.17.28 in my home directory (under
~/local/opt/lilypond-2.17.28) on CentOS release 6.4. I do not have sudo
powers. When I try to compile this file, named test.ly:

\version 2.17.28
{
  c' e' g' e'
}

using lilypond test.ly, I get:

warning: `(gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28
-dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH
-r1200 -sDEVICE=pdfwrite -sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps)'
failed (256)

fatal error: failed files: test.ly

And if I invoke using lilypond --verbose test.ly, I get, at the end of the
output,

GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Fontmap entry for Fontmap.local ends prematurely!  Giving up.
warning: `(gs -dSAFER -dDEVICEWIDTHPOINTS=595.28
-dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH
-r1200 -sDEVICE=pdfwrite -sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps)'
failed (256)

fatal error: failed files: test.ly

But if I invoke gs separately, using

 gs -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite
-sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps

I get:

GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.

And test.ps is successfully converted to PDF.

Why is this happening?

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


Re: why does lily prints both a natural and sharp sign?

2011-06-11 Thread Nicholas Moe
On p. 125 of my Gardner Read (1964), it says:
To cancel the double flat and restore the original single flat, it
was formerly required—as cited in the rules on page 123—to write a
natural sign plus the single flat. Today the tendency is to use merely
the single flat-sign without the natural. It may be less academic, but
its meaning is perfectly clear, and it is simpler to write.

Cheers,

Nick

2011/6/11 Marc Mouries m...@mouries.net:


 2011/6/11 Janek Warchoł lemniskata.bernoull...@gmail.com

 
  I've looked at Ted Ross, Kurt Stone, Gardner Read and Elaine Gould and
  can't
  find any explicit mention of this.

 AFAIK this was a common practice in XIXth century engraving (a period
 that LilyPond tries to mimic), but it is considered now obsolete, at
 least by some people
 (http://icking-music-archive.org/lists/sottisier/sottieng.pdf page 6).

 HTH,
 Janek


 thanks for the link that's really interesting. I know that Lilypond's goal
 is to produce score similar to manual hand-graved scores but should lilypond
 try to mimic obsolete XIXth century engraving rules?


 Would it be useful to the lilypond community to generate a lilypond version
 of the excerpt in the referenced document Essay on the true art of music
 engraving?

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



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


Re: Consistent bar number positioning

2011-06-11 Thread Nicholas Moe
Thank you! That works!

It does put bar numbers on every staff, though. To fix it, change the
#'break-visibility option in each staff. Tthis is what part of my
\score block looks like:

%% Begin excerpt

\new ChoirStaff

\new Staff = womenChoirOne

\override Staff.BarNumber #'break-visibility = #'#(#f #t #t)
\set Staff.barNumberVisibility = #(every-nth-bar-number-visible 
5)
\new Voice = SopranosChoirOne { 
\looksSlower{\sopranosChoirOneMusic} }
\new Voice = AltosChoirOne { 
\looksSlower{\altosChoirOneMusic} }
\new Lyrics \with { alignAboveContext = womenChoirOne } {
\lyricsto SopranosChoirOne { \sopranosChoirOneText }
}
\new Lyrics \lyricsto AltosChoirOne { \altosChoirOneText }

\new Staff = menChoirOne

\override Staff.BarNumber #'break-visibility = #'#(#f #f #f)
\new Voice = TenorsChoirOne { 
\looksSlower{\tenorsChoirOneMusic} }
\new Voice = BasesChoirOne { 
\looksSlower{\basesChoirOneMusic} }
\new Lyrics \with { alignAboveContext = menChoirOne } {
\lyricsto TenorsChoirOne { \tenorsChoirOneText }
}
\new Lyrics \lyricsto BasesChoirOne { \basesChoirOneText }



%% End excerpt

The only problem now is that the bar numbers are a little too cozy to
the brackets when they fall at the beginning of a line. But I fixed
that, too. You can do one of two things:

1. Put this before the first note of a measure that has a number and
falls at the beginning of a system:

\once \override Staff.BarNumber #'X-offset = #-3

OR

2. Turn the bar number centering option on in your \context { \Staff }
block (this fixes it automatically by slightly raising the bar number
to clear the top of the bracket—I actually think it looks quite nice):

\override BarNumber #'self-alignment-X = #CENTER

I noticed that this is also a way to put bar numbers on each group,
i.e. if you have a two-choir piece with a ChoirStaff for each choir,
each ChoirStaff can have bar numbers if you set these options at the
beginning of that group's top staff:

\override Staff.BarNumber #'break-visibility = #'#(#f #t #t)
\set Staff.barNumberVisibility = #(every-nth-bar-number-visible 5) %
or however often you want bar numbers to be visible

Again, thanks, Eluze, and I hope this will be of help to anyone who
wants to do something similar in the future.

Cheers,

Nick





On Fri, Jun 10, 2011 at 4:47 PM, -Eluze elu...@gmail.com wrote:


 Nicholas Moe wrote:

 Thanks, Eluze. That worked in my example, but in the actual score, it
 doesn't. The spacing is still inconsistent, especially after line
 breaks. I'm including a better example of what happens.

 maybe the extra-offset wasn't a good idea since when there is a rest (R1)
 and consequently no lyric text the extra-offset is mis-oriented or looses
 its base …

 an other idea is to move the Bar_number_engraver from the Score to the Staff
 context

 \score {
  \new Staff = staff {
    \override Staff.BarNumber #'break-visibility = #'#(#f #t #t)
    \set barNumberVisibility = #(every-nth-bar-number-visible 1)
    
      \new Voice = music \relative c'' {
        %         \override Score.BarNumber #'extra-offset = #'( 0 . -3.5 )
        \voiceOne
        \repeat unfold 9 { b1 } r2 r4 b4~ b8 b8 b4 b4 b4 \break
        R1 \repeat unfold 6 { b1 }
      }
      \new Lyrics \with { alignAboveContext = staff } \lyricsto music {
        \lyricmode {
          fi -- li -- um et vo -- ca -- bant e -- um
          no -- mi -- ne pa -- tris
          su -- i Za -- cha -- ri -- am.
        }
      }
    
  }
 }
 \layout {
  \context {
    \Score
    \remove Bar_number_engraver
  }
  \context {
    \Staff
    \consists Bar_number_engraver
  }
  \context {
    \Lyrics
    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
    #'((basic-distance . 5)
     (minimum-distance . 5)
     (padding . .75))
  }
 }

 again - this seems to work, but i really don't know if it will not break at
 another point!

 maybe the developers can tell what to do!?

 cheers
 Eluze
 --
 View this message in context: 
 http://old.nabble.com/Consistent-bar-number-positioning-tp31815077p31821383.html
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


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


Re: Consistent bar number positioning

2011-06-10 Thread Nicholas Moe
Thanks, Eluze. That worked in my example, but in the actual score, it
doesn't. The spacing is still inconsistent, especially after line
breaks. I'm including a better example of what happens.

Nick

\version 2.14.0

\score {
\new Staff = staff {

\new Voice = music \relative c'' {
\override Score.BarNumber #'break-visibility = 
#'#(#f #t #t)
\set Score.barNumberVisibility = 
#(every-nth-bar-number-visible 1)
\override Score.BarNumber #'extra-offset = #'( 
0 . -3.5 )
\voiceOne
\repeat unfold 9 { b1 } r2 r4 b4~ b8 b8 b4 b4 
b4 \break
R1 \repeat unfold 6 { b1 }

}
\new Lyrics \with { alignAboveContext = staff } 
\lyricsto music {
\lyricmode {
fi -- li -- um et vo -- ca -- bant e -- 
um
no -- mi -- ne pa -- tris
su -- i Za -- cha -- ri -- am.
}
}

}
}

\layout {
 \context {
   \Lyrics
   \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
   #'((basic-distance . 5)
(minimum-distance . 5)
(padding . 0))
 }
}

On Fri, Jun 10, 2011 at 4:45 AM, -Eluze elu...@gmail.com wrote:


 Nicholas Moe wrote:

 I am writing a piece which requires lyrics above and below the staff.
 I would like to have regular measure numbers right above the bar-line
 (i.e. always approx. 0.75 staff lines above the staff). Ideally I
 would like to make the lyrics invisible to the bar numbers.

  I have been unable to find a way to consistently do this throughout
 the piece. Even doing an #'extra-offset tweak doesn't work, because
 the starting point is not always the same, and in the actual piece of
 music, the starting point is higher or lower on each system depending
 on how the notes are in that system.

 Does anyone have an idea of how to do this? Is there a way to make the
 lyrics invisible to the bar numbers? I have an example set up below.

 here is a way that seems to work (but there might be more convenient ways):

 use

 \override Score.BarNumber #'extra-offset = #'(0 . -3)

 and the following vertical distance settings - play around with the numbers:

 \layout {
  \context {
    \Lyrics
    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
    #'((basic-distance . 5)
     (minimum-distance . 5)
     (padding . .75))
  }
 }

 Eluze
 --
 View this message in context: 
 http://old.nabble.com/Consistent-bar-number-positioning-tp31815077p31816579.html
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


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


Re: Removing manual beams when multiplying note values

2011-06-09 Thread Nicholas Moe
I would like to keep the option of using either system. And after
further thought, I wouldn't want to remove every beam since the few
sixteenth notes I have would be converted to eighth notes, and I would
want to keep those beams. I did a search for 16 and created these
commands to place before and after those instances:

removeBeams = \override Beam #'stencil = ##f
showBeams = \override Beam #'stencil = ##t

If I'm compiling without multiplying note values, I can set these to
null and get back to where I began.

Since I'm working off of a score with modernised rhythms, I'm content
with doing my compilation checks without multiplying. After everything
is typed in, I can switch on the multiplication and just ignore the
warnings, since I already know I got everything else right!

Nick

On Thu, Jun 9, 2011 at 3:54 AM, Phil Holmes m...@philholmes.net wrote:
 - Original Message - From: Nicholas Moe moe.nicho...@gmail.com
 To: lilypond-user@gnu.org
 Sent: Wednesday, June 08, 2011 9:40 PM
 Subject: Removing manual beams when multiplying note values


 Hello,

 I am replicating a handwritten score of Renaissance polyphony. I
 entered the notes with \autoBeamOff and manually entered the beams
 where they were needed using square brackets. Later, I decided I
 wanted to double the values of the notes, as is common with this type
 of music. I figured out how to do it by using a snippet in The
 LilyPond Report #19 and removing the beam stencils. But now I get all
 sorts of errors. How do I suppress these?

 Thanks,

 Nick

  BEGIN MINIMAL EXAMPLE 
 \version 2.13.61

 looksSlower =
 #(define-music-function (parser location music) (ly:music?)
 (let ((new-music (ly:music-deep-copy music)))
  (shift-duration-log new-music -1 0)
  new-music))

 \relative c' {
 \looksSlower{
 \autoBeamOff
 \override Beam #'stencil = ##f
 a8[ b]
 }
 }


 Since you're removing the beam stencil and therefore stopping displaying any
 form of beam, wouldn't the simplest solution be to remove the manual beams
 ([]) with a text editor search and replace?

 --
 Phil Holmes



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


Consistent bar number positioning

2011-06-09 Thread Nicholas Moe
I am writing a piece which requires lyrics above and below the staff.
I would like to have regular measure numbers right above the bar-line
(i.e. always approx. 0.75 staff lines above the staff). Ideally I
would like to make the lyrics invisible to the bar numbers.

 I have been unable to find a way to consistently do this throughout
the piece. Even doing an #'extra-offset tweak doesn't work, because
the starting point is not always the same, and in the actual piece of
music, the starting point is higher or lower on each system depending
on how the notes are in that system.

Does anyone have an idea of how to do this? Is there a way to make the
lyrics invisible to the bar numbers? I have an example set up below.

Nick Moe

 BEGIN EXAMPLE

\version 2.14.0

\score {
\new Staff = staff {

\new Voice = music {
\override Score.BarNumber #'break-visibility = 
#'#(#f #t #t)
\set Score.barNumberVisibility = 
#(every-nth-bar-number-visible 1)
\override Score.BarNumber #'Y-offset = #-1
\repeat unfold 8 { a'1 }
}
\new Lyrics \with { alignAboveContext = staff } 
\lyricsto music {
\lyricmode {
ter -- ram tu -- o ad hoc e -- nim
}
}

}
}

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


Removing manual beams when multiplying note values

2011-06-08 Thread Nicholas Moe
Hello,

I am replicating a handwritten score of Renaissance polyphony. I
entered the notes with \autoBeamOff and manually entered the beams
where they were needed using square brackets. Later, I decided I
wanted to double the values of the notes, as is common with this type
of music. I figured out how to do it by using a snippet in The
LilyPond Report #19 and removing the beam stencils. But now I get all
sorts of errors. How do I suppress these?

Thanks,

Nick

 BEGIN MINIMAL EXAMPLE 
\version 2.13.61

looksSlower =
#(define-music-function (parser location music) (ly:music?)
 (let ((new-music (ly:music-deep-copy music)))
   (shift-duration-log new-music -1 0)
   new-music))

\relative c' {
\looksSlower{
\autoBeamOff
\override Beam #'stencil = ##f
a8[ b]
}
}
 END MINIMAL EXAMPLE 

 OUTPUT EXCERPT 
Interpreting music...
lilyPondTmp.ly:13:16: warning: stem does not fit in beam

a8[ b]
lilyPondTmp.ly:13:18: warning: beam was started here
a8
  [ b]
lilyPondTmp.ly:13:20: warning: stem does not fit in beam
a8[
b]
lilyPondTmp.ly:13:18: warning: beam was started here
a8
  [ b]
Preprocessing graphical objects...

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


Re: Can't hide empty staff after time signature change

2011-05-23 Thread Nicholas Moe
This does help. Thank you!

Nick

On Mon, May 23, 2011 at 4:10 AM, -Eluze elu...@gmail.com wrote:


 Nicholas Moe wrote:

 Hello,

 I am having trouble hiding an empty staff line following a time
 signature change when I am using line breaks. In the example below,
 the staff for the melody line should disappear in measure 4. It does
 disappear if I use \RemoveEmptyStaves in the Staff context, but I want
 to keep the rest in measure 2. How can I make this staff disappear
 while keeping the rested measure, which represents a line of rests in
 the original (not so tiny) score?

 I have found that I get the desired result if I comment out the
 lyrics, but then I'm without the lyrics. But this tells me that the
 lyrics have something to do with this.


 i can't reproduce this but for the first question you could add a hidden
 note to the lines you want to keep (which would of course change the midi
 output, too):

   { \oneVoice R1 } \\ { \hideNotes a1 } 

 hth
 Eluze
 --
 View this message in context: 
 http://old.nabble.com/Can%27t-hide-empty-staff-after-time-signature-change-tp31677788p31678412.html
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


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


Can't hide empty staff after time signature change

2011-05-22 Thread Nicholas Moe
Hello,

I am having trouble hiding an empty staff line following a time
signature change when I am using line breaks. In the example below,
the staff for the melody line should disappear in measure 4. It does
disappear if I use \RemoveEmptyStaves in the Staff context, but I want
to keep the rest in measure 2. How can I make this staff disappear
while keeping the rested measure, which represents a line of rests in
the original (not so tiny) score?

I have found that I get the desired result if I comment out the
lyrics, but then I'm without the lyrics. But this tells me that the
lyrics have something to do with this.

Nick

% Begin Example

\version 2.13.61

TimeKey = { \time 4/4 \key g \major }
\score {

\new Staff

\clef treble
\new Voice = Melody \relative c'' {
\TimeKey
a4 b c d
R1
a2.
}
\new Lyrics \lyricsto Melody {
This is a test.
Stop.
}

\new Staff  \relative c'' {
\TimeKey
a4 b c d \break
a b c d \break
\set Timing.measurePosition = #(ly:make-moment 1 4)
a b c \time 3/4 \break
\set Timing.measurePosition = #(ly:make-moment 2 4)
a | b c d
}

}

\layout {
\context {
\Staff
%\RemoveEmptyStaves
}
}

% End Example

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


Re: Tie collision with note

2011-03-20 Thread Nicholas Moe
That makes the tie how I want it, but I need to shift the middle notes
to the right in the second measure to show that they are their own
voice, whilst keeping the stems up. How could I do that?

Nick

On Sat, Mar 19, 2011 at 10:02 PM, Stan Sanderson
physinfo...@ameritech.net wrote:

 On Mar 19, 2011, at 9:30 PM, Nicholas Moe wrote:

 I am working on engraving an organ piece, César Franck's Cantabile. In
 the LH in mm. 16–17, the middle voice is tied, but the tie collides
 with the notes in the upper voice. Ideally, its shape and position
 should match the tie in the upper voice, only shifted down. How can I
 achieve this?

 Here is the tiny example:

 % begin example

 \version 2.13.54

 \relative c' {
 \clef bass
 \voiceOne
 
                { d1~ d2 c }
                \new Voice {
                        \voiceThree
                        \shiftOff
                        a1~
                        \shiftOn
                        a2 g
                }
                \new Voice {
                        \voiceTwo
                        d2\( f
                        e2 e\)
                }

 }

 % end example

 Thanks,

 Nick


 This is possibly not what you want, but it looks good to me.
 use
   {d' a1 ~ d a2 c g}\\{d,2( f e e)}
 Stan





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


Re: Tie collision with note

2011-03-20 Thread Nicholas Moe
Thanks, Stan, for all your help on this. I checked out LilyPondTool
and JEdit and was able to see how to get control points from the slur
tweak tool. But as I was trying to figure out how to use the slur
tweak tool, I came across another tweak that works even better. I
adapted \shapeSlur from the Lilypond Snippet Repository
(http://lsr.dsi.unimi.it/LSR/Item?id=63) and turned it into \shapeTie.
(Thanks, LSR!) With this I can specify offsets for each control point
of the tie. This way, the tweak scales with the layout of the music.

Here's the example with the addition of this tweak:

%-
\version 2.13.54

shapeTie =
  #(define-music-function (parser location offsets) (list?)
#{
   \once \override Tie #'control-points = #(alter-curve $offsets)
#})

#(define ((alter-curve offsets) grob)
   ;; get default control-points
   (let ((coords (ly:tie::calc-control-points grob))
 (n 0))
 ;; add offsets to default coordinates
 (define loop (lambda (n)
(set-car! (list-ref coords n)
  (+ (list-ref offsets (* 2 n))
 (car (list-ref coords n
(set-cdr! (list-ref coords n)
  (+ (list-ref offsets (1+ (* 2 n)))
 (cdr (list-ref coords n
(if ( n 3)
(loop (1+ n)
 ;; return altered coordinates
 (loop n)
 coords))


\relative c' {
\clef bass
\voiceOne

{ d1~ d2 c }
\new Voice {
\voiceThree
\shiftOff
\shapeTie #'(1 -.25 1 -.25 -1.375 -.25 -1.375 -.25)
a1~
\shiftOn
a2 g
}
\new Voice {
\voiceTwo
d2\( f
e2 e\)
}

}

%-

Best,

Nick

On Sun, Mar 20, 2011 at 11:30 AM, Stan Sanderson
physinfo...@ameritech.net wrote:

 On Mar 20, 2011, at 1:21 AM, Nicholas Moe wrote:

 That makes the tie how I want it, but I need to shift the middle notes
 to the right in the second measure to show that they are their own
 voice, whilst keeping the stems up. How could I do that?

 Nick


 I understand. How about this (thanks, JEdit and LilyPondTool!)

 \version 2.13.54

 \relative c' {
 \clef bass
 \voiceOne
        
                { d1~ d2 c }
                \new Voice {
                        \voiceThree
                        \shiftOff
                        \once \override Tie #'control-points = #'(  ( 2.2771
 . 2.348) ( 3.8427 . 3.344) ( 7.3296 . 3.486) ( 10.176 . 2.348) )
                        a1~
                        \shiftOn
                        a2 g
                }
                \new Voice {
                        \voiceTwo
                        d2\( f
                        e2 e\)
                }
        
        }

 Stan




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


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


Tie collision with note

2011-03-19 Thread Nicholas Moe
I am working on engraving an organ piece, César Franck's Cantabile. In
the LH in mm. 16–17, the middle voice is tied, but the tie collides
with the notes in the upper voice. Ideally, its shape and position
should match the tie in the upper voice, only shifted down. How can I
achieve this?

Here is the tiny example:

% begin example

\version 2.13.54

\relative c' {
\clef bass
\voiceOne

{ d1~ d2 c }
\new Voice {
\voiceThree
\shiftOff
a1~
\shiftOn
a2 g
}
\new Voice {
\voiceTwo
d2\( f
e2 e\)
}

}

% end example

Thanks,

Nick

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