Re: silent crash on large score - how to debug?

2010-03-03 Thread Frédéric Bron
> Try to add this setting to your root ly file:
> #(debug-set! stack 10)

I tried that but saw no difference.
Frédéric


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


Re: silent crash on large score - how to debug?

2010-03-03 Thread Bertalan Fodor (LilyPondTool)



So it seems there is a regression between 2.12.2 and 2.12.3 or 2.13.10.
How can we find where it comes from?
  
Based on the recursion tip, perhaps there is some not optimal algorithm 
in the libguile of 2.12.3 (though we should check the changelist what 
changed)

Try to add this setting to your root ly file:

#(debug-set! stack 10)

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


Re: Supressing header on first page

2010-03-03 Thread James Worlton
Sorry for the noise, but there was a typo in my code example below. Fixed
now for
whoever may find this helpful.

James

On Wed, Mar 3, 2010 at 3:05 PM, James Worlton  wrote:

> On Wed, Mar 3, 2010 at 2:39 PM, Nick Payne wrote:
>
>>  On 04/03/10 05:33, James Worlton wrote:
>>
>>
>> On Sat, Feb 20, 2010 at 12:11 AM, Brett McCoy wrote:
>>
>>> I am using oddHeaderMarkup and evenHeaderMarkup to put running headers
>>> (title, composer) on each page of a score, but want to suppress it on
>>> the first page of the score (where the main header is). I can't seem
>>> to find anything in the snippets or notation reference on how to
>>> suppress this on the first page. Preventing the page number on the
>>> first page I have handled using \on-the-fly
>>> #print-page-number-check-first, is there something similar for
>>> headers?
>>>
>>> -- Brett
>>> 
>>>
>>
>> I am very interested in this question as well, and haven't seen a solution
>> posted
>> yet (or in any of the documentation/snippets). So I am shamelessly
>> reactivating
>> the thread.
>>
>> This is what I use for the \paper section in a score that has title page
>> only (no notes) on the first page, starts page numbers with "1" at the foot
>> of the page on the first page of music, and prints a tagline with no page
>> number at the foot of the last page:
>>
>
> [snip a lot of code]
>
>
>>  oddFooterMarkup = \markup \fill-line { \column {
>> \bold \fontsize #2
>> \on-the-fly #not-last-page \on-the-fly #not-first-page
>> \fromproperty #'page:page-number-string
>> \on-the-fly #last-page \fromproperty #'header:tagline
>> } }
>> evenFooterMarkup = \markup \fill-line { \column {
>> \bold \fontsize #2
>> \on-the-fly #not-last-page \on-the-fly #not-first-page
>> \fromproperty #'page:page-number-string
>> \on-the-fly #last-page \fromproperty #'header:tagline
>> } }
>> }
>>
>
> I'd forgotten about (did I ever know about??) the "\on-the-fly
> #not-first-page" code. I
> applied it to my situation and it did what I wanted: remove the header from
> the first
> page (my score has no title page).
>
> This produces the desired result:
>
> \version "2.13.14"
> #(set-default-paper-size "letter")
> \header {
>   title = "Title"
> }
> \paper{
>   oddHeaderMarkup = \markup \fill-line {
> " "
> \on-the-fly #not-first-page \fromproperty #'header:title
> \on-the-fly #not-first-page \on-the-fly #print-page-number-check-first
> \fromproperty #'page:page-number-string
>   }
>   evenHeaderMarkup = \markup \fill-line {
> \on-the-fly #print-page-number-check-first \fromproperty
> #'page:page-number-string
> \on-the-fly #not-first-page \fromproperty #'header:title
> " "
>   }
> }
> \score {
>   \new Staff {
> c1 \pageBreak
> c1 \pageBreak
> c1
>   }
> }
>
> whereas with "\on-the-fly #not-first-page" removed the header appears above
> the title on the first page.
>
> Is this in the documentation anywhere? I couldn't find it. Should this be
> the default
> behavior of headers?
>
> Thanks for the tip!
> James Worlton
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Supressing header on first page

2010-03-03 Thread James Worlton
On Wed, Mar 3, 2010 at 2:39 PM, Nick Payne wrote:

>  On 04/03/10 05:33, James Worlton wrote:
>
>
> On Sat, Feb 20, 2010 at 12:11 AM, Brett McCoy wrote:
>
>> I am using oddHeaderMarkup and evenHeaderMarkup to put running headers
>> (title, composer) on each page of a score, but want to suppress it on
>> the first page of the score (where the main header is). I can't seem
>> to find anything in the snippets or notation reference on how to
>> suppress this on the first page. Preventing the page number on the
>> first page I have handled using \on-the-fly
>> #print-page-number-check-first, is there something similar for
>> headers?
>>
>> -- Brett
>> 
>>
>
> I am very interested in this question as well, and haven't seen a solution
> posted
> yet (or in any of the documentation/snippets). So I am shamelessly
> reactivating
> the thread.
>
> This is what I use for the \paper section in a score that has title page
> only (no notes) on the first page, starts page numbers with "1" at the foot
> of the page on the first page of music, and prints a tagline with no page
> number at the foot of the last page:
>

[snip a lot of code]


> oddFooterMarkup = \markup \fill-line { \column {
> \bold \fontsize #2
> \on-the-fly #not-last-page \on-the-fly #not-first-page
> \fromproperty #'page:page-number-string
> \on-the-fly #last-page \fromproperty #'header:tagline
> } }
> evenFooterMarkup = \markup \fill-line { \column {
> \bold \fontsize #2
> \on-the-fly #not-last-page \on-the-fly #not-first-page
> \fromproperty #'page:page-number-string
> \on-the-fly #last-page \fromproperty #'header:tagline
> } }
> }
>

I'd forgotten about (did I ever know about??) the "\on-the-fly
#not-first-page" code. I
applied it to my situation and it did what I wanted: remove the header from
the first
page (my score has no title page).

This produces the desired result:

\version "2.13.14"
#(set-default-paper-size "letter")
\header {
  title = "Title"
}
\paper{
  oddHeaderMarkup = \markup \fill-line {
" "
\fromproperty #'header:title
\on-the-fly #not-first-page \on-the-fly #print-page-number-check-first
\fromproperty #'page:page-number-string
  }
  evenHeaderMarkup = \markup \fill-line {
\on-the-fly #print-page-number-check-first \fromproperty
#'page:page-number-string
\on-the-fly #not-first-page \fromproperty #'header:title
" "
  }
}
\score {
  \new Staff {
c1 \pageBreak
c1 \pageBreak
c1
  }
}

whereas with "\on-the-fly #not-first-page" removed the header appears above
the title on the first page.

Is this in the documentation anywhere? I couldn't find it. Should this be
the default
behavior of headers?

Thanks for the tip!
James Worlton
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: a \new Score question

2010-03-03 Thread Tim Reeves
> I know that doing \new Score is generally not recommended, but in the 
process 
> of helping someone I came across a couple of questions, and the only 
solution 
> I could find required me to do \new Score. First, the goal here is have 
a 
> score with four separate staves, but an ambitus that encompasses all of 
them; 
> it's a canon.
> [...]

Interesting example!
Using a recent development version, it is possible to print the ambitus of
the whole score on the first system, by sightly adapting the example given
in Documentation/snippets/new/scheme-engraver-ambitus.ly



For a score containing transposing instruments, does the ambitus reflect 
the concert pitches of all instruments, or the pitches as written?



Tim Reeves


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


Re: Supressing header on first page

2010-03-03 Thread Nick Payne

On 04/03/10 05:33, James Worlton wrote:


On Sat, Feb 20, 2010 at 12:11 AM, Brett McCoy > wrote:


I am using oddHeaderMarkup and evenHeaderMarkup to put running headers
(title, composer) on each page of a score, but want to suppress it on
the first page of the score (where the main header is). I can't seem
to find anything in the snippets or notation reference on how to
suppress this on the first page. Preventing the page number on the
first page I have handled using \on-the-fly
#print-page-number-check-first, is there something similar for
headers?

-- Brett



I am very interested in this question as well, and haven't seen a 
solution posted
yet (or in any of the documentation/snippets). So I am shamelessly 
reactivating

the thread.
This is what I use for the \paper section in a score that has title page 
only (no notes) on the first page, starts page numbers with "1" at the 
foot of the page on the first page of music, and prints a tagline with 
no page number at the foot of the last page:


\paper {
#(define (print-positive-page-number layout props arg)
(if (> (chain-assoc-get 'page:page-number props -1) 0)
(create-page-number-stencil layout props arg)
empty-stencil))

%% cf. ly/titling-init.ly
#(define (not-last-page layout props arg)
(if (and (chain-assoc-get 'page:is-bookpart-last-page props #f)
(chain-assoc-get 'page:is-last-bookpart props #f))
empty-stencil
(interpret-markup layout props arg)))

#(set-paper-size "a4")
line-width = 18.5\cm
first-page-number = 0
print-first-page-number = ##f
top-margin = 1.5\cm
bottom-margin = 1\cm
outer-margin = 1\cm
inner-margin = 1.5\cm
two-sided = ##t
ragged-bottom = ##f
ragged-last-bottom = ##f
ragged-last = ##f
oddHeaderMarkup = \markup \fill-line { " " }
evenHeaderMarkup = \markup \fill-line { " " }
oddFooterMarkup = \markup \fill-line { \column {
\bold \fontsize #2
\on-the-fly #not-last-page \on-the-fly #not-first-page 
\fromproperty #'page:page-number-string

\on-the-fly #last-page \fromproperty #'header:tagline
} }
evenFooterMarkup = \markup \fill-line { \column {
\bold \fontsize #2
\on-the-fly #not-last-page \on-the-fly #not-first-page 
\fromproperty #'page:page-number-string

\on-the-fly #last-page \fromproperty #'header:tagline
} }
}


Nick

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


Re: default beaming

2010-03-03 Thread Ole Schmidt
thank you for the information!

so, until the bug is fixed I have to override manually and than reset again for 
every triplet, right?

ole

Am 03.03.2010 um 20:08 schrieb Carl Sorensen:

> On 3/3/10 9:15 AM, "Mats Bengtsson"  wrote:
>> Ole Schmidt wrote:
>>> Hi,
>>> 
>>> When I write  \times 2/3 { c8 c16 c8. } the second beam of the sixteenth 
>>> note
>>> goes to the left which in my opinion is wrong.
>>> Am I missing something or do I have to overwrite the default settings? (if
>>> yes, how can I do that permanently for the whole score?)
>>> 
>> 
>> This is described in the manual, at
>> http://lilypond.org/doc/v2.13/Documentation/notation/beams#Beams
>> (note that this has changed from version 2.12):
>> 
>> \version "2.13.14"
>> \relative c'{
>> \set subdivideBeams = ##t
>> \overrideBeamSettings #'Score #'(4 . 4) #'end #'((* . (3 6 9 12)))
>> \set beatLength = #(ly:make-moment 1 12)
>> \times 2/3 { c8 c16 c8. }
>> }
> 
> If I understand correctly, this works for triplets, but breaks things for
> standard eighth notes.
> 
> The beamlet pointing in the wrong direction on triplets is one of our
> earliest bugs -- issue 11.
> 
> http://code.google.com/p/lilypond/issues/detail?id=11
> 
> Thanks,
> 
> Carl



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


Re: About Timing_translator

2010-03-03 Thread Philippe Hezaine

Philippe Hezaine a écrit :

Hi,

In the Gigsaw's process I use Timing_translator in midi block like this:

  \midi {
\context {
  \Score
 %%%\remove "Timing_translator"
  tempoWholesPerMinute = #(ly:make-moment 100 4)
 }

\context { \Staff
\consists "Timing_translator"
 }

\context { \DrumStaff
\consists "Timing_translator"
 }
}

and use midicomp to get the specific midi file. I've made a lot of tests
with different time signature and unimaginable polymetric score and I
*always* see the time signature to be 4/4 18 8 in midicomp's header,
whatever I write in MY-SONG.ly. I'm more than very interested in this
information. I'm feeling the Lily's math calculation in this case are
*always* processed from a quarter note within a 4/4. I mean in this case
Lilypond digests all the math with a 'concatenation' when it outputs
midi file. (I hope you understand me). Logical, nifty... GNU...
basically! Is someone can definitively confirm this impression? Or
points me on a deeper source? I'd want to avoid a bad surprise later.
Thanks.



May be I can ask in a different way:
For instance I write a polymetric score with 5/8, 7/16 and 3/4 time
signatures. In the Gigsaw's midi block I don't remove Timing_translator 
in the Score context but activate it in Staff and Drumstaff contexts. So 
for the partition Lilypond takes in account time signatures but for 
output midi it assembles all the stuff in a 4/4 and does the maths. Am I 
right when I say it *always* does that with my configuration in midi 
block? So I believe.

Could someone confirm my hypothesis? (which is not a flight of fancy)
--
  Phil.




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


Re: a \new Score question

2010-03-03 Thread James Bailey


On 03.03.2010, at 20:20, Valentin Villenave wrote:


On Wed, Mar 3, 2010 at 3:04 PM, Werner LEMBERG  wrote:

I would highly welcome if you could document this file extensively so
that non-Schemers have a minimal chance to follow.  Even the most
trivial steps (I mean the steps which you consider trivial) should be
described.


+1
I'm usually not afraid of Scheme (I can read Nicolas' scores source or
OrchestralLily for instance), but when I tried writing a Scheme
engraver to address #442 I could hardly understand a thing...

Ideally, you could even add a subsubsection to NR6 :-)

