Re: Ossia too long at key change

2014-08-31 Thread Peter Van Kranenburg

On 31/08/14 12:47, Pierre Perol-Schneider wrote:

See also :
http://lilypond.1069038.n5.nabble.com/Ossia-staff-is-too-long-when-a-key-change-happend-td165937.html
Cheers,
Pierre



Thanks a lot for the suggestions!  My ossia contains a ChoirStaff and at 
least one linebreak, so I can't have it as markup.

The filled-box workaround did the trick for me.


Thanks again,
Peter


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


Ossia too long at key change

2014-08-30 Thread Peter Van Kranenburg

Dear List,

If right after an ossia there is a key change in the other parts, the 
staff of the ossia extends with the length of the key signature. See 
below for an example. I can't figure out how to make the ossia stop 
right at the bar line.


I tried to do \set Staff.explicitKeySignatureVisibility = #all-invisible
in the ossia staff, but that didn't work.

Thanks.
Peter


\version 2.18


  \new Staff = ossia \with {
\remove Time_signature_engraver
\hide Clef
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\override StaffSymbol.thickness = #(magstep -3)
  }
  { \stopStaff s1*6 }

  \new Staff \relative c' {
c4 b c2

  { e4 f e2 }
  \context Staff = ossia {
\startStaff e4 g8 f e2 \stopStaff
  }

\key a \major g4 a g2 \break
c4 b c2
  }



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


Beam start and end position

2013-11-09 Thread Peter Van Kranenburg

Dear list,

In this example:

-
\version 2.16.2
\score {
\new Staff \with { \override StaffSymbol #'thickness = #2.0 } { 
\relative c'' { g16 a bes c } }

}
-

The beam does not overlap the stems of the notes entirely, which does 
not look very nice (see attached png). It should start at the left of 
the first stem and end at the right of the last stem rather than in the 
center of both.


Could someone advise me on how to extend the beam a little to the right 
and to the left?


(I need thick lines for engraving the music in a stone).

Thanks in advance!

Peter van Kranenburg
attachment: beamlength.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Beam start and end position

2013-11-09 Thread Peter Van Kranenburg

On 11/9/13 10:59 PM, Peter Van Kranenburg wrote:

Dear list,

In this example:

-
\version 2.16.2
\score {
\new Staff \with { \override StaffSymbol #'thickness = #2.0 } {
\relative c'' { g16 a bes c } }
}
-

The beam does not overlap the stems of the notes entirely, which does
not look very nice (see attached png). It should start at the left of
the first stem and end at the right of the last stem rather than in the
center of both.

Could someone advise me on how to extend the beam a little to the right
and to the left?

(I need thick lines for engraving the music in a stone).



I found a solution myself:

\version 2.16.2

