Re: text inside the staff close to the notes

2010-12-13 Thread Nick Payne

On 14/12/10 16:37, Marc Mouries wrote:

On Dec 13, 2010, at 11:33 PM, Carl Sorensen wrote:


Make your leger lines transparent and the final A should look great.


i am not sure i am following because if the ledger line is transparent it 
defeats the purpose to show that the A is now on a line.
What is bizarre is that the ledger line is thicker than the normal lines in the 
staff.

Apparently this can be fixed but is this normal ?


Having ledger lines thicker than staff lines is the default. You can 
change the thickness with a override in the \layout block inside the 
\score block. e.g. this gives ledger lines almost exactly the same 
thickness as the default for staff lines:


\layout {
\context {
\Staff
\override StaffSymbol #'ledger-line-thickness = 
#'(0.1 . 0.1)

}
}

See appendix A of the NR for details on the values.

Nick

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


Re: text inside the staff close to the notes

2010-12-13 Thread Werner LEMBERG
> What is bizarre is that the ledger line is thicker than the normal
> lines in the staff.

This is not bizarre, this is correct musical typography.

> Apparently this can be fixed but is this normal?

Yes.  Just check any manually engraved older scores.


Werner

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


Re: text inside the staff close to the notes

2010-12-13 Thread Marc Mouries

On Dec 13, 2010, at 11:33 PM, Carl Sorensen wrote:

> Make your leger lines transparent and the final A should look great.
> 

i am not sure i am following because if the ledger line is transparent it 
defeats the purpose to show that the A is now on a line.
What is bizarre is that the ledger line is thicker than the normal lines in the 
staff.

Apparently this can be fixed but is this normal ?

<>


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


Re: Unexpected \markup behavior

2010-12-13 Thread Colin Campbell
On Mon, 2010-12-13 at 07:49 -0500, Ralph Palmer wrote:


> 
> 
> Greetings and thanks, Colin -
> 
> The second case is unexpected (to me) because I thought that \dynamic
> was a font command, as is \italic. Even if the \dynamic in the second
> case is attached to the d and then overwritten by the "meno", why
> isn't the "meno" overwritten in the first case by the \dynamic? 
> 
> 
> Pondly,
> 
> Ralph

Thanks for your patience with a new bug squad member, Ralph. I've added
this as an issue:
http://code.google.com/p/lilypond/issues/detail?id=1448

The correction is as Jan-Peter suggests: to use a \line before the
elements you want to have in sequence, otherwise they get over-written.
The issue is that the behaviour is triggered by a \dynamic as the first
element, but the \line protects you from that.

HTH, Ralph

Colin
-- 
The purpose of a fish trap is to catch fish, and when the fish are
caught, the trap is forgotten. The purpose of a rabbit snare is to catch
rabbits. When the rabbits are caught, the snare is forgotten. The
purpose of words is to convey ideas. When the ideas are grasped, the
words are forgotten. Where can I find a man who has forgotten words? He
is the one I would like to talk to. - The Chuang Tzu 



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


Specifying bezier curve for tie across line break collides with clef symbol

2010-12-13 Thread Nick Payne


  
  
This piece in several voices (Bach's WTC book 1 prelude 4
transcribed for guitar) has a tie between the F-sharps at the end of
bar 36 and at the beginning of bar 37, but because this tie is
across a line break, Lilypond repeats the sharp symbol (which
otherwise wouldn't happen) and displaces the second part of the tie
downwards on the following line so that it appears to be a tie to
the half note B (nobezier.png). 

If I attempt to force the tie to the correct position by specifying
its bezier points, then the start and end point are correct, but a)
the tie does not continue almost to the bar line as it otherwise
would, and b) the continuation of the tie on the 2nd line passes
through the clef symbol (bezier.png). I can fix it by forcing a line
break before bar 36, so that the tie is not broken across two
staves, but this then means that the preceding bar has a complete
line to itself and looks very sparse and rather out of place. Is
there any other solution that anyone can suggest.

Nick




  

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


RE: text inside the staff close to the notes

2010-12-13 Thread Carl Sorensen


From: Marc Mouries [m...@mouries.net]
Sent: Monday, December 13, 2010 8:30 PM
To: Mike Solomon
Cc: lilypond-user@gnu.org
Subject: Re: text inside the staff close to the notes

thanks, I added whiteout and adjusted the lower and the fontsize and got 
something nice except the last A. :