+2
I'm usually afraid of Scheme (I can usually make out what text or  
number I need to modify to make a change), but looking at this makes  
me weep.



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


Re: a \new Score question

2010-03-03 Thread Valentin Villenave
On Wed, Mar 3, 2010 at 3:04 PM, Werner LEMBERG  wrote:
> I would highly welcome if you could document this file extensively so
> that non-Schemers have a minimal chance to follow.  Even the most
> trivial steps (I mean the steps which you consider trivial) should be
> described.

+1
I'm usually not afraid of Scheme (I can read Nicolas' scores source or
OrchestralLily for instance), but when I tried writing a Scheme
engraver to address #442 I could hardly understand a thing...

Ideally, you could even add a subsubsection to NR6 :-)

Thanks,
 - Valentin


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


Re: a \new Score question

2010-03-03 Thread James Bailey
Thank you. I had been trying that without success using \layout  
{ \Score { \consists Ambitus_engraver } } and couldn't figure out  
where the problem was.

On 03.03.2010, at 15:16, Mats Bengtsson wrote:




James Bailey wrote:
I know that doing \new Score is generally not recommended, but in  
the process of helping someone I came across a couple of  
questions, and the only solution I could find required me to do  
\new Score. First, the goal here is have a score with four  
separate staves, but an ambitus that encompasses all of them; it's  
a canon.

\version "2.12.3"
...
\new Score \with { \consists Ambitus_engraver } {


You can obtain the same result without \new Score, if you do
\score{
...
\layout{
 \context{
   \Score
   \consists Ambitus_engraver
 }
}
}

   /Mats





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


Re: default beaming

2010-03-03 Thread Carl Sorensen
On 3/3/10 9:15 AM, "Mats Bengtsson"  wrote:
> Ole Schmidt wrote:
>> Hi,
>> 
>> When I write  \times 2/3 { c8 c16 c8. } the second beam of the sixteenth note
>> goes to the left which in my opinion is wrong.
>> Am I missing something or do I have to overwrite the default settings? (if
>> yes, how can I do that permanently for the whole score?)
>>  
> 
> This is described in the manual, at
> http://lilypond.org/doc/v2.13/Documentation/notation/beams#Beams
> (note that this has changed from version 2.12):
> 
> \version "2.13.14"
> \relative c'{
> \set subdivideBeams = ##t
> \overrideBeamSettings #'Score #'(4 . 4) #'end #'((* . (3 6 9 12)))
> \set beatLength = #(ly:make-moment 1 12)
> \times 2/3 { c8 c16 c8. }
> }

If I understand correctly, this works for triplets, but breaks things for
standard eighth notes.

The beamlet pointing in the wrong direction on triplets is one of our
earliest bugs -- issue 11.

http://code.google.com/p/lilypond/issues/detail?id=11

Thanks,

Carl



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


Re: Supressing header on first page

2010-03-03 Thread Brett McCoy
On Wed, Mar 3, 2010 at 1:33 PM, James Worlton  wrote:
>
> On Sat, Feb 20, 2010 at 12:11 AM, Brett McCoy  wrote:
>>
>> I am using oddHeaderMarkup and evenHeaderMarkup to put running headers
>> (title, composer) on each page of a score, but want to suppress it on
>> the first page of the score (where the main header is). I can't seem
>> to find anything in the snippets or notation reference on how to
>> suppress this on the first page. Preventing the page number on the
>> first page I have handled using \on-the-fly
>> #print-page-number-check-first, is there something similar for
>> headers?
>>
>> -- Brett
>> 
>
> I am very interested in this question as well, and haven't seen a solution
> posted
> yet (or in any of the documentation/snippets). So I am shamelessly
> reactivating
> the thread.