\score {
\new Staff \with { \override StaffSymbol #'thickness = #2.5 }
{ \relative c'' { \override Stem #'beamlet-default-length = #'(0.16 . 
0.18) \override Beam #'clip-edges = ##f g16 a bes c } }

}

It might not be a proper use of these parameters, but it works for me.

best,
Peter


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


Re: exact dimenions of pdf/png

2012-10-30 Thread Peter Van Kranenburg

On 10/29/12 6:13 PM, David Kastrup wrote:

writing
\paper { paper-width=110\mm }
\score { { c4 c4 c4 c4 } }
and using
lilypond -dresolution=1200 --png
I get an image with 5197 pixels width, which is to a pixel exactly what
was demanded.  So perhaps you need to check what throws a spanner in
your works, starting from a simple paper definition.



Thank you for your suggestion.

Invoking 'lilypond -dresolution=1200 --png' results in the right 
dimensions, indeed. Thanks. I will use this. The image is not cropped 
automatically, so I now have to tune the page-height as well. And I have 
to set a small margin for the curly bracket of the PianoStaff. Otherwise 
it would be off the page.


The usage manual however (section 4.4) tells me to do this:
lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts --png 
-dresolution=1200 figure.ly
That results in a png that is too wide. There seems another mechanism at 
work to determine size of resulting image. Cropping?


Thanks,
Peter


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


exact dimenions of pdf/png

2012-10-29 Thread Peter Van Kranenburg

Dear all,

I have to provide a bitmapped image to a publisher:
1200dpi, width: 11cm. It only contains one system.

This implies a width of (11.0/2.54)*1200.0 = 5196 pixels.

I followed the directions from the 'usage' manual, and I put this on top 
of my source file.


\paper{
  indent=0\mm
  line-width=110\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
  ragged-right = ##f
  ragged-last = ##f
}

However. The resulting pdf has a width of 11.19 cm, and the png a width 
of 5283 pixels, which is too large.


I tried to add:

  left-margin=0\mm
  right-margin=0\mm
  paper-width=110\mm
  check-consistency=##t

Then I get a width of 11.15 cm.

How can I set the with of resulting pdf at exactly 11.0 cm?

Thanks!
Peter


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


grace at the start results in midi error.

2011-01-28 Thread Peter Van Kranenburg

Dear all,

\version 2.13.44
\score {
\relative g' { \grace a16 g4 }
\midi { }
\layout { }
}

I have a problem with a grace at the very beginning of the score. 
Lilypond returns an error when creating the midi:


GNU LilyPond 2.13.44
Processing `tst.ly'
Parsing...
Interpreting music...
MIDI output to `tst.midi'...
programming error: Going back in MIDI time.
continuing, cross fingers
programming error: Going back in MIDI time.
continuing, cross fingers
success: Compilation successfully completed


Is this my fault? What to do about it?

thanks,
Peter van Kranenburg


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


Re: beaming in 2.13 - other question

2011-01-09 Thread Peter Van Kranenburg

On 1/9/11 4:02 AM, Carl Sorensen wrote:

On 1/8/11 5:08 PM, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl  wrote:


Dear all,

Consider the following example (adapted from the manual):

\version 2.13.44
\relative c'' {
\time 3/16
\set Timing.beatStructure = #'(2 1)
\set Timing.beamExceptions =
#'( ;start of alist
   (end .   ;entry for end of beams
(   ;start of alist of end points
 ((1 . 32) . (6))   ;rule for 1/32 beams
))) %close all entries
c16 c c |
c32 c c c c c |
c32 c c c c16 |
}

In the third bar, the 16th is connected to the 32s, while the rule for
16th's says that the third sixteenth should be unbeamed.


There's a conflict between your understanding and the rules.  A beam with 4
1/32 notes and 1 1/16 note is a 1/32 beam, so it's doing exactly what it is
supposed to do.  It's beaming it in 6/32, which is what you've asked it to
do.


Ok. I understand. Thank you for the explanation.


As far as I know, it doesn't make much musical sense to do what you're
asking for, so having it not work in autobeaming doesn't seem to be too much
of a problem.


My aim was to group 8th notes in a 6/8 meter as (2 1 2 1), which 
corresponds to the desired articulation, but in the same score I want 
the 16th grouped as (6 6) instead of (4 2 4 2). As I understand it now, 
this is impossible without manual beaming.


For the score I'm working on it's not crucial. It just would have been 
nice.


Best,
Peter


If you want this to work, you'll need to do manual beaming.

Thanks,

Carl





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


beaming in 2.13

2011-01-08 Thread Peter Van Kranenburg

Hello all,

I'm typesetting a piece in 4/4, and I want the eight notes beamed in 
groups of two instead of four. So, according to the notation manual, at 
the very beginning of my score, I say:


\set Score.baseMoment = #(ly:make-moment 1 8)
\set Score.beatStructure = #'(2 2 2 2)

This code is accepted by Lilypond, but the eights are still beamed in 
groups of four. What am I doing wrong?


I'm using 2.13.44

Thanks,

Peter van Kranenburg


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


Re: beaming in 2.13

2011-01-08 Thread Peter Van Kranenburg

On 1/9/11 12:21 AM, Xavier Scheuer wrote:

You need to clear beamExceptions also.

   \set Timing.beamExceptions = #'()

   Most automatic beaming settings for a time signature contain an entry
   for beamExceptions. For example, 4/4 time tries to beam the measure in
   two if there are only eighth notes. The beamExceptions rule can
   override the beatStructure setting if beamExceptions is not reset.

This has been added to the doc by Carl very recently.
Did you have a look at latest version of the doc?
NR 1.2.4 Beams  Setting automatic beam behavior
http://lilypond.org/doc/v2.13/Documentation/notation/beams.html


That solved it. Thanks.
I just followed the snipped with the 5/4 example without reading the 
entire section.


best,
Peter


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


beaming in 2.13 - other question

2011-01-08 Thread Peter Van Kranenburg

Dear all,

Consider the following example (adapted from the manual):

\version 2.13.44
\relative c'' {
\time 3/16
\set Timing.beatStructure = #'(2 1)
\set Timing.beamExceptions =
  #'( ;start of alist
 (end .   ;entry for end of beams
  (   ;start of alist of end points
   ((1 . 32) . (6))   ;rule for 1/32 beams
  ))) %close all entries
c16 c c |
c32 c c c c c |
c32 c c c c16 |
}

In the third bar, the 16th is connected to the 32s, while the rule for 
16th's says that the third sixteenth should be unbeamed.


Is there a precedence in rules? How to influence that?

best,
Peter


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


center text vertically between staves - indicating keyboard changes in organ music

2011-01-04 Thread Peter Van Kranenburg

Hello,

How can I center text vercially between the staves of a PianoStaff?

The two way's I can find in the learning manual (using lyrics and 
defining a Dynamics context, section A.2) seem a bit overdone for just a 
few marks. Is there another - more local - way?


Shifting the text manually by changing the Y-offset is not really an 
option because the space between the staves is not fixed.


The reason:
I'm typesetting music for organ. For the keyboard part I use a 
PianoStaff. I want to indicate keyboard changes. E.g.

Both hands on Grand Clavier
Left hand on Grand Clavier, right hand on Positif
Right hand on Positif, left hand on Grand Clavier
Both hands on Positif
Both hands on Echo
etc.

In the cases where both hands go to the same keyboard, I would like to 
put the indication vertically centered between the staves of the PianoStaff.


Thanks in advance.

