Re: tips for formatting an interview

2015-11-16 Thread Federico Bruni
Il giorno dom 15 nov 2015 alle 21:01, Jacques Menu 
 ha scritto:
Maybe a Python script reading the text in and creating something like 
the above with the text split into as many such elements as required 
by the geometry of the page?


I'd rather keep one column, reduce a bit the line length and center it 
on the page



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


Re: Controlling markup vertical position

2015-11-16 Thread Menu Jacques
Hello,

As it turns out, using \tempo solves the issue:

Cello =  \relative f {
  \clef "bass" \key f \major \time 4/4
  \tempo "Bassi"
  g,2 \f
  \tempo "Vcl."

  des''4 \p ( c4 ) | % 18
}

\relative {
  \Cello
}

JM

> Le 15 nov. 2015 à 07:33, Menu Jacques  a écrit :
> 
> Hello folks,
> 
> I’ve tried to obtain the following from Mozart:
> 
> 
> 
> with:
> 
> \version "2.19.30"
> 
> Cello =  \relative f {
>   \clef "bass" \key f \major \time 4/4
>   g,2 \f
>   -\tweak Y-offset #ly:self-alignment-interface::y-aligned-on-self
>   -\tweak self-alignment-Y #2  % move vertically down
>   ^\markup{"Bassi"}
>   des''4 \p ^"Vcl." ( c4 ) | % 18
> }
> 
> \relative {
>   \Cello
> }
> 
> but I get Bassi too high and the first quater too much on the left (the \p 
> below the staff is OK for me):
> 
> 
> Thanks for your help!
> 
> JM
> 


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


Re: Lilypond 2.19.31 on openSUSE Leap 42.1

2015-11-16 Thread Andrew Bernard
In fact, it libffi.so is a dynamic dependency of three libraries:

/usr/lib64/libpangoft2-1.0.so.0
/usr/lib64/libpango-1.0.so.0
/usr/lib64/libgobject-2.0.so.0


Andrew


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


Re: ScholarLy fails with \RemoveEmptyStaffContext

2015-11-16 Thread David Kastrup
Graham King  writes:

> This took a little while to nail down, but it seems that ScholarLy's
> annotation engine fails silently when \RemoveEmptyStaffContext is
> active.  Almost-minimal example attached.

>   \layout {
> %{ %Toggle this block comment to reveal problem:
> \context {
>   \RemoveEmptyStaffContext
> }
> %} 

What is that supposed to be?  I am not even sure what this does.  Maybe
we should check that case and flag an error: there is no context
specified to which this is supposed to apply.  You probably want
something like a

\Staff

before the \RemoveEmptyStaffContext.

-- 
David Kastrup

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


Re: Lilypond 2.19.31 on openSUSE Leap 42.1

2015-11-16 Thread Blöchl Bernhard

Am 15.11.2015 12:27, schrieb David Kastrup:

Wols Lists  writes:


On 14/11/15 11:52, Andrew Bernard wrote:

Anybody running this combination?

When attempting to run lilypond, libffi.so.6 is not found:

error while loading shared libraries: libffi.so.6: cannot open
shared object file: No such file or directory


I am presently unable to locate libffi.so.6 on this OS, as 
libffi.so.4
seems to be the highest version. I do understand that Leap 42.1 is 
very new.



Bear in mind (1) Leap is based on SLES, and I gather there have been
various moans about software versions going *backwards*,

and (2) that is very similar to the reason I changed my 
distro-of-choice

from SuSE to gentoo - I was trying to run the latest lilypond on the
latest SuSE, and half the dependencies were out-of-date :-(

So you might well find that libffi 6 has been around a while but Leap
has been a leap in the wrong direction :-(


Does anybody have an idea where the libffi dependency comes from?  It's
not linked explicitly as far as I can tell.


Don't wonder abut troubles, SuSE is Windows owned.


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


Re: Controlling markup vertical position

2015-11-16 Thread Andrew Bernard
Hi JM,

This is a downside, but in general I find it can be managed pretty well. So 
although the use of extra-offset may not be totally philosophically sound and 
pure, it is quite pragmatic.

Andrew





On 16/11/2015, 20:53, "Menu Jacques"  wrote:

>
>Didnt’ think of it, thanks, but then you’re on your own to avoid collisions, 
>whereas \tempo takes care of that…
>


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


Re: Controlling markup vertical position

2015-11-16 Thread Menu Jacques
Hi Andrew,


> Le 16 nov. 2015 à 13:50, Andrew Bernard  a écrit :
> 
> Hi JM,
> 
> Would using \textLengthOn do what you want?

Excellent, thanks, that does it! I thought I had tried it, though… not that 
nice to get old!

JM

> 
> Cello = \relative f {
>   \clef "bass" \key f \major \time 4/4
>   \textLengthOn
>   g,2 \f
>   ^\markup{"Contrabassi"}
>   des''4 \p ^"Vcl." ( c4 ) | % 18
> }
> 
> \relative {
>   \Cello
> }
> 
> 
> 
> Andrew
> 
> 
> 
> 
> 
> 
> 
> 
> On 16/11/2015, 22:41, "Menu Jacques"  wrote:
> 
>> Problem is I don’t have a way yet to perform a « dilatation » of the bar to 
>> cope with larger strings such as Contrabassi:
> 


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


Re: tips for formatting an interview

2015-11-16 Thread Federico Bruni
Il giorno dom 15 nov 2015 alle 3:17, Simon Albrecht 
 ha scritto:

On 14.11.2015 15:22, Federico Bruni wrote:

Hi all

I'm trying to format directly in LilyPond an interview (the single 
text only part of a book). I don't want to use lilypond-book and 
LaTeX just because of this minor part of the book.


I've two questions:

1) There's any way to place the text on two columns AND let LilyPond 
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in 
advance what goes into column left and what into column right. I'd 
like to avoid this.


No, Lily can’t currently typeset in multiple columns. I’m 
surprised to see that there is no feature request in the tracker. 
This should be available both as a paper variable (say \paper { 
columns = 2 }) and as a markup command/markup list command(?).


Searching "two AND columns" in the open bugs list didn't return any 
relevant issue.
I guess that this should be added? Do you have better keywords to 
search?







2) I'm trying to create a shortcut for formatting the question and 
the answer.
I wonder if the new \etc can be used for this purpose or should I 
rather create a markup function.


IIUC, \etc can only be used for music functions (at least until 
now… :-)). So you need a custom markup or markup list command.


Ok, adapting the example in the Extending manual was easy:

\version "2.19.31"