Thanks for reviving. I never did get a response :-)

-- Brett

"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
   -- Jelaleddin Rumi


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


Re: Supressing header on first page

2010-03-03 Thread James Worlton
On Sat, Feb 20, 2010 at 12:11 AM, Brett McCoy  wrote:

> I am using oddHeaderMarkup and evenHeaderMarkup to put running headers
> (title, composer) on each page of a score, but want to suppress it on
> the first page of the score (where the main header is). I can't seem
> to find anything in the snippets or notation reference on how to
> suppress this on the first page. Preventing the page number on the
> first page I have handled using \on-the-fly
> #print-page-number-check-first, is there something similar for
> headers?
>
> -- Brett
> 
>

I am very interested in this question as well, and haven't seen a solution
posted
yet (or in any of the documentation/snippets). So I am shamelessly
reactivating
the thread.

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


Re: silent crash on large score - how to debug?

2010-03-03 Thread Frédéric Bron
Thanks to all of you:
1. did not know about LILYPOND_GC_YIELD! setting it too 100 changes
drasticaly the speed
2. still do not work with 2.12.3 but I reinstalled 2.12.2 and it
compiles fine in just 11 minutes!

So it seems there is a regression between 2.12.2 and 2.12.3 or 2.13.10.
How can we find where it comes from?

Frédéric


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


Re: default beaming

2010-03-03 Thread Mats Bengtsson



Ole Schmidt wrote:
Hi, 


When I write  \times 2/3 { c8 c16 c8. } the second beam of the sixteenth note 
goes to the left which in my opinion is wrong.
Am I missing something or do I have to overwrite the default settings? (if yes, how can I do that permanently for the whole score?) 
  


This is described in the manual, at 
http://lilypond.org/doc/v2.13/Documentation/notation/beams#Beams

(note that this has changed from version 2.12):

\version "2.13.14"
\relative c'{
\set subdivideBeams = ##t
\overrideBeamSettings #'Score #'(4 . 4) #'end #'((* . (3 6 9 12)))
\set beatLength = #(ly:make-moment 1 12)
\times 2/3 { c8 c16 c8. }
}

 /Mats



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


Re: Different time signatures in different staves and midi.

2010-03-03 Thread Joseph Wakeling
Giovanni Roversi wrote:
> I'm writing a piece in wich the organ and other instruments play in 4/4,
> but a sort of lead synth solo is in 7/8. So, I want to write this
> producing also a midi file. But, in the snippets I found, there's not
> the \midi { } parameter, and if I add it doesn't work. I pasted the
> \layout {...} of the snippets in my file, but doesn't work too.
> How can I do what I want?

Looking at your score and what's written in it I'm not sure what you
want to achieve.  Is the aim to have the top part 7/8 occurring in the
same horizontal space as the organ 4/4 -- i.e. 7 synth 8th-notes in the
same space as 8 organ 8th notes, so the barlines in the different staves
are in the same place -- or to have synth 8th=organ 8th?

I'm confused because you have different tempi marked in your synth and
organ parts.

Attached is a slightly tweaked version of your file (I've just commented
out some options) which seems to produce appropriate layout and midi for
the second case (8th=8th).  Is this what you're looking for?

Best wishes,

-- Joe
\version "2.12.2"
\include "italiano.ly"

lead = \relative do'' {
  %\tempo 4=120
  \set Staff.keySignature = #`(((-0 . 2) . ,FLAT))
  \time 7/8
  \override Staff.Stem #'stemlet-length = #0.85
  
  do'4 r8 [la] la [si si] |
  si4 r8 [re,] mib [re la] |
  mib'16 [fa] mib8 do, [re] mib fa [lab32 si lab si] |
  
}

right = \relative do'' {
  \tempo 4=100
  \set Staff.keySignature = #`(((-0 . 2) . ,FLAT))
  \time 4/4
  \numericTimeSignature
  
  1~ |
   | %\break
  ~ |
   |
  
}