[cid:part1.04050700.08080701@mouries.net]

Make your leger lines transparent and the final A should look great.

Carl



On 12/13/2010 9:25 PM, Mike Solomon wrote:
Kinda meh, but gets the job done.
Creating a music function would automate this sorta thing.

\score {
  \relative c'' {
\time 7/2
%\easyHeadsOn
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  A} 
a
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  B} 
b
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  C} 
c
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  D} 
d
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  E} 
e
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  F} 
f
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  G} 
g
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  A} 
a
  }}

On Dec 13, 2010, at 9:10 PM, Marc Mouries wrote:

On 12/13/2010 5:54 PM, m...@apollinemike.com 
wrote:

Yup!

\version "2.13.43"

\relative c'' {
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup { A }
a
\once \override NoteHead #'text = \markup { B }
b
}

You'll have to do a fair bit of tweaking to get the right size and placement...

Cheers,
Mike

On Dec 13, 2010, at 5:36 PM, Marc Mouries wrote:



I am wondering if it is possible to write text inside the staff close to the 
notes or without the notes like in the attached image to show the name of the 
notes.



-Marc

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


thanks Mike that's helpful. This is really bizarre that making the stem 
transparent moves the name of the note up.
This code
\score {
  \relative c'' {
\time 7/2
\easyHeadsOn
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup {  {A}} a
\once \override NoteHead #'text = \markup {  {B}} b
\once \override NoteHead #'text = \markup {  {C}} c
\once \override NoteHead #'text = \markup {  {D}} d
\once \override NoteHead #'text = \markup {  {E}} e
\once \override NoteHead #'text = \markup {  {F}} f
\once \override NoteHead #'text = \markup {  {G}} g
\once \override NoteHead #'text = \markup {  {A}} a
  }
}
gave me:




___
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


Re: text inside the staff close to the notes

2010-12-13 Thread Marc Mouries


  
  
thanks, I added whiteout and adjusted the lower and the fontsize and
got something nice except the last A. :



On 12/13/2010 9:25 PM, Mike Solomon wrote:

  Kinda meh, but gets the job done.
  Creating a music function would automate this sorta thing.
  
  
  \score {
    \relative c'' {
      \time 7/2
      %\easyHeadsOn
      \override Stem #'transparent = ##t
      \override NoteHead  #'stencil = #ly:text-interface::print
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  A}     a
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  B}     b
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  C}     c
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  D}     d
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  E}     e
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  F}     f
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  G}     g
      \once \override NoteHead #'text = \markup { \lower #0.5
\fontsize #-3.5  A}     a
    }}
  
  
  
On Dec 13, 2010, at 9:10 PM, Marc Mouries wrote:


   On 12/13/2010 5:54 PM,
m...@apollinemike.com
wrote:

  Yup!

\version "2.13.43"

\relative c'' {
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup { A }
a
\once \override NoteHead #'text = \markup { B }
b
}

You'll have to do a fair bit of tweaking to get the right size and placement...

Cheers,
Mike

On Dec 13, 2010, at 5:36 PM, Marc Mouries wrote:


  
I am wondering if it is possible to write text inside the staff close to the notes or without the notes like in the attached image to show the name of the notes.



-Marc

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

  

thanks Mike that's helpful. This is really bizarre that
making the stem transparent moves the name of the note up.
This code 
\score {
  \relative c'' {
    \time 7/2
    \easyHeadsOn
    \override Stem #'transparent = ##t
    \override NoteHead  #'stencil =
#ly:text-interface::print
    \once \override NoteHead #'text = \markup {  {A}}     a
    \once \override NoteHead #'text = \markup {  {B}}     b
    \once \override NoteHead #'text = \markup {  {C}}     c
    \once \override NoteHead #'text = \markup {  {D}}     d
    \once \override NoteHead #'text = \markup {  {E}}     e
    \once \override NoteHead #'text = \markup {  {F}}     f
    \once \override NoteHead #'text = \markup {  {G}}     g
    \once \override NoteHead #'text = \markup {  {A}}     a
  }
}
gave me:



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

  
  


  

\version "2.13.40"
\language "english"
#(set-global-staff-size 36)