#(define-markup-list-command (question layout props args) (markup-list?)
  #:properties ((par-indent 2))
  (interpret-markup-list layout props
#{\markuplist \justified-lines \bold { #args } #}))

#(define-markup-list-command (answer layout props args) (markup-list?)
  #:properties ((par-indent 2))
  (interpret-markup-list layout props
#{\markuplist \justified-lines { #args } #}))

\markuplist {
 \question {
   Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
eiusmod tempor
   incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis
   nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
consequat.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
 \answer {
   Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
eiusmod tempor
   incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis
   nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
consequat.
   Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu
   fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in

   culpa qui officia deserunt mollit anim id est laborum.
 }
}




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


Re: Controlling markup vertical position

2015-11-16 Thread Menu Jacques
Hello Andrew,

Didnt’ think of it, thanks, but then you’re on your own to avoid collisions, 
whereas \tempo takes care of that…

JM

> Le 16 nov. 2015 à 10:17, Andrew Bernard  a écrit :
> 
> Hi JM
> 
> You could try using extra-offset:
> 
> \version "2.19.30"
> 
> Cello =  \relative f {
>  \clef "bass" \key f \major \time 4/4
>  \once \override TextScript.extra-offset = #'(-3 . -3)
>  g,2 \f
>  ^\markup{"Bassi"}
>  des''4 \p ^"Vcl." ( c4 ) | % 18
> }
> 
> \relative {
>  \Cello
> }
> 
> 
> Andrew
> 
> 


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


Re: ScholarLy fails with \RemoveEmptyStaffContext

2015-11-16 Thread Urs Liska
Thank you for tracking that down, and sorry I didn't have time to reply
to your personal message.

Am 15.11.2015 um 12:15 schrieb Graham King:
> This took a little while to nail down, but it seems that ScholarLy's
> annotation engine fails silently when \RemoveEmptyStaffContext is
> active.  Almost-minimal example attached.
>

In a way it seems natural that this can interfere with an engraver like
the ones involved in the annotations. Unfortunately I'm at a loss as to
what that may mean and how to proceed.

> Is there anything I should be doing differently?

I don't think there's anything you could do better.

>
> And should I be filing ScholarLy issues here or on the openlilylib list?

There is no openLilyLib mailing list yet, and I don't think it makes
much sense to have one. I may do that if there should arise objections
about the respective discussions being off-topic here ...

So if you have questions you should post them on lilypond-user. However,
if you feel you are encountering a problem you can (should)
(additionally) open an issue at
https://github.com/openlilylib/snippets/issues

Best
Urs

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

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


Re: Lilypond 2.19.31 on openSUSE Leap 42.1

2015-11-16 Thread Andrew Bernard
On openSUSE Leap 42.1 I find using ldd:

ldd /usr/lib64/libpango-1.0.so.0
linux-vdso.so.1 (0x7ffe94bb6000)
libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 
(0x7f7bd8393000)
libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 
(0x7f7bd818e000)
libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x7f7bd7e7f000)
libm.so.6 => /lib64/libm.so.6 (0x7f7bd7b7e000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x7f7bd7961000)
libc.so.6 => /lib64/libc.so.6 (0x7f7bd75b9000)
->libffi.so.4 => /usr/lib64/libffi.so.4 (0x7f7bd73b)
libdl.so.2 => /lib64/libdl.so.2 (0x7f7bd71ac000)
libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x7f7bd6f45000)
/lib64/ld-linux-x86-64.so.2 (0x557b63f22000)

So it would seem to come from pango.

Now, the download of lilypond fails to run because it wants libffi.so.6. The 
above information comes from a build from source on openSUSE Leap 42.1 , which 
so far appears to run, at least, but I have not extensively tested it.

Andrew


On 15 Nov 2015, at 22:27, David Kastrup  wrote:

Does anybody have an idea where the libffi dependency comes from?  It's
not linked explicitly as far as I can tell.

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


Strange LilyPond crash

2015-11-16 Thread Marc Hohl

Hi list,

I am currently reworking some older stuff that compiled perfectly under 
2.13.x


Yes, I used convert-ly on all files, but nevertheless, I encountered a 
strange problem:


I have a drum part, consisting of an upper and a lower DrumVoice, and if 
I try to compile the full Drum score, I get a segfault.


I tried to reduce the number of notes and realized that if I include 
either drum voice, everything is fine.


Next, I included the complete upper voice and commented out parts of
the lower drum voice. Now lilypond compiles upto a certain point in the 
score, but if I include *one more note*, I get the segfault again.


Well, we talk about 70 measures with eighths, quarter notes and some 
triplets, so I don't believe that LilyPond runs out of memory.


I am currently using 2.19.32.

Any ideas of what's going wrong here?

Marc

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


Re: ScholarLy fails with \RemoveEmptyStaffContext

2015-11-16 Thread Graham King
On Mon, 2015-11-16 at 09:24 +0100, David Kastrup wrote:

> Graham King  writes:
> 
> > This took a little while to nail down, but it seems that ScholarLy's
> > annotation engine fails silently when \RemoveEmptyStaffContext is
> > active.  Almost-minimal example attached.
> 
> >   \layout {
> > %{ %Toggle this block comment to reveal problem:
> > \context {
> >   \RemoveEmptyStaffContext
> > }
> > %} 
> 
> What is that supposed to be?  I am not even sure what this does.  Maybe
> we should check that case and flag an error: there is no context
> specified to which this is supposed to apply.  You probably want
> something like a
> 
> \Staff
> 
> before the \RemoveEmptyStaffContext.

Apologies.  In my enthusiasm to boil this down to a minimal example,
I've created an oddball that just looks like Lilypond-abuse. Here it is
again with an extraneous staff restored.  
I don't think there is any problem with lilypond itself.  However,
either this user or Urs' ScholarLy annotation code has a
problem/limitation.
\version "2.19.21"

\include "openlilylib"
\useLibrary ScholarLY
\useModule scholarly.annotate

#(display "Scholarly loaded\n")

\setOption scholarly.annotate.export-targets #'("plaintext" "latex")

\score {
  \context ChoirStaff <<
\context Staff = staffI <<
  \set Staff.instrumentName = "S"
  \set Staff.shortInstrumentName = "S"
  \relative c'' {
\time 2/4
g4 g g g g
\musicalIssue \with {
  message = "last note, A. bar 3"
  context = "Some staff"
}
NoteHead
g
\break
R2*3
\break
g4 g g g g g
  }
>>
\context Staff = staffII <<
  \set Staff.instrumentName = "A"
  \set Staff.shortInstrumentName = "A"
  \relative c'' {
\time 2/4
\repeat unfold 18 c4
  }
>>
  >>

  \layout {
%%{ %Toggle this block comment to reveal problem:
\context {
  \RemoveEmptyStaffContext
}
%}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tips for formatting an interview

2015-11-16 Thread David Kastrup
Federico Bruni  writes:

> 2) I'm trying to create a shortcut for formatting the question and the
> answer.
> I wonder if the new \etc can be used for this purpose or should I
> rather create a markup function.
> I've tried the following but it fails immediately when it evaluates
> the definitions:
>
> \version "2.19.31"
>
> question = \markuplist \justified-lines \bold \etc
> answer = \markuplist \justified-lines \etc

Well, that seems like a reasonable thing one might want to do.
Currently it's just music expressions and markup commands that yield to
\etc but markup list commands make perfect sense to me as well.

I'll see whether I can submit something like that.

-- 
David Kastrup

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


Re: temporarily forcing notes to ignore LyricText width

2015-11-16 Thread William Marchant

Hi,
I have found that it helps for short sections of music if the words in 
the offending lyrics are all made the same length.  thus "I could do"  
associated with three 8th notes, might become "__I__ could __do__"  This 
makes the spaces even out.

Cheers,
Bill

On 15-11-14 05:46 PM, Kieren MacMillan wrote:

Hello all,

In the attached snippet, you can see how the notes are evenly spaced when there 
is enough overall width (page 1), but become unevenly spaced when the width is 
at all cramped (page 2).

An automagic fix for this issue is part of the GSoc Lyric overhaul, and hence 
is a long way off from being implemented [if ever!]. In the meantime, I would 
love a tweak that would allow me to tell Lily to ignore the LyricText grobs 
when spacing that measure; I would then go and nudge the individual grobs left 
or right as necessary to make the measure look great.

Unfortunately, I can’t seem to find the correct incantation. (Note: I’ve tried 
setting LyricText.X-extent and #'extra-spacing-width, but with unexpected and 
not uniform results.)

Thanks,
Kieren.

p.s.  Bonus points if this tweak can be applied “externally” (i.e., via the 
edition-engraver).


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info

  SNIPPET BEGINS
\version "2.19.30"
\language "english"

#(set-global-staff-size 15.5)
\paper {
   ragged-right = ##f
   indent = 0
}

global = {
   \key g \major
   \time 3/2
   s1.
}

theNotes = {
 8   ]  q    q 
 q   | %
}

theLyrics = \lyricmode {
 ez, Ron -- sard me cé -- lé -- brait, du temps que j'ét -- ais
}

theScore = <<
   \new Staff \new Voice << \global \theNotes >>
   \addlyrics \theLyrics
 >>

\bookpart {
   \paper { line-width = 6\in }
   \score { \theScore }
}

\bookpart {
   \paper { line-width = 3\in }
   \score { \theScore }
}
  SNIPPET ENDS

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




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


Re: Controlling markup vertical position

2015-11-16 Thread Menu Jacques
Hello Andrew,

Problem is I don’t have a way yet to perform a « dilatation » of the bar to 
cope with larger strings such as Contrabassi:

Cello =  \relative f {
  \clef "bass" \key f \major \time 4/4
  \tempo "Contrabassi"
  g,2 \f
  \tempo "Vcl."

  des''4 \p ( c4 ) | % 18
}

\relative {
  \Cello
}


Cello =  \relative f {
  \clef "bass" \key f \major \time 4/4
  \once \override TextScript.extra-offset = #'(-3 . -3)
  g,2 \f
  ^\markup{"Contrabassi"}
  des''4 \p ^"Vcl." ( c4 ) | % 18
}

\relative {
  \Cello
}



> Le 16 nov. 2015 à 12:25, Andrew Bernard  a écrit :
> 
> Hi JM,
> 
> This is a downside, but in general I find it can be managed pretty well. So 
> although the use of extra-offset may not be totally philosophically sound and 
> pure, it is quite pragmatic.
> 
> Andrew
> 
> 
> 
> 
> 
> On 16/11/2015, 20:53, "Menu Jacques"  wrote:
> 
>> 
>> Didnt’ think of it, thanks, but then you’re on your own to avoid collisions, 
>> whereas \tempo takes care of that…
>> 
> 


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


Re: tips for formatting an interview

2015-11-16 Thread Simon Albrecht

On 15.11.2015 20:50, Federico Bruni wrote:
Il giorno dom 15 nov 2015 alle 3:17, Simon Albrecht 
 ha scritto:

On 14.11.2015 15:22, Federico Bruni wrote:

Hi all

I'm trying to format directly in LilyPond an interview (the single 
text only part of a book). I don't want to use lilypond-book and 
LaTeX just because of this minor part of the book.


I've two questions:

1) There's any way to place the text on two columns AND let LilyPond 
reflow it depending on the available space on the page?
The documentation contains an example where you must decide in 
advance what goes into column left and what into column right. I'd 
like to avoid this.


No, Lily can’t currently typeset in multiple columns. I’m surprised 
to see that there is no feature request in the tracker. This should 
be available both as a paper variable (say \paper { columns = 2 }) 
and as a markup command/markup list command(?).


Searching "two AND columns" in the open bugs list didn't return any 
relevant issue.

I guess that this should be added? Do you have better keywords to search?


I also searched for any related issue; actually I scoured the entire 
list for "column", and there has definitely not been an issue yet.



Yours, Simon

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


Re: tips for formatting an interview

2015-11-16 Thread Federico Bruni
Il giorno dom 15 nov 2015 alle 8:21, Jacques Menu 
 ha scritto:

Hello Federico,

How about:

\markup {
  \hspace #8
  \column {
\override-lines #'(line-width . 30)
\wordwrap-lines
{
  Lorem ipsum dolor sit amet, consec tetur adipisi cing elit, sed 
do eiu smod tempor

}
  }

  \hspace #5

  \column \italic {
\override-lines #'(line-width . 30)
\wordwrap-lines
{
  Duis aute irure dolor in rep rehende rit in volup tate velit 
esse cillum dolore eu
  Duis aute irure dolor in rep rehende rit in volup tate velit 
esse cillum dolore eu

}
  }
  \hspace #1
}


Hello Jacques

Thanks for this example, but this forces you to decide in advance which 
part of text should go into each column. If you change the paper size, 
you'll have to move some text from one column to another. I was hoping 
there was a markup list command to achieve this automatically.





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


Re: ScholarLy fails with \RemoveEmptyStaffContext

2015-11-16 Thread David Kastrup
Graham King  writes:

> On Mon, 2015-11-16 at 09:24 +0100, David Kastrup wrote:
>
>> Graham King  writes:
>> 
>> > This took a little while to nail down, but it seems that ScholarLy's
>> > annotation engine fails silently when \RemoveEmptyStaffContext is
>> > active.  Almost-minimal example attached.
>> 
>> >   \layout {
>> > %{ %Toggle this block comment to reveal problem:
>> > \context {
>> >   \RemoveEmptyStaffContext
>> > }
>> > %} 
>> 
>> What is that supposed to be?  I am not even sure what this does.  Maybe
>> we should check that case and flag an error: there is no context
>> specified to which this is supposed to apply.  You probably want
>> something like a
>> 
>> \Staff
>> 
>> before the \RemoveEmptyStaffContext.
>> 
>
> thanks David, you've solved my problem (and probably saved Urs some work
> too).  Somehow I had missed that there is a new, better, way to remove
> empty staves.

Uh, actually it would appear that I got this wrong: I confused
\RemoveEmptyStaffContext (the old way of doing this which overwrites the
\Staff context definition with a fixed one) with \RemoveEmptyStaves (the
recommended way of doing this).

Maybe we should replace \RemoveEmptyStaffContext with a scheme function
referencing the current setting of \Staff.

And/or add a convert-ly rule to do that.  Either way is not as "backward
compatible" as the current code but I rather doubt that backward
compatibility is doing anybody a favor here.

-- 
David Kastrup

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


Programming error with removeEmptyStaves

2015-11-16 Thread Jean-Charles Malahieude

Hi all,

How could I find the culprit in a 5 staves score which looks all right? 
The logs say


