Re: Padding doesn't work

2006-09-21 Thread Mats Bengtsson

If you check the printouts from LilyPond (or the .log file if you are on
Windows and just double clicked on the .ly file), you will see something 
like:

...
Interpreting music...
test.ly:1:0: warning: not a grob name, `RehersalMark'
...

This warning message simply tells you that you misspelled the name of the
graphical object ("grob"). Try
\once \override Score.RehearsalMark #'padding = #2.5
instead.

  /Mats


OnionRingOfDoom wrote:


Kieren MacMillan wrote:
  
Therefore, you need to use Score.RehearsalMark instead of just  
RehearsalMark (unless you happen to be *in* the Score context, which  
doesn't happen very often).





Hmm, it solved the ottavaBracket problem, but the rehersal marks still arn't
moving. My code is now as follows:

\once \override Score.RehersalMark #'padding = #2.5
\mark \default |

  


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How to "loosen up" the balloon box? (cool ossia trick you can use too)

2006-09-21 Thread Mats Bengtsson

Try
\once \override NoteHead #'balloon-padding = #0.6

The property name is listed if you click on the link to 
text-balloon-interface,

even though the text describing the property is missing.

  /Mats

Rick Hansen (aka RickH) wrote:

In the example that follows I'm using a "helium balloon on a string" to point
at an ossia.  I like everything about this example except for the box
(balloon) that gets drawn around the note head.  Is there any way to "loosen
up" the box, that is, add some internal padding so that the inside edges of
the box wont actually touch the note head like it is now?  I swear I looked
everywhere but could not find any documentation on the "add-balloon-text"
thingy.  As always, the example that follows will run as-is.

Thanks Rick


% EXAMPLE BEGIN

\version "2.9.18"
\include "english.ly"

varFreeFormOssiaNotes = \relative c' {
   %1
   a'^\markup { \tiny \sans "alternative ending" } b c d
   |
   %2
   e f g a
   \bar "|."
}

varFreeFormOssia = \markup {
   \score {
   \new Staff \with {
\remove Time_signature_engraver
\remove Clef_engraver
\override KeySignature #'transparent = ##t
\override KeySignature #'space-alist =
  #'((time-signature extra-space . 0.0)
  (staff-bar extra-space . 0.0)
  (right-edge extra-space . 0.0)
  (first-note fixed-space . 0.0))
\override KeySignature #'font-size = #'-10.0
} % end ossia staff with
{
   #(set-accidental-style 'modern)
   \clef "treble"
   \key ef \major
   \time 4/4
   \varFreeFormOssiaNotes
} % end ossia staff music
   \layout {
ragged-right = ##t
ragged-last = ##t
ragged-bottom = ##t
ragged-last-bottom = ##t
indent = 0.0\in
system-count = #1
   } % end ossia layout
   } % end ossia score
} % end ossia markup



\score {

   \new Staff {
 #(set-accidental-style 'modern)
 \clef "treble"
 \key ef \major
 \time 4/4
 \relative c'' {
 %1
g'4. g8 g2~ |
 %2
g8 r  ef \times 2/3 { 4 f ef } |
 %3
1~ |
 %4
g8 r c, ef \times 2/3 { g4 f ef } |
 %5
1~ |
 %6
g8 r c, ef \times 2/3 { g4 f ef } |
 %7
   \applyOutput #'Voice #(add-balloon-text
  'NoteHead varFreeFormOssia
  '(3 . -8))
   g2 gs2
 %8
a2 gs2 |
 %9
g2 gs2 |
 %10
a2 bf2 \bar "||"

 } % end notes

   } % end staff

   \layout {
 ragged-right = ##f
 ragged-last = ##f
 ragged-bottom = ##t
 ragged-last-bottom = ##t
 indent = 0.0\in
 system-count = #2
 \context { \RemoveEmptyStaffContext }
 \context { \Score
\override VerticalAxisGroup #'remove-first = ##t
 }
 \context { \Staff
\override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
 }
   } % end main layout

} % end main score


% EXAMPLE END


  


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Padding doesn't work

2006-09-21 Thread Mats Bengtsson



OnionRingOfDoom wrote:

Ok, thanks for the quick help there! Someone should fix the doc so that it's
a little easier to find that info though...
  

Please see
http://lilypond.org/web/devel/participating/documentation-adding

  /Mats

--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Padding doesn't work

2006-09-21 Thread OnionRingOfDoom



Kieren MacMillan wrote:
> 
> Therefore, you need to use Score.RehearsalMark instead of just  
> RehearsalMark (unless you happen to be *in* the Score context, which  
> doesn't happen very often).
> 

Hmm, it solved the ottavaBracket problem, but the rehersal marks still arn't
moving. My code is now as follows:

\once \override Score.RehersalMark #'padding = #2.5
\mark \default |

-- 
View this message in context: 
http://www.nabble.com/Padding-doesn%27t-work-tf2315711.html#a6440727
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


Re: Padding doesn't work

2006-09-21 Thread OnionRingOfDoom

Ok, thanks for the quick help there! Someone should fix the doc so that it's
a little easier to find that info though...
-- 
View this message in context: 
http://www.nabble.com/Padding-doesn%27t-work-tf2315711.html#a6440590
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


Re: Padding doesn't work

2006-09-21 Thread Kieren MacMillan

Hello, OROD!


how do I know what to substitute for Voice?


Finding the info is a *little* circuitous, but...

1. Look in the docs at (e.g.) RehearsalMark:



2. Near the top of the page, it says:
"RehearsalMark objects are created by: Mark_engraver"

3. Follow the link to Mark_engraver



4. At the bottom, you'll see:


Therefore, you need to use Score.RehearsalMark instead of just  
RehearsalMark (unless you happen to be *in* the Score context, which  
doesn't happen very often).


HTH!
Kieren.


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


Padding doesn't work

2006-09-21 Thread OnionRingOfDoom

I've tried to add padding to several objects, but it doesn't seem to work. My
code is as follows:

\once \override RehersalMark #'staff-padding = #2.0 
\mark \default |

and

\override OttavaBracket #'padding = #2.5

Both these code snippets do absolutly nothing. It's also rather unclear to
me in the "How To Construct A Tweak" chapter in the manual as to what part
goes first. I've seen examples that are like 

\override Voice.Something #'whatever = bloop

However, how do I know what to substitute for Voice?


-- 
View this message in context: 
http://www.nabble.com/Padding-doesn%27t-work-tf2315711.html#a6440507
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


Re: problem with line breaking with polyrhythm

2006-09-21 Thread Libero Mureddu

Hi,
unfortunately it doesn't work. I put my example in the message, so you
can see if I did something wrong with the whichBar property. (I tried
in the first and in the second staff).

Thanks,

Libero

lily 2.9.17
ibook g4
mac os 10.4.7

%%% SNIPPET %%%

\score {
<<
\set Score.proportionalNotationDuration = #(ly:make-moment 1 16)
\new Staff {% first staff
\time 3/4
c c c %\set Score.whichBar = #""  \bar "|" 
\break
c c c
c c c
} % end staff

\new Staff {% second staff
\time 9/4
\set Staff.timeSignatureFraction = #'(3 . 4)
\compressMusic #'(3 . 4) {
c c c \set Score.whichBar = #""  \bar "|" \break
c c c \bar "|"
c c c \bar "|"
c c c
} % end compressMusic
} % end staff

\new Staff {% third staff
\time 6/4
\set Staff.timeSignatureFraction = #'(3 . 4)
\compressMusic #'(6 . 9) {
c c c \bar "|"
c c c \bar "|"
c c c
} % end compressMusic
} % end staff

>> %end of expressions together
} %end of \score

\layout {
\context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
} % end of context Score

\context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
} % end of context Staff

\context {
\Voice
\remove "Forbid_line_break_engraver"
} % end of context Voice
} % end of layout


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


How to "loosen up" the balloon box? (cool ossia trick you can use too)

2006-09-21 Thread Rick Hansen (aka RickH)

In the example that follows I'm using a "helium balloon on a string" to point
at an ossia.  I like everything about this example except for the box
(balloon) that gets drawn around the note head.  Is there any way to "loosen
up" the box, that is, add some internal padding so that the inside edges of
the box wont actually touch the note head like it is now?  I swear I looked
everywhere but could not find any documentation on the "add-balloon-text"
thingy.  As always, the example that follows will run as-is.

Thanks Rick


% EXAMPLE BEGIN

\version "2.9.18"
\include "english.ly"

varFreeFormOssiaNotes = \relative c' {
   %1
   a'^\markup { \tiny \sans "alternative ending" } b c d
   |
   %2
   e f g a
   \bar "|."
}

varFreeFormOssia = \markup {
   \score {
   \new Staff \with {
\remove Time_signature_engraver
\remove Clef_engraver
\override KeySignature #'transparent = ##t
\override KeySignature #'space-alist =
  #'((time-signature extra-space . 0.0)
  (staff-bar extra-space . 0.0)
  (right-edge extra-space . 0.0)
  (first-note fixed-space . 0.0))
\override KeySignature #'font-size = #'-10.0
} % end ossia staff with
{
   #(set-accidental-style 'modern)
   \clef "treble"
   \key ef \major
   \time 4/4
   \varFreeFormOssiaNotes
} % end ossia staff music
   \layout {
ragged-right = ##t
ragged-last = ##t
ragged-bottom = ##t
ragged-last-bottom = ##t
indent = 0.0\in
system-count = #1
   } % end ossia layout
   } % end ossia score
} % end ossia markup



\score {

   \new Staff {
 #(set-accidental-style 'modern)
 \clef "treble"
 \key ef \major
 \time 4/4
 \relative c'' {
 %1
g'4. g8 g2~ |
 %2
g8 r  ef \times 2/3 { 4 f ef } |
 %3
1~ |
 %4
g8 r c, ef \times 2/3 { g4 f ef } |
 %5
1~ |
 %6
g8 r c, ef \times 2/3 { g4 f ef } |
 %7
   \applyOutput #'Voice #(add-balloon-text
  'NoteHead varFreeFormOssia
  '(3 . -8))
   g2 gs2
 %8
a2 gs2 |
 %9
g2 gs2 |
 %10
a2 bf2 \bar "||"

 } % end notes

   } % end staff

   \layout {
 ragged-right = ##f
 ragged-last = ##f
 ragged-bottom = ##t
 ragged-last-bottom = ##t
 indent = 0.0\in
 system-count = #2
 \context { \RemoveEmptyStaffContext }
 \context { \Score
\override VerticalAxisGroup #'remove-first = ##t
 }
 \context { \Staff
\override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
 }
   } % end main layout

} % end main score


% EXAMPLE END


-- 
View this message in context: 
http://www.nabble.com/How-to-%22loosen-up%22-the-balloon-box--%28cool-ossia-trick-you-can-use-too%29-tf2314333.html#a6436235
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


Re: Indentation despite noindent

2006-09-21 Thread James Cownie

Date: Thu, 21 Sep 2006 07:41:19 +0800 (CST)
From: Mark Pim <[EMAIL PROTECTED]>
Subject: Re: Indentation despite noindent
To: lilypond-user@gnu.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

Sounds more like a problem with LaTeX than Lilypond.

Try setting \parindent=0in

I'm not saying that's definitely right but it might be :)

Mark



Unfortunately that's not the case. You can see in the output that the  
other text (which precedes and follows the music) is correctly  
placed, and by looking in the .eps file produced for the music  
snippet you can see the white space on the left.


Since the problem is visible in the eps file it has to be somewhere  
upstream of latex, which means a Lilypond issue.


--
-- Jim
--
James Cownie <[EMAIL PROTECTED]>





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


Re: Swing Midi

2006-09-21 Thread Rick Hansen (aka RickH)

Band In A Box will allow you to "restyle" any music to jazz swing, bebop
swing, country swing, latin, tango, whatever, and it will import/export midi
files, I believe thay have over a thousand different "styles" to date.  Just
import your file, apply the desired style then export back to midi.  Nice
program for practicing with too, much less boring than a metronome :-)




Mats Bengtsson-4 wrote:
> 
> I wouldn't be surprised if you could find some
> program the took and existing MIDI file and added
> the swing feeling to it. However, I agree that it could
> be an interesting exercise in Scheme programming to
> do it from within LilyPond.
> 
>   /Mats
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Swing-Midi-tf2273531.html#a6434067
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


Re: Swing Midi

2006-09-21 Thread Ted Walther

On Thu, Sep 21, 2006 at 08:25:48AM +0200, Erik Sandberg wrote:

On Wednesday 20 September 2006 22:55, Ted Walther wrote:

On Wed, Sep 20, 2006 at 11:34:33AM -0500, David Greene wrote:
>>If you want to do something more generic (something you can apply
>>on any existing ly score), then you may want to consider using
>>music streams. Music streams are a new concept in 2.9, and nobody
>>has used them yet AFAIK. However, I can try to guide you if you're
>>interested.  (I would guess htat this solution can be coded
>>entirely in Scheme)
>
>I'm very interested in this.  I don't recall seeing anything about
>it in the manual -- maybe I missed it.  Is there a description
>somewhere?

I think I read elsewhere that \partcombine is supposed to be replaced
by these same music streams.  Are they documented anywhere?  Will the
new \partcombine be a wrapper on top of these music streams?


Actually, music streams _are_ already used for partcombine (streams are
converted to a format which partcombine uses, the plan is to change
that format to a more powerful data structure). You can read my thesis
(see link in my other reply on lily-devel) for more info.


Thanks Erik, I saw your post after I already sent that email.  I've
started reading your paper.  I must say, it is very well written.  I am
not used to masters thesis being so clear and easy to read.
Congratulations!  I hope you got your masters with flying colors.

You obviously have a lot on your plate with this new sub-system being
integrated.  Any time line on when the fundamentals will be solid enough
for the partcombine rewrite?  I can donate $100 USD, but am pretty
limited otherwise.

My lilypond wishlist:

 * fix the small size of shape-note heads
 * allow sacred harp "modes" instead of major and minor keys.  In sacred
   harp, accidentals are ignored and 6ths are flattened in minor keys.
 
 * In partcombine, let lyricsto be set to one of the parts that was

   combined.
 * Let partcombine combine more than two parts.

Ted

--
  It's not true unless it makes you laugh,   
 but you don't understand it until it makes you weep.


Eukleia: Ted Walther
Address: 2459 E 41 Ave, Vancouver, BC  V5R2W2 (Canada)
Contact: 604-435-5787


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


Re: Avoiding collisions between voices?

2006-09-21 Thread Kilian A. Foth
Mats Bengtsson writes:
 > 
 > Kilian A. Foth wrote:
 > 
 > > Hello list,
 > >
 > > here is a snippet I've been inputting where I can't seem to move a
 > > colliding note away:
 > >
 > > [...]
 > >
 > >
 > Just replace your \stemUp \shiftRight with \voiceThree.
 > Actually, I think the result looks even better if you use \voiceTwo
 > instead, but you probably have a good reason to let the stems point
 > up. Read also about \shiftOn, \shiftOnn, \shiftOnnn and \shiftOff
 > in the manual. The difference between \voiceOne and  \voiceThree
 > is that the latter also does \shiftOn.
 > 
 >/Mats
 > 

Alright, so it was my mucking around with chord-voice-correspondences
that caused the collision in the first place... With \shiftOn and
\shiftOff I can get the g sharp shifted and the final a aligned just
like I wanted. Thank you very much!

-- 
Kilian A. Foth
Theodorstieg 6
D-22761 Hamburg
040 - 8537 4738 


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


Re: how to get Slur *not* to avoid Stems

2006-09-21 Thread Kieren MacMillan

Hi, Han-Wen:

try tuning down stem-encompass-penalty from its default 30.0 in  
#'details of the Slur.


Thanks for the suggestion. However, I tried

%%% BEGIN SNIPPET %%%

\version "2.9.18"

\paper
{
indent = 0\in
line-width = 3\in
}

theMusic = \relative c''
{
\voiceOne
r8 g' f( e ~ e) c d4 \break

\override Slur #'positions = #'(3.5 . 3)
r8 g f( e ~ e) c d4 \break

\override Slur #'details #'stem-encompass-penalty = #-30
r8 g f( e ~ e) c d4 \break
}

\score
{
\theMusic
}

%%% END SNIPPET %%%

and it didn't work. What did I do wrong?

Thanks,
Kieren.



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


Re: Preventing page breaks

2006-09-21 Thread Rick Hansen (aka RickH)

Also make sure you are aware of the system-count property available. 
Generally I set the between-system-padding to 1 (to negate it) then just
adjust the between-system-space and system-count parameters until the music
is nicely flowed down the whole page.  (between-system-padding comes into
play more on subequent pages)

try/experiment with these parameters added to the \paper and \layout blocks:

\paper {
between-system-padding = #1
between-system-space = #10 % adjust to taste
}

\layout {
ragged-right = ##f
ragged-last = ##f
ragged-bottom = ##t
ragged-last-bottom = ##t
system-count = #5 % adjust to taste
}

Adjusting these settings you will discover the point where it "pops" onto 2
pages, then just back off from there to get it all on one page.  (of coure
if staff and font sizes allow it all on one page)

Rick



OnionRingOfDoom wrote:
> 
> When I added the title of the piece in what used to be a single page of
> music, lilypond decided to split the piece into two pages with each line
> of music being spaced very far apart. Previously I had been using this
> code in order to squeeze as much as I could onto one page without being
> too crowded:
> 
> \paper {
>   between-system-padding = #1
>   ragged-bottom=##f
>   ragged-last-bottom=##f
> }
> 
> Now that this method has failed, is there any other way to ensure that my
> music stays on a single page?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Preventing-page-breaks-tf2309479.html#a6429791
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


Re: Avoiding collisions between voices?

2006-09-21 Thread Mats Bengtsson

Just replace your \stemUp \shiftRight with \voiceThree.
Actually, I think the result looks even better if you use \voiceTwo
instead, but you probably have a good reason to let the stems point
up. Read also about \shiftOn, \shiftOnn, \shiftOnnn and \shiftOff
in the manual. The difference between \voiceOne and  \voiceThree
is that the latter also does \shiftOn.

  /Mats



Kilian A. Foth wrote:


Hello list,

here is a snippet I've been inputting where I can't seem to move a
colliding note away:


shiftRight = { \once \override NoteHead #'extra-offset = #'(1 . 0) 
  \once \override Stem #'extra-offset = #'(1 . 0) } 
\score {

 \relative c'' {

   fis8.\tieDown d16~8.g16gis8.a16c8. \tieUp 16~ |
   \once \override TieColumn #'tie-configuration = #'((2 . -1)  (7 . 1) (10 . 
1))
   1~ | 


   \voiceOne
   \once \override TieColumn #'tie-configuration = #'((2 . -1)  (10 . 1))
   << { 1~ | 
\once \override TieColumn #'tie-configuration = #'((2 . -1) (12 . 2))

2r } \context Voice="1"
  {  \stemUp \shiftRight gis8 a16gis a gis a gis \tieUp a2~ | a2 } >> 
\bar"|."
   
 }

}

As you see, I've managed to position all ties so that they look best,
and even tied the first chord to the corresponding split voices. But
the first g sharp pokes its stem right through the whole note. I've
tried to move it away with extra-offset, but that leaves the beam
looking wrong. 


The manual says one should use force-hshift in this situation, but
overriding the force-hshift for the g sharp has no effect. Is that
because the d and the g sharp are in different voices? How do I make
them aware of each other? Alternatively, how does one override a beam
to be shorter at one end?


 



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


RE: Problem with \markup { \score } quitting after first measure

2006-09-21 Thread Rick Hansen (aka RickH)

You led me onto something Trent so think I found a fix for this, and no
longer consider it a bug.  When I also add "system-count = 1" to the markup
score then it works fine.  It seems that if your are using system-count at
all in your main score then you MUST ALSO specify a system-count on any
\markup scores.  Lilypond then respects both/all system-count's.  Actually
this is pretty good because it gives you a handy way to limit and control
longer ossias.  Thanks.



Trent Johnston wrote:
> 
> Hi Rick,
> 
> Hi just had a look at your code and it seems that the system-count = #2 in 
> the main document layout block is the problem. If your remove the 
> 'system-count' and replace with a \break where the system-count function
> was 
> providing the break (end of bar 5) and re-run both bars of the ossia staff 
> will display.
> 
> Trent
> 
> 
> From: "Rick Hansen (aka RickH)" <[EMAIL PROTECTED]>
> To: lilypond-user@gnu.org
> Subject: Problem with \markup { \score } quitting after first measure
> Date: Wed, 20 Sep 2006 14:36:32 -0700 (PDT)
> 
> 
> v2.9.17
> 
> I believe I have uncovered a bug when using the \markup { \score { ... } }
> capability.  In the following example I assign a markup score of 2
> measures
> to a variable called "varFreeFormOssia".  Then in the main music I apply
> that markup variable to a note.  I would expect 2 measures of markup score
> to print, however only the first measure shows up.  To confirm that my
> markup score is ok, it prints 2 measures just fine when it is run as a
> stand-alone score not in markup.
> 
> This example will run as-is and demonstrates the possible "bug", I wanted
> somebody to maybe confirm that this is a bug before I post it there?
> 
> thanks
> Rick
> 
> 
> %EXAMPLE BEGIN
> 
> \version "2.9.17"
> \include "english.ly"
> 
> varFreeFormOssia = \markup {
> \score {
> \new Staff \with {
>  \remove Time_signature_engraver
>  \remove Clef_engraver
>  \remove Key_engraver
>  } % end ossia staff with
>  {
> #(set-accidental-style 'modern)
> \clef "treble"
> \key ef \major
> \time 4/4
> \relative c' {
>% ossia measure 1
>a'^\markup { \tiny \sans "dear ossia, measures two, how
> come only one measure is printing you?" } b c d
>|
>% ossia measure 2
>e f g a
>|
> } % end ossia measures
>  } % end ossia staff music
> \layout {
>  ragged-right = ##t
>  ragged-last = ##t
>  ragged-bottom = ##t
>  ragged-last-bottom = ##t
>  indent = 0.0\in
> } % end ossia layout
> } % end ossia score
> } % end ossia markup
> 
> % Begin main score
> 
> \score {
> 
> \new Staff {
>   #(set-accidental-style 'modern)
>   \clef "treble"
>   \key ef \major
>   \time 4/4
>   \relative c'' {
>   %1
>  g'4. g8 g2~ |
>   %2
>  g8 r  ef \times 2/3 { 4 f ef } |
>   %3
>  1~ |
>   %4
>  g8 r c, ef \times 2/3 { g4 f ef } |
>   %5
>  1~ |
>   %6
>  g8 r c, ef \times 2/3 { g4 f ef } |
>   %7
> \once \override TextScript #'padding = #6
>  g2_\varFreeFormOssia gs2 |
>   %8
>  a2 gs2 |
>   %9
>  g2 gs2 |
>   %10
>  a2 bf2 \bar "||"
> 
>   } % end notes
> 
> } % end staff
> 
> \layout {
>   ragged-right = ##f
>   ragged-last = ##f
>   ragged-bottom = ##t
>   ragged-last-bottom = ##t
>   indent = 0.0\in
>   system-count = #2
>   \context { \RemoveEmptyStaffContext }
>   \context { \Score
>  \override VerticalAxisGroup #'remove-first = ##t
>   }
>   \context { \Staff
>  \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
>   }
> } % end main layout
> 
> } % end main score
> 
> 
> 
> %EXAMPLE END
> 
> 
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-%5Cmarkup-%7B-%5Cscore-%7D-quitting-after-first-measure-tf2308238.html#a6417200
> 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
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-%5Cmarkup-%7B-%5Cscore-%7D-quitting-after-first-measure-tf2308238.html#a6429463
Sent from the Gnu - Lilypond - User maili

Re: (Fwd) New feature with ragged-last-bottom = ##f?

2006-09-21 Thread Joe Neeman
On Thu, 2006-09-21 at 10:03 +0200, Thomas Scharkowski wrote:
> sorry, breaks are not ignored, but new breaks are inserted.
> 
> --- Weitergeleitete Nachricht / Forwarded message ---
> Von:  Thomas Scharkowski <[EMAIL PROTECTED]>
> An:   lilypond-user@gnu.org
> Betreff:  New feature with ragged-last-bottom = ##f?
> Datum:Thu, 21 Sep 2006 10:01:15 +0200
> 
> Version 2.9.18 Windows:
> 
> When I set ragged-last-bottom = ##f \break commands are ingnored, 
> less bars per line are used resulting in more lines and a more even 
> appearance. Is this a new feature? I did not find it in the "NEWS" 
> section of the doc. I looks good but it should be possible to turn it 
> off, though.

Yes, this is the new page breaker that takes line breaking into account
at the same time as page breaking. If you want fewer lines, your best
bets are to set system-count (in the score \paper block) or to increase
between-system-padding (in the book \paper block).

There is some new information in chapter 11 of the manual that might
help, too.



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


Re: Problem with non-ASCII characters

2006-09-21 Thread Ari Constancio

Bingo!

$ file test.ly
test.ly:  ISO-8859 English text

After setting M-x prefer-coding-system (in Emacs) to utf-8, everything was fine.
So, after all, in spite of the misleading sentences in the docs, if
the editor is correctly set for UTF-8, it works great.

Thanks again,
Ari Constancio

On 9/21/06, Mats Bengtsson <[EMAIL PROTECTED]> wrote:

I noted that text in the manual after sending the previous response, but
my comment is actually relevant for the tex backend as well, so we should
remove that misleading information from the manual.

My guess is that you didn't manage to save your file in UTF8 encoding,
but it could also be that you don't have the necessary fonts (or at least
that LilyPond/Pango doesn't know about them).

If you run the command
file test.ly
it should say something like:
test.ly: UTF-8 Unicode English text
If it doesn't mention UTF-8 then you failed to persuade Emacs to use
the correct encoding.

You could also try to download and process the example utf-8.ly
from the Regression Tests document (just make sure to remove the
line \include "lilypond-book-preamble.ly" at the top of the file first).

   /Mats



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


Re: Problem with non-ASCII characters

2006-09-21 Thread Mats Bengtsson

I noted that text in the manual after sending the previous response, but
my comment is actually relevant for the tex backend as well, so we should
remove that misleading information from the manual.

My guess is that you didn't manage to save your file in UTF8 encoding,
but it could also be that you don't have the necessary fonts (or at least
that LilyPond/Pango doesn't know about them).

If you run the command
file test.ly
it should say something like:
test.ly: UTF-8 Unicode English text
If it doesn't mention UTF-8 then you failed to persuade Emacs to use
the correct encoding.

You could also try to download and process the example utf-8.ly
from the Regression Tests document (just make sure to remove the
line \include "lilypond-book-preamble.ly" at the top of the file first).

  /Mats


Ari Constancio wrote:


Hello,

Thanks for replying.


Why do you use the texstr backend? As far as I know, it's just an old
left over from some experiment that never was finished and it's 
certainly

unsupported.



Probably because it says so in the documentation and it's not
mencioned that it is an unsupported experiment. I referred to the
stable version (2.8.6) but I checked also the 2.9.18 docs. Here's the
diff of the web pages involved
(http://lilypond.org/doc/v2.{8,9}/Documentation/user/lilypond/Text-encoding.html): 



--- 2.8-text-enc.txt2006-09-21 10:06:34.0 +0100
+++ 2.9-text-enc.txt2006-09-21 10:06:25.0 +0100
@@ -4,7 +4,7 @@
   Previous: [4]Including LilyPond files, Up: [5]Input files
 _

-10.1.4 Text encoding
+10.1.6 Text encoding

   LilyPond uses the Pango library to format multi-lingual texts, and
   does not perform any input-encoding conversions. This means that any
@@ -41,7 +41,7 @@

   [7]input/regression/utf-8.ly

-   This page is for LilyPond-2.8.5 (stable-branch).
+   This page is for LilyPond-2.9.18 (development-branch).


Report errors to
@@ -53,13 +53,13 @@

References

-   1. http://lilypond.org/doc/v2.8/Documentation/...
-   2.http://lilypond.org/doc/v2.8/Documentation/...
-   3. http://lilypond.org/doc/v2.8/Documentation/...
-   4. http://lilypond.org/doc/v2.8/Documentation/...
-   5. http://lilypond.org/doc/v2.8/Documentation/...
-   6. http://lilypond.org/doc/v2.8/Documentation/...
-   7. http://lilypond.org/doc/v2.8/Documentation/...
+   1. http://lilypond.org/doc/v2.9/Documentation/...
+   2. http://lilypond.org/doc/v2.9/Documentation/...
+   3. http://lilypond.org/doc/v2.9/Documentation/...
+   4. http://lilypond.org/doc/v2.9/Documentation/...
+   5. http://lilypond.org/doc/v2.9/Documentation/...
+   6. http://lilypond.org/doc/v2.9/Documentation/...
+   7. http://lilypond.org/doc/v2.9/Documentation/...
   8. http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs
-   9. 
http://lilypond.org/doc/v2.8/Documentation/user/lilypond/Text-encoding.html 

+   9. 
http://lilypond.org/doc/v2.9/Documentation/user/lilypond/Text-encoding.html 


  10. http://lilypond.org/web/about/browser-language

Only the version number changed...

I followed your advice, while upgrading to 2.9.18:

$ lilypond test.ly

GNU LilyPond 2.9.18
Processing `test.ly'
Parsing...
Interpreting music...
warning: Two simultaneous key-change events, junking this one
warning: Previous key-change event here
warning: Two simultaneous key-change events, junking this one
warning: Previous key-change event here[8][16][17]
Preprocessing graphical objects...
programming error: FT_Get_Glyph_Name returns error
continuing, cross fingers
programming error: Glyph has no name, but font supports glyph naming.
Skipping glyph: Century Schoolbook L 3.3818359375
continuing, cross fingers
Layout output to `test.ps'...
Converting to `test.pdf'...