\score {
  \relative c'' {
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  A} a
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  B} b
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  C} c
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  D} d
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  E} e
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  F} f
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  G} g
\once \override NoteHead #'text = \markup { \whiteout \lower #0.3 \fontsize #-8  A} a
  }
  \layout {
ragged-right = ##t
\context {
  \Staff
  \remove "Time_signature_engraver"
  \remove "Bar_engraver"
}
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: text inside the staff close to the notes

2010-12-13 Thread Mike Solomon
Kinda meh, but gets the job done.
Creating a music function would automate this sorta thing.

\score {
  \relative c'' {
\time 7/2
%\easyHeadsOn
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  A} 
a
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  B} 
b
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  C} 
c
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  D} 
d
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  E} 
e
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  F} 
f
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  G} 
g
\once \override NoteHead #'text = \markup { \lower #0.5 \fontsize #-3.5  A} 
a
  }}

On Dec 13, 2010, at 9:10 PM, Marc Mouries wrote:

> On 12/13/2010 5:54 PM, m...@apollinemike.com wrote:
>> 
>> Yup!
>> 
>> \version "2.13.43"
>> 
>> \relative c'' {
>> \override Stem #'transparent = ##t
>> \override NoteHead  #'stencil = #ly:text-interface::print
>> \once \override NoteHead #'text = \markup { A }
>> a
>> \once \override NoteHead #'text = \markup { B }
>> b
>> }
>> 
>> You'll have to do a fair bit of tweaking to get the right size and 
>> placement...
>> 
>> Cheers,
>> Mike
>> 
>> On Dec 13, 2010, at 5:36 PM, Marc Mouries wrote:
>> 
>>> I am wondering if it is possible to write text inside the staff close to 
>>> the notes or without the notes like in the attached image to show the name 
>>> of the notes.
>>> 
>>> 
>>> 
>>> -Marc
>>> 
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
> thanks Mike that's helpful. This is really bizarre that making the stem 
> transparent moves the name of the note up.
> This code 
> \score {
>   \relative c'' {
> \time 7/2
> \easyHeadsOn
> \override Stem #'transparent = ##t
> \override NoteHead  #'stencil = #ly:text-interface::print
> \once \override NoteHead #'text = \markup {  {A}} a
> \once \override NoteHead #'text = \markup {  {B}} b
> \once \override NoteHead #'text = \markup {  {C}} c
> \once \override NoteHead #'text = \markup {  {D}} d
> \once \override NoteHead #'text = \markup {  {E}} e
> \once \override NoteHead #'text = \markup {  {F}} f
> \once \override NoteHead #'text = \markup {  {G}} g
> \once \override NoteHead #'text = \markup {  {A}} a
>   }
> }
> gave me:
> 
> 
> 
>  
> ___
> 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


Re: text inside the staff close to the notes

2010-12-13 Thread Marc Mouries


  
  
On 12/13/2010 5:54 PM, m...@apollinemike.com wrote:

  Yup!

\version "2.13.43"

\relative c'' {
\override Stem #'transparent = ##t
\override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = \markup { A }
a
\once \override NoteHead #'text = \markup { B }
b
}

You'll have to do a fair bit of tweaking to get the right size and placement...

Cheers,
Mike

On Dec 13, 2010, at 5:36 PM, Marc Mouries wrote:


  
I am wondering if it is possible to write text inside the staff close to the notes or without the notes like in the attached image to show the name of the notes.



-Marc

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

  
  


thanks Mike that's helpful. This is really bizarre that making the
stem transparent moves the name of the note up.
This code 
\score {
  \relative c'' {
    \time 7/2
    \easyHeadsOn
    \override Stem #'transparent = ##t
    \override NoteHead  #'stencil = #ly:text-interface::print
    \once \override NoteHead #'text = \markup {  {A}}     a
    \once \override NoteHead #'text = \markup {  {B}}     b
    \once \override NoteHead #'text = \markup {  {C}}     c
    \once \override NoteHead #'text = \markup {  {D}}     d
    \once \override NoteHead #'text = \markup {  {E}}     e
    \once \override NoteHead #'text = \markup {  {F}}     f
    \once \override NoteHead #'text = \markup {  {G}}     g
    \once \override NoteHead #'text = \markup {  {A}}     a
  }
}
gave me:



 
  

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


Re: text inside the staff close to the notes

2010-12-13 Thread Mark Polesky
Marc Mouries wrote:
> I am wondering if it is possible to write text inside the
> staff close to the notes or without the notes like in the
> attached image to show the name of the notes.

