Frescobaldi 2.0.13 devel first impressions and questions

2014-01-20 Thread Jacques Menu
Hello Folks,

I’ve installed it seamlessly on Mac OS X 10.9 (Mavericks) with Mac Ports some 
time ago (i.e. before the Poppler installation change in MacPorts), and it 
works fine. In particular, selecting a note to locate its position in the code 
is most welcome.

Some questions:

- Find and Find Next don’t seem to work as expected: the former 
displays all occurrences, and the latter doesn’t select the next one;

- is there a way to ave the LP journal in a larger font?

- needs some adaptations to 2.18, as already mentionned in this list, 
in particular for keywords suggestions;

- is it easy to contribute to its development?

Cheers, and a happy new year!

JM

--

Jacques Menu
Ch. de la Pierre 12
1023 Crissier

mailto:imj-...@bluewin.ch




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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread Johan Vromans
Colin Campbell  writes:

> You're on the right track with File|New Score With Wizard. The Parts
> tab has a section for Vocal and under it, you should choose Choir.
> That opens a set of parameters on the right side of the panel, and
> among them is the option to generate rehearsal MIDI files.

Okay, found it. I'm gonna give this a try.

Do you know why \rehearsalMidi requires the lyrics? It doesn't seem to
serve a purpose.

BTW: Whoever maintains the new score wizard: the "s1*0\f" trick to get
the midi volume right is no longer necessary for LilyPond 2.18.

-- Johan

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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread David Kastrup
Johan Vromans  writes:

> Colin Campbell  writes:
>
>> You're on the right track with File|New Score With Wizard. The Parts
>> tab has a section for Vocal and under it, you should choose Choir.
>> That opens a set of parameters on the right side of the panel, and
>> among them is the option to generate rehearsal MIDI files.
>
> Okay, found it. I'm gonna give this a try.
>
> Do you know why \rehearsalMidi requires the lyrics? It doesn't seem to
> serve a purpose.
>
> BTW: Whoever maintains the new score wizard: the "s1*0\f" trick to get
> the midi volume right is no longer necessary for LilyPond 2.18.

For templates, I'd strongly advise against s1*0 anyway.  Better use <>
(namely, a chord without content) which does not set the default
duration to something that will cause serious headaches when following
material relies on a default information.  For example, if you write