--8<--
Processing `/home/jcharles/Partothek/Campra/Fetes_Venitiennes/Conducteur.ly'
Parsing...
Interpreting music...
Interpreting 
music...[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168][176][184][192]

Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 7 or 8 pages...
Drawing systems...
programming error: could not find this grob's vertical axis group in the 
vertical alignment

continuing, cross fingers
programming error: could not find this grob's vertical axis group in the 
vertical alignment

continuing, cross fingers
Layout output to `/tmp/lilypond-rYwu8w'...
Converting to `Conducteur.pdf'...
Success: compilation successfully completed
-->8--

Those errors disappear as soon as I either remove
\context { \Staff \RemoveEmptyStaves }
from the layout block, or randomly omit one or some of the staves.

TIA
Jean-Charles

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


Re: ScholarLy fails with \RemoveEmptyStaffContext

2015-11-16 Thread Graham King
On Mon, 2015-11-16 at 09:24 +0100, David Kastrup wrote:

> Graham King  writes:
> 
> > This took a little while to nail down, but it seems that ScholarLy's
> > annotation engine fails silently when \RemoveEmptyStaffContext is
> > active.  Almost-minimal example attached.
> 
> >   \layout {
> > %{ %Toggle this block comment to reveal problem:
> > \context {
> >   \RemoveEmptyStaffContext
> > }
> > %} 
> 
> What is that supposed to be?  I am not even sure what this does.  Maybe
> we should check that case and flag an error: there is no context
> specified to which this is supposed to apply.  You probably want
> something like a
> 
> \Staff
> 
> before the \RemoveEmptyStaffContext.
> 

thanks David, you've solved my problem (and probably saved Urs some work
too).  Somehow I had missed that there is a new, better, way to remove
empty staves.  With the new syntax the problem with ScholarLy goes away.
Thanks also to  Trevor Ba?a for his blog post at
http://lilypondbitsandpieces.blogspot.co.uk/2011/08/lilypond-remove-empty-staves.html
 .

Fixed example attached.

-- Graham
\version "2.19.21"

\include "openlilylib"
\useLibrary ScholarLY
\useModule scholarly.annotate

#(display "Scholarly loaded\n")

\setOption scholarly.annotate.export-targets #'("plaintext" "latex")

\score {
  \context ChoirStaff <<
\context Staff = staffI <<
  \set Staff.instrumentName = "S"
  \set Staff.shortInstrumentName = "S"
  \relative c'' {
\time 2/4
g4 g g g g
\musicalIssue \with {
  message = "last note, A. bar 3"
  context = "Some staff"
}
NoteHead
g
\break
R2*3
\break
g4 g g g g g
  }
>>
\context Staff = staffII <<
  \set Staff.instrumentName = "A"
  \set Staff.shortInstrumentName = "A"
  \relative c'' {
\time 2/4
\repeat unfold 18 c4
  }
>>
  >>

  \layout {
\context {
  \Staff \RemoveEmptyStaves
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Scheme question: convert a range

2015-11-16 Thread Simon Albrecht

Hello,

The subject certainly seems cryptic – it’s difficult to summarize, but 
an example will make it clear immediately.
I want to write a scheme procedure, which takes a pair like #'(3 . 7) 
and returns a list with all the numbers in the range: #'(3 4 5 6 7)

How is this done most easily?

TIA, Simon

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


Re: Controlling markup vertical position

2015-11-16 Thread Andrew Bernard
Hi JM,

Would using \textLengthOn do what you want?

Cello = \relative f {
\clef "bass" \key f \major \time 4/4
\textLengthOn
g,2 \f
^\markup{"Contrabassi"}
des''4 \p ^"Vcl." ( c4 ) | % 18
}

\relative {
\Cello
}



Andrew








On 16/11/2015, 22:41, "Menu Jacques"  wrote:

>Problem is I don’t have a way yet to perform a « dilatation » of the bar to 
>cope with larger strings such as Contrabassi:


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


Re: Testing requested: new manuscript viewer tool for Frescobaldi

2015-11-16 Thread Klaus Blum

Hi Simon, hi Federico,

thanks for your advices. Yeah, it works! :-)
This is a really cool feature. I hope it will soon be available for 
windows as well.


Cheers,
Klaus


Am 14.11.2015 um 23:36 schrieb Simon Albrecht:
It is a feature of Python (in which frescobaldi is written) that a 
program needn’t be compiled/installed to be run. You need to
1. get the source files for frescobaldi and python-ly from 
, either by downloading 
 
and  or using 
‘git clone’ and checking out the ‘manuscript-viewer’ branch.
2. add the following three lines to ~/.bashrc, where path/to/python-ly 
and path/to/frescobaldi are the paths to the respective directories:

# add python-ly to PYTHONPATH
PYTHONPATH=path/to/python-ly:$PYTHONPATH
alias frescobaldi='path/to/frescobaldi/frescobaldi'
3. and then you can just run 'frescobaldi' on the command line to test 
the feature.


I hope that this is correct and will help; if there are any questions, 
feel free to ask.

Yours, Simon



Am 15.11.2015 um 17:54 schrieb Federico Bruni:

Install git and run the following commands in the terminal:

mkdir ~/src
cd ~/src
git clone g...@github.com:wbsoft/python-ly.git
git clone g...@github.com:wbsoft/frescobaldi.git
cp frescobaldi/frescobaldi.desktop ~/.local/share/applications/
sed -ir 's|Exec=.*$|Exec=sh -c "PYTHONPATH=~/src/python-ly python 
~/src/frescobaldi/frescobaldi"|' 
~/.local/share/applications/frescobaldi.desktop


When you want to upgrade you enter the two sources and make a pull:

cd ~/src/python-ly
git pull

cd ~/src/frescobaldi
git pull




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


Delayed posts

2015-11-16 Thread Simon Albrecht

Hello everybody,

The notorious delay with which many posts arrive on this list gets 
annoying… At times there is no problem, but these days it’s really bad. 
Is there anything we could do?


Yours, Simon

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


Re: how to simulate or vectorize free hand curve notation

2015-11-16 Thread Andrew Bernard
Dear Ryan,

Oh my goodness. Almost as hair raising as the contemporary scores I have to 
set. Which curves exactly do you mean? Could you circle them on the image or 
otherwise indicate what you need? There exist a variety of different methods 
for curves of various sorts.

Andrew


On 15 Nov 2015, at 12:56, Ryan Michael  wrote:

I have some glissandi curves that I would like to input into my lilypond score.
Is it possible to load some vectorized equivalent across x Bars? Or to simulate 
my original hand drawn curves somehow? 

Here is the example of the notation style I would like to make:
https://www.mediafire.com/?eb1c0gw7gj3xqxo 



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


Re: Controlling markup vertical position

2015-11-16 Thread Andrew Bernard
Hi JM

You could try using extra-offset:

\version "2.19.30"

Cello =  \relative f {
  \clef "bass" \key f \major \time 4/4
  \once \override TextScript.extra-offset = #'(-3 . -3)
  g,2 \f
  ^\markup{"Bassi"}
  des''4 \p ^"Vcl." ( c4 ) | % 18
}

\relative {
  \Cello
}


Andrew



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


Re: tips for formatting an interview

2015-11-16 Thread Jacques Menu
Hello Federico,

> Le 15 nov. 2015 à 20:57, Federico Bruni  a écrit :
> 
> Il giorno dom 15 nov 2015 alle 8:21, Jacques Menu  ha 
> scritto:
>> Hello Federico,
>> How about:
>> \markup {
>>  \hspace #8
>>  \column {
>>\override-lines #'(line-width . 30)
>>\wordwrap-lines
>>{
>>  Lorem ipsum dolor sit amet, consec tetur adipisi cing elit, sed do eiu 
>> smod tempor
>>}
>>  }
>>  \hspace #5
>>  \column \italic {
>>\override-lines #'(line-width . 30)
>>\wordwrap-lines
>>{
>>  Duis aute irure dolor in rep rehende rit in volup tate velit esse 
>> cillum dolore eu
>>  Duis aute irure dolor in rep rehende rit in volup tate velit esse 
>> cillum dolore eu
>>}
>>  }
>>  \hspace #1
>> }
> 
> Hello Jacques
> 
> Thanks for this example, but this forces you to decide in advance which part 
> of text should go into each column. If you change the paper size, you'll have 
> to move some text from one column to another. I was hoping there was a markup 
> list command to achieve this automatically.


Oh, I see, I had overlooked that aspect.

Maybe a Python script reading the text in and creating something like the above 
with the text split into as many such elements as required by the geometry of 
the page?

JM


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


Re: Testing requested: new manuscript viewer tool for Frescobaldi

2015-11-16 Thread Federico Bruni
Il giorno sab 14 nov 2015 alle 13:23, Klaus Blum  
ha scritto:
Is there any documentation out there that tells how to run a program 
from

git?


I don't think so.
It may be added to the github wiki...



I have an Ubuntu installation, but no deeper Linux knowledge, so I've 
got no

idea what to do.


Install git and run the following commands in the terminal:

mkdir ~/src
cd ~/src
git clone g...@github.com:wbsoft/python-ly.git
git clone g...@github.com:wbsoft/frescobaldi.git
cp frescobaldi/frescobaldi.desktop ~/.local/share/applications/
sed -ir 's|Exec=.*$|Exec=sh -c "PYTHONPATH=~/src/python-ly python 
~/src/frescobaldi/frescobaldi"|' 
~/.local/share/applications/frescobaldi.desktop


When you want to upgrade you enter the two sources and make a pull:

cd ~/src/python-ly
git pull

cd ~/src/frescobaldi
git pull




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


#(define (bookGenerator please))

2015-11-16 Thread Pierre-Luc Gauthier
Hi there,

I have been trying to make a book generator function using scheme
inside Lilypond.

The book generating function itself works but I am the goal would be
to have another function to iterate over a list of parts to be
generated as books.

I cannot seem to find what I am doing wrong since I am just starting
to understand (even slightly) how to use scheme in Lilypond.

Here is what I have to show :

%%%

\version "2.18.2"

\language "english"

piccoloPart = \new Staff {
  \new Voice {
\relative c' {
  d4 e fs g |
  a1\fermata |
}
  }
}

bassPart = \new Staff {
  \new Voice {
\relative c {
  \clef bass
  c4 d e f |
  g1\fermata |
}
  }
}

#(define compilePart
   ;; This function is used to do and engrave a book
   ;; $segment should be a musical expression
   ;; $name should be a string for the book output suffix
   (define-void-function (parser location segment name)
 (ly:music? string?)
 (let ((paper #{ \paper {} #})
   (layout #{ \layout {} #})
   (book #{ \book { \score { $segment } } #}))

   (ly:book-process book paper layout name

% _This_ is to test the compilePart function
%\compilePart \piccoloPart #"piccolo"
%\compilePart \bassPart #"bass"

parts = #(list
  ;; This is a list of parts to be engraved
  '("piccolo" . #{ \piccoloPart #} )
  '("bass" . #{ \bassPart #} ))

#(define processAllParts
   ;; This function is used to call the compilePart function for
   ;; each part entry in the parts list.
   (define-void-function (parser location parts)
 (list?)
 (map
  (lambda (p)
(let (
   (name (car p))
   (music (cdr p))
   (show (lambda (name thing)
   ;; This is in the hope to see what's wrong
   (begin
(display (string-append "\nAbout to show "
name ":\n\t"))
(display thing)
  (begin
   (show "parser" parser)
   (show "location" location)
   (show "name" name)
   (show "music" music)
   (compilePart parser location music name)
   )))
  parts)))

% _This_ is to call the processAllParts function with
% the \parts list.
%\processAllParts \parts

%%%

Thanks for reading.
-- 
Pierre-Luc Gauthier
\version "2.18.2"

\language "english"

piccoloPart = \new Staff {
  \new Voice {
\relative c' {
  d4 e fs g |
  a1\fermata |
}
  }
}

bassPart = \new Staff {
  \new Voice {
\relative c {
  \clef bass
  c4 d e f |
  g1\fermata |
}
  }
}

#(define compilePart
   ;; This function is used to do and engrave a book
   ;; $segment should be a musical expression
   ;; $name should be a string for the book output suffix
   (define-void-function (parser location segment name)
 (ly:music? string?)
 (let ((paper #{ \paper {} #})
   (layout #{ \layout {} #})
   (book #{ \book { \score { $segment } } #}))

   (ly:book-process book paper layout name

% _This_ is to test the compilePart function
%\compilePart \piccoloPart #"piccolo"
%\compilePart \bassPart #"bass"

parts = #(list
  ;; This is a list of parts to be engraved
  '("piccolo" . #{ \piccoloPart #} )
  '("bass" . #{ \bassPart #} ))

#(define processAllParts
   ;; This function is used to call the compilePart function for
   ;; each part entry in the parts list.
   (define-void-function (parser location parts)
 (list?)
 (map
  (lambda (p)
(let (
   (name (car p))
   (music (cdr p))
   (show (lambda (name thing)
   ;; This is in the hope to see what's wrong
   (begin
(display (string-append "\nAbout to show " name ":\n\t"))
(display thing)
  (begin
   (show "parser" parser)
   (show "location" location)
   (show "name" name)
   (show "music" music)
   (compilePart parser location music name)
   )))
  parts)))

% _This_ is to call the processAllParts function with
% the \parts list.
%\processAllParts \parts___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text-spanner text repeated at start of line

2015-11-16 Thread David Sumbler
Thanks for the help with this problem.  It has taken me until now to
have a chance to experiment further with it.

I ended up not using the \markupMap idea, because I don't in any case
want the "(minim=138) part of the tempo marking to be bold.

So I have ended up with:
accelVivaceText = {
  \override TextSpanner.line-X-offset = #'(0.5 . 0.5)
  \override TextSpanner.line-Y-offset = 0.5
  \addTextSpannerText \lyricmode {
\markup \upright \bold "accelerando molto" -- 
\markup \upright \bold al --
\markup \upright \concat {
  \bold "Vivace (" \general-align #Y #-1 \tiny \note #"2" #UP " = 138)" } } 
}

Some time in the future, a real text-spanner mode would be useful for
this sort of case, so that the problem of wanting the instruction to
appear once in the score and once in each of the parts would be solved,
hopefully, just as it is currently for normal tempo markings.

As it is, the relevant passage in my quartet file looks like this (using
\parallelMusic):
% bar 40
\tag #'forScore {
  c8 a b a b \accelVivaceText a \startTextSpan gs a \noBreak |
  c8 a b a b a gs a |
  c8 a b a b a gs a |
  c8 a b a b a gs a | }
\tag #'forPart {
  c8 a b a b \accelVivaceText a \startTextSpan gs a \noBreak |
  c8 a b a b \accelVivaceText a \startTextSpan gs a \noBreak |
  c8 a b a b \accelVivaceText a \startTextSpan gs a \noBreak |
  c8 a b a b \accelVivaceText a \startTextSpan gs a \noBreak | }
% bar 41
b8_\cresc gs a gs a gs fs gs |
b8_\cresc gs a gs a gs fs es |
b8_\cresc gs g gs g fs gs fs |
b8_\cresc gs g gs g fs e fs |
% bar 42
a8 fs gs fs gs fs e fs |
fs8 gs es fs es fs fs es |
gs8 a gs g a g a g |
gs8 fs e gs fs gs fs fs |
% bar 43
gs8 e fs e fs fs es fs |
fs8 gs es fs es fs fs es |
fs8 g fs es fs g fs g |
es8 fs g fs g fs g fs |
% bar 44
\tag #'forScore {
  g8\ff \stopTextSpan es fs es fs fs fs fs |
  fs8\ff g! es fs es fs fs fs |
  fs8\ff g fs es fs es fs es |
  es8\ff fs g es fs es fs fs | }
\tag #'forPart {
  g8\ff \stopTextSpan es fs es fs fs fs fs |
  fs8\ff \stopTextSpan g! es fs es fs fs fs |
  fs8\ff \stopTextSpan g fs es fs es fs es |
  es8\ff \stopTextSpan fs g es fs es fs fs | }

Thanks again.

David


On Tue, 2015-11-03 at 11:39 -0600, David Nalesnik wrote:
> Hi David,
> 
> On Tue, Nov 3, 2015 at 11:22 AM, David Sumbler 
> wrote:
> I have now got around to trying to use
> text-spanner-inner-text-lyric-mode.ly, as suggested by Pierre.
> 
> The basic concept is great, but I am having a few difficulties
> (some of
> which may be to do with the fact that I have never used
> \lyricmode
> before).
> 
> It has been suggested that a Tempo spanner might be useful
> eventually.
> That would certainly have helped me, because I want
> "accelerando
> moltoalVivace (텞=138)" to appear in each of the four
> parts of
> the string quartet, but only once in the score.  I have got
> around this
> problem for now by using tags named "forScore" and forPart".
> 
> My second problem is that I want upright, bold text - the
> style that is
> usually used for tempo markings.  Unfortunately, I have not
> found a way
> of doing this, other than using \markup \upright \bold for
> each distinct
> part of the text, thus:
> 
> \addTextSpannerText \lyricmode {
> \markup \upright \bold "accelerando molto" --
> \markup \upright \bold al --
> \markup \upright \bold "Vivace (2 = 138)" }
> 
> I can't help feeling that there must be a way of formatting
> lyrics
> globally, but I haven't managed to find it in the manual yet.
> 
> 
> In this case you'd need to address the TextSpanner grob.  Check the
> properties here:
> http://lilypond.org/doc/v2.19/Documentation/internals/textspanner
> Listed is a 'font-shape property, set by default to 'italic.  So all
> you'd need to do is:
> \override TextSpanner.font-shape = #'upright
> 
> 
> TextSpanner supports the font-interface which has the property
> 'font-series and you could set that to bold:
> \override TextSpanner.font-series = #'bold
> (See http://lilypond.org/doc/v2.19/Documentation/internals/font_002dinterface)
> 
> 
> 
> The third problem is the minim for the tempo marking at the
> end.  I
> can't use \note #"2", because that will be treated as a
> separate markup
> and be spaced away from "Vivace(" and "= 138)".
> 
> Is there a way of achieving what I want?
> 
> 
> Sure.  You'd just need to use \concat or some such.  There may be a
> 

Re: Scheme question: convert a range

2015-11-16 Thread Urs Liska
(iota 7 3)

Am 15.11.2015 um 19:53 schrieb Simon Albrecht:
> Hello,
>
> The subject certainly seems cryptic – it’s difficult to summarize, but
> an example will make it clear immediately.
> I want to write a scheme procedure, which takes a pair like #'(3 . 7)
> and returns a list with all the numbers in the range: #'(3 4 5 6 7)
> How is this done most easily?
>
> TIA, Simon
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: Controlling markup vertical position

2015-11-16 Thread Simon Albrecht

On 16.11.2015 08:08, Menu Jacques wrote:

Hello,

As it turns out, using \tempo solves the issue:


Well, it depends on what you’re typesetting there, but a \tempo 
indication will always move to the topmost staff, so this is at least 
very fragile.

But how about:
%%
\version "2.19.30"

\relative f {
  \clef "bass" \key f \major \time 4/4
  g,2 \f
  -\tweak self-alignment-X #0  % move horizontally to the left
  ^"Bassi"
  des''4 \p ^"Vcl." ( c4 ) | % 18
}
%
That’s closer to what the artisanal engraver did, at least for the "Bassi".

HTH, Simon

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


Re: Scheme question: convert a range

2015-11-16 Thread David Kastrup
Simon Albrecht  writes:

> Hello,
>
> The subject certainly seems cryptic – it’s difficult to summarize, but
> an example will make it clear immediately.
> I want to write a scheme procedure, which takes a pair like #'(3 . 7)
> and returns a list with all the numbers in the range: #'(3 4 5 6 7)
> How is this done most easily?

(let ((x '(3 . 7)))
  (iota (- (cdr x) (car x) -1) (car x)))

-- 
David Kastrup

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


Re: Testing requested: new manuscript viewer tool for Frescobaldi

2015-11-16 Thread Simon Albrecht

On 15.11.2015 17:54, Federico Bruni wrote:
Il giorno sab 14 nov 2015 alle 13:23, Klaus Blum  
ha scritto:
Is there any documentation out there that tells how to run a program 
from

git?


I don't think so.
It may be added to the github wiki...



I have an Ubuntu installation, but no deeper Linux knowledge, so I've 
got no

idea what to do.


Install git and run the following commands in the terminal:

mkdir ~/src
cd ~/src
git clone g...@github.com:wbsoft/python-ly.git
git clone g...@github.com:wbsoft/frescobaldi.git
cp frescobaldi/frescobaldi.desktop ~/.local/share/applications/
sed -ir 's|Exec=.*$|Exec=sh -c "PYTHONPATH=~/src/python-ly python 
~/src/frescobaldi/frescobaldi"|' 
~/.local/share/applications/frescobaldi.desktop


[for testing the manuscript viewer, use the following commands 
additionally:]

cd frescobaldi
git checkout manuscript-viewer



When you want to upgrade you enter the two sources and make a pull:

cd ~/src/python-ly
git pull

cd ~/src/frescobaldi
git pull


HTH, Simon

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


The stafftab reversed!?

2015-11-16 Thread Mario Moles
Hi lilyponders!
It is possible to reverse the staff tab? The first string in place of the 
sixth? That is a mirror image to the arrangement of the guitar 
strings? Thank you!

/oiram/bin/selom/
/Da ognuno secondo le proprie capacità ad ognuno secondo i propri 
bisogni./
/MIB-kernellinux-tester/
http://mariomoles.altervista.org/[1] 
Linux[2] 
MIB[3] Lilypond[4] Frescobaldi[5] Rosegarden[6] 


[1] http://mariomoles.altervista.org/
[2] https://www.kernel.org/
[3] http://mib.pianetalinux.org/blog/
[4] http://lilypond.org/
[5] http://www.frescobaldi.org/
[6] http://www.rosegardenmusic.com/
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme question: convert a range

2015-11-16 Thread pls
Simon Albrecht  writes:
> The subject certainly seems cryptic – it’s difficult to summarize, but
> an example will make it clear immediately.
> I want to write a scheme procedure, which takes a pair like #'(3 . 7)
> and returns a list with all the numbers in the range: #'(3 4 5 6 7)
> How is this done most easily?

You mean something like this?

#+BEGIN_SRC scheme :results output
(define pair (cons 3 7))
(define (range first last)
  (if (>= first (+ last 1))
'()
(cons first (range (+ first 1) last
(display (range (car pair) (cdr pair)))
#+END_SRC

#+RESULTS:
: (3 4 5 6 7)

HTH
Patrick




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


Re: Strange LilyPond crash

2015-11-16 Thread David Kastrup
Marc Hohl  writes:

> Hi list,
>
> I am currently reworking some older stuff that compiled perfectly
> under 2.13.x
>
> Yes, I used convert-ly on all files, but nevertheless, I encountered a
> strange problem:
>
> I have a drum part, consisting of an upper and a lower DrumVoice, and
> if I try to compile the full Drum score, I get a segfault.
>
> I tried to reduce the number of notes and realized that if I include
> either drum voice, everything is fine.
>
> Next, I included the complete upper voice and commented out parts of
> the lower drum voice. Now lilypond compiles upto a certain point in
> the score, but if I include *one more note*, I get the segfault again.
>
> Well, we talk about 70 measures with eighths, quarter notes and some
> triplets, so I don't believe that LilyPond runs out of memory.
>
> I am currently using 2.19.32.
>
> Any ideas of what's going wrong here?

Any chance for running inside of gdb and get a backtrace?

-- 
David Kastrup

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


Re: Scheme question: convert a range

2015-11-16 Thread Simon Albrecht

On 16.11.2015 22:20, Thomas Morley wrote:

(define (foo pair)
   (if (and (integer? (car pair)) (integer? (cdr pair)))
   (iota (1+ (interval-length pair)) (car pair) 1))
   #f)

(foo '(3 . 7))
--> (3 4 5 6 7)


An equally good solution.
Thank you, Simon

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


Re: Controlling markup vertical position

2015-11-16 Thread Kieren MacMillan
Hi Jacques,

> As it turns out, using \tempo solves the issue:

OH, PLEASE DON’T DO THIS!

Don’t use a MetronomeMark (which is the grob generated by \tempo) where a 
TextScript (which is the grob generated by \markup) is appropriate. This *may* 
appear to “solve the issue”, but really it doesn’t, and it certainly adds a 
whole bunch of new issues — immediately obvious or eventually to surface — 
which needn’t ever be encountered if you simply use the correct grobs and 
tweaks to begin with.

Regards,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: how to simulate or vectorize free hand curve notation

2015-11-16 Thread Ryan Michael
The curves, say, on the second treble staff, in the image.

On Mon, Nov 16, 2015 at 12:09 AM, Andrew Bernard 
wrote:

> Dear Ryan,
>
> Oh my goodness. Almost as hair raising as the contemporary scores I have
> to set. Which curves exactly do you mean? Could you circle them on the
> image or otherwise indicate what you need? There exist a variety of
> different methods for curves of various sorts.
>
> Andrew
>
>
> On 15 Nov 2015, at 12:56, Ryan Michael  wrote:
>
> I have some glissandi curves that I would like to input into my lilypond
> score.
> Is it possible to load some vectorized equivalent across x Bars? Or to
> simulate my original hand drawn curves somehow?
>
> Here is the example of the notation style I would like to make:
> https://www.mediafire.com/?eb1c0gw7gj3xqxo
>
>
>


-- 
ॐ नमः शिवाय
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: temporarily forcing notes to ignore LyricText width

2015-11-16 Thread William Marchant

Hi All,
Try my snippet attached.  I know it's not automatic, but it does work.
Bill

On 15-11-14 05:46 PM, Kieren MacMillan wrote:

Hello all,

In the attached snippet, you can see how the notes are evenly spaced when there 
is enough overall width (page 1), but become unevenly spaced when the width is 
at all cramped (page 2).

An automagic fix for this issue is part of the GSoc Lyric overhaul, and hence 
is a long way off from being implemented [if ever!]. In the meantime, I would 
love a tweak that would allow me to tell Lily to ignore the LyricText grobs 
when spacing that measure; I would then go and nudge the individual grobs left 
or right as necessary to make the measure look great.

Unfortunately, I can’t seem to find the correct incantation. (Note: I’ve tried 
setting LyricText.X-extent and #'extra-spacing-width, but with unexpected and 
not uniform results.)

Thanks,
Kieren.

p.s.  Bonus points if this tweak can be applied “externally” (i.e., via the 
edition-engraver).


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info

  SNIPPET BEGINS
\version "2.19.30"
\language "english"

#(set-global-staff-size 15.5)
\paper {
   ragged-right = ##f
   indent = 0
}

global = {
   \key g \major
   \time 3/2
   s1.
}

theNotes = {
 8   ]  q    q 
 q   | %
}

theLyrics = \lyricmode {
 ez, Ron -- sard me cé -- lé -- brait, du temps que j'ét -- ais
}

theScore = <<
   \new Staff \new Voice << \global \theNotes >>
   \addlyrics \theLyrics
 >>

\bookpart {
   \paper { line-width = 6\in }
   \score { \theScore }
}

\bookpart {
   \paper { line-width = 3\in }
   \score { \theScore }
}
  SNIPPET ENDS


 New Attachment

\version "2.19.30"
\language "english"

#(set-global-staff-size 15.5)
\paper {
  ragged-right = ##f
  indent = 0
}

global = {
  \key g \major
  \time 3/2
  s1.
}

theNotes = {
8   ]  q    q  q   | %

}

theLyrics = \lyricmode {
_ez,_ Ron_ -- sard _me_  __cé__ -- __lé__ -- brait, _du_ temps que_ 
_j'ét_ -- _ais_

}

theScore = <<
  \new Staff \new Voice << \global \theNotes >>
  \addlyrics \theLyrics
>>

\bookpart {
  \paper { line-width = 6\in }
  \score { \theScore }
}

\bookpart {
  \paper { line-width = 3\in }
  \score { \theScore }
}
  SNIPPET ENDS


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




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


Re: Scheme question: convert a range

2015-11-16 Thread Thomas Morley
2015-11-15 19:53 GMT+01:00 Simon Albrecht :
> Hello,
>
> The subject certainly seems cryptic – it’s difficult to summarize, but an
> example will make it clear immediately.
> I want to write a scheme procedure, which takes a pair like #'(3 . 7) and
> returns a list with all the numbers in the range: #'(3 4 5 6 7)
> How is this done most easily?
>
> TIA, Simon



Hi Simon,

(define (foo pair)
  (if (and (integer? (car pair)) (integer? (cdr pair)))
  (iota (1+ (interval-length pair)) (car pair) 1))
  #f)

(foo '(3 . 7))
--> (3 4 5 6 7)


HTH,
  Harm

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


Re: Strange LilyPond crash

2015-11-16 Thread Simon Albrecht

On 16.11.2015 11:27, Marc Hohl wrote:

Hi list,

I am currently reworking some older stuff that compiled perfectly 
under 2.13.x


Yes, I used convert-ly on all files, but nevertheless, I encountered a 
strange problem:


I have a drum part, consisting of an upper and a lower DrumVoice, and 
if I try to compile the full Drum score, I get a segfault.


I tried to reduce the number of notes and realized that if I include 
either drum voice, everything is fine.


Next, I included the complete upper voice and commented out parts of
the lower drum voice. Now lilypond compiles upto a certain point in 
the score, but if I include *one more note*, I get the segfault again.


Well, we talk about 70 measures with eighths, quarter notes and some 
triplets, so I don't believe that LilyPond runs out of memory.


I am currently using 2.19.32.

Any ideas of what's going wrong here?


Not off the top of my head. I think there’s nothing for it except 
further testing. Please post the smallest version of the code you could 
find which sports the error. One might check

– with which version the error first occurs
– using the same number of notes, but uniform in pitch and/or rhythm
– using normal Staff and Voices (though this will likely not show the 
problem)

– etc.
in order to find some other way of boiling it down.
And if all of this doesn’t work, then you already have got a minimal 
example to use for a bug report – ‘from which nothing can be removed 
without making the bug disappear’.

That’s all ‘wisdom’ I can contribute…

Yours, Simon

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


Re: Lilypond 2.19.31 on openSUSE Leap 42.1

2015-11-16 Thread David Kastrup
Andrew Bernard  writes:

> In fact, it libffi.so is a dynamic dependency of three libraries:
>
> /usr/lib64/libpangoft2-1.0.so.0
> /usr/lib64/libpango-1.0.so.0
> /usr/lib64/libgobject-2.0.so.0

Huh.  Ok.

-- 
David Kastrup

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


Re: how to simulate or vectorize free hand curve notation

2015-11-16 Thread Ryan Michael
I see in the Lilypond Reference That you can specifiy for example, the
shape of a Phrasing Slur by giving control points. E.g.

\shape #'((0 . -1) (5.5 . -0.5) (-5.5 . -10.5) (0 . -5.5)) PhrasingSlur

However, is there a way to do this outside of a slur context? Namely I
would like to draw curves like the above slur but without

actually engraving noteheads, just the curve itself.



On Mon, Nov 16, 2015 at 1:37 PM, Ryan Michael 
wrote:

> The curves, say, on the second treble staff, in the image.
>
> On Mon, Nov 16, 2015 at 12:09 AM, Andrew Bernard  > wrote:
>
>> Dear Ryan,
>>
>> Oh my goodness. Almost as hair raising as the contemporary scores I have
>> to set. Which curves exactly do you mean? Could you circle them on the
>> image or otherwise indicate what you need? There exist a variety of
>> different methods for curves of various sorts.
>>
>> Andrew
>>
>>
>> On 15 Nov 2015, at 12:56, Ryan Michael  wrote:
>>
>> I have some glissandi curves that I would like to input into my lilypond
>> score.
>> Is it possible to load some vectorized equivalent across x Bars? Or to
>> simulate my original hand drawn curves somehow?
>>
>> Here is the example of the notation style I would like to make:
>> https://www.mediafire.com/?eb1c0gw7gj3xqxo
>>
>>
>>
>
>
> --
> ॐ नमः शिवाय
>



-- 
ॐ नमः शिवाय
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme question: convert a range

2015-11-16 Thread David Nalesnik
On Mon, Nov 16, 2015 at 5:24 PM, David Nalesnik 
wrote:

> Hi Simon,
>
> On Sun, Nov 15, 2015 at 12:53 PM, Simon Albrecht 
> wrote:
>
>> Hello,
>>
>> The subject certainly seems cryptic – it’s difficult to summarize, but an
>> example will make it clear immediately.
>> I want to write a scheme procedure, which takes a pair like #'(3 . 7) and
>> returns a list with all the numbers in the range: #'(3 4 5 6 7)
>> How is this done most easily?
>>
>>
> Well, if the numbers are ascending you could do something like:
>
> (define (expand-interval arg)
>(iota (- (1+ (cdr arg)) (car arg)) (car arg)))
>
> (display (expand-interval '(3 . 7)))
>
> If not, something like this would work:
>

(define (expand-interval arg)
   (let ((step (if (> (car arg) (cdr arg)) -1 1)))
 (iota (1+ (abs (- (cdr arg) (car arg (car arg) step)))

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


Re: Delayed posts

2015-11-16 Thread Simon Albrecht

On 15.11.2015 20:44, Simon Albrecht wrote:

Hello everybody,

The notorious delay with which many posts arrive on this list gets 
annoying… At times there is no problem, but these days it’s really 
bad. Is there anything we could do?


Or, _I_ could do, if it were a problem on my side?
~ Simon

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


Re: Scheme question: convert a range

2015-11-16 Thread David Nalesnik
Hi Simon,

On Sun, Nov 15, 2015 at 12:53 PM, Simon Albrecht 
wrote:

> Hello,
>
> The subject certainly seems cryptic – it’s difficult to summarize, but an
> example will make it clear immediately.
> I want to write a scheme procedure, which takes a pair like #'(3 . 7) and
> returns a list with all the numbers in the range: #'(3 4 5 6 7)
> How is this done most easily?
>
>
Well, if the numbers are ascending you could do something like:

(define (expand-interval arg)
   (iota (- (1+ (cdr arg)) (car arg)) (car arg)))

(display (expand-interval '(3 . 7)))

If not, something like this would work:

(define (expand-interval arg)
   (let ((dir (if (> (car arg) (cdr arg)) -1 1)))
 (let loop ((elt (car arg)) (result '()))
   (if (= elt (+ dir (cdr arg)))
   (reverse result)
   (loop (+ dir elt) (cons elt result))

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


Re: #(define (bookGenerator please))

2015-11-16 Thread Pierre-Luc Gauthier
Possible duplicate!

It appears I have missed the very similar thread "Automated processing
of multiple books"

I'll digest that first ;-)

-- 
Pierre-Luc Gauthier

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


Re: Controlling markup vertical position

2015-11-16 Thread Kieren MacMillan
Hi Jacques,

> I get Bassi too high and the first quater too much on the left

If you want to duplicate the original, you need to [almost] right-align the 
“Bassi”:

  SNIPPET BEGINS
\version "2.19.30"

Cello = \relative f {
  \clef "bass"
  \key f \major
  \time 4/4
  s1
  g,2\f-\tweak self-alignment-X #0.1 -\tweak padding #1 ^\markup{ "Bassi" } <<
{ \voiceTwo bes2\rest }
\new Voice { \voiceOne \dynamicUp des'4-\tweak self-alignment-X #RIGHT \p( 
^"Vcl." c4) }
  >> \oneVoice | % 18
}

\relative {
  \Cello
}
  SNIPPET ENDS

I’ve also done a few other tweaks and code adjustments in this snippet, to get 
you closer to [how I might code] the original.

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: how to simulate or vectorize free hand curve notation

2015-11-16 Thread David Bellows
Hey Ryan,

One way to cheat is to export as an svg file and then edit it in
something like Inkscape and then export that as a pdf. You can create
all sorts of really cool vector graphicy things pretty easily that
way. Unfortunately you cannot then translate that stuff back into your
Lilypond file so it is a one-way street and needs to be the last step.

On Mon, Nov 16, 2015 at 12:09 AM, Andrew Bernard
 wrote:
> Dear Ryan,
>
> Oh my goodness. Almost as hair raising as the contemporary scores I have to
> set. Which curves exactly do you mean? Could you circle them on the image or
> otherwise indicate what you need? There exist a variety of different methods
> for curves of various sorts.
>
> Andrew
>
>
> On 15 Nov 2015, at 12:56, Ryan Michael  wrote:
>
> I have some glissandi curves that I would like to input into my lilypond
> score.
> Is it possible to load some vectorized equivalent across x Bars? Or to
> simulate my original hand drawn curves somehow?
>
> Here is the example of the notation style I would like to make:
> https://www.mediafire.com/?eb1c0gw7gj3xqxo
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

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


Re: Scheme question: convert a range

2015-11-16 Thread Simon Albrecht

On 16.11.2015 21:59, David Kastrup wrote:

Simon Albrecht  writes:


Hello,

The subject certainly seems cryptic – it’s difficult to summarize, but
an example will make it clear immediately.
I want to write a scheme procedure, which takes a pair like #'(3 . 7)
and returns a list with all the numbers in the range: #'(3 4 5 6 7)
How is this done most easily?

(let ((x '(3 . 7)))
   (iota (- (cdr x) (car x) -1) (car x)))


Nice! Thanks.

Yours, Simon

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


Re: Scheme question: convert a range

2015-11-16 Thread Simon Albrecht

On 16.11.2015 23:30, pls wrote:

Simon Albrecht  writes:

The subject certainly seems cryptic – it’s difficult to summarize, but
an example will make it clear immediately.
I want to write a scheme procedure, which takes a pair like #'(3 . 7)
and returns a list with all the numbers in the range: #'(3 4 5 6 7)
How is this done most easily?

You mean something like this?

#+BEGIN_SRC scheme :results output
(define pair (cons 3 7))
(define (range first last)
   (if (>= first (+ last 1))
 '()
 (cons first (range (+ first 1) last
(display (range (car pair) (cdr pair)))
#+END_SRC

#+RESULTS:
: (3 4 5 6 7)


Yeah, that’s the recursion way to do it – and without any SRFI.

Thank you,
Simon

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


Re: Scheme question: convert a range

2015-11-16 Thread David Nalesnik
On Mon, Nov 16, 2015 at 5:33 PM, David Nalesnik 
wrote:


>
>> If not, something like this would work:
>>
>
(for all cases)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme question: convert a range

2015-11-16 Thread Andrew Bernard
Hi Simon,

Fellow listers have posted many answers while I was cooking up this one. All 
good!


(use-modules (srfi srfi-1))

(define (range r)
(let ((start (car r))
(end (cdr r)))
(iota (+ (- end start) 1) start 1)))

That’s pure Scheme of course. Thomas Morley’s answer is more in the vernacular 
of lilypond. But I just wanted to point out the list functions you would expect 
to exist but don’t in R5RS are in SRFI-1. But lilypond looks after all that for 
you.


The purely recursive solutions are nice, because lists are intrinsically 
recursively defined, but Functional programmers tend avoid doing that and 
prefer to hide the recursion behind generalised functions such as iota. A lot 
easier on the brain and the maintainer. Just a matter of FP style. There are 
many views!

Andrew








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


Re: Can I vary the system width for 1 system only

2015-11-16 Thread Peter Berlau

Hi Robin,

many thanks!

II will "heavy use" this solution. :)

all the best,
 Peter


Am 13.11.2015 um 22:34 schrieb Robin Bannister:

Peter Berlau wrote:


I found a ugly solution
with
\stopStaffs % generates 2 invisible staffs
s1
s1
\startStaff
for this i have to add on same place in the
\chords  also 2
s1
s1
to adjust chords to the remaining bars


In this case you already have a structure amenable to splitting:
 - 34 bars melody
 - 2*4 bars coda
So you could have melody variable and a coda variable,
and introduce a third variable for the gap;
eg it would then be easy to omit the gap from midi.


But I agree that involving s1 is a depressing sort of hack.


See if you like the attached pauseStaffBL hack any better.
No skips needed - it maltreats bar lines instead.
The demo does '\pauseStaffBL 40 \break' at the end of measure 9.


Cheers,
Robin




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


Re: Lilypond 2.19.31 on openSUSE Leap 42.1

2015-11-16 Thread Andrew Bernard
Hi Blöchl,

By Windows, do you mean Microsoft? If so, in what way is openSUSE controlled by 
Microsoft?

Andrew





On 16/11/2015, 18:28, "Blöchl Bernhard" 
 wrote:

>Don't wonder abut troubles, SuSE is Windows owned.


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


Re: Delayed posts

2015-11-16 Thread Werner LEMBERG

>> The notorious delay with which many posts arrive on this list gets
>> annoying… At times there is no problem, but these days it’s really
>> bad. Is there anything we could do?
> 
> Or, _I_ could do, if it were a problem on my side?

In case of such problems you should look at

  https://pumprock.net/fsfstatus/

The most recent messages says that lists.gnu.org experienced a heavy
spam attack.  Note that after resolving the issue, mails most often
forwarded in reverse order to the recipients.


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


Re: Scheme question: convert a range

2015-11-16 Thread David Nalesnik
On Mon, Nov 16, 2015 at 3:22 PM, Simon Albrecht 
wrote:

> On 16.11.2015 22:20, Thomas Morley wrote:
>
>> (define (foo pair)
>>(if (and (integer? (car pair)) (integer? (cdr pair)))
>>(iota (1+ (interval-length pair)) (car pair) 1))
>>#f)
>>
>> (foo '(3 . 7))
>> --> (3 4 5 6 7)
>>
>
> An equally good solution.
> Thank you, Simon
>
>
Interesting that all these responses show up in my inbox hours after I sent
mine, though these were sent earlier!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Testing requested: new manuscript viewer tool for Frescobaldi

2015-11-16 Thread Urs Liska


Am 15.11.2015 um 20:35 schrieb Klaus Blum:
> Hi Simon, hi Federico,
>
> thanks for your advices. Yeah, it works! :-)
> This is a really cool feature. I hope it will soon be available for
> windows as well.

Actually development for this initial version came to a halt when I went
to vacation and Peter Bjuhr started a full-time job. We are not more
than two seemingly minor issues away from integrating the tool into
Frescobaldi, but as this tool is awaiting significantly more development
we think we *have* to iron them out completely.

Urs

>
> Cheers,
> Klaus
>
>
> Am 14.11.2015 um 23:36 schrieb Simon Albrecht:
>> It is a feature of Python (in which frescobaldi is written) that a
>> program needn’t be compiled/installed to be run. You need to
>> 1. get the source files for frescobaldi and python-ly from
>> , either by downloading
>> 
>> and  or using
>> ‘git clone’ and checking out the ‘manuscript-viewer’ branch.
>> 2. add the following three lines to ~/.bashrc, where
>> path/to/python-ly and path/to/frescobaldi are the paths to the
>> respective directories:
>> # add python-ly to PYTHONPATH
>> PYTHONPATH=path/to/python-ly:$PYTHONPATH
>> alias frescobaldi='path/to/frescobaldi/frescobaldi'
>> 3. and then you can just run 'frescobaldi' on the command line to
>> test the feature.
>>
>> I hope that this is correct and will help; if there are any
>> questions, feel free to ask.
>> Yours, Simon
>>
>
> Am 15.11.2015 um 17:54 schrieb Federico Bruni:
>> Install git and run the following commands in the terminal:
>>
>> mkdir ~/src
>> cd ~/src
>> git clone g...@github.com:wbsoft/python-ly.git
>> git clone g...@github.com:wbsoft/frescobaldi.git
>> cp frescobaldi/frescobaldi.desktop ~/.local/share/applications/
>> sed -ir 's|Exec=.*$|Exec=sh -c "PYTHONPATH=~/src/python-ly python
>> ~/src/frescobaldi/frescobaldi"|'
>> ~/.local/share/applications/frescobaldi.desktop
>>
>> When you want to upgrade you enter the two sources and make a pull:
>>
>> cd ~/src/python-ly
>> git pull
>>
>> cd ~/src/frescobaldi
>> git pull
>>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: Delayed posts

2015-11-16 Thread David Nalesnik
On Mon, Nov 16, 2015 at 4:32 PM, Simon Albrecht 
wrote:

> On 15.11.2015 20:44, Simon Albrecht wrote:
>
>> Hello everybody,
>>
>> The notorious delay with which many posts arrive on this list gets
>> annoying… At times there is no problem, but these days it’s really bad. Is
>> there anything we could do?
>>
>
> Or, _I_ could do, if it were a problem on my side?


I'd be interested in the answer too, as I'm getting a flood of emails hours
after they were sent.

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


Re: how to simulate or vectorize free hand curve notation

2015-11-16 Thread Andrew Bernard
Hi Ryan,

I feared as much. I assume you are talking about the curve in the extract from 
your sample, attached for reference.

Lilypond slurs are Bezier curves that have two control points. That means you 
can’t create arbitrary wavy curves like that with that object – you need a 
large number of control points for that. (As an aside, if you do want to shape 
slurs there is an even nicer function that \shape called \shapeII in the 
openlilylib library.)

So what are the alternatives? Take a look at the NR section on graphics in 
markup.

http://lilypond.org/doc/v2.18/Documentation/notation/graphic

You could use the path command, which will allow an arbitrarily long list of 
curveto commands – consequently as many control points as you want. Since 
lilypond is not a graphical drawing tool, this approach, for the curves you 
show, would take a very large amount of effort, compiling and adjusting.

You can also use Postscript directly in markup, and you could write Postscript 
path commands. This has similar drawbacks to the above, but you can use 
Ghostscript as a development environment to see the curve. Again, painstakingly 
difficult. Also, if you incorporate Postscript into your lilypond file, it will 
not come out if you need to render the output in SVG.

The least nice way is to export to SVG and then create your curve in the 
document in Inkscape, or other SVG editor. This is a last resort, because once 
you go out to Inkscape you can’t come back again into lilypond.

Lilypond graphics markup allows the inclusion of EPS (encapsulated Postscript). 
So you could draw the curve in Adobe Illustrator, export as EPS, and include as 
an EPS file in lilypond.

I engrave vastly complex New Complexity School scores by a composer colleague 
of mine. The modernist notation challenges lilypond at every turn and every 
measure, so I am used to these issues! In the end, often, I feel defeated by 
the composer who has nothing more than an HB pencil!

Andrew



On 17/11/2015, 08:37, "Ryan Michael"  wrote:

The curves, say, on the second treble staff, in the image.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to simulate or vectorize free hand curve notation

2015-11-16 Thread Thomas Morley
2015-11-17 1:40 GMT+01:00 Andrew Bernard :
> Hi Ryan,
>
> I feared as much. I assume you are talking about the curve in the extract
> from your sample, attached for reference.
>
> Lilypond slurs are Bezier curves that have two control points. That means
> you can’t create arbitrary wavy curves like that with that object – you need
> a large number of control points for that. (As an aside, if you do want to
> shape slurs there is an even nicer function that \shape called \shapeII in
> the openlilylib library.)
>
> So what are the alternatives? Take a look at the NR section on graphics in
> markup.
>
> http://lilypond.org/doc/v2.18/Documentation/notation/graphic
>
> You could use the path command, which will allow an arbitrarily long list of
> curveto commands – consequently as many control points as you want. Since
> lilypond is not a graphical drawing tool, this approach, for the curves you
> show, would take a very large amount of effort, compiling and adjusting.
>
> You can also use Postscript directly in markup, and you could write
> Postscript path commands. This has similar drawbacks to the above, but you
> can use Ghostscript as a development environment to see the curve. Again,
> painstakingly difficult. Also, if you incorporate Postscript into your
> lilypond file, it will not come out if you need to render the output in SVG.
>
> The least nice way is to export to SVG and then create your curve in the
> document in Inkscape, or other SVG editor. This is a last resort, because
> once you go out to Inkscape you can’t come back again into lilypond.
>
> Lilypond graphics markup allows the inclusion of EPS (encapsulated
> Postscript). So you could draw the curve in Adobe Illustrator, export as
> EPS, and include as an EPS file in lilypond.
>
> I engrave vastly complex New Complexity School scores by a composer
> colleague of mine. The modernist notation challenges lilypond at every turn
> and every measure, so I am used to these issues! In the end, often, I feel
> defeated by the composer who has nothing more than an HB pencil!
>
> Andrew
>
>
>
> On 17/11/2015, 08:37, "Ryan Michael"  wrote:
>
> The curves, say, on the second treble staff, in the image.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

There's
https://codereview.appspot.com/270640043/
Once it's finished it may help for tasks like this.
`make-bow-stencil' allows for some nice features. Just have to find
the time to finish it...

 Cheers,
  Harm

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