Have you tried \easyHeadsOn ?  It's not exactly as you
describe, but perhaps it can suit your needs:

http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Note-heads#Easy-notation-note-heads

- Mark




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


Re: text inside the staff close to the notes

2010-12-13 Thread Jonathan Kulp
On Mon, Dec 13, 2010 at 4:36 PM, Marc Mouries  wrote:

>  I am wondering if it is possible to write text inside the staff close to
> the notes or without the notes like in the attached image to show the name
> of the notes.
>
>
>
> -Marc
>
>
>
When putting fingerings inside the staff, I override the staff padding
property like this:

\override Fingering #'staff-padding = #'()

You might try a similar approach for the text markup.

Jon
-- 
Jonathan Kulp
http://www.jonathankulp.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


\change Staff and barchecks in LilyPondTool

2010-12-13 Thread George_

I seem to be having a problem with \change Staff screwing up my barchecks.
For example:

e16 d c d e8 f
\change Staff = "LH"
gis, e r a |

for me produces a barcheck of 9/8.

bes8. a16 g f e d
\change Staff = "LH"
cis4 f8 \rest cis |

gives a barcheck of 17/16, and

\change Staff = "LH"
r8 a16 gis a8 b 
\change Staff = "RH"
c c16 b c8 d |

gives a barcheck of 5/8 (??).

It seems to me that each \change Staff line is for some reason being taken
as just another note. There's no error message in the log warning about
barchecks being wrong, so I assume this is only something to do with a
LilyPondTool definition or something like that.
-- 
View this message in context: 
http://old.nabble.com/%5Cchange-Staff-and-barchecks-in-LilyPondTool-tp30449894p30449894.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


text inside the staff close to the notes

2010-12-13 Thread Marc Mouries


  
  
I am wondering if it is possible to write text inside the staff
close to the notes or without the notes like in the attached image
to show the name of the notes.



-Marc

  

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


More about min-systems-per-page

2010-12-13 Thread craigbakalian
Hi,
this is in my \paper section
\paper 
{
ragged-bottom = ##f
ragged-last = ##t
ragged-last-bottom = ##f
#(set-paper-size "letter")
bottom-margin = 1.5\cm
right-margin = 1.5\cm
left-margin = 1.5\cm
top-margin = 1.5\cm
min-systems-per-page = 4
max-systems-per-page = 5

tocTitleMarkup = \markup \fontsize #10 \column
{
\fill-line {\null "Table of Contents" \null}
\hspace #3
}
tocItemMarkup = \markup \pad-around #2 \fontsize #5 \fill-line
{
\fromproperty #'toc:text \fromproperty #'toc:page
}   
}


And now I am getting this when I run lily-