The compilation is apparently successful, but the non-ASCII characters
do not appear in the final formats (ps,pdf). Could it be a font
problem?

Thank you again,
Ari Constancio


___
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: Problem with non-ASCII characters

2006-09-21 Thread Ari Constancio

Hello,

Thanks for replying.


Why do you use the texstr backend? As far as I know, it's just an old
left over from some experiment that never was finished and it's certainly
unsupported.


Probably because it says so in the documentation and it's not
mencioned that it is an unsupported experiment. I referred to the
stable version (2.8.6) but I checked also the 2.9.18 docs. Here's the
diff of the web pages involved
(http://lilypond.org/doc/v2.{8,9}/Documentation/user/lilypond/Text-encoding.html):

--- 2.8-text-enc.txt2006-09-21 10:06:34.0 +0100
+++ 2.9-text-enc.txt2006-09-21 10:06:25.0 +0100
@@ -4,7 +4,7 @@
   Previous: [4]Including LilyPond files, Up: [5]Input files
 _

-10.1.4 Text encoding
+10.1.6 Text encoding

   LilyPond uses the Pango library to format multi-lingual texts, and
   does not perform any input-encoding conversions. This means that any
@@ -41,7 +41,7 @@

   [7]input/regression/utf-8.ly

-   This page is for LilyPond-2.8.5 (stable-branch).
+   This page is for LilyPond-2.9.18 (development-branch).


Report errors to
@@ -53,13 +53,13 @@

References

-   1. http://lilypond.org/doc/v2.8/Documentation/...
-   2.http://lilypond.org/doc/v2.8/Documentation/...
-   3. http://lilypond.org/doc/v2.8/Documentation/...
-   4. http://lilypond.org/doc/v2.8/Documentation/...
-   5. http://lilypond.org/doc/v2.8/Documentation/...
-   6. http://lilypond.org/doc/v2.8/Documentation/...
-   7. http://lilypond.org/doc/v2.8/Documentation/...
+   1. http://lilypond.org/doc/v2.9/Documentation/...
+   2. http://lilypond.org/doc/v2.9/Documentation/...
+   3. http://lilypond.org/doc/v2.9/Documentation/...
+   4. http://lilypond.org/doc/v2.9/Documentation/...
+   5. http://lilypond.org/doc/v2.9/Documentation/...
+   6. http://lilypond.org/doc/v2.9/Documentation/...
+   7. http://lilypond.org/doc/v2.9/Documentation/...
   8. http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs
-   9. 
http://lilypond.org/doc/v2.8/Documentation/user/lilypond/Text-encoding.html
+   9. 
http://lilypond.org/doc/v2.9/Documentation/user/lilypond/Text-encoding.html
  10. http://lilypond.org/web/about/browser-language

Only the version number changed...

I followed your advice, while upgrading to 2.9.18:

$ lilypond test.ly

GNU LilyPond 2.9.18
Processing `test.ly'
Parsing...
Interpreting music...
warning: Two simultaneous key-change events, junking this one
warning: Previous key-change event here
warning: Two simultaneous key-change events, junking this one
warning: Previous key-change event here[8][16][17]
Preprocessing graphical objects...
programming error: FT_Get_Glyph_Name returns error
continuing, cross fingers
programming error: Glyph has no name, but font supports glyph naming.
Skipping glyph: Century Schoolbook L 3.3818359375
continuing, cross fingers
Layout output to `test.ps'...
Converting to `test.pdf'...

The compilation is apparently successful, but the non-ASCII characters
do not appear in the final formats (ps,pdf). Could it be a font
problem?

Thank you again,
Ari Constancio


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


Re: problem with line breaking with polyrhythm

2006-09-21 Thread Han-Wen Nienhuys

Han-Wen Nienhuys wrote:

determined by looking at the whichBar property (Score level), but that 
gets set at Staff level if you do polyphonic music. Can you check what 


(Polymetric music, of course)

--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: how to get Slur *not* to avoid Stems

2006-09-21 Thread Han-Wen Nienhuys

Kieren MacMillan wrote:

[ Lilypond 2.9.18 ]

Hello, all --

I'm trying to force a Slur to go through some Stems, but I'm having a 
terrible time.

Even overriding the Stem #'positions doesn't seem to work!

Anyone know how to solve this?

Thanks,
Kieren.
 (


try tuning down stem-encompass-penalty from its default 30.0 in 
#'details of the Slur.




--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Problem with non-ASCII characters

2006-09-21 Thread Mats Bengtsson

Why do you use the texstr backend? As far as I know, it's just an old
left over from some experiment that never was finished and it's certainly
unsupported.

Just use
lilypond test.ly

  /Mats

Ari Constancio wrote:


Hello,

I'm starting to use Lilypond (version 2.8.6-1) and I'm having problems
with non-ASCII characters used on lyrics.
I use Emacs as editor and configured it for UTF-8.

I searched in the 2.8.x manual for issues on encoding and followed
section 10.1.4 (Text encoding) and used the suggested commands (with
test.ly):

$  lilypond -b texstr test.ly

GNU LilyPond 2.8.6
Processing `test.ly'
Parsing...
Interpreting music... [6]
Preprocessing graphical objects...
Calculating line breaks... [3]
Calculating page breaks...
Layout output to `test.texstr'...ERROR: In procedure 
ly_outputter_dump_stencil:

ERROR: Wrong type argument in position 1 (expecting Paper_outputter):
#) (space-left .
106.324757779528) (bottom-system-edge . -53.2536674173228) (penalty .
0.0) (configuration 6.82866141732283 11.8286614173228) (force . 0.0)
(lines #))((is-title . #t) (is-book-title
. #t)) >
#) (refpoint-Y-extent -24.825006 .
-7.6) (penalty . 1) (stencil . #))() >
) (prev . #f) (printable-height . 150.57842519685) (foot-stencil .
#) (head-stencil . #) (page-number . 1) (is-last
. #t) (paper-book . #))((paper-height . 169.57842519685)
(paper-width . 119.50157480315) (left-margin . 5.69055118110236)
(top-margin . 5.0) (bottom-edge . 163.57842519685)) >

The file compiles correctly if I switch the non-ASCII characters by
their ASCII counterparts (so, it is only related to the characters).

I appreciate any help on this; I'm using Debian GNU/Linux.

Ari Constancio


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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


(Fwd) New feature with ragged-last-bottom = ##f?

2006-09-21 Thread Thomas Scharkowski
sorry, breaks are not ignored, but new breaks are inserted.

--- Weitergeleitete Nachricht / Forwarded message ---
Von:Thomas Scharkowski <[EMAIL PROTECTED]>
An: lilypond-user@gnu.org
Betreff:New feature with ragged-last-bottom = ##f?
Datum:  Thu, 21 Sep 2006 10:01:15 +0200

Version 2.9.18 Windows:

When I set ragged-last-bottom = ##f \break commands are ingnored, 
less bars per line are used resulting in more lines and a more even 
appearance. Is this a new feature? I did not find it in the "NEWS" 
section of the doc. I looks good but it should be possible to turn it 

off, though.

Thomas
--- Ende der weitergeleiteten Nachricht / End of forwarded message ---



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


New feature with ragged-last-bottom = ##f?

2006-09-21 Thread Thomas Scharkowski
Version 2.9.18 Windows:

When I set ragged-last-bottom = ##f \break commands are ingnored, 
less bar per line are used resulting in more lines and a more even 
appearance. Is this a new feature? I did not find it in the "NEWS" 
section of the doc. I looks good but it should be possible to turn it 
off, though.

Thomas


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


Re: Preventing page breaks

2006-09-21 Thread Mats Bengtsson



Graham Percival wrote:


OnionRingOfDoom wrote:


When I added the title of the piece in what used to be a single page of
music, lilypond decided to split the piece into two pages with each 
line of
music being spaced very far apart. Previously I had been using this 
code in
order to squeeze as much as I could onto one page without being too 
crowded:


\paper {
  between-system-padding = #1
  ragged-bottom=##f
  ragged-last-bottom=##f
}



Try reducing between-system even more.  In addition, see the 2.9 docs 
for more tips on keeping music on one page.  It's somewhere in 
chapters 3-5.



One highly relevant parameter to tweak that isn't mentioned in Sect.
"5.5 Fitting music onto fewer pages" is between-system-space, which tells
the desired center to center distance between the systems. The default value
is 20 mm and at least if you have a single stave score, it often helps 
to decrease

it to
between-system-space = 15\mm
You can even set it to zero if you use the settings described above.

I'll update the information in the manual.

  /Mats



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