Re: \RemoveEmptyStaves

2019-03-03 Thread Andrew Bernard
Hi All,

This is an FAQ (and indeed I have asked it). I wonder where we should put
this sort of thing, some sort of FAQ repository?

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


Re: \RemoveEmptyStaves

2019-03-03 Thread Malte Meyn




Am 04.03.19 um 03:17 schrieb Richard Gress:

Hi all,

Why is \RemoveEmptyStaves not working the way I’m using it? The output 
still shows blank staves in a ten-page document. Uncommenting the global 
command doesn’t work, either.


PianoStaff contains the Keep_alive_together_engraver. This means that 
individual staves aren’t hidden, only the PianoStaff as a whole when all 
staves are empty. This makes sense in orchestra music but not for piano 
solo. You can use a GradStaff instead or remove the 
Keep_alive_together_engraver:


\new GrandStaff <<
\new Staff …
\new Staff …
\new Staff …
\new Staff …
>>

\new PianoStaff \with {
\remove Keep_alive_together_engraver
} <<
\new Staff …
\new Staff …
\new Staff …
\new Staff …
>>

In fact, the Keep_align_together_engraver is the only difference between 
the two contexts, so both solutions are equivalent.


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


\RemoveEmptyStaves

2019-03-03 Thread Richard Gress
Hi all,

Why is \RemoveEmptyStaves not working the way I'm using it? The output still 
shows blank staves in a ten-page document. Uncommenting the global command 
doesn't work, either.

The input... (complete file: https://1drv.ms/u/s!AucNdHoia6D-2TnE0_Op2BKlUKGh )

\version "2.18.2"
#(set-default-paper-size "letter" 'landscape)


uppera = \relative c'' {
   %MUSIC
}

upperb = \relative c' {
   % MUSIC
}
lowera = \relative c {
   % MUSIC
}

lowerb = \relative c, {
   % MUSIC
}

\score {
  \new PianoStaff \with {
instrumentName = "Piano"
  } <<
\new Staff = "uppera" \uppera
\new Staff = "upperb" \upperb
\new Staff = "lowera" \lowera
\new Staff = "lowerb" \lowerb
  >>

  \layout {

   \context {

 \Staff \RemoveEmptyStaves

 % To use the setting globally, uncomment the following line:

 %\override VerticalAxisGroup #'remove-first = ##t

   }

}
}





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


Re: LilyPond 64-bit version for a Mac

2019-03-03 Thread Mark Probert


Hi Robert

> 
> Thanks for your reassuring message. It helped.
>
You're welcome.

> 
> TeXShop took some time to consider whether it would or would not 
> process my _ly.tex-file, but after a few minutes it produced an 
> impeccable pdf.
>
The startup delay, at least the first time around, is making sure all 
the fonts are in place and working correctly. It should be, depending 
on the score of course, quicker next time.

> What surprised me was that the processing time on this extremely slow 
> iMac was about the same as on my MacBook.
> 
This is one of the reasons I'm sticking to my old clamshells. In my 
experience, they are the last of the "good macs"--the ones where I can 
upgrade the HD and memory, and have some control over my destiny. I, 
for one, am very happy to be able to run lilypond on it 

All the best.

 .. m.


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


Re: Lead sheets: lyrics and chords, no melody?

2019-03-03 Thread Kieren MacMillan
Hi Christopher,

> I am committed to the principle of single-source authoring in my textual and 
> musical worlds.

+1

For archive completeness, I’ve included (below) the example I am playing with — 
it’s still in progress, but it’s nearly there — which clearly allows 
single-source authoring.

Best,
Kieren.

%%%  SNIPPET BEGINS
\version "2.19.80"

\paper {
  indent = 0
  ragged-right = ##t
  system-system-spacing = #'((basic-distance . 6) (minimum-distance . 6) 
(padding . 2.5) (stretchability . 0))
  score-system-spacing.padding = #12
}