best regards,
Peter van Kranenburg



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


Re: center text vertically between staves - indicating keyboard changes in organ music

2011-01-04 Thread Peter Van Kranenburg

On 1/4/11 10:01 PM, Carl Sorensen wrote:




On 1/4/11 6:56 AM, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl  wrote:


Hello,

How can I center text vercially between the staves of a PianoStaff?

The two way's I can find in the learning manual (using lyrics and
defining a Dynamics context, section A.2) seem a bit overdone for just a
few marks. Is there another - more local - way?


As far as I know, no.

The only way I know of to get centered between two staves is to have a
loose-line context between the staves, with an alignment of CENTER.

In general, the text markup is associated with notes, and notes belong to
staves.  So the markup goes with a particular staff.

I'm sorry that this is not as satisfying as you would wish it, but I believe
it is accurate.



Ok. I understand. Good to know.

Thanks,

Peter


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


unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

Dear list,

I'm typesetting unmetered music. My question is: what is the right (or 
best) approach to do so?


If I set Score.timing to false, I have to insert \bar  everywhere in 
order to let lilypond figure out a nice layout. That's tedious.


My current approach is this:


\layout {
  \context {
\Score
\remove Bar_number_engraver
\override BarLine #'transparent = ##t
\override TimeSignature #'transparent = ##t
  }
  \context {
  \PianoStaff
  \override SpanBar #'stencil =
  #(lambda (grob)
(if (string=? (ly:grob-property grob 'glyph-name) |)
(set! (ly:grob-property grob 'glyph-name) ))
(ly:span-bar::print grob))
  }
}


At the beginning of the music I do: \set Timing.defaultBarType = 

So, I set the music with meter - providing lilypond many good points to 
insert line breaks - and I make all barlines empty and hide the meter. 
The problem is that the (empty) bar lines still occupy space, causing 
the notes to be spaced unevenly (see attached example - the bottom part 
is where the bar lines are when they are not empty. The space before the 
final note is really bad).


I tried to set the next-note distance to 0 in the space-alist of 
barline, but that didn't remove all horizontal space.


Is there a better way to do this?

Thanks in advance.

Best,
Peter van Kranenburg
attachment: unmetered_example.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

On 1/2/11 3:03 PM, Sven Axelsson wrote:

On 2 January 2011 14:33, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl  wrote:

Dear list,

I'm typesetting unmetered music. My question is: what is the right (or best)
approach to do so?

If I set Score.timing to false, I have to insert \bar  everywhere in order
to let lilypond figure out a nice layout. That's tedious.

My current approach is this:


\layout {
  \context {
\Score
\remove Bar_number_engraver
\override BarLine #'transparent = ##t
\override TimeSignature #'transparent = ##t
  }
  \context {
  \PianoStaff
  \override SpanBar #'stencil =
  #(lambda (grob)
(if (string=? (ly:grob-property grob 'glyph-name) |)
(set! (ly:grob-property grob 'glyph-name) ))
(ly:span-bar::print grob))
  }
}


At the beginning of the music I do: \set Timing.defaultBarType = 

So, I set the music with meter - providing lilypond many good points to
insert line breaks - and I make all barlines empty and hide the meter. The
problem is that the (empty) bar lines still occupy space, causing the notes
to be spaced unevenly (see attached example - the bottom part is where the
bar lines are when they are not empty. The space before the final note is
really bad).

I tried to set the next-note distance to 0 in the space-alist of barline,
but that didn't remove all horizontal space.

Is there a better way to do this?


Try

\context { \Staff \remove Bar_engraver }

That appears to do what you need.



Thanks for the suggestion. This has the desired effect on the note 
spacing, but it raises other problems:


1. I cannot have the final bar line
2. Clefs and key signatures are not printed at the start of systems
3. line breaks occur everywhere, also in the middle of beams, etc.

Unfortunately, the balance is negative.

best,
Peter


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


Re: unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

On 1/2/11 3:09 PM, Sven Axelsson wrote:

You can also \remove Time_signature_engraver in the \Staff context
if you don't want the invisible time signature to take up space.



Thanks. That looks better indeed.

best,
Peter


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


Re: unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

On 1/2/11 3:17 PM, Frauke Jurgensen wrote:

Oddly, I'm dealing with the exact same problem just now! Like you,
I've set a metre and then set the default bar line type to empty.

Simply removing the Bar_engraver will lead to disaster, although it
will make all the notes evenly spaced...The clefs on subsequent
systems will disappear. Now sure why yet. Section 3.2.9 of the
Internals
Reference gives all the properties of bar lines that you can mess
with; I'll report on what I find out.


I tried to adjust kern, thin-kern, several parameters in space-alist; 
all without success. The descriptions are too sparse for me to get the 
full meaning of the properties.


--- off topic ---


Out of interest, what are you working on? It looks somewhat familiar...


It's organ music. A trio in French Baroque style, part of a Magnificat 
suite, composed by a friend of mine.



Saw your Bach article in CIM 15, btw; nice work!


Thanks.

Looking forward to meet you in Aberdeen.

Best regards,
Peter


Regards,
Frauke

On Sun, Jan 2, 2011 at 1:33 PM, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl  wrote:

Dear list,

I'm typesetting unmetered music. My question is: what is the right (or best)
approach to do so?

If I set Score.timing to false, I have to insert \bar  everywhere in order
to let lilypond figure out a nice layout. That's tedious.

My current approach is this:


\layout {
  \context {
\Score
\remove Bar_number_engraver
\override BarLine #'transparent = ##t
\override TimeSignature #'transparent = ##t
  }
  \context {
  \PianoStaff
  \override SpanBar #'stencil =
  #(lambda (grob)
(if (string=? (ly:grob-property grob 'glyph-name) |)
(set! (ly:grob-property grob 'glyph-name) ))
(ly:span-bar::print grob))
  }
}


At the beginning of the music I do: \set Timing.defaultBarType = 

So, I set the music with meter - providing lilypond many good points to
insert line breaks - and I make all barlines empty and hide the meter. The
problem is that the (empty) bar lines still occupy space, causing the notes
to be spaced unevenly (see attached example - the bottom part is where the
bar lines are when they are not empty. The space before the final note is
really bad).

I tried to set the next-note distance to 0 in the space-alist of barline,
but that didn't remove all horizontal space.

Is there a better way to do this?

Thanks in advance.

Best,
Peter van Kranenburg

___
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: unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

On 1/2/11 3:55 PM, James Bailey wrote:


On Jan 2, 2011, at 3:23 PM, Peter Van Kranenburg wrote:


On 1/2/11 3:03 PM, Sven Axelsson wrote:

On 2 January 2011 14:33, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl   wrote:

Dear list,

I'm typesetting unmetered music. My question is: what is the right (or best)
approach to do so?





minor change since you said you needed a final barline:
\version 2.12.3
\layout {
\context { \Score \remove Timing_translator \remove Bar_number_engraver }
\context { \Staff \override TimeSignature #'stencil = ##f
}
}
music = {
\override Staff.BarLine #'stencil = ##f
\repeat unfold 32 { \repeat unfold 2 { a8[ a a a] } }
\revert Staff.BarLine #'stencil
\bar |.
}
\score { \music \layout {} }


Thanks a lot! That looks very good indeed.
The only drawback is that automatic beaming is off. Automatic beaming is 
an advantage of having an underlying meter.


So, the trade-off is inserting \bar  at many places or manually 
indicating all beams...


best,
Peter


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


Re: unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

On 1/2/11 3:54 PM, Neil Puttock wrote:

On 2 January 2011 13:33, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl  wrote:


At the beginning of the music I do: \set Timing.defaultBarType = 

So, I set the music with meter - providing lilypond many good points to
insert line breaks - and I make all barlines empty and hide the meter. The
problem is that the (empty) bar lines still occupy space, causing the notes
to be spaced unevenly (see attached example - the bottom part is where the
bar lines are when they are not empty. The space before the final note is
really bad).


If you upgrade to 2.13, you'll find that empty barlines don't take up any space.


Indeed. This makes me very happy! Thanks a lot!

One final question - maybe trivial - but I am not able to figure out 
what the equivalent of


\set Timing.defaultBarType = 

in the layout block should be.

best,
Peter



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


Re: unmetered music - page breaks and empty bar lines

2011-01-02 Thread Peter Van Kranenburg

On 1/2/11 5:12 PM, Frauke Jurgensen wrote:

Hmm, when I tried this, I got something like mensurstriche
instead...but that must be because I was using a PianoStaff. When I
get rid of the PianoStaff, I can get the (lack of space-occupying) bar
lines I want, but attempts at creating a StaffGroup to give me back my
curly brace have failed so far.


Those 'mensurstriche' are created by the spanbar engraver. A solution is 
here: http://lsr.dsi.unimi.it/LSR/Item?id=299


or more rigorous:

\layout {
  \context {
\PianoStaff
\override SpanBar #'stencil = ##f
  }
}

best,
Peter


On Sun, Jan 2, 2011 at 3:14 PM, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl  wrote:

On 1/2/11 3:55 PM, James Bailey wrote:






minor change since you said you needed a final barline:
\version 2.12.3
\layout {
\context { \Score \remove Timing_translator \remove Bar_number_engraver
}
\context { \Staff \override TimeSignature #'stencil = ##f
}
}
music = {
\override Staff.BarLine #'stencil = ##f
\repeat unfold 32 { \repeat unfold 2 { a8[ a a a] } }
\revert Staff.BarLine #'stencil
\bar |.
}
\score { \music \layout {} }





best,
Peter


___
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: invisible rest that takes no horizontal space

2010-06-18 Thread Peter Van Kranenburg

On 6/18/10 2:10 PM, Dmytro O. Redchuk wrote:

Is it possible to set the measurePosition to the measureLength
manually? I am lacking lisp skills. How to access
Timing.measurelength? This does not work:

\set Timing.measurePosition = Timing.measureLength

Looks like any_number  the_same_number would do.



Only for meters like 4/4 or 2/2. Not for meters like 3/4 or 6/8.

So the question remains, how to set Timing.measurePosition to the value 
of Timing.measurelength.



best,
Peter




Not tested at all, sorry .)



P.




So, what I am looking for is a simple solution to prevent the
invisible rest (s) from taking horizontal space. Then we have at
least output that is visually more acceptable.

best,
Peter





--
http://www.meertens.knaw.nl/cms/en
http://www.musical-style-recognition.net/
http://www.lodebar.nl/pvk

Visiting Address:
Meertens Instituut, Room 0.54
Joan Muyskenweg 25; 1096 CJ Amsterdam; Netherlands

Postal Address: Postbus 94264; 1090 GG Amsterdam; Netherlands
Tel: +31 (0)20 4628507






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


Re: invisible rest that takes no horizontal space

2010-06-18 Thread Peter Van Kranenburg

On 6/18/10 3:19 PM, Dmytro O. Redchuk wrote:

I've found http://lsr.dsi.unimi.it/LSR/Snippet?id=333 and tried this:

%-8-
stopThisMeasure = \applyContext
#(lambda (x)
   (ly:context-set-property!
 (ly:context-property-where-defined x 'measurePosition)
   'measurePosition
   (ly:context-property x 'measureLength)))

\relative c'' {
   \override Score.BarNumber #'break-visibility = #all-visible
   \time 3/4
   d4. e8 fis4 |
   d4 \stopThisMeasure
   \bar :|:
   fis2 g4 |
}
%-8-

I actually don't understand how it works .) And whether it does at all .)

It seems it does what's you are looking for, but i am not sure.

Well, bar numbers increase but not shown, i would like to know how to
workaround this, but can not look for that any further now.



It does.

I got the bar number printed using a little hack:

stopThisMeasure = \applyContext
#(lambda (x)
  (ly:context-set-property!
(ly:context-property-where-defined x 'measurePosition)
  'measurePosition
  (ly:moment-sub (ly:context-property x 'measureLength) 
(ly:make-moment 1 128) )))


then \stopThisMeasure s128 has the desired effect. Probably because 
the measure is ended in the normal way. Still some horizontal space is 
inserted by this, but it is minimal because of the 128th rest. I can 
live with that.


Thanks a lot!

Peter


Hope, it will be useful for you,
and/or someone more knowledgeable will help you :-)

Sorry for the noise.



best,
Peter


Not tested at all, sorry .)






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


Re: invisible rest that takes no horizontal space

2010-06-18 Thread Peter Van Kranenburg

On 6/18/10 4:08 PM, Arle Lommel wrote:

Dmytro, how well defined are the contexts where these occur? If the patterns 
are well enough defined, you could probably automate all the replacements with 
\partial by using a regular expression across all the files that is centered on 
looking for the s2 sorts of things. Whether it would work would really depend 
on how predictable these things would be. It would be much simpler if you were 
using bar checks as then there would be something in the pattern to anchor the 
search on, but your example

d2 s2 \bar :|:

could be accounted for with something like

Search string:
([a-g](?:is|es)?2) s2 \\bar :\|:

Replacement string:
\\partial 2\r\1 \\bar :|:

[...] Where it would break down is if these partial measures are variable in 
length or if you have variable numbers of notes before the spacer, in which 
case it might not work. [...]


Which is the case. I'm dealing with quite messy 18th century manuscripts.

Thanks for thinking along with me, but it seems not possible to escape 
from some computing with note and rest durations in order to insert the 
\partial command at the right place and with the right duration.


best,
Peter



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


invisible rest that takes no horizontal space

2010-06-15 Thread Peter Van Kranenburg

Hi all,

\skip and s consume score time, but both print some horizontal space. 
How can I insert an invisible rest that does not take horizontal space?

I searched the manuals and snippet repository, but no clue...

Thanks!

Peter van Kranenburg


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


Re: invisible rest that takes no horizontal space

2010-06-15 Thread Peter Van Kranenburg

On 6/15/10 10:05 PM, Kieren MacMillan wrote:

Hi Richie,


\skip and s consume score time, but both print some horizontal space.
How can I insert an invisible rest that does not take horizontal space?
I searched the manuals and snippet repository, but no clue...


Use

   r4*0

You may have to put

   \once \override Rest #'X-extent = #'(0 . 0)

or

   \once \override Rest #'extra-spacing-width = #'(+inf.0 . -inf.0)

to eliminate any space.



Thank you. That triggered the right solution. r4*0 does not work. The 
rest collides with the following note. But, s4*0 works for me. And that 
is exactly what I need. I have around 1000 melodies in which partial 
measures were solved by inserting invisible rests (s) instead of using 
\partial. With this solution it is relatively easy to write a script to 
add *0 to all those invisible rests in order to get visually satisfying 
scores.


Thanks again!

Peter


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


Re: invisible rest that takes no horizontal space

2010-06-15 Thread Peter Van Kranenburg

On 6/15/10 11:34 PM, Peter Van Kranenburg wrote:

Thank you. That triggered the right solution. r4*0 does not work. The
rest collides with the following note. But, s4*0 works for me. And that
is exactly what I need. I have around 1000 melodies in which partial
measures were solved by inserting invisible rests (s) instead of using
\partial. With this solution it is relatively easy to write a script to
add *0 to all those invisible rests in order to get visually satisfying
scores.


On closer look, I see it does not work... The bar lines after the 
invisible rest are shifted. This takes no score time and no space.


In the Notation Reference I found how to set Score.measurePosition. Is 
it also possible to increase Score.measurePosition?



Peter


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


Re: partial measure with independent time signatures

2009-02-26 Thread Peter Van Kranenburg

Mats Bengtsson wrote:
The reason for your problems is that the command \partial 8 is 
equivalent to

\set Score.measurePosition = #(ly:make-moment -1 8)
which does the setting on the Score level. The solution is to make the 


Ok. Perfectly clear. Thanks a lot!

Peter


corresponding
setting in the Timing context (which is just an alias for the context 
where the

Timing_translator currently lives:

\version 2.12.1

\layout {
\context {
\Score
\remove Timing_translator
\remove Default_bar_line_engraver
}
\context {
\Staff
\consists Timing_translator
\consists Default_bar_line_engraver
}
}
% Now each staff has its own time signature.
\relative c' 
\new Staff {
\time 2/4
\set Timing.measurePosition = #(ly:make-moment -1 8)
%\partial 8*1
d8 | d4 f8 a
}
\new Staff {
\time 2/2
\set Timing.measurePosition = #(ly:make-moment -1 4)
%\partial 4*1
a,4 | d4. e8 f4 g
}
 

  /Mats


Peter Van Kranenburg wrote:

Hello all,

Why isn't the \partial working in the code below?
I get:

/Users/pvk/tmp/polymeter.ly:20:3: warning: barcheck failed at: -1/8
d8
   | d4 f8 a
/Users/pvk/tmp/polymeter.ly:25:4: warning: barcheck failed at: 1/4
a,4
| d4. e8 f4 g

If I include only one of the staves, everything is ok.

thanks in advance,
Peter van Kranenburg


\version 2.12.1

\layout {
\context {
\Score
\remove Timing_translator
\remove Default_bar_line_engraver
}
\context {
\Staff
\consists Timing_translator
\consists Default_bar_line_engraver
}
}
% Now each staff has its own time signature.
\relative c' 
\new Staff {
\time 2/4
\partial 8*1
d8 | d4 f8 a
}
\new Staff {
\time 2/2
\partial 4*1
a,4 | d4. e8 f4 g
}




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




--
http://www.cs.uu.nl/staff/petervk.html
http://www.cs.uu.nl/research/projects/witchcraft

Visiting Address:
Meertens Instituut, Room 0.54
Joan Muyskenweg 25; 1096 CJ Amsterdam; Netherlands

Postal Address: Postbus 94264; 1090 GG Amsterdam; Netherlands
Tel: +31 (0)20 4628507


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


partial measure with independent time signatures

2009-02-25 Thread Peter Van Kranenburg

Hello all,

Why isn't the \partial working in the code below?
I get:

/Users/pvk/tmp/polymeter.ly:20:3: warning: barcheck failed at: -1/8
d8
   | d4 f8 a
/Users/pvk/tmp/polymeter.ly:25:4: warning: barcheck failed at: 1/4
a,4
| d4. e8 f4 g

If I include only one of the staves, everything is ok.

thanks in advance,
Peter van Kranenburg


\version 2.12.1

\layout {
\context {
\Score
\remove Timing_translator
\remove Default_bar_line_engraver
}
\context {
\Staff
\consists Timing_translator
\consists Default_bar_line_engraver
}
}
% Now each staff has its own time signature.
\relative c' 
\new Staff {
\time 2/4
\partial 8*1
d8 | d4 f8 a
}
\new Staff {
\time 2/2
\partial 4*1
a,4 | d4. e8 f4 g
}




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


rotation with unwanted shift to the right

2008-11-19 Thread Peter Van Kranenburg

Dear all,

When I rotate text that is right under a note, it is also shifted to the 
right. In the example below, I want the numbers exactly between the note 
on the top stave and on the bottom stave. When there is only a 0, it 
is ok. When there are three digits, there is a small shift. When there 
are more digits (e.g. the 0.630947), the shift is so big that the 
number is below the next note.


I would be grateful if somebody could tell me how to rotate long strings 
without shifting them to the right.


Thanks in advance!

Peter van Kranenburg




\version2.11.56
\markup {\wordwrap-string#Aligner  : AffineGlobalAligner

Substitution : ProductCombiner

Gap  : SimpleGapRater
}
\markup {\wordwrap-string#Score : 3.10154
}
\score {

 \new Staff { \set Staff.instrumentName = NLB00_00 \autoBeamOff 
\bar  s16  \bar  s16  \bardashed a'16(_\markup\rotate #90 
0.630947^0  \bar a'16  \bar a'16  \bar a'16)  \bar a'16( 
\bar a'16  \bar a'16  \bar a'16)_\markup\rotate #90 0  \bar 
b'16_\markup\rotate #90 0.75  \bar c''16_\markup\rotate #90 0.75 
\bar d''16_\markup\rotate #90 0.75  \bar c''16_\markup\rotate #90 
0.220588  \bar  s16  \bar  s16  \bar  s16  \bar  s16  \bar 
b'16(_\markup\rotate #90 0  \bar b'16)_\markup\rotate #90 0 
\bar a'16(_\markup\rotate #90 0  \bar a'16)_\markup\rotate #90 0 }


 \new Staff { \set Staff.instrumentName = NLB00_00 \autoBeamOff 
\bar a'16^0  \bar a'16  \bar b'16  \bar  s16  \bar  s16 
\bar  s16  \bar  s16  \bar  s16  \bar  s16  \bar c''16  \bar 
d''16  \bar c''16  \bar b'16(  \bar b'16)  \bar a'16(  \bar 
a'16  \bar a'16  \bar a'16)  \bar a'16(  \bar a'16  \bar a'16 
 \bar a'16) }


}
\layout{ indent = 3.0\cm
\context { \Score \remove Timing_translator \remove 
Default_bar_line_engraver }
\context { \Staff \remove Default_bar_line_engraver \remove 
Time_signature_engraver \consists Timing_translator \override Stem 
#'transparent = ##t } }




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


Re: rotation with unwanted shift to the right

2008-11-19 Thread Peter Van Kranenburg

Neil Puttock wrote:

Hi Peter,

2008/11/19 Peter Van Kranenburg [EMAIL PROTECTED]:


I would be grateful if somebody could tell me how to rotate long strings
without shifting them to the right.


Try this:

\override TextScript #'self-alignment-X = #LEFT



That works great. Thanks a lot!


By the way, you don't need to remove the Default_bar_line_engraver
from the Staff context, since it's never there by default anyway.



Ok. I will remove it. Thanks again.


Best,
Peter



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


override-auto-beam-setting in safe mode

2008-07-10 Thread Peter Van Kranenburg

Hello all,

When I do

#(override-auto-beam-setting '(end * * 3 4) 1 4)

in safe mode, I get the following error:

Parsing...ERROR: Unbound variable: override-auto-beam-setting

Is there a solution for this?

thanks,
Peter van Kranenburg



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


markup in \wordwrap-string

2008-05-06 Thread Peter Van Kranenburg

Something like

\markup { \wordwrap-string # blah \italic { blah } blah}

doesn't work. From the documentation I could not figure out how to create a 
paragraph of text in which markup is possible. Does someone have a solution for 
this?


Thanks in advance,
Peter van Kranenburg



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


Re: markup in \wordwrap-string

2008-05-06 Thread Peter Van Kranenburg

Peter Van Kranenburg wrote:

Something like

\markup { \wordwrap-string # blah \italic { blah } blah}

doesn't work. From the documentation I could not figure out how to 
create a paragraph of text in which markup is possible. Does someone 
have a solution for this?




I was too quick asking this question. I found a solution in the manual

\markuplines {
\justified-lines {par 1 \italic { blah }}
\justified-lines {par 2 }
}

Sorry for bothering you with this.

Peter



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


Re: decrease distance between beams in tremolo?

2008-03-02 Thread Peter Van Kranenburg

Mats Bengtsson wrote:

As far as I can see in the source code, it should help to do
\override StemTremolo #'length-fraction = #0.8
(the default value seems to be 1). I haven't tried it though.
I you manage, please send a follow-up to the mailing list
for the record (it also seems that this property is missing
in the documentation for StemTremolo).



This works perfectly. Thanks a lot!

some examples:

-
\version 2.11.38
{
\override StemTremolo #'beam-thickness = #0.2
\override StemTremolo #'beam-width = #2
\override StemTremolo #'length-fraction = #0.7
\override StemTremolo #'Y-offset = #1.5
\stemUp b'1:16

\override StemTremolo #'beam-thickness = #0.2
\override StemTremolo #'beam-width = #2
\override StemTremolo #'length-fraction = #0.7
\override StemTremolo #'Y-offset = #-0.8
\stemDown g'1:16

\override StemTremolo #'beam-thickness = #0.2
\override StemTremolo #'beam-width = #2
\override StemTremolo #'length-fraction = #0.7
\override StemTremolo #'Y-offset = #-0.4
\stemUp g'4:16
}
-

Adjusting the Y-offset all the time is a bit tedious, but it works.

regards,
Peter van Kranenburg



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


decrease distance between beams in tremolo?

2008-02-29 Thread Peter Van Kranenburg

hello list,

Is it possible to decrease the distance between the beams of a tremolo?

I'm asking because I'm typsetting 17th century organ music which has an ornament 
of two slashed through the stem all the time. If I decrease the thickness of a 
tremolo, it looks almost right, except for the distance between the slashes. 
They should be a bit closer together.


regards,
Peter van Kranenburg



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


Re: 17th century keyboard ornament

2006-07-24 Thread Peter Van Kranenburg

Fairchild wrote:

Peter -

Sorry, I haven't deduced how postscript determines 0, 0.  Likely what you
want can be done with Scheme


That's what I'm gonna try, indeed.
Nevertheless, many thanks for the suggestions.

Peter



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


Re: 17th century keyboard ornament

2006-07-23 Thread Peter Van Kranenburg

Fairchild wrote:

Peter -

Tune to suit.



Thanks. After some tuning, I got the desired result indeed.
There are, however, some questions left. With this solution, I have to 
define two macros for each pitch, one for stem up and one for stem down. 
Besides this, the direction of the stem must be known at encoding stage. 
Is there a way to position the dashes relatively to the (invisible) 
stem, so that a more generic macro can be defined?


Of course I will keep working on this myself by reading the manual and 
experimenting, but if someone can give me a clue, it would probably 
speed up.


regards,
Peter



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


Re: Lilypond on max os x takes huge amount of time

2006-07-19 Thread Peter van Kranenburg

Han-Wen Nienhuys wrote:


It's a possibility. I recommend that you run fc-cache in

  /System/Library/Fonts

and

   /Library/Fonts

this will speed up future calls as well.


Thanks. This solved our problem.

One remark: We have several mac systems here. All the users have their 
home dir on the network, so they can login on every computer. For some 
users it is sufficient to copy the lilypond font cache (the one that was 
generated correctly) to the home dir of the user. But for other users it 
is necessary to build the font cache in /System/Library/Fonts on the 
machine they are using. I don't understand this difference.


regards,
Peter

--
Peter van Kranenburg MA MSc
Ph.D. Student WITCHCRAFT Project
Department of Information and Computing Sciences
Utrecht University

Visiting Address:
Meertens Instituut
Room 0.54
Joan Muyskenweg 25
1096 CJ Amsterdam
Netherlands

Postal Address:
Postbus 94264
1090 GG Amsterdam
Netherlands

email: [EMAIL PROTECTED]
tel: +31 (0)20 4628507



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


17th century keyboard ornament

2006-07-19 Thread Peter Van Kranenburg

Hi all,

I'm trying to typeset some 17th century keyboard music from the Southern
Netherlands. An often used ornament is a slanted double dash through the
stem of the note (zie attached image - sorry for the bad quality).

I tried to adapt the tremolo:

-
\version 2.8.5

doubledash = {\once \override Voice.StemTremolo #'beam-thickness = #0.2 }

\layout { ragged-right = ##t }
\score {
\relative c'

\new Staff { \time 3/4 \doubledash g'':16 g g }
\new Staff { \clef bass  { r4 \doubledash bes,,2:16 } \\ { g2~ g4 }  }



}
-

This doesn't satisfy me. The vertical space between the dashes is too 
large. Especially when the stem is short (as is with the bes in the 
above example). I can't find a parameter to control this distance.


Can someone give me a suggestion how to typeset this ornament?

thanks in advance,
Peter van Kranenburg


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


Lilypond on max os x takes huge amount of time

2006-06-29 Thread Peter van Kranenburg
Hi

When typesetting a score using lilypond on Mac Os X, it takes a long time before
lilypond starts to parse the inputfile (aprox one and a half minute on my
system). During this time there is no feedback yet.

Is this a known problem? Is there a solution for it?

I noticed that the file .lilypond-2.8.5-font.cache-1 in my homedir is empty.
Maybe this has somthing to do with it?

Lilypond 2.8.5-1
Mac Os X 10.3.9
PowerPC G4 1.25 GHz
My homedir is on a network drive, lilypond is installed on the local harddisk.

Thanks in advance,
regards,

Peter van Kranenburg

-- 
Peter van Kranenburg MA MSc
Ph.D. Student WITCHCRAFT Project
Department of Information and Computing Sciences
Utrecht University

Visiting Address:
Meertens Instituut
Room 0.54
Joan Muyskenweg 25
1096 CJ Amsterdam
Netherlands

Postal Address:
Postbus 94264
1090 GG Amsterdam
Netherlands

email: [EMAIL PROTECTED]
tel: +31 (0)20 4628507 



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


Re: Lilypond on max os x takes huge amount of time

2006-06-29 Thread Peter van Kranenburg

Addition:

If lilypond is run from a local account, everything is ok. Then the 
font-cache file contains the proper contents. So, it has something to do 
with the creation of the font-cache on a network account.


regards,
Peter

Peter van Kranenburg wrote:

Hi

When typesetting a score using lilypond on Mac Os X, it takes a long time before
lilypond starts to parse the inputfile (aprox one and a half minute on my
system). During this time there is no feedback yet.

Is this a known problem? Is there a solution for it?

I noticed that the file .lilypond-2.8.5-font.cache-1 in my homedir is empty.
Maybe this has somthing to do with it?

Lilypond 2.8.5-1
Mac Os X 10.3.9
PowerPC G4 1.25 GHz
My homedir is on a network drive, lilypond is installed on the local harddisk.

Thanks in advance,
regards,

Peter van Kranenburg




--
Peter van Kranenburg MA MSc
Ph.D. Student WITCHCRAFT Project
Department of Information and Computing Sciences
Utrecht University

Visiting Address:
Meertens Instituut
Room 0.54
Joan Muyskenweg 25
1096 CJ Amsterdam
Netherlands

Postal Address:
Postbus 94264
1090 GG Amsterdam
Netherlands

email: [EMAIL PROTECTED]
tel: +31 (0)20 4628507



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