left = \relative do' {
  \tempo 4=100
  \set Staff.keySignature = #`(((-1 . 2) . ,FLAT))
  \time 4/4
  \numericTimeSignature
  
  1~ |
   |
  ~ |
   |
  
}

pedal = \relative do {
  \tempo 4=100
  \set Staff.keySignature = #`(((-1 . 2) . ,FLAT))
  \time 4/4
  \numericTimeSignature
  
  re,1~ |
  re |
  do~ |
  do |
  
}

leadPart = \new Staff \with {
  instrumentName = "Lead"
  shortInstrumentName = "Ld."
  midiInstrument = "lead 1 (square)"
} \lead

organPart = <<
  \new PianoStaff \with {
instrumentName = "Organo"
shortInstrumentName = "Org."
  } <<
\new Staff = "right" \with {
  midiInstrument = "drawbar organ"
} \right
\new Staff = "left" \with {
  midiInstrument = "drawbar organ"
} { \clef bass \left }
\new Staff = "pedal" \with {
midiInstrument = "drawbar organ"
  } { \clef "bass_8" \pedal }
  >>
>>

\score {
  <<
\leadPart
\organPart
  >>
  \layout { 
\context { \Score 
\remove "Timing_translator" 
%\remove "Time_signature_engraver" 
\remove "Default_bar_line_engraver" 
%\override SpacingSpanner #'uniform-stretching = ##t 
%\override SpacingSpanner #'strict-note-spacing = ##t 
%proportionalNotationDuration = #(ly:make-moment 1 64) 
} 
\context { \Staff 
\consists "Timing_translator" 
\consists "Default_bar_line_engraver" 
%\consists "Time_signature_engraver" 
} 
\context { \Voice 
%\remove Forbid_line_break_engraver 
tupletFullLength = ##t 
} 
} 
  \midi { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: silent crash on large score - how to debug?

2010-03-03 Thread Helge Kruse

Am 03.03.2010 16:31, schrieb Bertalan Fodor (LilyPondTool):




But the huge number of stack levels may point to a recursion in your
Scheme code.

:D Scheme IS recursion.



Probably that's a reason, why I didn't find an entry to this language.

But if the executable stopps with stack overflow, it looks like too much 
recursion.


Helge



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


Re: silent crash on large score - how to debug?

2010-03-03 Thread Bertalan Fodor (LilyPondTool)




But the huge number of stack levels may point to a recursion in your 
Scheme code. 

:D Scheme IS recursion.



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


Re: dynamic and midi velocity

2010-03-03 Thread Peter Chubb
> "bachelet" == bachelet   writes:

bachelet> any luck finding this script, I'd like to use it, too


It was in this mailing list, at
http://www.mail-archive.com/bug-lilyp...@gnu.org/msg03960.html 

Peter C


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


Re: silent crash on large score - how to debug?

2010-03-03 Thread Bertalan Fodor (LilyPondTool)
Hi, I could compile the PDF on Windows XP, using LilyPond 2.12.2 It took 
cca. 30 minutes on a machine with 3GB RAM on a 2.33Ghz Core 2 Duo.


I used the
SET LILYPOND_GC_YIELD=100

setting before starting the compiling.

Cheers,

Bert

Frédéric Bron wrote:

No crash for me with 2.12.3 on OS X. Maybe you are running out of
memory. Also one hour processing time seems like an awful lot, it took
about 8 minutes here. Swapping to disk perhaps?



Thank you very much for having tried that on your machine. I am very
jalous of your success and the speed of the compilation!
I have changed from a slow disk on which I run it normally (USB) to a
quicker one (7200 rpm) and looked at memory use but it did not go
above 780 Mb and I still have the same silent crash. My machine has
3.7 Gb of memory and 2.6 Gb free so it should not be a lack of memory.
Could somebody try it on another windows machine?

Frédéric

sources: http://dl.free.fr/qANmMbGJN


___
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: a \new Score question

2010-03-03 Thread Mats Bengtsson



James Bailey wrote:
I know that doing \new Score is generally not recommended, but in the 
process of helping someone I came across a couple of questions, and 
the only solution I could find required me to do \new Score. First, 
the goal here is have a score with four separate staves, but an 
ambitus that encompasses all of them; it's a canon.

\version "2.12.3"
...
\new Score \with { \consists Ambitus_engraver } {
  

You can obtain the same result without \new Score, if you do
\score{
...
\layout{
 \context{
   \Score
   \consists Ambitus_engraver
 }
}
}

   /Mats



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


Re: silent crash on large score - how to debug?

2010-03-03 Thread Helge Kruse

Am 03.03.2010 14:16, schrieb James Lowe:

I am running this for you on my Win7 machine. I have about 1GB 'spare'
(2GB internal but it is used quite heavily with our own work tools).

After about 30 minutes Win7 pops up the message attached and the system
event logs shows

'Faulting application name: lilypond-windows.exe, version: 2.13.10.1,
time stamp: 0x4b3db2ca
Faulting module name: libguile-17.dll, version: 0.0.0.0, time stamp:
0x4b3db2ca
Exception code: 0xc0fd'


I also tried this with Lilypond 2.13.11 on my Windows 7 (x64) Machine. 
After a while I got a similar popup but with the option to debug (since 
I have VS2008 installed).


The exception cause was "stack overflow". The debugger shows a call 
stack with 1000 levels. But there missing some at least, since the entry 
point is not shown.


The stack dumps shows looks at the first view like a kind of recursion. 
There are six levels shown again and again:

lilypond.exe!00506b70() 
libguile-17.dll!6bfa87ab()  
libguile-17.dll!6bfa838b()  
libguile-17.dll!6bfa83f0()  
libguile-17.dll!6bfa87ab()  
libguile-17.dll!6bfa838b()  
...
But some levels further the pattern differs a bit. Unfortunately neither 
a map file nor VS2008 compatible debug is available here. So I cant 
speculate further with this tool.


But the huge number of stack levels may point to a recursion in your 
Scheme code. Are any frogs out there that can read this code?


Helge


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


Re: a \new Score question

2010-03-03 Thread Werner LEMBERG

> Using a recent development version, it is possible to print the
> ambitus of the whole score on the first system, by slightly adapting
> the example given in
> Documentation/snippets/new/scheme-engraver-ambitus.ly

Uff.  Nothing for the faint-hearted...

I would highly welcome if you could document this file extensively so
that non-Schemers have a minimal chance to follow.  Even the most
trivial steps (I mean the steps which you consider trivial) should be
described.


Werner


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


Re: silent crash on large score - how to debug?

2010-03-03 Thread Frédéric Bron
> No crash for me with 2.12.3 on OS X. Maybe you are running out of
> memory. Also one hour processing time seems like an awful lot, it took
> about 8 minutes here. Swapping to disk perhaps?

Thank you very much for having tried that on your machine. I am very
jalous of your success and the speed of the compilation!
I have changed from a slow disk on which I run it normally (USB) to a
quicker one (7200 rpm) and looked at memory use but it did not go
above 780 Mb and I still have the same silent crash. My machine has
3.7 Gb of memory and 2.6 Gb free so it should not be a lack of memory.
Could somebody try it on another windows machine?

Frédéric

sources: http://dl.free.fr/qANmMbGJN


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


Re: convert-ly can't cope with accented filename

2010-03-03 Thread Valentin Villenave
On Mon, Jan 4, 2010 at 10:03 PM, Nick Payne  wrote:
> Try to run convert-ly on a file with an accented name and I get the
> following:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33:

Greetings,
I've pushed a fix for this. Let me know if it works better (you might
have to wait for the next development version).

Cheers,
Valentin


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


Re: how to transpose midi one octave ?

2010-03-03 Thread Mats Bengtsson



Neil Puttock wrote:

On 2 March 2010 12:18, Mats Bengtsson  wrote:

  

I just uploaded a patch in GIT, adding a related comment in
http://lilypond.org/doc/v2.13/Documentation/notation/common-notation-for-fretted-strings#References-for-fretted-strings



+Scores for these instruments should use the @code{"treble_8"} clef (and

+...@code{\transposition c} to get correct MIDI output).

Mats, shouldn't this be either \clef "treble_8" or \transposition c,
otherwise the MIDI will be an octave too low?
  

Of course! Thanks! Fixed in GIT!

  /Mats


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


ok

2010-03-03 Thread RESTIF
ok


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


About Timing_translator

2010-03-03 Thread Philippe Hezaine

Hi,

In the Gigsaw's process I use Timing_translator in midi block like this:

  \midi {
\context {
  \Score
 %%%\remove "Timing_translator"
  tempoWholesPerMinute = #(ly:make-moment 100 4)
 }

\context { \Staff
\consists "Timing_translator"
 }

\context { \DrumStaff
\consists "Timing_translator"
 }
}

and use midicomp to get the specific midi file. I've made a lot of tests
with different time signature and unimaginable polymetric score and I
*always* see the time signature to be 4/4 18 8 in midicomp's header,
whatever I write in MY-SONG.ly. I'm more than very interested in this
information. I'm feeling the Lily's math calculation in this case are
*always* processed from a quarter note within a 4/4. I mean in this case
Lilypond digests all the math with a 'concatenation' when it outputs
midi file. (I hope you understand me). Logical, nifty... GNU...
basically! Is someone can definitively confirm this impression? Or
points me on a deeper source? I'd want to avoid a bad surprise later.
Thanks.
--
  Phil.





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


Re: a \new Score question

2010-03-03 Thread Nicolas Sceaux
Le 2 mars 2010 à 23:04, James Bailey a écrit :

> I know that doing \new Score is generally not recommended, but in the process 
> of helping someone I came across a couple of questions, and the only solution 
> I could find required me to do \new Score. First, the goal here is have a 
> score with four separate staves, but an ambitus that encompasses all of them; 
> it's a canon.
> [...]

Interesting example!
Using a recent development version, it is possible to print the ambitus of
the whole score on the first system, by sightly adapting the example given
in Documentation/snippets/new/scheme-engraver-ambitus.ly

Nicolas

<>



score-ambitus.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: silent crash on large score - how to debug?

2010-03-03 Thread Sven Axelsson
2010/3/3 Frédéric Bron :
> I am currenlty finishing the transcription of the 4th symphony of
> Schumann for clarinet band (open licence by the way, soon on the
> internet).
> The score becomes larger and I am nearly at the end (must finish by
> Sunday). However, I cannot build anymore the full conductor score
> because now, for some reason, lilypond 2.12.3 silently crashes after
> some time of computing (roughly after 1 hour of Preprocessing
> graphical objects, see log below).
> It gives no message at all. I am building the score on Windows XP.
> Any idea on how I can debug this?

No crash for me with 2.12.3 on OS X. Maybe you are running out of
memory. Also one hour processing time seems like an awful lot, it took
about 8 minutes here. Swapping to disk perhaps?

--
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.


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


silent crash on large score - how to debug?

2010-03-03 Thread Frédéric Bron
I am currenlty finishing the transcription of the 4th symphony of
Schumann for clarinet band (open licence by the way, soon on the
internet).
The score becomes larger and I am nearly at the end (must finish by
Sunday). However, I cannot build anymore the full conductor score
because now, for some reason, lilypond 2.12.3 silently crashes after
some time of computing (roughly after 1 hour of Preprocessing
graphical objects, see log below).
It gives no message at all. I am building the score on Windows XP.
Any idea on how I can debug this?

Frédéric

PS: sources (52 ko) available here http://dl.free.fr/qANmMbGJN

Processing `conducteur.ly'
Parsing...
Interpreting music...
...
Interpreting music...
Interpreting music... [8][16][24][32][40][48][56][64][72][80][88]
warning: cannot end volta spanner
warning: cannot end volta spanner
[96][104][112][120][128][136][144][152][160][168][176][184][192][200][208][216][224][232][240][248][256][264][272][280][288][296][304][312][320][328][336][344][352][360][368][376][384][392][400][408][416][424][432][440][448][456][464][472][480][488][496][504][512][520][528][536][544][552][560][568][576][584][592][600][608][616][624][632][640][648][656][664][672]
programming error: stopped tuplet bracket has left nor right bound.
continuing, cross fingers
programming error: stopped tuplet bracket has left nor right bound.
continuing, cross fingers
[680][688][696][704][712][720][728][736][744][752][760][768][776][784][792][800]
programming error: stopped tuplet bracket has left nor right bound.
continuing, cross fingers
programming error: stopped tuplet bracket has left nor right bound.
continuing, cross fingers
[808][816][824][832]
Preprocessing graphical objects...


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