\layout {
  \context {
\ChordNames
\override VerticalAxisGroup.staff-affinity = #DOWN
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 2.5) (minimum-distance . 2.5) (padding . 1.25) 
(stretchability . 0))
  }
  \context {
\Lyrics
\override VerticalAxisGroup.staff-affinity = #UP
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 5.5) (minimum-distance . 5.5) (padding . 1.25) 
(stretchability . 0))
  }
  \context {
\ChordNames
\name LyricSheetChords
\alias ChordNames
\inherit-acceptability LyricSheetChords ChordNames
\override VerticalAxisGroup.nonstaff-nonstaff-spacing =
#'((basic-distance . 1) (minimum-distance . 1) (padding . 1) 
(stretchability . 0))
  }
  \context {
\Lyrics
\name LyricSheetLyrics
\alias Lyrics
\inherit-acceptability LyricSheetLyrics Lyrics
\override VerticalAxisGroup.staff-affinity = #UP
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 3) (minimum-distance . 3) (padding . 2) 
(stretchability . 0))
\override LyricText.self-alignment-X = #-0.9
\override LyricSpace.minimum-distance = #0.75
\override LyricSpace.minimum-length = #0.625
\omit LyricHyphen
\override LyricHyphen.minimum-distance = #0
  }
}

theMelody = {
  e'4 d' c' d'
  e'4 4 4 4
  d'4 4 e' d'
  c'2 r4 d'
  e'4 d' c' d'
  e'4 4 4 4
  d'4 4 e' d'
  c'2. r4
}

theChords = \chordmode {
  c2 f
  c1
  d2:7 g
  c1
  c2 f
  c1
  f2:6 g
  c1
}

lyricsbreak =  \tag #'lyricsheet { \bar "" \break }

theWords = \lyricmode {
  Mar -- y had a lit -- tle lamb,  \lyricsbreak
  Its fleece was white as snow.  \lyricsbreak
  And \markup \concat { ev \hspace #-0.125 }  -- ery -- where that Mar -- y 
went  \lyricsbreak
  The lamb was sure to go.
}

\score {
  <<
\new ChordNames \theChords
\new Staff \new Voice = "melody" \theMelody
\new Lyrics \removeWithTag #'lyricsheet \lyricsto "melody" \theWords
  >>
  \layout {
ragged-right = ##f
\context {
  \Score
  \remove "Bar_number_engraver"
}
  }
}
\pageBreak
\score {
  <<
\new ChordNames \theChords
\new Devnull = "melody" \theMelody
\new LyricSheetLyrics \keepWithTag #'lyricsheet \lyricsto "melody" \theWords
  >>
  \layout {
line-width = 6\in
indent = 2\in
short-indent = 2\in
\context {
  \Score
  \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1000/1)
  \remove "Bar_number_engraver"
  \remove "Bar_engraver"
}
  }
}
%%%  SNIPPET ENDS


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: Aw: Re: release of 2.20?

2019-03-03 Thread David Kastrup
"Dirk Cresswell"  writes:

> hi ben,
>
> 2.19.82 is called unstable on the lilypond home page and there is a
> hint on the download page to use stable versions instead. i tried to
> argue but they said "they'll have a reason not to make a stable
> release following the so-called prereleases". it's about the
> university's computers, yes.

The reason is the same we have not made any more unstable versions after
2.19.82: the damn build system is broken currently.  Once that is fixed
(and I have no real idea what currently is the problem), there will
likely be another prerelease before flushing out the actual 2.20.

-- 
David Kastrup

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


Aw: Re: release of 2.20?

2019-03-03 Thread Dirk Cresswell
hi ben,

2.19.82 is called unstable on the lilypond home page and there is a hint on the 
download page to use stable versions instead. i tried to argue but they said 
"they'll have a reason not to make a stable release following the so-called 
prereleases". it's about the university's computers, yes.

