Re: Extending the staff for time signature changes between scores

2016-05-19 Thread Knute Snortum
Thanks, that works.


---
Knute Snortum
(via Gmail)

On Wed, May 18, 2016 at 6:23 PM, David Wright 
wrote:

> On Wed 18 May 2016 at 08:43:12 (-0700), Knute Snortum wrote:
> > My situation is this: I have two \score sections and at the end of the
> > first I want to alert the reader that the next staff will have a time
> > signature change.  Lilypond does this for me perfectly within a score but
> > between two scores it gets problematic.  Consider this code:
> >
> > %%% Start code
> > \version "2.19.41"
>
> The quick fix: s/2.19.41/2.18.2/
> ie run "stable" LilyPond.
>
> The new fix (AFAICT):
>
> \layout {
>   \context {
> \Staff
> \override StaffSymbol.break-align-symbols = #'(time-signature
> key-signature staff-bar break-alignment)
>   }
> }
>
> > \language "english"
> >
> > \paper {
> >   ragged-right = ##f
> > }
> >
> > theChords = \chordmode { e1 a b e }
> >
> > theBeats = \relative {
> >   \time 4/4
> >   \numericTimeSignature
> >   \improvisationOn
> >   \repeat unfold 4 {
> > | b'4 b b b
> >   }
> >   %%% Here is the problem
> >   \time 7/4
> >   % without the s16, the staff is not extended
> >   s16 % with the s16, the staff extends too far
> > }
> >
> > \score {
> >   <<
> > \new ChordNames \theChords
> > \new Staff \theBeats
> >   >>
> >   \layout {
> > indent = 0
> >   }
> > }
> >
> > theMelody = \relative {
> >   \time 7/4
> >   \repeat unfold 4 {
> > | c'4 d e f g a b
> >   }
> > }
> >
> > \score {
> >   \new Staff \theMelody
> >   \layout {
> > indent = 0
> >   }
> > }
> > %%% End code
> >
> > If you compile this code to a PDF, you either get the new time signature
> > outside the end of the first line (without the final s16) or you get a
> > staff extension that is too long.
> >
> > Is this a bug or am I missing something?
>
> The "explanation":
>
> http://lilypond.1069038.n5.nabble.com/Staff-ends-before-clef-time-and-key-td174133.html
>
> I haven't tried it on the tiny number of my scores that have ossias.
>
> Cheers,
> David.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: What is the correct way(TM) to set a Rezitationston?

2016-05-19 Thread David Wright
I printed and processed the pot of coffee for myself, and thought I
might as well put it into these archives.

I added the overlooked lyric alignment, changed the hyphenation (most
disappears) and removed the indentation. Ragged right closes up the
syllables. In any case, I've always printed recitatives ragged so that
I don't lose my place under pressure.

Cheers,
David.
\version "2.16.2"
\include "deutsch.ly"

ohr = \markup {
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \translate #'( 0 . -0.3)
  \combine \filled-box #'(-0.3 . +0.3) #'(0 . 0.3) #0 % Naht
  \filled-box #'(-0.8 . +0.8) #'(0 . 0.15) #0 % Strich
}