LilyPond 2.13.40 [InventionsBook.ly] starting (preview mode)...
Processing `InventionsBook.ly'
Parsing...
Interpreting music... [8][16]
Preprocessing graphical objects...
Interpreting music... [8][16][24]
Preprocessing graphical objects...
Interpreting music... [8][16][24]
Preprocessing graphical objects...
Interpreting music... [8][16][24]
Preprocessing graphical objects...
Interpreting music... [8][16][24]
Preprocessing graphical objects...
Interpreting music... [8][16][24]
Preprocessing graphical objects...
Interpreting music... [8][16][24][32][40]
Preprocessing graphical objects...
Interpreting music... [8][16]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 17 or 18 pages...terminate called after throwing an
instance of 'std::bad_alloc'
  what():  St9bad_alloc

...exited with exit status 1

this doesn't happen when I remove the min and max systems-per-page.
Anybody know what is going on.


-- 
Craig Bakalian
560 Keswick Drive
Yardley, PA 19067
215-428-0856


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


Re: \set midiInstrument =

2010-12-13 Thread Jan Warchoł
Hi,

2010/12/13 MING TSANG :
> (1)  Where do I code the \set midiInstrument = ?
>
> (2)  I want to set each voice (S, A, T, B) with different midi -instrument.
> How can I code it?

Take a look at this example:

\new ChoirStaff <<
\new Staff = soprano {
\new Voice = soprano {
\set Voice.midiInstrument = "clarinet"
insert soprano notes here
}
}

\new Staff = alto {
\new Voice = alto {
\set Voice.midiInstrument = "english horn"
insert alto notes here
}
}
>>

You can also code instrument on staff level:

\new Staff = females {
\set Staff.midiInstrument = "clarinet"
\new Voice = soprano {
insert soprano notes here
}
\new Voice = alto {
insert alto notes here
}
}

> (3)  How can I specify different sound volume for each voice?  I was hoping
> to empathize one particular voice for practise.

See Notation Reference 3.5.5, "equalizing different instruments"

> (4)  How to turn off cres. sound in midi sound file?

You can turn off all dynamics using this:

\midi {
\context {
\Voice
\remove "Dynamic_performer"
}
}

Good luck :)
Janek

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


\set midiInstrument =

2010-12-13 Thread MING TSANG
(1)  Where do I code the \set midiInstrument = ?

(2)  I want to set each voice (S, A, T, B) with different midi -instrument. How 
can I code it?

(3)  How can I specify different sound volume for each voice?  I was hoping to 
empathize one particular voice for practise.

(4)  How to turn off cres. sound in midi sound file?
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


bar number printed above the phrase (slur) curve

2010-12-13 Thread MING TSANG
Please note the bar number #2,4,8 is printed very far from the bar line.  Is is 
possible to have it printed close to the bar line?

Below is the lilypond code:
\version "2.13.40"

date = #(strftime "%d-%m-%Y" (localtime (current-time)))
%   #(ly:set-option 'delete-intermediate-files #f)
   
\header {
  title = "Walking in Winter Wonderland"
  subtitle = \date
}

\paper  {

  indent = #(* mm 0)
  line-width = #(* mm 180)
  interscoreline = 2.\mm
  between-system-space = 36\mm
  ragged-bottom = ##t
   print-first-page-number = ##t

}

\include "english.ly"
TimeKey = { \time 4/4  \key ef  \major  }   
SopMusic   = \relative c' {
% Draw a box round the following bar number(s)
\override Score.BarNumber #'stencil
   = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print)
 \partial 4   
 bf'8.\( bf16 \repeat volta 2 { \bar "|:"  bf2^\markup {E \flat}\) r4 
bf8.\( bf16 | g8 bf4.\) r4 bf8.\( bf16 |%bar 00-02
 bf2^\markup {Fm}\) r4^\markup {Fm+5} bf8.\( bf16 | af8^\markup {Fm7} 
bf4.\) r4^\markup {B\flat 7}  bf4\( | d8. d16 d8 c8~ c4\) r8. c16\( |   
 %bar 03-05
 g8.^\markup {E\flat} gf16 f8 e8~^\markup {C7+5} e4\) r4 | g8.^\markup 
{F9}\( g16 g8. g16 f8.^\markup{B\flat 7} f16 f8. f16 | } \alternative { { 
ef2^\markup{E\flat}\) r4 bf'8. bf16 \bar ":|" } %bar 06-08
 { ef,2^\markup{E\flat} r4 s4 || } }
   \label #'lastPage
  }
AltoMusic  = \relative c' {
\override NoteHead #'color = #blue
  }
TenorMusic = \relative c  {
  }
BassMusic  = \relative c  {
\override NoteHead #'color = #red
 }

PianoRHand = \relative c' {
 }
PianoLHand = \relative c {
 }
 
VerseOne   = \lyricmode {
Sleigh bellsring, are youlist- 'nin? In the  
lane snow isglist- 'nin'. Abeau- ti- ful sight, we're   
hap- py to- night.walk- in' in a win- ter won- der- land! Gone a-   
}
VerseTwo   = \lyricmode {
"" "" way is the blue bird, here to  stay is a 
new bird He sings a love song, as  we go a- long   
walk- in' in a win- ter won- der "" "" ""land 
} 
%VerseThree = \lyricmode { }
%VerseFour  = \lyricmode { |


  
  
\score {
  \new GrandStaff = "GrandStaff_score" <<
\new ChoirStaff <<
  \new Staff <<
 \override Score.BarNumber #'break-visibility = #all-visible
  \override Score.BarNumber #'self-alignment-X = #0
  \override Score.BarNumber #'Y-offset = #0
  %\override Score.BarNumber #'extra-offset = #'(0 . 0.3)
\clef "treble"
\tempo 4 = 118
\TimeKey
\new Voice = "Sop"  { \EzNum \voiceOne   \SopMusic  }

 \new Lyrics \lyricsto "Sop" { \VerseOne   }
 \new Lyrics \lyricsto "Sop" { \VerseTwo   }

  >>
  \new Staff <<
\clef "bass"
\TimeKey
\new Voice = "Tenor" { \EzNum \voiceOne  \TenorMusic }
\new Voice = "Bass"  { \EzNum \voiceTwo  \BassMusic  }
  >>  
>>

  >>
   \layout {
\context { 
 \RemoveEmptyStaffContext
 \override VerticalAxisGroup #'remove-first = ##t
   %{ % Draw a circle round the following bar number(s)
 \override Score.BarNumber  #'stencil
   = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)%}
}
\context {
\Voice
\consists \Ez_numbers_engraver
}
  }
  \midi { \context { \Staff \remove "Dynamic_performer" } }
}___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


min-systems-per-page

2010-12-13 Thread craigbakalian
Hi,

I have a book of about 14 piano inventions I found that I wrote as a
young composer 23 years ago.  Ah, the memories of youth!  I have about
nine of them in lilypond code, inside a  \book{}.  It compiles to pdf
very slowly when I use min-systems-per-page = 5 and compiles very
quickly if I do not use min-systems-per-page.

Is there a reason for this?

Craig Bakalian


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


Re: How to print 2 rehearsal marks above and below same bar line

2010-12-13 Thread James

Nick, Matts and James (et al)

On 30/11/2010 01:12, Nick Payne wrote:

On 30/11/10 10:53, James Bailey wrote:

Hello, I asked this exact same question almost exactly two years ago!
Here is the response I got from Mats. It worked for me, even if it was
a bit fiddly:

*From: *Mats Bengtsson mailto:mats.bengts...@ee.kth.se>>
*Date: *December 11, 2008 5:36:04 PM GMT+01:00
*To: *james mailto:derhindem...@googlemail.com>>
*Cc: *lilypond-user Mailinglist mailto:lilypond-user@gnu.org>>
*Subject: **Re: two simultaneous marks*

Well, one trick is to draw both marks as a single markup command with
a sufficiently large
vertical separation, and then move it downwards so that the upper
mark appears above the
staff and the lower one below. Example:

\version "2.10.0"
\relative c'{ c d e f
\once \override Score.RehearsalMark #'extra-offset = #'(0 . -9)
\once \override Score.RehearsalMark #'baseline-skip = #9
\mark \markup \column{\box A
\italic fine }
g f e d | c1 |
}


Better to use \mark \markup \left-align \ center-column, in order to get
both marks vertically centred on the bar line:

\version "2.13.40"

\relative c'{
c d e f |
\once \override Score.RehearsalMark #'extra-offset = #'(0 . -9)
\once \override Score.RehearsalMark #'baseline-skip = #9
\mark \markup \left-align \center-column { \box A \italic fine }
g f e d |
c1 |
}


Thanks to all. I have added this to the LSR.

James


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


Re: lilypond cameo

2010-12-13 Thread James

On 13/12/2010 16:14, Jan Warchoł wrote:

I'd say that it's very interesting. Something distinctive, but not as
soulles as regular sans, might be the best choice for chords (i don't
want to say that it should be comic sans of course:)  )


But if, for instance you were doing a Ukulele Cover of Bach or something 
extreme like that then I would want to see the chord names in something 
Gothic and Heavy :)


Or maybe that's just me?

have fun!

james


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


Re: lilypond cameo

2010-12-13 Thread Jan Warchoł
2010/12/10 James :
> Hello
>
> On 10/12/2010 07:43, Jan Warchoł wrote:
>>
>> Seriously though, have you considered changing the default font for
>> chords?
>
> Oh yes, but only to make it smaller, I prefer mine '12% smaller' than
> default, but the 'sans' font I think, is how chord names should be
> displayed.
>
> I know it's a preference and I don't think the feta font has anything to do
> with it - at least from my perspective - but more than when you have a lead
> sheet or a score with chords on it plus all the other 'gumpf' that is
> usually in a serif font (title, composer, arranger, tempo, dim.. cresc..
> etc) they blend in when they are anything but sans.

Maybe you are right.
I have to admit that my scores that have chord names don't have almost
any other stuff that could mix with them.

> When I see serif used for chord names it's like someone using 'zapf
> chancery' for body text because it's 'fancy' :)
>
> Although I have to say I have seen chord names in 'comic sans' on printed
> material I have played in my Wind Band and actually while that sounds
> dreadful, when you're playing some old time rag or an old traditional song
> that's about 'jolly' things, comic sans chord names seem some how apt!

I'd say that it's very interesting. Something distinctive, but not as
soulles as regular sans, might be the best choice for chords (i don't
want to say that it should be comic sans of course :) ). Well, if i
stumble across any font that may fit i'll let you know.

cheers,
Janek

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


Re: Unexpected \markup behavior

2010-12-13 Thread Colin Campbell
On Mon, 2010-12-13 at 07:49 -0500, Ralph Palmer wrote:

> 
> Greetings and thanks, Colin -
> 
> The second case is unexpected (to me) because I thought that \dynamic
> was a font command, as is \italic. Even if the \dynamic in the second
> case is attached to the d and then overwritten by the "meno", why
> isn't the "meno" overwritten in the first case by the \dynamic? 
> 

Good morning, Ralph

The Dynamics font only has a few characters: f,m,p,r,s, and z. Also, I
believe you need to reset the font to normal after using \dynamic before
changing to \italic.  The Snippets manual, under Expressive Marks -
Horizontally aligning custom dynamics, may have some useful ideas for
you, as well.


The other issue you raise is the effect of the order of the elements in
the \markup on the placement of the output. Jan-Peter's answer on -user
calls for the "normal" placement of the elements, i.e., "meno " followed
by f, which doesn't expose the bug.  Removing the \dynamic { "f" } in
your second case actually raises the "meno " toward the upper staff.

I'll investigate a bit more, but so far, this looks odd to me.

Colin

-- 
You recognize the tune, but sometimes the fingers just don't work so
well. When you're playing you need to listen and know when to back off.
- Mark Janak, Class of '78 Aggie Band Reunion 2005 



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


Re: Unexpected \markup behavior

2010-12-13 Thread Ralph Palmer
On Mon, Dec 13, 2010 at 1:01 AM, Colin Campbell  wrote:

> On Sun, 2010-12-12 at 10:46 -0500, Ralph Palmer wrote:
>
> >
> > %% Begin Snippet %%%
> >
> > \version "2.12.3"
> >
> > A =
> > \relative c' {
> >   \key c \major
> >   \clef treble
> >   \time 4/4
> >
> > % Works as expected:
> >   c'4 c c c |
> >   d4_\markup {
> > \halign #0.5 {
> >   \whiteout \pad-markup #0.5 {
> > \italic {"meno "} \dynamic {f}
> >   }
> > }
> >   }
> >   d d d |
> >
> > % Why doesn't this work?
> >   c4 c c c |
> >   d4_\markup {
> > \halign #0.5 {
> >   \whiteout \pad-markup #0.5 {
> > \dynamic {f} \italic {"meno "}
> >   }
> > }
> >   }
> >   d d d |
> > }
> >
> > B=
> > \relative c' {
> >   \key c \major
> >   \clef treble
> >   \time 4/4
> >
> >   d'4 d d d |
> >   e4 e e e |
> >   d4 d d d |
> >   c4 c c c |
> > }
> >
> > \score {
> >   \new StaffGroup <<
> > \new Staff << \A >>
> > \new Staff << \B >>
> >   >>
> > }
> > \layout {}
> >
> > % End Snippet 5
> >
>
>
> In your second case, the \dynamic is attached to the d, then
> over-written by the "meno" in the markup. This seems to be expected
> behaviour.  Can you give me a bit more information on why your second
> case is unexpected?
>
> Colin Campbell
> Bug Squad
>
>
Greetings and thanks, Colin -

The second case is unexpected (to me) because I thought that \dynamic was a
font command, as is \italic. Even if the \dynamic in the second case is
attached to the d and then overwritten by the "meno", why isn't the "meno"
overwritten in the first case by the \dynamic?

Pondly,

Ralph

-- 
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


dynamic alignment

2010-12-13 Thread Jan-Peter Voigt

Hello list,

I wrote a script to align dynamics centered on the corresponding note:

--snip--
\version "2.12.3"

% calculate x-alignment based on attribute text + dynamic text
#(define-markup-command (center-dyn layout props atr-text dyn)(markup? 
string?)

  "x-align on center of dynamic"
  (let* (
  (text (string-append atr-text " "))
  (atr-stencil (interpret-markup layout props (markup 
#:normal-text #:italic text)))
  (dyn-stencil (interpret-markup layout props (markup #:dynamic 
dyn)))

  (atr-x-ext (ly:stencil-extent atr-stencil X))
  (dyn-x-ext (ly:stencil-extent dyn-stencil X))
  (atr-x (- (cdr atr-x-ext)(car atr-x-ext)))
  (dyn-x (- (cdr dyn-x-ext)(car dyn-x-ext)))
  (x-align
(* (-
 (/ (+ atr-x (/ dyn-x 2)) (+ atr-x dyn-x) )
 0.5) 2)
  )
)
(interpret-markup layout props (markup #:halign x-align 
#:concat (#:normal-text #:italic text #:dynamic dyn)))

))

% define some dynamics
pocof = #(make-dynamic-script (markup #:center-dyn "poco" "f"))
menof = #(make-dynamic-script (markup #:center-dyn "meno" "f"))
subp = #(make-dynamic-script (markup #:center-dyn "subito" "p"))

% activate X-offset, so that halign works
dynx = #(define-music-function (parser location musik)(ly:music?)
  #{
\override DynamicText #'X-offset = #0 $musik \revert DynamicText 
#'X-offset

#})

% example %
<<
  \new Staff <<
\relative c'' {
  d \dynx c\pocof d e | d\ff d cis eis ~ | \dynx eis1\subp | r4 
\dynx b\menof c\f

}
>>
>>
--snip--

This script first calculates the widthes of the "attribute"-text (wa) 
and the dynamic text (wd), so that I can calculate the right \halign value:

halign = ((wa + (wd / 2)) / (wa + wd) - 0.5) * 2

Then I use a markup with \halign. This works quite well as long 
DynamicText #'X-offset is set! If that is set all other dynamics are 
aligned badly.
So I wrote a little function, that sets and unsets (reverts) that value 
to let the halign work.


My question is:
Is it possible to set that value inside the make-dynamic-script or align 
it some other way, so that I can simply use my defined \pocof (etc.) 
without switching X-offset on and off?


Regards,
Jan-Peter


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


Re: Unexpected \markup behavior

2010-12-13 Thread Jan-Peter Voigt

Hello Ralph,

the \halign aligns all markups and stacks them. If you want to align the 
whole dynamic expression, make it a single markup with \line or \concat:


  d4_\markup {
% negative value to right align, so that the forte is near the 
corresponding note

\halign #-0.5 {
  \whiteout \pad-markup #0.5 \line {
\dynamic {f} \italic {"meno"}
  }
}
  }

By the way, you might think of defining a dynamic script:

dynalign = {
% right align the forte near the corresponding note
\once \override DynamicText #'self-alignment-X = #0.8
}
menoF = #(make-dynamic-script (markup (#:whiteout #:pad-markup 0.5 
#:line (#:normal-text(#:italic "meno") #:dynamic "f"


% later ...
{
\dynalign c4\menoF
}

I hope this helps.

Regards,
Jan-Peter

On 12.12.2010 16:46, Ralph Palmer wrote:

Greetings -

I'm running 2.12.3 under a slightly older version of Ubuntu.

The recent spanBar collision discussion came at a good time for me. I 
was able to solve a collision of my own. However, I can't seem to 
figure out how to get "mf, espr." to behave the way "meno f" does. 
Here's a minimal example:


%% Begin Snippet %%%

\version "2.12.3"

A =
\relative c' {
  \key c \major
  \clef treble
  \time 4/4

% Works as expected:
  c'4 c c c |
  d4_\markup {
\halign #0.5 {
  \whiteout \pad-markup #0.5 {
\italic {"meno "} \dynamic {f}
  }
}
  }
  d d d |

% Why doesn't this work?
  c4 c c c |
  d4_\markup {
\halign #0.5 {
  \whiteout \pad-markup #0.5 {
\dynamic {f} \italic {"meno "}
  }
}
  }
  d d d |
}

B=
\relative c' {
  \key c \major
  \clef treble
  \time 4/4

  d'4 d d d |
  e4 e e e |
  d4 d d d |
  c4 c c c |
}

\score {
  \new StaffGroup <<
\new Staff << \A >>
\new Staff << \B >>
>>
}
\layout {}

% End Snippet 5

I'm attaching a .pdf of the output. Can anyone tell me what I'm doing 
wrong, or steer me in the right direction?


Pondly,

Ralph

--
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com 


___
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