regards,
dirk

> Gesendet: Sonntag, 03. März 2019 um 15:40 Uhr
> Von: "Ben" 
> An: lilypond-user@gnu.org
> Betreff: Re: release of 2.20?
>
> On 3/3/2019 8:19 AM, Dirk Cresswell wrote:
> > hi everybody,
> >
> > when will lilypond 2.20 be released? iiuc the last prerelease was 8 months 
> > ago and i'm wondering whether development has stopped... i would like to 
> > use all the new features but my university won't let me install unstable 
> > software.
> > thanks to all developers for making such a good software!
> >
> > regards,
> > dirk
> 
> Hi Dirk,
> 
> Don't be fooled by the name "unstable" regarding LilyPond version 
> 2.19.82 - it's quite stable.  :)
> 
> http://lilypond.org/development.html
> 
> Just curious, how does the university decide what's "unstable" or not? 
> Do they consider anything remotely-non-final / beta as definitively 
> "unstable"? Or is it just the word "unstable" in the case of LilyPond's 
> versioning itself that scares them? If the LilyPond development version 
> was called something else, could you then be allowed to install it?
> 
> (I assume you're talking about computers in a lab setting, right? Not 
> personal machines on the network...)
> 
> 
> ___
> 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: Lead sheets: lyrics and chords, no melody?

2019-03-03 Thread Christopher R. Maden

On 3/3/19 2:34 PM, Ivan Kuznetsov wrote:

Why not just use MS Word or Latex ?  If you don't need musical
notation, why use a music notation program ?


I have the songs fully scored out in LilyPond.  My guitarist is scared 
by the lines and dots, so I want to give him a simple lead sheet — 
without having to redo all the work I’ve already done aligning chords 
and lyrics.  (I am committed to the principle of single-source authoring 
in my textual and musical worlds.)


It seems like LilyPond should be able to do that, using an invisible 
staff for the melody, and indeed, I’m 95% of the way there, with Aaron’s 
tips on suppressing the staff and Kieren’s tips on spacing (which I 
haven’t fully digested yet).


It looks like another win for LilyPond, to me!

~Chris
--
Chris Maden, text nerd
http://crism.maden.org/ >
Emperor Norton had the right idea.

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


Re: Lead sheets: lyrics and chords, no melody?

2019-03-03 Thread Ivan Kuznetsov
On Sat, Mar 2, 2019 at 11:05 PM Christopher R. Maden 
wrote:
>
> I’d like to produce what he’s used to: lyrics with chords above them.

Why not just use MS Word or Latex ?  If you don't need musical
notation, why use a music notation program ?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lead sheets: lyrics and chords, no melody?

2019-03-03 Thread Kieren MacMillan
Hi Christopher,

> I’ve trawled the internals pretty extensively at this point, and this is 
> probably close enough for my guitarist, but any further pointers on the 
> spacing would be most welcome.

I believe the spacing issues are better handled by the solution in the 
thread(s) I linked to earlier.

Hope that 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: Hide staff with Arrows Possible without other program?

2019-03-03 Thread Mark Knoop
At 17:18 on 03 Mar 2019, Reggie wrote:
> Mark Knoop-4 wrote
>> You can do this with a simple TextSpanner:
>>
>> \version "2.19.82"
>>
>> onStaffExtender = {
>>   \override TextSpanner.style = #'line
>>   \override TextSpanner.thickness = #6
>>   \override TextSpanner.to-barline = ##t
>>   \override TextSpanner.outside-staff-priority = ##f
>>   \override TextSpanner.Y-offset = #0
>>   \override TextSpanner.bound-details.left.padding = #0
>>   \override TextSpanner.bound-details.right.padding = #0
>>   \override TextSpanner.bound-details.right-broken.text =
>>   \markup \fontsize #5 \arrow-head #X #RIGHT ##t
>>   \override TextSpanner.bound-details.right.text =
>>   \markup \fontsize #5 \arrow-head #X #RIGHT ##t
>> }
>>
>> \score {
>>   <<
>> \new Staff \repeat unfold 80 c'4
>> \new Staff {
>>   c'1
>>   \stopStaff
>>   \once \onStaffExtender
>>   <>\startTextSpan
>>   s1*18
>>   \startStaff
>>   <>\stopTextSpan
>>   c'1
>> }
>>   >>
>> }
>>
> Mark this is so helpful to me thank you. Can you answer this however?
> What if I would like the arrow to be solid straight line and only one
> arrowpoint at end of everything not every system arrow at end of
> system?