Re: #(define (bookGenerator please))

2015-11-16 Thread Pierre-Luc Gauthier
So, after reading the "Automated processing of multiple books" thread
and few hours trying to figure this out, I am still not able to make
it work.
The higher order function "for-each" somehow cannot call the
"compilePart" function and Lilyponds GUILE interpreter returns "Wrong
type to apply".

Why?

Simple tests allowed me to prove that "for-each" *can* call functions
like "display" but not my "compilePart".

I am very very new to scheme and let alone scheme inside the pond and
I really got a kick out of this journey finally understanding why
those #, #', #{, #}, $, parser, location, etc were there in the first
place.
It's really satisfying.

Here is the code for my MWE.


\version "2.18.2"

\language "english"

piccoloPart = \new Staff {
  \new Voice {
\relative c' {
  d4 e fs g |
  a1\fermata |
}
  }
}

bassPart = \new Staff {
  \new Voice {
\relative c {
  \clef bass
  c4 d e f |
  g1\fermata |
}
  }
}

compilePart = #(define-void-function ( parser location music name)
 ;; This function is used to do and engrave a book
 ;; $music should be a musical expression
 ;; $name should be a string for the book output suffix
 (ly:music? string?)
 (let ((paper #{ \paper {} #})
   (layout #{ \layout {} #})
   (book #{ \book { \score { $music } } #}))
   (ly:book-process book paper layout name)))

% _This_ is to test the compilePart function
%\compilePart \piccoloPart #"piccolo"
% \compilePart \bassPart #"bass"

parts = #(list
  ;; This is a list of pairs containing parts informations
  '("piccolo" . piccoloPart)
  '("bass" . bassPart))

% _This_ is to test that the data can be extracted succesfully from the list
%\compilePart #(cdr (car parts)) #(car (car parts)) % First entry
%\compilePart #(cdr (car (cdr parts))) #(car (car (cdr parts))) % Second entry

% Somehow _this_ does not work.
%{#(for-each
  (lambda (p)
(let ((name (car p))
  (music (cdr p)))
(compilePart music name )
))
  parts)%}


2015-11-16 14:55 GMT-05:00 Pierre-Luc Gauthier :
> Possible duplicate!
>
> It appears I have missed the very similar thread "Automated processing
> of multiple books"
>
> I'll digest that first ;-)
>
> --
> Pierre-Luc Gauthier



-- 
Pierre-Luc Gauthier
\version "2.18.2"

\language "english"

piccoloPart = \new Staff {
  \new Voice {
\relative c' {
  d4 e fs g |
  a1\fermata |
}
  }
}

bassPart = \new Staff {
  \new Voice {
\relative c {
  \clef bass
  c4 d e f |
  g1\fermata |
}
  }
}

compilePart = #(define-void-function ( parser location music name)
 ;; This function is used to do and engrave a book
 ;; $music should be a musical expression
 ;; $name should be a string for the book output suffix
 (ly:music? string?)
 (let ((paper #{ \paper {} #})
   (layout #{ \layout {} #})
   (book #{ \book { \score { $music } } #}))
   (ly:book-process book paper layout name)))

% _This_ is to test the compilePart function
%\compilePart \piccoloPart #"piccolo"
% \compilePart \bassPart #"bass"

parts = #(list
  ;; This is a list of pairs containing parts informations
  '("piccolo" . piccoloPart)
  '("bass" . bassPart))

% _This_ is to test that the data can be extracted succesfully from the list
%\compilePart #(cdr (car parts)) #(car (car parts)) % First entry
%\compilePart #(cdr (car (cdr parts))) #(car (car (cdr parts))) % Second entry

% Somehow _this_ does not work.
%{#(for-each
  (lambda (p)
(let ((name (car p))
	   (music (cdr p)))
(compilePart music name )
))
  parts)%}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user