Re: Controlling horizontal bracket start position after a line break?

2011-09-14 Thread Neil Puttock
On 13 September 2011 23:50, harm6  wrote:

> modifying some definitions developed by Mike and David in this thread
> http://old.nabble.com/shorten-a-broken-hairpin-at-a-linebreak--td32343028.html
> I hope this will do the job:

This is a bit complicated. :)

> \version "2.14.2"
>
> #(define (has-interface? grob interface)
>  (member interface
>         (assoc-get 'interfaces
>                    (ly:grob-property grob 'meta

grob::has-interface

> #(define (find-system grob)
>  (if (has-interface? grob 'system-interface)
>     grob
>     (find-system (ly:grob-parent grob X

ly:grob-system

> #(define (first-musical-column grobl)
>  (if (not (eqv? #t (ly:grob-property (car grobl) 'non-musical)))
>     (car grobl)
>     (first-musical-column (cdr grobl

HorizontalBracket carries an array of NoteColumn grobs, so the bound
is already available for the broken spanner:

\version "2.15.11"

\layout { ragged-right = ##t }

\new Voice \with {
  \consists "Horizontal_bracket_engraver"
  \override HorizontalBracket #'after-line-breaking =
  #(lambda (grob)
 (let* ((orig (ly:grob-original grob))
(broken-intos (ly:spanner-broken-into orig)))
   (and (pair? broken-intos)
(>= (length broken-intos) 2)
(eq? (car (last-pair broken-intos)) grob)
(let ((cols (ly:grob-array->list (ly:grob-object grob 'columns
  (set! (ly:grob-property grob 'edge-height) '(0 . 1))
  (ly:spanner-set-bound! grob LEFT (car cols))

}
{
  c'1 \startGroup
  d'1 \break
  e'1
  f'1 \stopGroup
}

Cheers,
Neil

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


Re: Change beam grouping

2011-09-14 Thread Peekay Ex
Hello,

On Wed, Sep 14, 2011 at 7:46 PM, Sven Axelsson  wrote:
> Hi list.
>
> This is probably in the manual,

http://lilypond.org/doc/v2.14/Documentation/notation/beams#setting-automatic-beam-behavior

-- 
--
James

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


Re: Begin with a staff bar at left edge

2011-09-14 Thread Neil Puttock
2011/9/14 Janek Warchoł :

> Why shouldn't it be controlled by break-visibility?

See output-lib.scm, bar-glyph-alist and bar-line::calc-glyph-name.

Cheers,
Neil

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


Re: Begin with a staff bar at left edge

2011-09-14 Thread Janek Warchoł
2011/9/14 Neil Puttock :
> 2011/9/14 Janek Warchoł :
>
>> Interesting, shouldn't \override Staff.BarLine #'break-visibility =
>> #'#(#t #t #t) solve Xavier's problem?  Should i report this as a bug?
>
> No.  An ordinary barline isn't allowed at the start of a system.

Why shouldn't it be controlled by break-visibility?

cheers,
Janek

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


Re: Begin with a staff bar at left edge

2011-09-14 Thread Neil Puttock
2011/9/14 Janek Warchoł :

> Interesting, shouldn't \override Staff.BarLine #'break-visibility =
> #'#(#t #t #t) solve Xavier's problem?  Should i report this as a bug?

No.  An ordinary barline isn't allowed at the start of a system.

Cheers,
Neil

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


Re: Begin with a staff bar at left edge

2011-09-14 Thread Xavier Scheuer
On 14 September 2011 22:42, Neil Puttock  wrote:
>
> Use a SystemStartBar instead (with collapse-height overridden).
>

Yeah!
Thank you for this quick answer.

SystemStartBar did not come into my mind!
It is indeed a simple and efficient solution (I increased the thickness
of SystemStartBar from #1.6 to #1.9 so it looks like a real bar line).

Thank you very much!

Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: Begin with a staff bar at left edge

2011-09-14 Thread Janek Warchoł
2011/9/14 Neil Puttock :
> On 14 September 2011 21:30, Xavier Scheuer  wrote:
>
>> What I'd like to get but I did not managed to is to begin the staff
>> with a _normal bar_ ( \bar "|" ) at the left edge (because these
>> measures are to be inserted in the middle of an existing [scanned]
>> score).
>> I tried to modify the place of "staff-bar" in
>>  Score.BreakAlignment #'break-align-orders
>> but I am not able to print a normal bar at the extreme left of the
>> staff (left edge).
>>
>> Would you have some advice ?
>
> Use a SystemStartBar instead (with collapse-height overridden).

Interesting, shouldn't \override Staff.BarLine #'break-visibility =
#'#(#t #t #t) solve Xavier's problem?  Should i report this as a bug?

cheers,
Janek

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


Re: Manual page breaks

2011-09-14 Thread Xavier Scheuer
Looks like a valid bug report.
Fwd to bug- (it was originally sent to -user).

On 12 September 2011 22:08, Ed Gordijn  wrote:
>
> Hi List,
>
> I am working on a piece with three movements. I organized my score in
> different files, for the tiny-example let's say two. The fist file is
> instrument.ly and the second part.lyi. I have different instruments and
> therefore multiple instrument.ly files but I want to use just a single
> part.lyi. So far nothing special. But I can't find a way to insert
> pagebreaks between the movements in my instrument.ly. I don't want fixed
> page breaks in part.lyi because of the differences in length of the
> instrument scores.
>
> In the tiny example I tried to get Movement I on the first page and Movement
> II and III together on a second page. But the \pageBreak is ignored.
>
> How does this work?
>
> Greetings, Ed
>
>
> %%% Tiny example %%%
>
> \version "2.15.10"
>
> % instrument.ly
> mvtI   = { c'4 c' c' c' \pageBreak }
> mvtII  = { d'4 d' d' d' }
> mvtIII = { e'4 e' e' e' }
>
>
> % part.lyi (identical for all instruments)
> \score {
>\new Staff { \mvtI }
>\header { piece = "Movement I"}
> }
>
> \score {
>\new Staff { \mvtII }
>\header { piece = "Movement II"}
> }
>
> \score {
>\new Staff { \mvtIII }
>\header { piece = "Movement III"}
> }
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: Begin with a staff bar at left edge

2011-09-14 Thread Neil Puttock
On 14 September 2011 21:30, Xavier Scheuer  wrote:

> What I'd like to get but I did not managed to is to begin the staff
> with a _normal bar_ ( \bar "|" ) at the left edge (because these
> measures are to be inserted in the middle of an existing [scanned]
> score).
> I tried to modify the place of "staff-bar" in
>  Score.BreakAlignment #'break-align-orders
> but I am not able to print a normal bar at the extreme left of the
> staff (left edge).
>
> Would you have some advice ?

Use a SystemStartBar instead (with collapse-height overridden).

Cheers,
Neil

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


Begin with a staff bar at left edge

2011-09-14 Thread Xavier Scheuer
Hello,

I'd like to add some measures (engraved thanks to LilyPond) to an
existing *scanned* score.
So I begin with a currentBarNumber different from 1, I remove the
TimeSignature stencil at the beginning, etc.
And as there are only a very small number of measures to insert I
compile with  -dpreview  in order to have a cropped image, ready to be
inserted.

What I'd like to get but I did not managed to is to begin the staff
with a _normal bar_ ( \bar "|" ) at the left edge (because these
measures are to be inserted in the middle of an existing [scanned]
score).
I tried to modify the place of "staff-bar" in
  Score.BreakAlignment #'break-align-orders
but I am not able to print a normal bar at the extreme left of the
staff (left edge).

Would you have some advice ?
Thanks in advance.

Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: Mac OS 10.5 ppc & Lilypond?

2011-09-14 Thread Stan Sanderson
On Sep 13, 2011, at 11:57 PM, Colin Campbell  wrote:

> On 11-09-13 10:29 AM, Stan Sanderson wrote:
>> Thanks. I will recheck the list setting.
>> Looks like Bugreports will see this twice!
>> 
>> Stan
>> 
>> On Sep 13, 2011, at 11:21 AM, Xavier Scheuer  wrote:
>> 
>>> On 13 September 2011 18:05, Stan Sanderson  wrote:
 I'd really like to know if my trusty PowerBook G4, running OS 10.5.8,
 is now fated to only run earlier versions of Lilypond.  2.15.11 won't
 run; 2.15.8 does.
 
 This is a second post as a copy of the original never arrived in my 
 mailbox.
>>> Messages you send to the mailing list are not "delivered back" to your
>>> inbox (this is a feature actually, you can change it in your options
>>> on https://lists.gnu.org/mailman/listinfo/lilypond-user  IIRC).
>>> 
>>> Fwd to bug- so it can be added to the tracker and eventually fixed.
>>> 
>>> Cheers,
>>> Xavier
>>> 
>>> -- 
> 
> 
> Stan, would you reply with the specific errors you see when trying to run LP, 
> as well as whether you are running a pre-built binary (where from?) or a 
> locally compiled version?  There have been problems several times over the 
> last few years with Mac OS, and each has been reported as fixed, so the more 
> detail you can provide, the better.
> 
> Cheers,
> Colin Campbell
> Bug Squad

Colin,

After decompression of the "official" Lilypond 2.15.11 ppc download its 
application icon is covered with the circle and slash indicating 
incompatibility. The download was from the Lilypond.org site. I have not 
attempted local compiling except for some very early versions using   Fink 
open-source file management. That was also many computers and operating systems 
ago.

As stated, 2.15.8 downloaded and runs as expected.

If I can assist in any way, I'll do my best.

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


Change beam grouping

2011-09-14 Thread Sven Axelsson
Hi list.

This is probably in the manual, but I can't find it so I'm asking you
all. In a sequence like

{ b16. b32 b32 b16. }

the default is to have a beam that connects the two shortest notes,
like the first bar in the attached image. I want the beaming so it
always makes a beamlet point towards the corresponding dotted note, as
in the second bar of the image.

How can I set it up so this happens automatically, both in 8. 16 and
in 16. 32 groups?

Thanks

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: programming error: no solution found for Bezier intersection

2011-09-14 Thread mike

On Wed, 14 Sep 2011 13:29:30 +1000, Nick Payne wrote:

On 14/09/11 08:34, Trevor Daniels wrote:

Nick Payne wrote Tuesday, September 13, 2011 11:25 PM

The problem is that the score is quite large, and the log gives no 
indication at all about where the error is coming from. I guess I can 
try commenting out different sections to see if I can isolate where 
the error is happening.


Nick, if it helps, the problem will be with either a slur or
a tie.  The code is trying to find the height of a slur or a
tie at a particular x value (or vice versa) and finds no slur
or tie at that point.  Some code in this area is relatively
new, so it is possible you have hit a code error.  If you
can narrow it down that would be very helpful (or it may
help you find a problem in your ly code :).


Ok, the following small example reproduces the error on my system
with 2.15.11:

%==
\version "2.15.11"

\language "english"

fingering = {
\set fingeringOrientations = #'(left)
\set strokeFingerOrientations = #'(up)
\override Fingering #'avoid-slur = #'inside
\override StrokeFinger #'avoid-slur = #'outside
}

\relative c'' {
\fingering
16( b)
}
%==

If I get rid of the right hand fingering then the error goes away,
and if I comment out the override for StrokeFinger #'avoid-slur then
the error also goes away but the log contains the warning:

/home/nick/lilypond/examples/test.ly:14:13: warning: Ignoring grob
for slur: StrokeFinger. avoid-slur not set?
16( b)

Nick

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


Hey all from sunny Athens,

I'll be on it over the weekend!

Back to the Acropolis,
~Mike

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


Re: programming error: no solution found for Bezier intersection

2011-09-14 Thread Reinhold Kainhofer
Am Wednesday, 14. September 2011, 06:47:50 schrieb Colin Campbell:
> On 11-09-13 09:29 PM, Nick Payne wrote:
> > Ok, the following small example reproduces the error on my system with
> > 2.15.11:

The minimal example is (the normal fingering "-1" does not have any influence, 
so it should be removed, too, and the language is also not relevant):
%==
\version "2.15.11"

\relative c'' {
  \set strokeFingerOrientations = #'(up)
  \override StrokeFinger #'avoid-slur = #'outside
  16( b)
}
%==

This example shows clearly that StrokeFinger is to blame here.

The warning appears only with #'avoid-slur=#'outside, not with 'inside. 
However, the actual value of strokeFingerOrientations is not relevant (as long 
as you set it to some value), the warning appears both with #'(up) and with 
#'(down).

> > If I get rid of the right hand fingering then the error goes away, and
> > if I comment out the override for StrokeFinger #'avoid-slur then the
> > error also goes away but the log contains the warning:
> > 
> > /home/nick/lilypond/examples/test.ly:14:13: warning: Ignoring grob for
> > slur: StrokeFinger. avoid-slur not set?
> >  > 
> >  -\rightHandFinger #2 >16( b)

That's definitely a bug. The StrokeFinger seems to be missing the avoid-slur 
property (and there seems to be a regtest missing for StrokeFinger).

> Nick, one of our developers is working on Bezier range calculations:
> there is an open tracker item
> (http://code.google.com/p/lilypond/issues/detail?id=1784
> ) which sounds
> like your problem.

I guess only Mike Solomon can answer that question, since he didn't describe 
which problem he tries to solve with the patch...

Cheers,
Reinhold
-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

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


Re: Just Intonation MIDI file

2011-09-14 Thread Graham Breed
"dadadharma @dslextreme.com" 
wrote:
> This YouTube by Hajo (dl1sdz) claims to have generated a
> just intonation MIDI file from a LilyPond file.
> 
> BWV-988-Var-12-Just.AVI
> 
> 
> How does one do this?

Well, disappointingly they didn't do the tuning in Lilypond.
But they could have.

> I can find "just intonation" in the glossary but not in
> the rest of the documentation.
> 
> I am interested in generating sound files for singing
> practice using the simple Pythagorean ratios.

http://x31eq.com/lilypond/

Use regular.ly with tuning=#53 or some other equal
temperament that gets close enough for you.  Normally
notated notes will then be Pythagorean.


 Graham

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


Re: Just Intonation MIDI file

2011-09-14 Thread Nick Bailey
Well, the way we did it was to retune the synthesiser fluidsynth using the 
tunings (?) command. It was a slightly different problem because we wanted 19-
ET rather than messing about with pythagorean adjustments, which might have to 
change every time you modulate anyway? We found that not many commercial 
synths obey the midi tuning protocol (in fact none of the ones we looked at).

Off topic, I'd be interested in why you want to teach singers to sing out of 
tune anyway :D (that was a troll :) )

Here's a video about the 19ET stuff...

http://www.n-ism.org/VG/Glasgow_CMT/Performance_Science/

Just click on the first thumbnail. Sorry about the flash. HTML5 hasn't reached 
a 
browser near me yet :)

Nick/.


On Wednesday 14 Sep 2011 08:53:54 dadadharma @dslextreme.com wrote:
> This YouTube by Hajo (dl1sdz) claims to have generated a just
> intonation MIDI file from a LilyPond file.
> 
> BWV-988-Var-12-Just.AVI
> 
> 
> 
> How does one do this?
> 
> I can find "just intonation" in the glossary but not in the rest of
> the documentation.
> 
> I am interested in generating sound files for singing practice using
> the simple Pythagorean ratios.
> 
> 
> How can this be done?
> 
> David Olson
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Dr Nicholas Bailey  
http://www.n-ism.org/People/nick.php
Science and Music Research Group,
School of Engineering, The University of Glasgow

Find out about our Music Informatics MSc:   http://www.n-ism.org/SPECTRUM
Signal Processing, Electronics and Computing Techniques
for Researching and Understanding Music

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


Re: Just Intonation MIDI file

2011-09-14 Thread flup2

The MIDI command "pitch bend" allows to change intonation by intervals
smaller than a half tone. For instance, this is the way softwares like
Sibelius render micro-intervals.

Some MIDI devices use special tuning maps to reproduce different
temperaments (equal, Pythagore, etc.)

I guess it's a possible way to achieve such result.

Philippe
-- 
View this message in context: 
http://old.nabble.com/Just-Intonation-MIDI-file-tp32461505p32461616.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Just Intonation MIDI file

2011-09-14 Thread dadadharma @dslextreme.com
This YouTube by Hajo (dl1sdz) claims to have generated a just
intonation MIDI file from a LilyPond file.

BWV-988-Var-12-Just.AVI



How does one do this?

I can find "just intonation" in the glossary but not in the rest of
the documentation.

I am interested in generating sound files for singing practice using
the simple Pythagorean ratios.


How can this be done?

David Olson

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