I can't check this right now, but you may have to use \alterBroken:
http://lilypond.org/doc/v2.18/Documentation/notation/modifying-broken-spanners

> Also, how to hide clef for each arrow line system while line occurs
> instead of treble showing in your example each system has line + clef
> instead of just line? Thank you so very much.

Add:
  \temporary \omit Staff.Clef

and:
  \undo \omit Staff.Clef

either side of the TextSpanner.

http://lilypond.org/doc/v2.19/Documentation/notation/visibility-of-objects

> And what is <> that you use at end?

This is an empty zero-length chord which is useful for attaching objects such 
as TextSpanners or Markups.


--
Mark Knoop

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


Re: Lead sheets: lyrics and chords, no melody?

2019-03-03 Thread Christopher R. Maden

On 3/3/19 12:40 AM, Aaron Hill wrote:

It is a messy hack, but here is something:


[...]


My goal was to leave the lead sheet snippet from the docs intact and
do everything with \layout.  There are probably other grobs that will
need \omitting depending on your music.  Spacing will almost
certainly require tweaking to work.  I also opted to left-align the
lyrics to match the chords, as the alignment looks better without the
notes.


Thanks!  That’s a good start... I had tried the approach of \remove-ing 
a bunch of engravers from Staff and Voice, but this looks cleaner.


It does leave a bunch of note flags, dots, and phrasing slurs decorating 
the lyrics...


I was able to clean most of that up by adding:

  \omit Dots
  \omit Flag
  \omit InstrumentName
  \omit PhrasingSlur.

to the \Staff context.

I also added \omit BarNumber to the \Score context.  Oddly, the 8 from 
the "treble_8" clef I was using lingered even with \omit Clef in the 
\Staff context; I had to \remove Clef_engraver from the Staff to kill that.


I am struggling with the spacing now.  Based on Aaron’s second message, 
I currently have this:


  \context {
\ChordNames
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
  #'((basic-distance . 0) (minimum-distance . 1)
 (padding . 4) (stretchability . 0))
\override ChordName.extra-offset = #'(0 . -1)
  }
  \context {
\Lyrics
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
  #'((basic-distance . 0) (minimum-distance . 1)
 (padding . -2) (stretchability . 0))
\override LyricText.self-alignment-X = #LEFT
\override LyricSpace.minimum-distance = #1
\omit LyricExtender
  }

which gives the attached results.[*]  If I increase the ChordNames 
padding to 5, the last line gets pushed to the next page, and everything 
opens way up.  Changing the basic or minimum distance properties just 
pushes the chords away from their associated lyrics, not from the 
preceding line.  The nonstaff-nonstaff-spacing property doesn’t seem to 
affect anything.


I’ve trawled the internals pretty extensively at this point, and this is 
probably close enough for my guitarist, but any further pointers on the 
spacing would be most welcome.


~Chris

[*] “Fiddler’s Green” is copyright © 1970 March Music, Ltd.
--
Chris Maden, text nerd
http://crism.maden.org/ >
Emperor Norton had the right idea.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Hide staff with Arrows Possible without other program?