\new Voice << { g a b c' } { <>\f } >>
\addlyrics { Is this for real? }

you get

/tmp/rup.ly:2:17: warning: Two simultaneous lyric events, junking this one
\addlyrics { Is 
this for real? }
/tmp/rup.ly:2:14: warning: Previous lyric event here
\addlyrics { 
 Is this for real? }
/tmp/rup.ly:2:22: warning: Two simultaneous lyric events, junking this one
\addlyrics { Is this 
 for real? }
/tmp/rup.ly:2:14: warning: Previous lyric event here
\addlyrics { 
 Is this for real? }
/tmp/rup.ly:2:26: warning: Two simultaneous lyric events, junking this one
\addlyrics { Is this for 
 real? }
/tmp/rup.ly:2:14: warning: Previous lyric event here
\addlyrics { 
 Is this for real? }

And no lyrics at all appear.  Using <> instead of s1*0 does not have the
problem.

Since a template is _supposed_ to be augmented by the user, it's better
to use elements that carry fewer surprises with them.

<> as a means to anchor events on should work for LilyPond versions
reaching back into ancient history.

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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread David Kastrup
David Kastrup  writes:

> Johan Vromans  writes:
>
>> Colin Campbell  writes:
>>
>>> You're on the right track with File|New Score With Wizard. The Parts
>>> tab has a section for Vocal and under it, you should choose Choir.
>>> That opens a set of parameters on the right side of the panel, and
>>> among them is the option to generate rehearsal MIDI files.
>>
>> Okay, found it. I'm gonna give this a try.
>>
>> Do you know why \rehearsalMidi requires the lyrics? It doesn't seem to
>> serve a purpose.
>>
>> BTW: Whoever maintains the new score wizard: the "s1*0\f" trick to get
>> the midi volume right is no longer necessary for LilyPond 2.18.
>
> For templates, I'd strongly advise against s1*0 anyway.  Better use <>
> (namely, a chord without content) which does not set the default
> duration to something that will cause serious headaches when following
> material relies on a default information.  For example, if you write
>
>
> \new Voice << { g a b c' } { <>\f } >>
> \addlyrics { Is this for real? }

Argh.  The above is the _fixed_ version.  The defective version is, of course:

\new Voice << { g a b c' } { s1*0\f } >>
\addlyrics { Is this for real? }

The rest stands:

> you get
>
> /tmp/rup.ly:2:17: warning: Two simultaneous lyric events, junking this one
> \addlyrics { Is 
> this for real? }
> /tmp/rup.ly:2:14: warning: Previous lyric event here
> \addlyrics { 
>  Is this for real? }
> /tmp/rup.ly:2:22: warning: Two simultaneous lyric events, junking this one
> \addlyrics { Is this 
>  for real? }
> /tmp/rup.ly:2:14: warning: Previous lyric event here
> \addlyrics { 
>  Is this for real? }
> /tmp/rup.ly:2:26: warning: Two simultaneous lyric events, junking this one
> \addlyrics { Is this for 
>  real? }
> /tmp/rup.ly:2:14: warning: Previous lyric event here
> \addlyrics { 
>  Is this for real? }
>
> And no lyrics at all appear.  Using <> instead of s1*0 does not have the
> problem.
>
> Since a template is _supposed_ to be augmented by the user, it's better
> to use elements that carry fewer surprises with them.
>
> <> as a means to anchor events on should work for LilyPond versions
> reaching back into ancient history.

-- 
David Kastrup

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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread Noeck
Hi,

I used this (which might be adapted from Frescobaldi or the LSR). It
requires the music to be written into \soprano \alto \tenor and \bass
(but this can for sure be adapted).

The Score uses the default instrument and has a reduced volume compared
to the Staff given by the name variable. This Staff can also have a
different instrument.

Usage: \rehearsalMidi "soprano" "oboe" \text

Here is the function definition:

rehearsalMidi = #(define-music-function
 (parser location name midiInstrument lyrics) (string? string? ly:music?)
 #{
   \unfoldRepeats <<
 \new Staff = "soprano" \new Voice = "soprano" { <>\f \soprano }
 \new Staff = "alto" \new Voice = "alto" { <>\f \alto }
 \new Staff = "tenor" \new Voice = "tenor" { <>\f \tenor }
 \new Staff = "bass" \new Voice = "bass" { <>\f \bass }
 \context Staff = $name {
   \set Score.midiMinimumVolume = #0.5
   \set Score.midiMaximumVolume = #0.5
   \set Score.tempoWholesPerMinute = #(ly:make-moment 80 4)
   \set Staff.midiMinimumVolume = #0.8
   \set Staff.midiMaximumVolume = #1.0
   \set Staff.midiInstrument = $midiInstrument
 }
 \new Lyrics \with {
   alignBelowContext = $name
 } \lyricsto $name $lyrics
   >>
 #})

Cheers,
Joram




PS: I always wanted to have it surrounded by this book and score blocks,
but that never worked out:

midifor = #
(define-scheme-function
 (parser location name midiInstrument lyrics) (string? string? ly:music?)
 #{
\book {
  \bookOutputSuffix $name
  \score {
\rehearsalMidi $name $midiInstrument $lyrics
\midi { }
  }
}
 #})

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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread Johan Vromans
Noeck  writes:

> I used this (which might be adapted from Frescobaldi or the LSR). It
> requires the music to be written into \soprano \alto \tenor and \bass
> (but this can for sure be adapted).

So you want lyrics events in the midi. For karaoke?

-- Johan

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


Label placed at end of \book not recognised in \paper

2014-01-20 Thread Tom van der Hoeven

Hi all,
If a label placed at the end of a book, it is not recognised in the 
paper description.

If it is placed before the last score, it is recognised.
Is that correct?
Tom
-
\version "2.18.0"
\paper{
%#(define page-breaking ly:page-turn-breaking)
print-first-page-number = ##t
top-margin = 3.0
bottom-margin = 3.0
before-title-space = 10.0
after-title-space = 5.0
oddHeaderMarkup = \markup \fill-line {
" "
\on-the-fly #not-first-page \fromproperty 
#'header:instrumentHeader
\on-the-fly #print-page-number-check-first 
\fromproperty #'page:page-number-string }

evenHeaderMarkup = \markup \fill-line {
" "
\on-the-fly #not-first-page \fromproperty 
#'header:instrumentHeader
\on-the-fly #print-page-number-check-first 
\fromproperty #'page:page-number-string }


oddFooterMarkup = \markup {
\column {
  \fill-line {
\line {
  Blz
  \on-the-fly #print-page-number-check-first
  \fromproperty #'page:page-number-string
  "van  " \concat {\page-ref #'npages "0" "?"}
}
  }
}
  }
ragged-last-bottom = ##t
%first-page-number = 2
}%% fin paper

\header { tagline = ##f }
\book {
  \label #'firstScore
  \score {
{
  c'1
  \pageBreak \mark A \label #'markA
  c'1
}
  }
  \markup { The first score begins on page \page-ref #'firstScore "0" "?" }
  \markup { Mark A is on page \page-ref #'markA "0" "?" }
  \label #'npages
}

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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread Noeck

> So you want lyrics events in the midi. For karaoke?

It's more like "Why not/Just because I can". I implemented it like that
back then. As at least in Timidity the timing of music and the lyrics is
not in sync, I would remove it, if I used it now.

Cheers,
Joram

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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread David Kastrup
Noeck  writes:

>> So you want lyrics events in the midi. For karaoke?
>
> It's more like "Why not/Just because I can". I implemented it like that
> back then. As at least in Timidity the timing of music and the lyrics is
> not in sync, I would remove it, if I used it now.

Timidity has several options affecting synchronization.  I haven't
managed to get useful results using any combination of them.
Historically, LilyPond was to blame for _some_ discrepancies because
different defaults for autoBeaming in layout and midi led to different
melismata.

However, even after fixing this (issue 2414, version 2.15.43) and after
Rosegarden (a Midi sequencer) displays sensibly aligned lyrics, Timidity
tends to be totally off, regardless which options one tries playing
with.

-- 
David Kastrup

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


Re: Label placed at end of \book not recognised in \paper

2014-01-20 Thread Eluze
Tom van der Hoeven wrote
> Hi all,
> If a label placed at the end of a book, it is not recognised in the 
> paper description.
> If it is placed before the last score, it is recognised.
> Is that correct?

reading the docs about \label's I think this is correct

you can add an empty \markup {} to enable the label to be evaluated.

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Label-placed-at-end-of-book-not-recognised-in-paper-tp158222p158226.html
Sent from the User mailing list archive at Nabble.com.

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


Variables as variables

2014-01-20 Thread Johan Vromans
In LilyPond terms, in

  namedMusic = { ... }

'namedMusic' is called a variable, identifier or macro.

Normal LilyPond behaviour is

  aaa = { c4 d e f }
  bbb = { a4 a a a \aaa b4 b b b }
  \score { \bbb }

This produces { a4 a a a c4 d e f b4 b b b } .

Now I want to re-use bbb with a different value of aaa. Like a real
variable as known from other programming languages.

  aaa = { c4 d e f }
  bbb = { a4 a a a \aaa b4 b b b }
  \score { \bbb }% a4 a a a c4 d e f b4 b b b
  aaa = { f4 e d c }
  \score { \bbb }% a4 a a a f4 e d c b4 b b b

Of course, this does not work. But I'm sure it can be made to work with
some schemish tweaks beyond my current capabilities.

This works, but it's not elegant.

  bbb = 
  #(define-music-function
  (parser location)
  ()
#{
  a4 a a a \aaa b4 b b b
#})

Putting the contents of bbb in a include file also works.

Do you have better (simpler, more elegant) suggestions?

-- Johan

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


Re: Variables as variables

2014-01-20 Thread David Kastrup
Johan Vromans  writes:

> In LilyPond terms, in
>
>   namedMusic = { ... }
>
> 'namedMusic' is called a variable, identifier or macro.
>
> Normal LilyPond behaviour is
>
>   aaa = { c4 d e f }
>   bbb = { a4 a a a \aaa b4 b b b }
>   \score { \bbb }
>
> This produces { a4 a a a c4 d e f b4 b b b } .
>
> Now I want to re-use bbb with a different value of aaa. Like a real
> variable as known from other programming languages.
>
>   aaa = { c4 d e f }
>   bbb = { a4 a a a \aaa b4 b b b }
>   \score { \bbb }% a4 a a a c4 d e f b4 b b b
>   aaa = { f4 e d c }
>   \score { \bbb }% a4 a a a f4 e d c b4 b b b

That's not "like a real variable as known from other programming
language".  If I write

aaa = 3
bbb = aaa + 1
print ( bbb )
aaa = 5
print ( bbb )

I know of no programming language which will output 6 the second time
round.  You are not thinking of a variable, but of a parametric
procedure.

> This works, but it's not elegant.
>
>   bbb = 
>   #(define-music-function
>   (parser location)
>   ()
> #{
>   a4 a a a \aaa b4 b b b
> #})

That's delayed execution.  In my opinion, it makes more sense as a
parametric procedure:
bbb = 
#(define-music-function
(parser location aaa)
(ly:music?)
  #{
a4 a a a #aaa b4 b b b
  #})

You can call it as \bbb \aaa or \bbb { f4 e d c } then.

> Do you have better (simpler, more elegant) suggestions?

I don't think that there are "more elegant" solutions available here.
While the given solutions might conceivably gain a bit more syntactic
sugar at one point of time, what actually _happens_ is unlikely to fall
in any different categories than what the current solutions do.

-- 
David Kastrup

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


Re: Variables as variables

2014-01-20 Thread Phil Holmes
- Original Message - 
From: "David Kastrup" 

To: "Johan Vromans" 
Cc: 
Sent: Monday, January 20, 2014 3:23 PM
Subject: Re: Variables as variables




That's not "like a real variable as known from other programming
language".  If I write

aaa = 3
bbb = aaa + 1
print ( bbb )
aaa = 5
print ( bbb )

I know of no programming language which will output 6 the second time
round.  You are not thinking of a variable, but of a parametric
procedure.


IIRC metafont does something of this sort.

--
Phil Holmes

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


Re: Large gap in text.

2014-01-20 Thread Eluze
Phil Holmes-2 wrote
> - Original Message - 
> From: "Hwaen Ch'uqi" <

> hwaenchuqi@

> >
> To: <

> lilypond-user@

> >
> Sent: Saturday, January 18, 2014 3:30 AM
> Subject: Large gap in text.
> 
> 
>> Greetings All,
>> I am nearing the end of preparations for my first
>> LilyPond-generated publication. My problem lies in the prefatory
>> matter. I have trimmed the code as lean as possible and have attached
>> both .ly and .pdf files. As you will see, a highly undesired page
>> break occurs, leaving a great amount of unused vertical space on page
>> 1. However, if I will remove the code for page 3, pages 1 and 2 will
>> compile as expected. Is it possible that I have a misunderstanding
>> regarding \markuplist or \vspace? Can anyone advise me? The matter is
>> now somewhat time-sensitive.
>> Thank you so much.
>> Hwaen Ch'uqi
> 
> 
> Hi.
> 
> It looks to me that Lilypond is doing to your text what it should do to 
> music: make it so that the number of systems per page are balanced.
> Because 
> you've forced a page turn before the acknowledgements, it's now as if you 
> have 6 systems of music, but want 5 of them on page 1 and 1 on page 2: 
> Lilypond naturally disagrees, wanting a balance with 3 on each page.
> 
> I can't get this to work in your set-up, but I'd suggest it may be best, 
> given your layout, to use purely manual page breaking.  You can forbid 
> automatic page breaking with
> 
> \override NonMusicalPaperColumn.page-break-permission = ##f
> 
> and can then place \pageBreak appropriately.

I think it's strange behavior. 

instead of page breaking you can start a new \bookpart!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Large-gap-in-text-tp158151p158232.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Variables as variables

2014-01-20 Thread David Kastrup
"Phil Holmes"  writes:

> - Original Message - 
> From: "David Kastrup" 
> To: "Johan Vromans" 
> Cc: 
> Sent: Monday, January 20, 2014 3:23 PM
> Subject: Re: Variables as variables
>
>
>
>> That's not "like a real variable as known from other programming
>> language".  If I write
>>
>> aaa = 3
>> bbb = aaa + 1
>> print ( bbb )
>> aaa = 5
>> print ( bbb )
>>
>> I know of no programming language which will output 6 the second time
>> round.  You are not thinking of a variable, but of a parametric
>> procedure.
>
> IIRC metafont does something of this sort.
mf
This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)
**\relax

*aaa := 3;
bbb = aaa + 1;
show bbb;

*
*>> 4
*aaa := 5;
show bbb;

*>> 4
*

It takes care when reassigning values to a variable to _first_ make the
existing expressions independent from the respective variable.

-- 
David Kastrup

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


Re: nuancing and customizing midi rendering

2014-01-20 Thread Bric

On 01/15/2014 02:37 PM, Peter Bjuhr wrote:


On 01/15/2014 08:28 PM, Bric wrote:
Please forgive me if this has been discussed and/or documented; I 
haven't found specifics yet.


Are there lilypond controls for things like staccato, accents, and 
other articulations/dynamics, with respect to midi output?


I noticed that the midi output is sensitive to the "\staccato" 
directive, for instance, trying alter the sound accordingly.


But can one finesse the \staccato, controlling the exact length of 
the note, in milliseconds or whatever the midi resolution allows?


also, any other similar ornamentations, and articulations one could 
control and customize in lily code ?  I realize the piano, forte, 
fortissimo, etc., are honored, and there is a minimum and maximum 
midivolume directive, which apparently would factor into crescendo's 
and diminuendo's... How/where do i find out more ? 


Maybe this could be a good starting point!?
http://www.lilypond.org/doc/v2.18/Documentation/notation/what-goes-into-the-midi-output_003f

Take also a closer look at The Articulate script mentioned...



Looks like the Articulate script tries to simulate stoccato by 
shortening written note duration and writing in a compensating rest 
(i.e., { e4\stoccato b\stoccato } is converted to { e16 r8. b16 r8. }). 
  As the documentation warns, this, of course, alters the rendered 
visual while (trying to) alter the midi properly.


It seems that IDEALLY, one would want the modification to be done 
directly on midi level, with the visual, written left unaltered. Plus, 
if there were a variety of overrides and (micro)controls over specific 
midi durations, with the conventional dynamic notation included among 
the parameters of the functions, it would be the ultimate way to finesse 
the midi audio, it seems.




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


Re: nuancing and customizing midi rendering

2014-01-20 Thread Simon Bailey
hi,

On Mon, Jan 20, 2014 at 5:35 PM, Bric  wrote:
> Looks like the Articulate script tries to simulate stoccato by shortening
> written note duration and writing in a compensating rest (i.e., {
> e4\stoccato b\stoccato } is converted to { e16 r8. b16 r8. }).   As the
> documentation warns, this, of course, alters the rendered visual while
> (trying to) alter the midi properly.
>
> It seems that IDEALLY, one would want the modification to be done directly
> on midi level, with the visual, written left unaltered. Plus, if there were
> a variety of overrides and (micro)controls over specific midi durations,
> with the conventional dynamic notation included among the parameters of the
> functions, it would be the ultimate way to finesse the midi audio, it seems.

what the documentation neglects to suggest is the following:

%%% SNIP SNAP %%%
\include "articulate.ly"
musicStuff = {
  c4-. d-. e-. f-.
}

% this will create graphical output
\score {
  << \musicStuff >>
  \layout {}
}

% this will only create MIDI output
\score {
  \unfoldRepeats \articulate << \musicStuff >>
  \midi {}
}
%%% SNAP SNIP %%%

that will give you an untouched PDF and an articulated MIDI, iirc.

regards,
sb

-- 
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.

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


Overriding bound details of VoiceFollower line

2014-01-20 Thread David B. Stocker
I've followed the directions in "Using the line-spanner-interface" 
 in the 
manuals, trying to nudge the right end of a Voice Change line.


It isn't working.

Would someone mind taking a look at my example, and see if I'm missing 
something obvious?


I'm using LilyPond 2.16.2


Thanks,

David


%%%Minimal Example%%%

\version "2.16.2"


\include "english.ly"


\score {

\new PianoStaff <<

\new Staff = "Right" <<

\clef "treble"

\key d \major

\time 4/4

\new Voice {

\relative c'' {

\voiceOne

r8 e fs fs16 gs a8 e b b

}

}

\new Voice {

\relative c'' {

\voiceTwo

e16 a, b cs d e~ e d cs8 b16 a s4

}

}

>>

\new Staff = "Left" <<

\clef "bass"

\key d \major

\time 4/4

\new Voice {

\relative c' {

\voiceOne

\showStaffSwitch

cs8 a r a e'

\once \override VoiceFollower #'(bound-details right Y) = #-2

e \change Staff = "Right"

\voiceTwo gs fs16 e

}

}

\new Voice {

\relative c' {

\voiceTwo

a8 a a a a gs16 d e8 d

}

}

>>

>>

}


%%%End Minimal Example%%%



--
David B. Stocker
804-335-6042
http://notesettersinc.com

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


Re: Variables as variables

2014-01-20 Thread Janek Warchoł
2014/1/20 Johan Vromans :
> In LilyPond terms, in
>
>   namedMusic = { ... }
>
> 'namedMusic' is called a variable, identifier or macro.
>
> Normal LilyPond behaviour is
>
>   aaa = { c4 d e f }
>   bbb = { a4 a a a \aaa b4 b b b }
>   \score { \bbb }
>
> This produces { a4 a a a c4 d e f b4 b b b } .
>
> Now I want to re-use bbb with a different value of aaa. Like a real
> variable as known from other programming languages.
>
>   aaa = { c4 d e f }
>   bbb = { a4 a a a \aaa b4 b b b }
>   \score { \bbb }% a4 a a a c4 d e f b4 b b b
>   aaa = { f4 e d c }
>   \score { \bbb }% a4 a a a f4 e d c b4 b b b
>
> Of course, this does not work. But I'm sure it can be made to work with
> some schemish tweaks beyond my current capabilities.

I think this snippet may be interesting to you
https://github.com/openlilylib/snippets/blob/master/input-shorthands/late-evaluation-of-variables.ly

cheers,
j

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


Re: Overriding bound details of VoiceFollower line

2014-01-20 Thread Alex Loomis
Move it to after the e but before the change.

 \voiceOne

\showStaffSwitch

cs8 a r a e' e

\once \override VoiceFollower #'(bound-details right Y) = #-2

\change Staff = "Right"

\voiceTwo gs fs16 e



On Mon, Jan 20, 2014 at 11:55 AM, David B. Stocker  wrote:

>  I've followed the directions in "Using the 
> line-spanner-interface"in
>  the manuals, trying to nudge the right end of a Voice Change line.
>
> It isn't working.
>
> Would someone mind taking a look at my example, and see if I'm missing
> something obvious?
>
> I'm using LilyPond 2.16.2
>
>
> Thanks,
>
> David
>
>
> %%%Minimal Example%%%
>
> \version "2.16.2"
>
>
>  \include "english.ly"
>
>
>  \score {
>
> \new PianoStaff <<
>
> \new Staff = "Right" <<
>
> \clef "treble"
>
> \key d \major
>
> \time 4/4
>
> \new Voice {
>
> \relative c'' {
>
> \voiceOne
>
> r8 e fs fs16 gs a8 e b b
>
> }
>
> }
>
> \new Voice {
>
> \relative c'' {
>
> \voiceTwo
>
> e16 a, b cs d e~ e d cs8 b16 a s4
>
> }
>
> }
>
> >>
>
> \new Staff = "Left" <<
>
> \clef "bass"
>
> \key d \major
>
> \time 4/4
>
> \new Voice {
>
> \relative c' {
>
> \voiceOne
>
> \showStaffSwitch
>
> cs8 a r a e'
>
> \once \override VoiceFollower #'(bound-details right Y) = #-2
>
> e \change Staff = "Right"
>
> \voiceTwo gs fs16 e
>
> }
>
> }
>
> \new Voice {
>
> \relative c' {
>
> \voiceTwo
>
> a8 a a a a gs16 d e8 d
>
> }
>
> }
>
> >>
>
> >>
>
> }
>
>
> %%%End Minimal Example%%%
>
>
>
> --
> David B. Stocker804-335-6042http://notesettersinc.com
>
>
> ___
> 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: Label placed at end of \book not recognised in \paper

2014-01-20 Thread Tom van der Hoeven

Eluza,

it worked, and as a bonus it gave me an extra blanco page.
The document says: A particular place of a score can be marked using 
the|\label|command, either at top-level or inside music.
It does not mention where at top-level. The example only use \label 
before scores.

I wanted to use it as an indirect way to get the number of pages of a book.
Or is there a name for the number of pages of a book to be used in the 
\paper{} context.


Tom

Eluze schreef op 20-1-2014 13:53:

Tom van der Hoeven wrote

Hi all,
If a label placed at the end of a book, it is not recognised in the
paper description.
If it is placed before the last score, it is recognised.
Is that correct?

reading the docs about \label's I think this is correct

you can add an empty \markup {} to enable the label to be evaluated.

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Label-placed-at-end-of-book-not-recognised-in-paper-tp158222p158226.html
Sent from the User mailing list archive at Nabble.com.

___
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: Overriding bound details of VoiceFollower line

2014-01-20 Thread David B. Stocker

Doh!

That does the trick.

Thanks Alex.

On 01/20/2014 12:34 PM, Alex Loomis wrote:

Move it to after the e but before the change.

\voiceOne

\showStaffSwitch

cs8 a r a e' e

\once \override VoiceFollower #'(bound-details right Y) = #-2

\change Staff = "Right"

\voiceTwo gs fs16 e




On Mon, Jan 20, 2014 at 11:55 AM, David B. Stocker 
mailto:notesetters...@gmail.com>> wrote:


I've followed the directions in "Using the line-spanner-interface"
 in
the manuals, trying to nudge the right end of a Voice Change line.

It isn't working.

Would someone mind taking a look at my example, and see if I'm
missing something obvious?

I'm using LilyPond 2.16.2


Thanks,

David


%%%Minimal Example%%%

\version "2.16.2"


\include "english.ly "


\score {

\new PianoStaff <<

\new Staff = "Right" <<

\clef "treble"

\key d \major

\time 4/4

\new Voice {

\relative c'' {

\voiceOne

r8 e fs fs16 gs a8 e b b

}

}

\new Voice {

\relative c'' {

\voiceTwo

e16 a, b cs d e~ e d cs8 b16 a s4

}

}

>>

\new Staff = "Left" <<

\clef "bass"

\key d \major

\time 4/4

\new Voice {

\relative c' {

\voiceOne

\showStaffSwitch

cs8 a r a e'

\once \override VoiceFollower #'(bound-details right Y) = #-2

e \change Staff = "Right"

\voiceTwo gs fs16 e

}

}

\new Voice {

\relative c' {

\voiceTwo

a8 a a a a gs16 d e8 d

}

}

>>

>>

}


%%%End Minimal Example%%%



-- 
David B. Stocker

804-335-6042  
http://notesettersinc.com


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




--
David B. Stocker
804-335-6042
http://notesettersinc.com

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


Re: Frescobaldi 2.0.13 devel first impressions and questions

2014-01-20 Thread Wilbert Berendsen
Sorry for top posting; my phone can't quote properly. I'm working to support 
all of lilypond 2.18 new syntax (almost done).

Yes you can change the log font in the prefs, see edit→prefs→ tools→log. 
Pressing up/down in the search entry jumps between results. 

I develop Frescobaldi in my free spare time. Helping out is not difficult; just 
clone git or fork on github. 


-- 
Wilbert Berendsen (www.wilbertberendsen.nl)



 Oorspronkelijk bericht 
Van: Jacques Menu  
Datum: 20-01-2014  09:37  (GMT+01:00) 
Aan: LilyPond Users  
Cc: Jacques Menu  
Onderwerp: Frescobaldi 2.0.13 devel first impressions and questions 
 
Hello Folks,

I’ve installed it seamlessly on Mac OS X 10.9 (Mavericks) with Mac Ports some 
time ago (i.e. before the Poppler installation change in MacPorts), and it 
works fine. In particular, selecting a note to locate its position in the code 
is most welcome.

Some questions:

- Find and Find Next don’t seem to work as expected: the former 
displays all occurrences, and the latter doesn’t select the next one;

- is there a way to ave the LP journal in a larger font?

- needs some adaptations to 2.18, as already mentionned in this list, 
in particular for keywords suggestions;

- is it easy to contribute to its development?

Cheers, and a happy new year!

JM

--

Jacques Menu
Ch. de la Pierre 12
1023 Crissier

mailto:imj-...@bluewin.ch




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


Re: Frescobaldi 2.0.13 devel first impressions and questions

2014-01-20 Thread Janek Warchoł
2014/1/20 Wilbert Berendsen :
> I develop Frescobaldi in my free spare time. [...]

...and you're doing something extremely valuable for the community!
Thank you! :-)

Janek

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


lilypond-book-preamble and extra-offset

2014-01-20 Thread Gilberto Agostinho
Hi all,

I would like to ask you if there is any way of moving a grob and at the same
time have lilypond-book-preamble consider its new position when cropping the
page. For instance, with the code below, I'd like to have both the clef and
the time signature in the image (i.e, NOT being cut):

\version "2.18.0"
\include "lilypond-book-preamble.ly"
{
  \override Score.Clef.extra-offset = #'(0 . 4)
  \override Score.TimeSignature.extra-offset = #'(0 . -3.5)
  c'
}

But instead I get this:

 

Any ideas?

Thanks a lot!
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-preamble-and-extra-offset-tp158248.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Variables as variables

2014-01-20 Thread Josiah Boothby
On Mon, 20 Jan 2014 16:00:59 +0100
Johan Vromans  wrote:

> Now I want to re-use bbb with a different value of aaa. Like a real
> variable as known from other programming languages.
> 
>   aaa = { c4 d e f }
>   bbb = { a4 a a a \aaa b4 b b b }
>   \score { \bbb }% a4 a a a c4 d e f b4 b b b
>   aaa = { f4 e d c }
>   \score { \bbb }% a4 a a a f4 e d c b4 b b b
> 
> Of course, this does not work. But I'm sure it can be made to work
> with some schemish tweaks beyond my current capabilities.

Would not a more canonical way be to use tags? Not as elegant maybe,
but:

aaa = { 
  \tag #'first { c4 d e f }
  \tag #'second { f4 e d c }
} 

bbb = { 
  a4 a a a 
  s4*4 
  b4 b b b 
}

\score { << \bbb { s4*4 \keepWithTag #'first \aaa } >> }

\score { << \bbb { s4*4 \keepWithTag #'second \aaa } >> }

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


Re: Variables as variables

2014-01-20 Thread Johan Vromans
Josiah Boothby  writes:

> Would not a more canonical way be to use tags? Not as elegant maybe,
> but:
>
> aaa = { 
>   \tag #'first { c4 d e f }
>   \tag #'second { f4 e d c }
> } 
>
> bbb = { 
>   a4 a a a 
>   s4*4 
>   b4 b b b 
> }
>
> \score { << \bbb { s4*4 \keepWithTag #'first \aaa } >> }
>
> \score { << \bbb { s4*4 \keepWithTag #'second \aaa } >> }

I already use tags extensively, so I'd need \keepWithTag /
\removeWithTag for most/several/all combinations of tags.

Yes, it can be done...

-- Johan

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


Re: Variables as variables

2014-01-20 Thread Johan Vromans
Janek Warchoł  writes:

> I think this snippet may be interesting to you
> https://github.com/openlilylib/snippets/blob/master/input-shorthands/late-evaluation-of-variables.ly

It is, indeed... Thanks!

Now, why can this snippet not be found when searching for "lazy
evaluation" and "late evaluation"...? Ah, it's not in the LSR.

-- Johan

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


Re: Label placed at end of \book not recognised in \paper

2014-01-20 Thread Eluze
Tom van der Hoeven wrote
> it worked, and as a bonus it gave me an extra blanco page.

I don't get a special page - example?!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Label-placed-at-end-of-book-not-recognised-in-paper-tp158222p158254.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Frescobaldi 2.0.13 devel first impressions and questions

2014-01-20 Thread Urs Liska

Am 20.01.2014 19:33, schrieb Wilbert Berendsen:

Sorry for top posting; my phone can't quote properly. I'm working to support 
all of lilypond 2.18 new syntax (almost done).

Yes you can change the log font in the prefs, see edit→prefs→ tools→log. 
Pressing up/down in the search entry jumps between results.

I develop Frescobaldi in my free spare time. Helping out is not difficult; just 
clone git or fork on github.


I'd like to add some details to this.

The requirement to contribute is writing Python code.
Frescobaldi is developed with PyQt, but it isn't really a requirement to 
know that beforehand. It's quite possible to dive into this while 
getting acquainted with the code base.


You will need some time to get your way through the architecture, but 
Frescobaldi is written very cleanly so it is as easy as possible to 
understand it. The only thing one could argue about (and that can make 
it somewhat harder to get into it) is the rather sparing use of code 
comments.


If you should actually start to contribute you will notice that there is 
a very welcoming spirit towards contributions :-)


Best
Urs




--
Wilbert Berendsen (www.wilbertberendsen.nl)



 Oorspronkelijk bericht 
Van: Jacques Menu 
Datum: 20-01-2014  09:37  (GMT+01:00)
Aan: LilyPond Users 
Cc: Jacques Menu 
Onderwerp: Frescobaldi 2.0.13 devel first impressions and questions

Hello Folks,

I’ve installed it seamlessly on Mac OS X 10.9 (Mavericks) with Mac Ports some 
time ago (i.e. before the Poppler installation change in MacPorts), and it 
works fine. In particular, selecting a note to locate its position in the code 
is most welcome.

Some questions:

- Find and Find Next don’t seem to work as expected: the former 
displays all occurrences, and the latter doesn’t select the next one;

- is there a way to ave the LP journal in a larger font?

- needs some adaptations to 2.18, as already mentionned in this list, 
in particular for keywords suggestions;

- is it easy to contribute to its development?

Cheers, and a happy new year!

JM

--

Jacques Menu
Ch. de la Pierre 12
1023 Crissier

mailto:imj-...@bluewin.ch






___
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: how close are we to having an "addAt" or "insertAt" feature?

2014-01-20 Thread Keith OHara
Kieren MacMillan  sympatico.ca> writes:

> What would be involved in developing a feature to add notes or tweaks at an 
arbitrary moment within a music expression?
> 
> e.g.
> 
> global = \repeat unfold 100 s1
> music = \addAt (4 3/8) \global \once \override RehearsalMark.extra-
offset #’(-1 . 0)
> 
> where (4 3/8) means “in the fourth measure, at the moment of the 3rd eighth 
note”


There is, of course, the simultaneous music construction with << >>

music = << \global  
   { s1*4 s8 s8
  \once\override Score.RehearsalMark #'X-offset = #-1
  \mark "A" }
   { s1*11 \mark"12" } 
   { s1*29 \mark"30" } >>


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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread Vaughan McAlley
On 20 January 2014 07:09, Colin Campbell  wrote:
>  \set Score.midiPanPosition = #RIGHT
>  \set Staff.midiPanPosition = #LEFT

This is missing in the 2.18 changes, so I didn’t know about it until
now. Very nice!

Vaughan

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


My workaround (on CentOS) for Ghostscript failure to render PDF as last step of lilypond compile

2014-01-20 Thread Aaron Mendez
Upon hearing last week that RedHat would bring CentOS offically under its
wing, I set up a 'minimal desktop' of Centos 6.5 in VirtualBox to take a
look around. When after installing lilypond I found it failed to compile
with the apparently very common excuse of: 
warning: `(gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28
-dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH
-r1200 -sDEVICE=pdfwrite -sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps)'
failed (256)

And furthermore that simply repeating the command standalone succeeds in
producing a PDF:
gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite
-sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps

This made me rather sad. After some digging, I opened the file
`/usr/share/ghostscript/8.70/Resource/Init/Fontmap`, which initially
appeared like so:
%!
% See Fontmap.GS for the syntax of real Fontmap files.
%% Replace 1 (Fontmap.GS)
(Fontmap.GS) .runlibfile
% must be at the bottom of line to allow people overriding everything.
(Fontmap.local) .runlibfileifexists

In this syntax, `%` is a comment (removes code from programmatic evaluation).
I commented the last line, like so:
%!
% See Fontmap.GS for the syntax of real Fontmap files.
%% Replace 1 (Fontmap.GS)
(Fontmap.GS) .runlibfile
% must be at the bottom of line to allow people overriding everything.
%(Fontmap.local) .runlibfileifexists


Now lilypond compilation succeeds.
I hope this information is useful to someone.




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


Re: how close are we to having an "addAt" or "insertAt" feature?

2014-01-20 Thread Jan-Peter Voigt
Hi Keith,

Am 21.01.2014 05:56, schrieb Keith OHara:
> There is, of course, the simultaneous music construction with << >>
> 
> music = << \global  
>{ s1*4 s8 s8
>   \once\override Score.RehearsalMark #'X-offset = #-1
>   \mark "A" }
>{ s1*11 \mark"12" } 
>{ s1*29 \mark"30" } >>

yes, it is, but I think Kieren wishes to address the position by measure
and moment-in-measure:
5 1/4 \once\override Score.RehearsalMark #'X-offset = #-1

so he has to accumulate measure-lengths to a skip-event with the
appropriate length.

Cheers, Jan-Peter


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


Re: Off-topic: Automatically create rehearsal files from SATB midi file

2014-01-20 Thread Federico Bruni
2014/1/21 Vaughan McAlley 

> On 20 January 2014 07:09, Colin Campbell  wrote:
> >  \set Score.midiPanPosition = #RIGHT
> >  \set Staff.midiPanPosition = #LEFT
>
> This is missing in the 2.18 changes, so I didn’t know about it until
> now. Very nice!
>

It's not even documented yet:
https://code.google.com/p/lilypond/issues/detail?id=3601
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user