balken = {
  \once \override Glissando #'after-line-breaking = #(lambda (grob)
(let* ((left-bound (ly:spanner-bound grob LEFT))
	   (left-Y (assoc-get 'Y (ly:grob-property grob 'left-bound-info
 (ly:grob-set-property! left-bound 'stencil #f)
 (ly:grob-set-nested-property! grob '(right-bound-info Y) left-Y)))

  \once \override Glissando #'thickness = #6
  \once \override Glissando #'(bound-details left padding) = #-0.5
  \once \override Glissando #'(bound-details right padding) = #1.3
  \once \override Glissando #'(bound-details left text) = \markup \rotate #-90 \ohr
  \once \override Glissando #'(bound-details right text) = \markup \rotate #90 \ohr
  \once \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
  \once \override Glissando #'minimum-length = 10
  <>\glissando
}

ll = \lyricmode { \once \override LyricText.self-alignment-X = #LEFT } %%

\score {
  <<
\new Staff <<
  \new Voice = "Alt"
  \relative c'' {
	\key g \major
	\clef treble
	\time 1/4
	\autoBeamOff
	\override Score.SpacingSpanner #'packed-spacing = ##t
	\set Score.timing = ##f
	\balken g
	a g g
	\break
	\balken g
	fis g g
	\break
	\balken g
	a g
	\break
	\balken g
	fis g
	\break
	\balken g
	a g
	\break
	\balken g
	fis g
	\break
	g a g(fis) fis
  }
  \addlyrics {
	\ll "Herr tue meine" Lip -- pen auf.
	\ll "dass mein Mund deinen Ruhm ver" -- kün -- di -- ge.
	\ll "Gott, gedenke mein nach deiner" Gna -- de.
	\ll "Herr, erhöhre mich mit deiner treuen" Hil -- fe.
	\ll "Ehre sei dem Vater und dem Sohne und dem Heiligen" Geis -- te
	\ll "wie im Anfang, so auch jetzt und alle Zeit und in Ewigkeit." A -- men.
	[Hal -- le -- lu -- \ll ja]
  }
>>
  >>
  \midi {
  }
  \layout {
indent = 0 %%
ragged-right = ##t %%
\context {
  \Staff
  \remove "Time_signature_engraver"
  \remove "Bar_engraver"
  \override Stem #'transparent = ##t
  \override Flag #'transparent = ##t
  \override Beam #'transparent = ##t
} % context
  } % layout
} % score


recit.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Troubleshooting installing dev version of lilypond on ubuntu

2016-05-19 Thread Paul

On 05/18/2016 01:48 PM, David Wright wrote:

On Wed 18 May 2016 at 12:31:19 (-0400), Paul wrote:

But I've now got it working.  I noticed that I now have a ~/bin
directory with "lilypond" and other shell scripts in it.  And
everything works fine when I do:

$ ~/bin/lilypond test.ly

or just

$ lilypond test.ly

Those are the intended methods.


I can still access the 2.18.2 version via Frescobaldi by adding this path:
/usr/bin/lilypond

That means ~/bin comes before the system directories in your $PATH
which is fine, as is the opposite. I define aliases lily and lilyo
to point to the respective versions; saves keystrokes!


I wonder, is this the usual way/location to install a dev version
alongside a stable version on GNU/Linux?  Might be nice to have this
documented somewhere.  (Or maybe I'm just a newbie with this.)

Pretty much. If you list ~/bin/lilypond, you'll see something like

#!/bin/sh
me=`basename $0`
export LD_LIBRARY_PATH="/home/david/lilypond/usr/lib"
exec "/home/david/lilypond/usr/bin/$me" "$@"

When you ran lilypond/usr/bin/lilypond, the whole of the
/home/david/lilypond/usr/lib tree was ignored and it tried to
use your system versions instead.

Thanks for the explanations!  This is all making sense to me now.

Cheers,
-Paul

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


Converting Midi to PDF, or lilypond

2016-05-19 Thread Marco Oros

Hello people!

I have a question. Is there any software for converting a Midi to sheet? 
This software will haveto be for free.


Thank You!

Marco Oros


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


Re: Converting Midi to PDF, or lilypond

2016-05-19 Thread Karlin High
On 5/19/2016 10:57 AM, Marco Oros wrote:
> Is there any software for converting a Midi to sheet?
LilyPond (which is free software) includes a command-line conversion 
tool called midi2ly.

http://lilypond.org/doc/v2.18/Documentation/usage/invoking-midi2ly

  This converts a MIDI file into a LilyPond .ly text file. In my 
experience, this works fairly well for getting pitches and durations 
into LilyPond. Although LilyPond makes great PDF files, expect to be 
doing some cleanup and editing work on the midi2ly conversion results.
--
Karlin High
Missouri, USA

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


Re: Troubleshooting installing dev version of lilypond on ubuntu

2016-05-19 Thread Federico Bruni
Il giorno mer 18 mag 2016 alle 18:31, Paul  ha 
scritto:
I wonder, is this the usual way/location to install a dev version 
alongside a stable version on GNU/Linux?  Might be nice to have this 
documented somewhere.  (Or maybe I'm just a newbie with this.)


I think that this is up to the user and the distro in use.
In Fedora any user has two additional paths predefined:

$ cat ~/.bash_profile | grep PATH
PATH=$PATH:$HOME/.local/bin:$HOME/bin

I like keeping the development versions in ~/.local/bin, while the last 
stable stays in /usr/local.


There are some tips in the CG:
http://lilypond.org/doc/v2.19/Documentation/contributor/concurrent-stable-and-development-versions




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


Re: Converting Midi to PDF, or lilypond

2016-05-19 Thread Robert Schmaus
There's a program called Musescore (free open source WYSIWYG music sheet 
program) that can import and render MIDI. Might be messy, depending on the 
complexity of the music, but that's probably the same in all programs ...

Best, Robert. 

__

It is wrong always, everywhere, and for anyone, to believe anything upon 
insufficient evidence. 
-- William Kingdon Clifford


> On 19 May 2016, at 17:57, Marco Oros  wrote:
> 
> Hello people!
> 
> I have a question. Is there any software for converting a Midi to sheet? This 
> software will haveto be for free.
> 
> Thank You!
> 
> Marco Oros
> 
> 
> ___
> 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: Converting Midi to PDF, or lilypond

2016-05-19 Thread Johan Vromans
On Thu, 19 May 2016 17:57:52 +0200
Marco Oros  wrote:

> I have a question. Is there any software for converting a Midi to sheet? 
> This software will haveto be for free.

Try RoseGarden.

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


Re: Extending the staff for time signature changes between scores

2016-05-19 Thread Simon Albrecht

On 19.05.2016 03:23, David Wright wrote:

\layout {
   \context {
 \Staff
 \override StaffSymbol.break-align-symbols = #'(time-signature 
key-signature staff-bar break-alignment)
   }
}


I tried to use the proper LilyPond list syntax here:
\override StaffSymbol.break-align-symbols = 
time-signature,key-signature,staff-bar,break-alignment
– which would be beautiful, but the parser doesn’t expect it there. 
Could that be made working, David?


Yours, Simon

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


Re: Extending the staff for time signature changes between scores

2016-05-19 Thread Malte Meyn



Am 19.05.2016 um 22:19 schrieb Simon Albrecht:

On 19.05.2016 03:23, David Wright wrote:

\layout {
   \context {
 \Staff
 \override StaffSymbol.break-align-symbols = #'(time-signature
key-signature staff-bar break-alignment)
   }
}


I tried to use the proper LilyPond list syntax here:
\override StaffSymbol.break-align-symbols =
time-signature,key-signature,staff-bar,break-alignment
– which would be beautiful, but the parser doesn’t expect it there.
Could that be made working, David?



Cannot reproduce, it works in 2.19.42:

\version "2.19.42"

\layout {
  \context {
\Staff
\override StaffSymbol.break-align-symbols = 
time-signature,key-signature,staff-bar,break-alignment

  }
}

\paper {
  ragged-last = ##f
}

{ R1*5 \time 3/4 }

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


Re: Extending the staff for time signature changes between scores

2016-05-19 Thread David Kastrup
Simon Albrecht  writes:

> On 19.05.2016 03:23, David Wright wrote:
>> \layout {
>>\context {
>>  \Staff
>>  \override StaffSymbol.break-align-symbols = #'(time-signature 
>> key-signature staff-bar break-alignment)
>>}
>> }
>
> I tried to use the proper LilyPond list syntax here:
> \override StaffSymbol.break-align-symbols =
> time-signature,key-signature,staff-bar,break-alignment
> – which would be beautiful, but the parser doesn’t expect it
> there. Could that be made working, David?

Override arguments are not type-checked at parsing time, so the syntax
cannot be adopted according to the accepted type.  The situation is
similar for \tweak: while it is a music function, its value type cannot
be changed on-the-fly depending on the name of the preceding symbol: it
is always scheme? .

If we require lookahead for _any_ string matched by a generic predicate
like scheme? in order to see whether there is a "," following maybe, and
then convert what started out as a symbol into a list of symbols, a lot
of syntax will behave more weirdly.

Giving \override type-sensitive syntax without being able to do so for
\tweak would be highly inconsistent, and the current music function
argument processing does not allow us to calculate a symbol-list?
predicate after having seen the incomplete argument list of
\tweak StaffSymbol.break-align-symbols .

So no.  It cannot reasonably be made to work like you want, but you can
define a music function for overriding break-align-symbols specifically
and give that function an argument type of symbol-list? (which obviously
means that you cannot use the \etc shortcut).

-- 
David Kastrup

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


Scheme question: context from grob?

2016-05-19 Thread Steven Weber
Is there any way to get the context from a grob?  Or is there another way to 
get the current bar number from a grob?

 

I’m writing an after-line-break function and would like to know what bar number 
the grob is in:

 

#(define (after-break-function grob)

(newline)(display “whatever code gets me the bar number”))

 

--Steven

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


Re: Extending the staff for time signature changes between scores

2016-05-19 Thread David Kastrup
David Kastrup  writes:

> Simon Albrecht  writes:
>
>> On 19.05.2016 03:23, David Wright wrote:
>>> \layout {
>>>\context {
>>>  \Staff
>>>  \override StaffSymbol.break-align-symbols = #'(time-signature 
>>> key-signature staff-bar break-alignment)
>>>}
>>> }
>>
>> I tried to use the proper LilyPond list syntax here:
>> \override StaffSymbol.break-align-symbols =
>> time-signature,key-signature,staff-bar,break-alignment
>> – which would be beautiful, but the parser doesn’t expect it
>> there. Could that be made working, David?
>
> Override arguments are not type-checked at parsing time, so the syntax
> cannot be adopted according to the accepted type.  The situation is
> similar for \tweak: while it is a music function, its value type cannot
> be changed on-the-fly depending on the name of the preceding symbol: it
> is always scheme? .
>
> If we require lookahead for _any_ string matched by a generic predicate
> like scheme? in order to see whether there is a "," following maybe, and
> then convert what started out as a symbol into a list of symbols, a lot
> of syntax will behave more weirdly.

[...] I'm getting old.  Apparently I decided that the artifacts from the
lookahead were the lesser evil.  2.19.40 has

commit bb3285ff1f4cd437ba52afbaa53e7ff5946a7140
Author: David Kastrup 
Date:   Wed Mar 23 17:31:21 2016 +0100

Issue 4811/2: convert-ly rule for nicer beatStructure syntax

commit 2a66e23f356503ef916d51efa3f00cae5958dc48
Author: David Kastrup 
Date:   Wed Mar 23 00:05:16 2016 +0100

Issue 4811/1: Allow property paths as scalars and in assignments

They cannot be embedded LilyPond since #{ 2 . 2 #} already is valid
music.

Property paths must have at least two syntactic elements to be
recognized as such and must not start with a Scheme expression.
Technically, 3 . #'() counts.

This affects overrides and sets as well.


So I have no idea what problem you are seeing here.

-- 
David Kastrup

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


Re: Extending the staff for time signature changes between scores

2016-05-19 Thread Simon Albrecht

On 19.05.2016 23:54, David Kastrup wrote:

2.19.40 has


[…]


So I have no idea what problem you are seeing here.


The only problem was that I thought these changes had already made it 
into v2.19.39, with which version I made the tests. Sorry for the noise, 
and thanks again for this new possibility.


Best, Simon

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


print instrument abbreviations to left of staff

2016-05-19 Thread Ryan Michael
Hello,  I have a string quartet score,
and I would like to show the canonical abbreviations for each instrument
to the left of each staff line throughout the piece. How can I do that?
Ryan.

p.s.
this is my layout:

\score {
  \new StaffGroup <<
\new Staff << \global \cello >>
 \new Staff << \global \violin >>
  \new Staff << \global \violinTwo >>
  \new Staff << \global \viola >>
  >>
  \layout { }
  \midi { }
}

where each \global is a variable defined like the following example:

cello = \new Voice \relative c' {

  \set Staff.instrumentName = #"Cello "

}

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


Re: Scheme question: context from grob?

2016-05-19 Thread David Nalesnik
Hi Steven,

On Thu, May 19, 2016 at 4:01 PM, Steven Weber  wrote:
> Is there any way to get the context from a grob?

Not that I know of.

> Or is there another way to
> get the current bar number from a grob?

Yes, you can do this using the function grob::rhythmic-location which
will return a pair consisting of the bar number and the moment within
that bar of the passed-in grob.

Example of usage:

\version "2.19.30"

#(define after-break-function
   (lambda (grob)
 (let* ((loc (grob::rhythmic-location grob))
(bar (car loc))
(mom (cdr loc))
(name (grob::name grob)))
   (format #t "~%~a at ~a of measure ~a" name mom bar

\relative c {
  \override NoteHead.after-line-breaking = #after-break-function
  \repeat unfold 20 { c2 d }
}

I don't remember when the function was introduced, but you will need
one of the development releases (2.19.something) to use it (and
grob::name as well).

Hope this gets you started--
David

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


Re: print instrument abbreviations to left of staff

2016-05-19 Thread tisimst
\set Staff.shortInstrumentName = #"abbr."

On Thu, May 19, 2016 at 5:00 PM, Ryan Michael [via Lilypond] <
ml-node+s1069038n190777...@n5.nabble.com> wrote:

> Hello,  I have a string quartet score,
> and I would like to show the canonical abbreviations for each instrument
> to the left of each staff line throughout the piece. How can I do that?
> Ryan.
>
> p.s.
> this is my layout:
>
> \score {
>   \new StaffGroup <<
> \new Staff << \global \cello >>
>  \new Staff << \global \violin >>
>   \new Staff << \global \violinTwo >>
>   \new Staff << \global \viola >>
>   >>
>   \layout { }
>   \midi { }
> }
>
> where each \global is a variable defined like the following example:
>
> cello = \new Voice \relative c' {
>
>   \set Staff.instrumentName = #"Cello "
>
> }
>
> --
> ॐ नमः शिवाय
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/print-instrument-abbreviations-to-left-of-staff-tp190777.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/print-instrument-abbreviations-to-left-of-staff-tp190777p190779.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


[ANN] Seven Music Notation Programs

2016-05-19 Thread jrethorst
About ten years ago a group of us decided to do a comparison of the most
popular notation programs, to see how each program looked in print. Although
one program's output can be made to look much like another's, some aspects
of that are easier to do, and it’s interesting how the personality of the
pages varies.

I mentioned this to Abraham Lee, a noted designer of music fonts, who
replied:

> I couldn’t agree more! It really is amazing to see how each application
> embeds its own personality into the score’s appearance, beyond what is
> “correct” or not. Truly fascinating, indeed!

Although feature set and interface may be more important to some in the
choice of an engraving program, this comparison was done for those
especially interested in high quality publication.

Unsolicited comments on "Six Music Notation Programs" included “Absolutely
amazing! . . . Interesting! . . . This is certainly a worth while endeavor .
. . a really great idea and I’m glad that someone is taking the time to do
it the right way . . . I love seeing how each program handles music.”

It's time for an update, both to include two new popular programs and to
revise other programs' samples using the latest versions. So "Seven Music
Notation Programs", with a one-page score for classical guitar as done in
Finale, LilyPond, MuseScore, Notion, Overture, Score and Sibelius, is at:

https://dl.dropboxusercontent.com/u/64325719/Seven%20Music%20Notation%20Programs.pdf

Many thanks to Abraham Lee, who did the LilyPond sample.

Enjoy, 
John R.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-Seven-Music-Notation-Programs-tp190780.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