2019-03-03 Thread Reggie
Mark Knoop-4 wrote
> You can do this with a simple TextSpanner:
> 
> \version "2.19.82"
> 
> onStaffExtender = {
>   \override TextSpanner.style = #'line
>   \override TextSpanner.thickness = #6
>   \override TextSpanner.to-barline = ##t
>   \override TextSpanner.outside-staff-priority = ##f
>   \override TextSpanner.Y-offset = #0
>   \override TextSpanner.bound-details.left.padding = #0
>   \override TextSpanner.bound-details.right.padding = #0
>   \override TextSpanner.bound-details.right-broken.text =
>   \markup \fontsize #5 \arrow-head #X #RIGHT ##t
>   \override TextSpanner.bound-details.right.text =
>   \markup \fontsize #5 \arrow-head #X #RIGHT ##t
> }
> 
> \score {
>   <<
> \new Staff \repeat unfold 80 c'4
> \new Staff {
>   c'1
>   \stopStaff
>   \once \onStaffExtender
>   <>\startTextSpan
>   s1*18
>   \startStaff
>   <>\stopTextSpan
>   c'1
> }
>   >>
> }
> 
> --
> Mark Knoop
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Mark this is so helpful to me thank you. Can you answer this however? What
if I would like the arrow to be solid straight line and only one arrowpoint
at end of everything not every system arrow at end of system? Also, how to
hide clef for each arrow line system while line occurs instead of treble
showing in your example each system has line + clef instead of just line?
Thank you so very much. And what is <> that you use at end?




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Hide staff with Arrows Possible without other program?

2019-03-03 Thread Mark Knoop
At 16:45 on 03 Mar 2019, Reggie wrote:
> Hello I was trying to create a score where a staff goes away and a
> simple horizontal arrow continues in its place even over page breaks.
> I cannot understand where to find this answer and I believe the
> framengraver is too much for myneeds. Is it possible?
>
> I would like to have a simple arrow go across the page or pages in
> place of staff then the staff would appear later as normal as found in
> many contemporary scores. Do I need to leave blank space and go add
> arrows in image software after LilyPond I hope not.
>
> Thank you for helping me with my question. I have a photo to show my
> help. The arrows will not always stay on one page but travel pages in
> place of staff in some cases which is very common.

Hi Reggie,

You can do this with a simple TextSpanner:

\version "2.19.82"

onStaffExtender = {
  \override TextSpanner.style = #'line
  \override TextSpanner.thickness = #6
  \override TextSpanner.to-barline = ##t
  \override TextSpanner.outside-staff-priority = ##f
  \override TextSpanner.Y-offset = #0
  \override TextSpanner.bound-details.left.padding = #0
  \override TextSpanner.bound-details.right.padding = #0
  \override TextSpanner.bound-details.right-broken.text =
  \markup \fontsize #5 \arrow-head #X #RIGHT ##t
  \override TextSpanner.bound-details.right.text =
  \markup \fontsize #5 \arrow-head #X #RIGHT ##t
}

\score {
  <<
\new Staff \repeat unfold 80 c'4
\new Staff {
  c'1
  \stopStaff
  \once \onStaffExtender
  <>\startTextSpan
  s1*18
  \startStaff
  <>\stopTextSpan
  c'1
}
  >>
}

--
Mark Knoop

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


Hide staff with Arrows Possible without other program?

2019-03-03 Thread Reggie
Hello I was trying to create a score where a staff goes away and a simple
horizontal arrow continues in its place even over page breaks. I cannot
understand where to find this answer and I believe the framengraver is too
much for myneeds. Is it possible?

I would like to have a simple arrow go across the page or pages in place of
staff then the staff would appear later as normal as found in many
contemporary scores. Do I need to leave blank space and go add arrows in
image software after LilyPond I hope not. 

Thank you for helping me with my question. I have a photo to show my help.
The arrows will not always stay on one page but travel pages in place of
staff in some cases which is very common.

help-please.jpg
  



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Tracking usage of variables

2019-03-03 Thread David Kastrup
Mark Knoop  writes:

> At 13:17 on 03 Mar 2019, David Kastrup wrote:
>> Mark Knoop  writes:
>>> Often in the music I'm engraving a single variable might be used and
>>> transformed in multiple contexts and repetitions throughout the
>>> piece. This can become difficult to keep track of, particularly if
>>> subsequent changes are made which might want to affect only one or
>>> some of the instances.
>>>
>>> It would be great to be able to display the use of variables
>>> throughout a score, I imagine by writing a custom engraver for this.
>>
>> Variable use does not sound like a use case for engravers since
>> engravers work at a different stage than variable use.
>
> Yes, I thought this might be the case.
>
>> How about something like
>>
>> motif = { c'4 e' g' c'' }
>>
>> make-obvious =
>> #(define-void-function (x) (symbol?)
>>(let ((old (ly:music-deep-copy (ly:parser-lookup x
>>  (ly:parser-define! x
>>(define-music-function () ()
>>  #{ \context Bottom << <>-#(format "Variable: ~s" x) $old >> #}
>>
>> \make-obvious motif
>>
>> I apologize for vandalizing your code and throwing out the bulk of
>> functionality and markup you put in but that was just a quick and easy
>> job.
>
> That's brilliant, thanks. I'll work more with that and see where it takes me.

Note that a music function would not actually be required to do what I
show here.  However, when you use a music function, you have the ability
to refer to (*location*) inside of it in which case this will refer to
the current input location where the music function is getting called.
I am not sure that this is what you want.  Of course you also have the
ability to call all sorts of indexing functions (and that does appear
like something you wanted to do).  If those indexing functions should
not refer to input line and number but instead to measure numbers or
stuff, you'd likely need to engage the help of \applyContext or
engravers or whatever after all.

-- 
David Kastrup

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


Re: release of 2.20?

2019-03-03 Thread Ben

On 3/3/2019 8:19 AM, Dirk Cresswell wrote:

hi everybody,

when will lilypond 2.20 be released? iiuc the last prerelease was 8 months ago 
and i'm wondering whether development has stopped... i would like to use all 
the new features but my university won't let me install unstable software.
thanks to all developers for making such a good software!

regards,
dirk


Hi Dirk,

Don't be fooled by the name "unstable" regarding LilyPond version 
2.19.82 - it's quite stable.  :)


http://lilypond.org/development.html

Just curious, how does the university decide what's "unstable" or not? 
Do they consider anything remotely-non-final / beta as definitively 
"unstable"? Or is it just the word "unstable" in the case of LilyPond's 
versioning itself that scares them? If the LilyPond development version 
was called something else, could you then be allowed to install it?


(I assume you're talking about computers in a lab setting, right? Not 
personal machines on the network...)



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


Aw: release of 2.20?

2019-03-03 Thread Dirk Cresswell
hi everybody,

sorry for the double post. i'm new to this list and i thought my message didn't 
come through.

regards,
dirk

> Gesendet: Sonntag, 03. März 2019 um 14:19 Uhr
> Von: "Dirk Cresswell" 
> An: lilypond-user@gnu.org
> Betreff: release of 2.20?
>
> hi everybody,
> 
> when will lilypond 2.20 be released? iiuc the last prerelease was 8 months 
> ago and i'm wondering whether development has stopped... i would like to use 
> all the new features but my university won't let me install unstable software.
> thanks to all developers for making such a good software!
> 
> regards,
> dirk
> 
> ___
> 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: Tracking usage of variables

2019-03-03 Thread Mark Knoop
At 13:17 on 03 Mar 2019, David Kastrup wrote:
> Mark Knoop  writes:
>> Often in the music I'm engraving a single variable might be used and
>> transformed in multiple contexts and repetitions throughout the
>> piece. This can become difficult to keep track of, particularly if
>> subsequent changes are made which might want to affect only one or
>> some of the instances.
>>
>> It would be great to be able to display the use of variables
>> throughout a score, I imagine by writing a custom engraver for this.
>
> Variable use does not sound like a use case for engravers since
> engravers work at a different stage than variable use.

Yes, I thought this might be the case.

> How about something like
>
> motif = { c'4 e' g' c'' }
>
> make-obvious =
> #(define-void-function (x) (symbol?)
>(let ((old (ly:music-deep-copy (ly:parser-lookup x
>  (ly:parser-define! x
>(define-music-function () ()
>  #{ \context Bottom << <>-#(format "Variable: ~s" x) $old >> #}
>
> \make-obvious motif
>
> I apologize for vandalizing your code and throwing out the bulk of
> functionality and markup you put in but that was just a quick and easy
> job.

That's brilliant, thanks. I'll work more with that and see where it takes me.

--
Mark Knoop

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


release of 2.20?

2019-03-03 Thread Dirk Cresswell
hi everybody,

when will lilypond 2.20 be released? iiuc the last prerelease was 8 months ago 
and i'm wondering whether development has stopped... i would like to use all 
the new features but my university won't let me install unstable software.
thanks to all developers for making such a good software!

regards,
dirk

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


lilypond 2.20 release

2019-03-03 Thread Dirk Cresswell
hi everybody,

when will lilypond 2.20 be released? iiuc the last prerelease was 8 months ago 
and i'm wondering whether development has stopped... i would like to use all 
the new features but my university won't let me install unstable software.
thanks to all developers for making such a good software!

regards,
dirk

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


Re: Tracking usage of variables

2019-03-03 Thread David Kastrup
Mark Knoop  writes:

> Often in the music I'm engraving a single variable might be used and 
> transformed in multiple contexts and repetitions throughout the piece. This 
> can become difficult to keep track of, particularly if subsequent changes are 
> made which might want to affect only one or some of the instances.
>
> It would be great to be able to display the use of variables throughout a 
> score, I imagine by writing a custom engraver for this. Such an engraver 
> would create two helpful components:
>
> 1. Add markup to every use of a variable in the music. The point-and-click 
> link of this markup would be to the use of the variable (rather than its 
> definition).
>
> 2. Output a text report listing the musical locations (bar/beat) and contexts 
> of each variable.
>
> The example below demonstrates what such an engraver would create. I don't 
> really know how to start with this, or if it is even possible - any thoughts 
> or pointers from scheme gurus would be extremely helpful.

Variable use does not sound like a use case for engravers since
engravers work at a different stage than variable use.

How about something like

motif = { c'4 e' g' c'' }

make-obvious =
#(define-void-function (x) (symbol?)
   (let ((old (ly:music-deep-copy (ly:parser-lookup x
 (ly:parser-define! x
   (define-music-function () ()
 #{ \context Bottom << <>-#(format "Variable: ~s" x) $old >> #}

\make-obvious motif

\score {
  <<
\new Staff = "flute" \with {
  instrumentName = "flute"
} {
  \motif
  R1
  \repeat unfold 3 \transpose c' e' \motif
  \bar "|."
}
\new Staff = "viola" \with {
  instrumentName = "viola"
} {
  \clef "alto"
  R1
  \repeat unfold 4 \shiftDurations 2 0 \motif
  R1*2
  \motif
}
  >>
}

I apologize for vandalizing your code and throwing out the bulk of
functionality and markup you put in but that was just a quick and easy
job.

-- 
David Kastrup

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


Re: First page number not printed in a \bookpart

2019-03-03 Thread nagymusic
Thanks, Aaron. Really appreciate your reply and advice. This all makes sense.

Just a quick follow up question: how to adjust the settings when page
numbers alternate between "left and right" header areas? Ideally, I'd like
to be able to automate the process, so to speak, so that regardless of odd
or even pages, the numbers are not printed on the first page of a /bookpart
block. In any case, I'll continue studying your code and see if I can arrive
at the solution.

Zvony



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Tracking usage of variables

2019-03-03 Thread Mark Knoop
Often in the music I'm engraving a single variable might be used and 
transformed in multiple contexts and repetitions throughout the piece. This can 
become difficult to keep track of, particularly if subsequent changes are made 
which might want to affect only one or some of the instances.

It would be great to be able to display the use of variables throughout a 
score, I imagine by writing a custom engraver for this. Such an engraver would 
create two helpful components:

1. Add markup to every use of a variable in the music. The point-and-click link 
of this markup would be to the use of the variable (rather than its definition).

2. Output a text report listing the musical locations (bar/beat) and contexts 
of each variable.

The example below demonstrates what such an engraver would create. I don't 
really know how to start with this, or if it is even possible - any thoughts or 
pointers from scheme gurus would be extremely helpful.

Thanks,

Mark


\version "2.19.82"

motif = { c'4 e' g' c'' }

#(define-markup-command
  (variable layout props varname)
  (string?)
  "Format variable name."
  (interpret-markup layout props
   #{
   \markup
   \with-dimensions #'(0 . 0) #'(0 . 0)
   \with-color #red
   \raise #1
   \column {
 \box \fontsize #-3 \typewriter #varname
 \combine
 \draw-line  #'(0 . 3)
 \arrow-head #Y #DOWN ##f
   }
   #}))

varname =
#(define-event-function (text) (markup?)
  #{
  -\tweak parent-alignment-X #CENTER
  -\tweak layer #-10
  ^\markup \variable #text
  #})

\score {
  <<
\new Staff = "flute" \with {
  instrumentName = "flute"
} {
  <>\varname "motif"
  \motif
  R1
  \repeat unfold 3 \transpose c' e' { <>\varname "motif" \motif }
  \bar "|."
}
\new Staff = "viola" \with {
  instrumentName = "viola"
} {
  \clef "alto"
  R1
  \repeat unfold 4 \shiftDurations 2 0 { <>\varname "motif" \motif }
  R1*2
  <>\varname "motif"
  \motif
}
  >>
}

%{ output to text file:
Variable report
===

motif:

  1 0/4: flute
  2 0/4: viola
  2 1/4: viola
  2 2/4: viola
  2 3/4: viola
  3 0/4: flute
  4 0/4: flute
  5 0/4: flute
  5 0/4: viola

%}


--
Mark Knoop

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


Re: Lead sheets: lyrics and chords, no melody?

2019-03-03 Thread Kieren MacMillan
Hi there!

> I’d like to produce what he’s used to: lyrics with chords above them.
[…]
> I’m groveling through the internals reference now, but maybe someone has a 
> snippet to share?

Maybe there’s something helpful in 
 or 
 or 
similar threads?

Best,
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: LilyPond 64-bit version for a Mac

2019-03-03 Thread Robert Blackstone
Hi Mark,

Thanks for your reassuring message. It helped.
Today I copied  some LilyPond apps, plus the relevant TeXShop engines, to a 
External HD to transfer that stuff to my mid 2011 iMac, also High Sierra.

TeXShop took some time to consider whether it would or would not process my 
_ly.tex-file, but after a few minutes it produced an impeccable pdf.
What surprised me was that the processing time on this extremely slow iMac was 
about the same as on my MacBook.

Best regards,

Robert Blackstone

On 2 Mar 2019, at 21:45 , Mark Probert  wrote:

> 
> Hi, Robert. 
> 
>> 
>> Thanks for your prompt  reassuring response. 
>> I will now first test LilyPond on my other rather old and slow Mac, 
>> running on High Sierra.
>> 
> As another check point, I am happily running Lilypond (2.19.82) on a 
> mid-2011 13" MBP running OSX 10.13.6 (High Sierra). Best to install LP 
> from the official site rather than using Homebrew, in my experience.
> 
> HTH
> 
> 
> ___
> 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