Re: tempo markings and LilyJAZZ

2013-08-27 Thread Marc Hohl

Am 27.08.2013 01:53, schrieb Thomas Morley:

2013/8/26 Marc Hohl m...@hohlart.de:

Hi list,

does anyone have a workaround for the following problem?

The small notes in a tempo marking are missing when I use the
preliminary LilyJAZZ version:

\version 2.17.25

\include LilyJAZZ.ily


\relative c' {
   \jazzOn
   \tempo Swing 4 = 120
   c
}

(This won't compile without having the LilyJAZZ files installed!)

The console output claims that infinity or NaN is replaced by 0.0
in the output.

Regards,

Marc

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



Hi Marc,

the problem:

MetronomeMark is formatted by
metronomeMarkFormatter = #format-metronome-markup
(in engraver-init.ly)

'format-metronome-markup' calls 'metronome-markup'
(in translation-functions.scm)

'metronome-markup' uses 'note-by-number'
(from define-markup-commands.scm)

'note-by-number' gets the glyphs to use from fetaMusic (!!)


Hi Harm,

thanks for the detailed explanation!


I see no easy way to change it.
In the end it might be less effort to rewrite a (shortened)
markup-command for use with LilyJAZZ.


You're probably right here. I am just busy at the moment, but
as soon as time allows, I'll either try to write a suitable
note-by-number routine for LilyJAZZ or a simplified markup command.

Regards,

Marc


Greetings,
   Harm




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


Re: tempo markings and LilyJAZZ

2013-08-27 Thread Xavier Scheuer
On 27 August 2013 08:10, Marc Hohl m...@hohlart.de wrote:

 You're probably right here. I am just busy at the moment, but
 as soon as time allows, I'll either try to write a suitable
 note-by-number routine for LilyJAZZ or a simplified markup command.

Great news!

Could you remember to update issue #3096 when you'll work on this?
https://code.google.com/p/lilypond/issues/detail?id=3096

Thank you.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: chopin example

2013-08-27 Thread Martin Tarenskeen




Am 26.08.2013 13:45, schrieb Martin Tarenskeen:
  P.S. I am typesetting a lesser known and lesser played, yet Chopin 
autograph, version of this Nocturne, with some interesting typesetting issues. 
For
  example at some point in the score I have to combine two 3/4 bars in the 
right hand with one 2/2 bar in the left hand. polymetric music from 1830!

  I'll share the end results later.

I'm looking forward to that as I'm very interested in this sort of thing.

HTH
Urs


My Chopin score can be found here:

https://www.dropbox.com/sh/zqnsijhiwp2ebgr/op8gtlOx9N

(Let me know if the link doesn't work)

--

MT


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


a few questions

2013-08-27 Thread Stephanie

Hi all,
I have a few questions which I need help with.
I not sure what the /relative is for?
Also, how do I make chords?
Here is a little code I'd written below, can some one let me know 
if I'm on the right track?

Steph

 \relative c {
 \clef treble
 \key c \major
 \time 4/4

} c4 do every from go from every do c4
 lower = \relative c {
 \clef bass
 \key c \major
 \time 4/4

} g3 from every do can do every from g1

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


Re: chopin example

2013-08-27 Thread Urs Liska

Am 27.08.2013 11:15, schrieb Martin Tarenskeen:




Am 26.08.2013 13:45, schrieb Martin Tarenskeen:
  P.S. I am typesetting a lesser known and lesser played, yet 
Chopin autograph, version of this Nocturne, with some interesting 
typesetting issues. For
  example at some point in the score I have to combine two 3/4 
bars in the right hand with one 2/2 bar in the left hand. polymetric 
music from 1830!


  I'll share the end results later.

I'm looking forward to that as I'm very interested in this sort of 
thing.


HTH
Urs


My Chopin score can be found here:

https://www.dropbox.com/sh/zqnsijhiwp2ebgr/op8gtlOx9N

(Let me know if the link doesn't work)


So you don't want to know _that_ the link works? ;-)

Nice score. Interesting use of polymetric notation. And interesting that 
he chose not to keep it for publication. Too advanced?
Are there any biographical notions that Chopin used that Nocturne (page 
2) as a resource bin for the f minor piano concerto?


And one more question: You mentioned a Henle edition somewhere. Where 
did you copy the music from, Henle or the autograph?


Best
Urs

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


Re: a few questions

2013-08-27 Thread Robert Schmaus
Hi Stephanie,

I'm not sure where the track is supposed to lead to, so it's hard to say 
whether you're on the right one. 

The code you've written so far doesn't do anything (and what do you mean with 
c4 do every from go from every do c4?). 

Anyway, there's a learning manual on the Lilypond website (Manuals -- 
Learning) - you should find most of your basic questions answered there if you 
work through that (doesn't take that long), and the notation reference (Manuals 
-- Notation) for the more difficult ones. Of course, you can always direct 
questions to the list, but they probably should be more specific ...

best, 
Rob

-
Von meinem Fliewatüüt gesendet.

On 27 Aug 2013, at 11:36, Stephanie sim.musicsch...@gmail.com wrote:

 Hi all,
 I have a few questions which I need help with.
 I not sure what the /relative is for?
 Also, how do I make chords?
 Here is a little code I'd written below, can some one let me know if I'm on 
 the right track?
 Steph
 
 \relative c {
 \clef treble
 \key c \major
 \time 4/4
 
 } c4 do every from go from every do c4
 lower = \relative c {
 \clef bass
 \key c \major
 \time 4/4
 
 } g3 from every do can do every from g1
 
 ___
 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: tempo markings and LilyJAZZ

2013-08-27 Thread Marc Hohl

Am 27.08.2013 08:10, schrieb Marc Hohl:

Am 27.08.2013 01:53, schrieb Thomas Morley:

[...]


I see no easy way to change it.
In the end it might be less effort to rewrite a (shortened)
markup-command for use with LilyJAZZ.


You're probably right here. I am just busy at the moment, but
as soon as time allows, I'll either try to write a suitable
note-by-number routine for LilyJAZZ or a simplified markup command.


Ok, I had a little time.

What I came up with is a simple markup command based loosely on some LSR
snippets:

---
\version 2.17.25

jazzTempoMarkup = #(define-scheme-function (parser location name music 
bpm) (string? ly:music? string?)

  #{ \markup {
   \line {
 #name
 (
 \score {
   \new Staff \with {
 fontSize = #-4
 \override StaffSymbol #'staff-space = #(magstep -4)
 \override StaffSymbol #'line-count = #0
 \override VerticalAxisGroup #'Y-extent = #'(0 . 0)
   }
   \relative c'' { \jazzOn \stemUp $music }
   \layout {
 ragged-right= ##t
 indent = 0
 \context {
   \Staff
   \remove Clef_engraver
   \remove Time_signature_engraver
 }
   }
 }
 =
 #bpm
 )
   }
 }
   #})

\score {
  \new Staff {
\jazzOn
\mark\jazzTempoMarkup #Swing c4 #120
c'4 d' e' f'
  }
}
\score {
   \new Staff {
\jazzOn
\mark\jazzTempoMarkup #Bossa c2 #150
c'4 d' e' f'
  }
}
\score {
   \new Staff {
\jazzOn
\time 6/8
\mark\jazzTempoMarkup #Blues c4. #60
c'4. d' e' f'
  }
}

---

THis yields in the attached output, which is mostly fine, but dotted
notes seem to carry some unwanted space. Soes anyone know where this
comes from and how it can be avoided?

Thanks,

Marc



Regards,

Marc


Greetings,
   Harm




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



attachment: tempotest.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tempo markings and LilyJAZZ

2013-08-27 Thread David Kastrup
Marc Hohl m...@hohlart.de writes:

 Am 27.08.2013 08:10, schrieb Marc Hohl:
 Am 27.08.2013 01:53, schrieb Thomas Morley:
 [...]

 I see no easy way to change it.
 In the end it might be less effort to rewrite a (shortened)
 markup-command for use with LilyJAZZ.

 You're probably right here. I am just busy at the moment, but
 as soon as time allows, I'll either try to write a suitable
 note-by-number routine for LilyJAZZ or a simplified markup command.

 Ok, I had a little time.

 What I came up with is a simple markup command based loosely on some LSR
 snippets:

 ---
 \version 2.17.25

 jazzTempoMarkup = #(define-scheme-function (parser location name music
 bpm) (string? ly:music? string?)
   #{ \markup {
\line {
  #name

Well, in such cases (only use is inside of \markup) it's usually a nicer
idea not to use a string? argument but rather a markup? argument.
Strings are permitted either way (unquoted words, quoted or Scheme
strings), but in this manner you can also use \markup ... for more
complex material.

-- 
David Kastrup


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


Re: a few questions

2013-08-27 Thread Paul Morris
Here's a discussion of \relative mode:
http://lilypond.org/doc/v2.16/Documentation/learning/simple-notation

The easiest way to enter notes is by using \relative mode. In this mode,
the octave is chosen automatically by assuming the following note is always
to be placed closest to the previous note, i.e., it is to be placed in the
octave which is within three staff spaces of the previous note.

And a chord (or other harmonic interval) is created using   like this:

c e g4  c f a2

More on chords here:
http://lilypond.org/doc/v2.16/Documentation/learning/combining-notes-into-chords

Cheers,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/a-few-questions-tp149856p149870.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


Distance between first barline and paper (in preview)

2013-08-27 Thread Urs Liska
Is there any possibility to determine the exact x-position of the 
leftmost barline in a -dpreview example (well, apart from opening it up 
in a graphics program and measure)?


I would like to try out to left-align (or justify) music examples in a 
text document on the barline, so the piano or staffgroup brackets etc. 
protrude into the left margin.


I would equally use a way to determine that value from the finished 
document or to set it explicitely.


TIA
Urs

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


Re: tempo markings and LilyJAZZ

2013-08-27 Thread Marc Hohl

Am 27.08.2013 16:17, schrieb David Kastrup:

Marc Hohl m...@hohlart.de writes:


Am 27.08.2013 08:10, schrieb Marc Hohl:

Am 27.08.2013 01:53, schrieb Thomas Morley:

[...]


I see no easy way to change it.
In the end it might be less effort to rewrite a (shortened)
markup-command for use with LilyJAZZ.


You're probably right here. I am just busy at the moment, but
as soon as time allows, I'll either try to write a suitable
note-by-number routine for LilyJAZZ or a simplified markup command.


Ok, I had a little time.

What I came up with is a simple markup command based loosely on some LSR
snippets:

---
\version 2.17.25

jazzTempoMarkup = #(define-scheme-function (parser location name music
bpm) (string? ly:music? string?)
   #{ \markup {
\line {
  #name


Well, in such cases (only use is inside of \markup) it's usually a nicer
idea not to use a string? argument but rather a markup? argument.


Ok, thanks! Now I can just write

\mark\jazzTempoMarkup Blues c4. 60

which looks way neater than

\mark\jazzTempoMarkup #Blues c4. #60

(the numbers still have to be quoted).

But the main question still remains – what causes this ugly space when
I use a dotted note?

Marc

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


Re: tempo markings and LilyJAZZ

2013-08-27 Thread David Kastrup
Marc Hohl m...@hohlart.de writes:

 Ok, thanks! Now I can just write

 \mark\jazzTempoMarkup Blues c4. 60

 which looks way neater than

 \mark\jazzTempoMarkup #Blues c4. #60

 (the numbers still have to be quoted).

Uh, you could have written that even before.  The difference is just
that you can write \mark\jazzTempoMarkup \markup ... now.

 But the main question still remains – what causes this ugly space when
 I use a dotted note?

Not having the Jazz fonts, I just outcommented all instances of \jazzOn
without resulting spacing problems.  That would seem to suggest either
bad metrics for the jazz dot, or some other settings made by \jazzOn
(like proportionalNotationDuration or whatever else).

-- 
David Kastrup


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


Re: a few questions

2013-08-27 Thread Tim Roberts
Stephanie sim.musicsch...@gmail.com wrote:
 I have a few questions which I need help with.
 I not sure what the /relative is for?

Ordinarily, notes in Lilypond specify not only the pitch, but the
octave.  Middle C is c' -- third-space C is c'' -- two ledger lines C is
c'''.  Similarly, 2nd space bass clef C is c -- two ledger lines below
is c, -- octave below that is c,, .  Note that c4 means a quarter
note.  The 4 is not an octave number.

It can get tedious to write all those ticks and commas on every note. 
So, most people use relative mode, where each note is assumed to be
close to the note just before.  \relative c says that the following
block is starting close to the C below middle C.  That applies only to
the stuff INSIDE the braces.

Did you type your message on a phone?  I'm wondering if it was
auto-correct that changed your scale to:

c4 do every from go from every do c4


So, you probably want something similar to this:

upper = \relative c' {
\clef treble
\key c \major
\time 4/4
c4 d e f | g4 f e d | c1
}

lower = \relative c {
\clef bass
\key c \major
\time 4/4
g4 f e d | c4 d e f | g1
}

\new PianoStaff 
  \new Staff \upper
  \new Staff \lower


-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.


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


Re: chopin example

2013-08-27 Thread Martin Tarenskeen



On Tue, 27 Aug 2013, Urs Liska wrote:


My Chopin score can be found here:

https://www.dropbox.com/sh/zqnsijhiwp2ebgr/op8gtlOx9N

(Let me know if the link doesn't work)


So you don't want to know _that_ the link works? ;-)

Nice score. Interesting use of polymetric notation. And interesting that he 
chose not to keep it for publication. Too advanced?
Are there any biographical notions that Chopin used that Nocturne (page 2) as 
a resource bin for the f minor piano concerto?


And one more question: You mentioned a Henle edition somewhere. Where did you 
copy the music from, Henle or the autograph?


Are you worried about copyrights? Yes, I have the Henle edition. Chopin's 
autograph is in a museum somewhere in Mallorca. It's not my intention to 
make an exact copy of the Henle Edition. LilyPond's automatic formatting 
mechanisms make different choices than the Henle engravers. And I think I 
will change some details, without affecting Chopin's original intentions. 
For example: I think Chopin's usage of rests vs. spaces in the two 
voices of the left hand (last systems of page 2) is very inconsistent. 
That could be improved I guess.


--

MT


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


Re: a few questions

2013-08-27 Thread Stan Sanderson
Note that the closing ” were cut off from the end of the example in the 
email.

Stan

On Aug 27, 2013, at 12:40 PM, Tim Roberts t...@probo.com wrote:

 similar to this:
 
 upper = \relative c' {

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


How to add the number of repetitions above a bar

2013-08-27 Thread Gilberto Agostinho
Hello everyone,

I am working with a score in Lilypond that has a lot of repetitions, where
basically every bar has to be repeated a certain number of times. I would
like to be able to write the number of repeats above every bar, similar to
the score below (which was not created in Lilypond):

http://i.stack.imgur.com/GLzuk.jpg

It would be great to be able to have some brackets above the bar and also
to have the 3x centralized, just like in the example above. So far, the
only (temporary) solution I was able to come up with in Lilypond was to add
repeat bars and then simply write 3x above the first note of every bar
(since I could not have it centralized on the bar either). It does not look
very good, but gets the job done. This temporary solution looks like this:

http://i.stack.imgur.com/jcCh2.jpg

Do you have any suggestions of how to make this last example look more
similar to the first in Lilypond?

Thanks a lot! Take care,
Gilberto
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to add the number of repetitions above a bar

2013-08-27 Thread Carl Peterson
On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho 
gilbertohasn...@googlemail.com wrote:

 Hello everyone,

 I am working with a score in Lilypond that has a lot of repetitions, where
 basically every bar has to be repeated a certain number of times. I would
 like to be able to write the number of repeats above every bar, similar
 to the score below (which was not created in Lilypond):

 http://i.stack.imgur.com/GLzuk.jpg

 It would be great to be able to have some brackets above the bar and also
 to have the 3x centralized, just like in the example above. So far, the
 only (temporary) solution I was able to come up with in Lilypond was to add
 repeat bars and then simply write 3x above the first note of every bar
 (since I could not have it centralized on the bar either). It does not look
 very good, but gets the job done. This temporary solution looks like this:

 http://i.stack.imgur.com/jcCh2.jpg

 Do you have any suggestions of how to make this last example look more
 similar to the first in Lilypond?

 Thanks a lot! Take care,
 Gilberto


Off hand, I would suggest looking up analysis brackets in the Notation
Reference. I don't recall at the moment how those work with text, but it
will get you something approaching the brackets you're looking for.

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


Re: How to add the number of repetitions above a bar

2013-08-27 Thread Gilberto Agostinho
Hi Carl,

I had a look on those, and I was able to get the brackets, but they didn't
look very nice because they were extending from a note to a note, not fro
ma bar line to a bar line. On top of that, the main issue for me here is to
have the 3x centralized above the bar; the brackets will just make it
look prettier :)

Nevertheless, I will check again the analysis brackets and see if I missed
something out.

Take care!
Gilberto


On Tue, Aug 27, 2013 at 8:07 PM, Carl Peterson carlopeter...@gmail.comwrote:

 On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho 
 gilbertohasn...@googlemail.com wrote:

 Hello everyone,

 I am working with a score in Lilypond that has a lot of repetitions,
 where basically every bar has to be repeated a certain number of times. I
 would like to be able to write the number of repeats above every bar,
 similar to the score below (which was not created in Lilypond):

 http://i.stack.imgur.com/GLzuk.jpg

 It would be great to be able to have some brackets above the bar and also
 to have the 3x centralized, just like in the example above. So far, the
 only (temporary) solution I was able to come up with in Lilypond was to add
 repeat bars and then simply write 3x above the first note of every bar
 (since I could not have it centralized on the bar either). It does not look
 very good, but gets the job done. This temporary solution looks like this:

 http://i.stack.imgur.com/jcCh2.jpg

 Do you have any suggestions of how to make this last example look more
 similar to the first in Lilypond?

 Thanks a lot! Take care,
 Gilberto


 Off hand, I would suggest looking up analysis brackets in the Notation
 Reference. I don't recall at the moment how those work with text, but it
 will get you something approaching the brackets you're looking for.

 Carl

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


Put the text on the left above a centered note

2013-08-27 Thread Tommaso Gordini
Hello to all,
is possible to put some text to the left above a centered note in a bar?

I have to write something like that that you see below. If you think that
everything is OK, no problem.

Ciao
Tommaso

Here's the code:

%-%

\version 2.16.2


#(define (sort-by-X-coord sys grob-lst)

Arranges a list of grobs in ascending order by their X-coordinates

(let* ((X-coord (lambda (x) (ly:grob-relative-coordinate x sys X)))

(comparator (lambda (p q) ( (X-coord p) (X-coord q)

 (sort grob-lst comparator)))

 #(define (find-bounding-grobs note-column grob-lst)

(let* ((sys (ly:grob-system note-column))

(X-coord (lambda (n) (ly:grob-relative-coordinate n sys X)))

(note-column-X (X-coord note-column)))

 (define (helper lst)

(if (and ( (X-coord (car lst)) note-column-X)

( (X-coord (cadr lst)) note-column-X))

(cons (car lst) (cadr lst))

(if (null? (cddr lst))

(cons note-column note-column)

(helper (cdr lst)

 (helper grob-lst)))


#(define (read-out l1 l2)

(define (helper ls1 ls2 ls3)

Filters all elements of ls1 from ls2 by their grob-name and appends it to
ls3

(let ((grob-name-proc (lambda (x) (assq-ref (ly:grob-property x 'meta)
'name

(if (null? ls1)

ls3

(helper

(cdr ls1)

ls2

(append ls3 (filter (lambda (x) (eq? (car ls1) (grob-name-proc x)))
ls2))

(helper l1 l2 '()))

 #(define ((center-note-column x-offs) grob)

(let* ((sys (ly:grob-system grob))

(elements-lst (ly:grob-array-list (ly:grob-object sys 'all-elements)))

(grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name)))

(X-extent (lambda (q) (ly:grob-extent q sys X)))

;; NoteColumn

(note-column-coord (ly:grob-relative-coordinate grob sys X))

(grob-ext (X-extent grob))

(grob-length (interval-length grob-ext))

;; NoteHeads

(note-heads (ly:grob-object grob 'note-heads))

(note-heads-grobs (if (not (null? note-heads))

(ly:grob-array-list note-heads)

'()))

(one-note-head (if (not (null? note-heads-grobs))

(car note-heads-grobs)

'()))

(one-note-head-length (if (not (null? one-note-head))

(interval-length (X-extent one-note-head)) ;; NB

0))

;; Stem

(stem (ly:grob-object grob 'stem))

(stem-dir (ly:grob-property stem 'direction))

(stem-length-x (interval-length (X-extent stem))) ;; NB

;; DotColumn

(dot-column (ly:note-column-dot-column grob))

;; AccidentalPlacement

(accidental-placement (ly:note-column-accidentals grob))

;; Arpeggio

(arpeggio (ly:grob-object grob 'arpeggio))

;; Rest

(rest (ly:grob-object grob 'rest))

;; BassFigure + ChordName

(other-grobs-to-center

;; TODO

;; Not sure: What belongs to the list, what not?

(list 'BassFigure

;'BassFigureAlignment

;'BassFigureAlignmentPositioning

'BassFigureBracket

'BassFigureContinuation

;'BassFigureLine

'ChordName

'FretBoard

))

(all-other-grobs (read-out other-grobs-to-center elements-lst))

(condensed-other-grobs

(remove

(lambda (x)

(not (= (ly:grob-relative-coordinate x sys X)

note-column-coord)))

all-other-grobs))

;; Grobs to center between

(args (list 'BarLine

'Clef

'KeySignature

'KeyCancellation

'TimeSignature))

(grob-lst (read-out args elements-lst))

(new-grob-lst (remove (lambda (x) (interval-empty? (X-extent x))) grob-lst))

(sorted-grob-lst (sort-by-X-coord sys new-grob-lst))

;; Bounds

(bounds (find-bounding-grobs grob sorted-grob-lst))

(left (cdr (X-extent (car bounds

(right (car (X-extent (cdr bounds

 ;;(bounds-coord (cons left right)) ;; delete

 (basic-offset

(- (average left right)

(interval-center (X-extent grob))

(* -1 x-offs)))

(dir-correction

(if ( grob-length one-note-head-length)

(* stem-dir (* -2 stem-length-x) grob-length)

0))

) ;; End of Defs in let*

 ;; Calculation

(begin

;; (display \n\taccidental-placement: \t)(write accidental-placement)

(for-each

(lambda (x)

(cond ((ly:grob? x)

(ly:grob-translate-axis!

x

(- basic-offset dir-correction)

X

(append

(list

(cond ((not (null? note-heads)) grob))

dot-column

accidental-placement

arpeggio)

condensed-other-grobs)


centerNoteColumnOn = \override Staff.NoteColumn #'after-line-breaking =
#(center-note-column 0)


centerNoteColumnOff = \revert Staff.NoteColumn #'after-line-breaking


onceCenterNoteColumn =

#(define-music-function (parser location x-offs)(number?)

#{

\once \override Staff.NoteColumn #'after-line-breaking =
#(center-note-column x-offs)

#})


% from:

% http://lsr.dsi.unimi.it/LSR/Item?id=637

#(define (Text_align_engraver ctx)

(let ((scripts '())

(note-column #f))


 `((acknowledgers

(note-column-interface

. ,(lambda (trans grob source)

;; cache NoteColumn in this Voice context

(set! note-column grob)))


 (text-script-interface

. ,(lambda (trans grob source)

;; whenever a TextScript is acknowledged,

;; add it to `scripts' list

(set! scripts (cons grob scripts)


 (stop-translation-timestep

. ,(lambda (trans)

;; if any TextScript grobs exist,

;; set NoteColumn as X-parent

(and (pair? scripts)

(for-each (lambda 

stemless note

2013-08-27 Thread Mark Stephen Mrotek
Hello:

 

In the attached snip, the first beat of the second measure has a f4.
without a stem.

 

The error messages suggests using polyphonic voices. Since I am using  \\
, I do not know what that means.

 

I have tried changing stem direction - \stemUp, \stemDown.

I have tried shifting the note - \once \override NoteColumn #'force-hshift =
#xx.

 

Neither worked. What should I do now?

 

Thank you.

 

Mark

\version 2.16.2

global = {
  \key g \minor
  \time 2/2
}

rightOne = \relative c'' {
  \global
  
  g1~ | g |
  
}

rightTwo = \relative c'' {
  \global
  
   d, f 8 d g, d' f d
   { g, d' | f4. d8 f4. d8 } \\
 { g,4~ | g1 } 

}

left = \relative c' {
  \global
  
  b,,8 g' d' g, b, g' d' g, |
  b, g' d' g, b, g' d' g, |

}

\score {
  \new PianoStaff 
\new Staff = right  \rightOne \\ \rightTwo 
\new Staff = left { \clef bass \left }
  
  
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: chopin example

2013-08-27 Thread Martin Tarenskeen



On Tue, 27 Aug 2013, Urs Liska wrote:

Are there any biographical notions that Chopin used that Nocturne (page 2) as 
a resource bin for the f minor piano concerto?


Yes there are. I don't know the exact story. I remember having read 
somewhere it was written for his sister, as a pre-study for the 2nd piano 
concerto. Maybe the complete story can be found somewhere on the internet.


I think it is interesting to see that the 3/4 theme from the 2nd concerto 
in this version of the Nocturne is much more recognizable than in the 
better known 4/4 version without those polymetric bars.


--

MT



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


Re: tempo markings and LilyJAZZ

2013-08-27 Thread Marc Hohl

Am 27.08.2013 18:07, schrieb David Kastrup:

Marc Hohl m...@hohlart.de writes:


Ok, thanks! Now I can just write

\mark\jazzTempoMarkup Blues c4. 60

which looks way neater than

\mark\jazzTempoMarkup #Blues c4. #60

(the numbers still have to be quoted).


Uh, you could have written that even before.  The difference is just
that you can write \mark\jazzTempoMarkup \markup ... now.


I think I tried that and got errors before, but I am not sure now.



But the main question still remains – what causes this ugly space when
I use a dotted note?


Not having the Jazz fonts, I just outcommented all instances of \jazzOn
without resulting spacing problems.  That would seem to suggest either
bad metrics for the jazz dot, or some other settings made by \jazzOn
(like proportionalNotationDuration or whatever else).


I just skimmed through the \overrides which LilyJAZZ.ily does, and
most of the stencils overrides are paired like this:

\override Staff.NoteHead #'stencil = #jazz-notehead
\override Staff.NoteHead #'Y-extent = \makeUnpurePureContainer

but not the dots! So I added

\override Staff.Dots #'X-extent = \makeUnpurePureContainer

and voilá: it works!

So cc'ing to Torsten, this may be useful for future versions.


Marc



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


Re: How to add the number of repetitions above a bar

2013-08-27 Thread Thomas Morley
2013/8/27 Gilberto Agostinho gilbertohasn...@googlemail.com:
 Hi Carl,

 I had a look on those, and I was able to get the brackets, but they didn't
 look very nice because they were extending from a note to a note, not fro ma
 bar line to a bar line. On top of that, the main issue for me here is to
 have the 3x centralized above the bar; the brackets will just make it look
 prettier :)

 Nevertheless, I will check again the analysis brackets and see if I missed
 something out.

 Take care!
 Gilberto


 On Tue, Aug 27, 2013 at 8:07 PM, Carl Peterson carlopeter...@gmail.com
 wrote:

 On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho
 gilbertohasn...@googlemail.com wrote:

 Hello everyone,

 I am working with a score in Lilypond that has a lot of repetitions,
 where basically every bar has to be repeated a certain number of times. I
 would like to be able to write the number of repeats above every bar,
 similar to the score below (which was not created in Lilypond):

 http://i.stack.imgur.com/GLzuk.jpg

 It would be great to be able to have some brackets above the bar and also
 to have the 3x centralized, just like in the example above. So far, the
 only (temporary) solution I was able to come up with in Lilypond was to add
 repeat bars and then simply write 3x above the first note of every bar
 (since I could not have it centralized on the bar either). It does not look
 very good, but gets the job done. This temporary solution looks like this:

 http://i.stack.imgur.com/jcCh2.jpg

 Do you have any suggestions of how to make this last example look more
 similar to the first in Lilypond?

 Thanks a lot! Take care,
 Gilberto


 Off hand, I would suggest looking up analysis brackets in the Notation
 Reference. I don't recall at the moment how those work with text, but it
 will get you something approaching the brackets you're looking for.

 Carl



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


Hi Gilberto,

the following two possibilities are not exactly what you want. Maybe
you can adapt one


1.)
You could try to use \startMeasureCount, \stopMeasureCount while
consisting Measure_counter_engraver in Score-layout.
This is quite new functionality, implemented somewhere 2.17.x, pending
its documentation.
I quote the example from our regtests, 'measure-counter.ly':

\version 2.17.25

\relative c' {
  \startMeasureCount
  \repeat unfold 5 {
a4 b c d
  }
  \stopMeasureCount
  a'4 b c d
  \override Staff.MeasureCounter.count-from = #2
  \startMeasureCount
  \repeat unfold 4 {
a4 b c d
  }
  \stopMeasureCount\startMeasureCount
  \revert Staff.MeasureCounter.count-from
  \clef bass
  \key fis \major
  \time 3/4
  \repeat unfold 3 {
R2.
  }
  \stopMeasureCount
}

\layout {
  \context {
\Staff
\consists #Measure_counter_engraver
  }
}


2.)--
Maybe the frame-engraver is worth a second look:
See here:
http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html
(it's not in the source).



Thanks to David Nalesnik for both!


Cheers,
  Harm

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


Re: stemless note

2013-08-27 Thread Thomas Morley
2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Hello:



 In the attached snip, the first beat of the second measure has a “f4.”
 without a stem.



 The error messages suggests using polyphonic voices. Since I am using  \\
, I do not know what that means.



 I have tried changing stem direction - \stemUp, \stemDown.

 I have tried shifting the note - \once \override NoteColumn #'force-hshift =
 #xx.



 Neither worked. What should I do now?



 Thank you.



 Mark



Hi Mark,

the  \\  construct fails in complicated situations quite often.
Better use some (perhaps named) \new Voice together with \voiceXxx.

\version 2.16.2

global = {
  \key g \minor
  \time 2/2
}

rightOne = \relative c'' {
  \global

  \voiceOne
  g1~ | g |

}

rightTwo = \relative c'' {
  \global

  \voiceFour
   d, f 8 d g, d' f d
  \voiceThree
  g,^[ d'] |
  f4. d8 f4. d8

}

rightThree = \relative c'' {
  \global

  \voiceTwo
  s2. g,4~ | g1

}
left = \relative c' {
  \global

  b,,8 g' d' g, b, g' d' g, |
  b, g' d' g, b, g' d' g, |

}

\score {
  \new PianoStaff 
\new Staff = right 
\new Voice \rightOne
\new Voice \rightTwo
\new Voice \rightThree


\new Staff = left { \clef bass \left }
  

}

HTH,
  Harm

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


Re: cascading font selections?

2013-08-27 Thread Mark Polesky
Carl Smith wrote:
 If the fonts are embedded in the PDF, you only need to 
 have them on your system when you create the file. The
 recipient has the fonts, they're in the PDF.

Okay, I appreciate the helpfulness, but a lot of you are 
missing the point.  The recipients will be editing the files
themselves, then compiling them on their own systems.

- Mark

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


Re: Put the text on the left above a centered note

2013-08-27 Thread Thomas Morley


2013/8/27 Tommaso Gordini illinguista1...@gmail.com:
 Hello to all,
 is possible to put some text to the left above a centered note in a bar?

 I have to write something like that that you see below. If you think that
 everything is OK, no problem.

 Ciao
 Tommaso

 Here's the code:

 %-%

 \version 2.16.2


 #(define (sort-by-X-coord sys grob-lst)

 Arranges a list of grobs in ascending order by their X-coordinates

 (let* ((X-coord (lambda (x) (ly:grob-relative-coordinate x sys X)))

 (comparator (lambda (p q) ( (X-coord p) (X-coord q)

 (sort grob-lst comparator)))

 #(define (find-bounding-grobs note-column grob-lst)

 (let* ((sys (ly:grob-system note-column))

 (X-coord (lambda (n) (ly:grob-relative-coordinate n sys X)))

 (note-column-X (X-coord note-column)))

 (define (helper lst)

 (if (and ( (X-coord (car lst)) note-column-X)

 ( (X-coord (cadr lst)) note-column-X))

 (cons (car lst) (cadr lst))

 (if (null? (cddr lst))

 (cons note-column note-column)

 (helper (cdr lst)

 (helper grob-lst)))


 #(define (read-out l1 l2)

 (define (helper ls1 ls2 ls3)

 Filters all elements of ls1 from ls2 by their grob-name and appends it to
 ls3

 (let ((grob-name-proc (lambda (x) (assq-ref (ly:grob-property x 'meta)
 'name

 (if (null? ls1)

 ls3

 (helper

 (cdr ls1)

 ls2

 (append ls3 (filter (lambda (x) (eq? (car ls1) (grob-name-proc x)))
 ls2))

 (helper l1 l2 '()))

 #(define ((center-note-column x-offs) grob)

 (let* ((sys (ly:grob-system grob))

 (elements-lst (ly:grob-array-list (ly:grob-object sys 'all-elements)))

 (grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name)))

 (X-extent (lambda (q) (ly:grob-extent q sys X)))

 ;; NoteColumn

 (note-column-coord (ly:grob-relative-coordinate grob sys X))

 (grob-ext (X-extent grob))

 (grob-length (interval-length grob-ext))

 ;; NoteHeads

 (note-heads (ly:grob-object grob 'note-heads))

 (note-heads-grobs (if (not (null? note-heads))

 (ly:grob-array-list note-heads)

 '()))

 (one-note-head (if (not (null? note-heads-grobs))

 (car note-heads-grobs)

 '()))

 (one-note-head-length (if (not (null? one-note-head))

 (interval-length (X-extent one-note-head)) ;; NB

 0))

 ;; Stem

 (stem (ly:grob-object grob 'stem))

 (stem-dir (ly:grob-property stem 'direction))

 (stem-length-x (interval-length (X-extent stem))) ;; NB

 ;; DotColumn

 (dot-column (ly:note-column-dot-column grob))

 ;; AccidentalPlacement

 (accidental-placement (ly:note-column-accidentals grob))

 ;; Arpeggio

 (arpeggio (ly:grob-object grob 'arpeggio))

 ;; Rest

 (rest (ly:grob-object grob 'rest))

 ;; BassFigure + ChordName

 (other-grobs-to-center

 ;; TODO

 ;; Not sure: What belongs to the list, what not?

 (list 'BassFigure

 ;'BassFigureAlignment

 ;'BassFigureAlignmentPositioning

 'BassFigureBracket

 'BassFigureContinuation

 ;'BassFigureLine

 'ChordName

 'FretBoard

 ))

 (all-other-grobs (read-out other-grobs-to-center elements-lst))

 (condensed-other-grobs

 (remove

 (lambda (x)

 (not (= (ly:grob-relative-coordinate x sys X)

 note-column-coord)))

 all-other-grobs))

 ;; Grobs to center between

 (args (list 'BarLine

 'Clef

 'KeySignature

 'KeyCancellation

 'TimeSignature))

 (grob-lst (read-out args elements-lst))

 (new-grob-lst (remove (lambda (x) (interval-empty? (X-extent x))) grob-lst))

 (sorted-grob-lst (sort-by-X-coord sys new-grob-lst))

 ;; Bounds

 (bounds (find-bounding-grobs grob sorted-grob-lst))

 (left (cdr (X-extent (car bounds

 (right (car (X-extent (cdr bounds

 ;;(bounds-coord (cons left right)) ;; delete

 (basic-offset

 (- (average left right)

 (interval-center (X-extent grob))

 (* -1 x-offs)))

 (dir-correction

 (if ( grob-length one-note-head-length)

 (* stem-dir (* -2 stem-length-x) grob-length)

 0))

 ) ;; End of Defs in let*

 ;; Calculation

 (begin

 ;; (display \n\taccidental-placement: \t)(write accidental-placement)

 (for-each

 (lambda (x)

 (cond ((ly:grob? x)

 (ly:grob-translate-axis!

 x

 (- basic-offset dir-correction)

 X

 (append

 (list

 (cond ((not (null? note-heads)) grob))

 dot-column

 accidental-placement

 arpeggio)

 condensed-other-grobs)


 centerNoteColumnOn = \override Staff.NoteColumn #'after-line-breaking =
 #(center-note-column 0)


 centerNoteColumnOff = \revert Staff.NoteColumn #'after-line-breaking


 onceCenterNoteColumn =

 #(define-music-function (parser location x-offs)(number?)

 #{

 \once \override Staff.NoteColumn #'after-line-breaking =
 #(center-note-column x-offs)

 #})


 % from:

 % http://lsr.dsi.unimi.it/LSR/Item?id=637

 #(define (Text_align_engraver ctx)

 (let ((scripts '())

 (note-column #f))


 `((acknowledgers

 (note-column-interface

 . ,(lambda (trans grob source)

 ;; cache NoteColumn in this Voice context

 (set! note-column grob)))


 (text-script-interface

 . ,(lambda (trans grob source)

 ;; whenever a TextScript is acknowledged,

 ;; add it to `scripts' 

RE: stemless note

2013-08-27 Thread Mark Stephen Mrotek
Mr. Morley:

Thank you for your response and suggestion.
This error is the only occurrence in the 118 measure piece. Can I insert
the \newVoice just here and revert for the rest of the piece (already
completed).

Mark

-Original Message-
From: Thomas Morley [mailto:thomasmorle...@gmail.com] 
Sent: Tuesday, August 27, 2013 12:27 PM
To: Mark Stephen Mrotek
Cc: lilypond-user
Subject: Re: stemless note

2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Hello:



 In the attached snip, the first beat of the second measure has a f4.
 without a stem.



 The error messages suggests using polyphonic voices. Since I am using 
  \\
, I do not know what that means.



 I have tried changing stem direction - \stemUp, \stemDown.

 I have tried shifting the note - \once \override NoteColumn 
 #'force-hshift = #xx.



 Neither worked. What should I do now?



 Thank you.



 Mark



Hi Mark,

the  \\  construct fails in complicated situations quite often.
Better use some (perhaps named) \new Voice together with \voiceXxx.

\version 2.16.2

global = {
  \key g \minor
  \time 2/2
}

rightOne = \relative c'' {
  \global

  \voiceOne
  g1~ | g |

}

rightTwo = \relative c'' {
  \global

  \voiceFour
   d, f 8 d g, d' f d
  \voiceThree
  g,^[ d'] |
  f4. d8 f4. d8

}

rightThree = \relative c'' {
  \global

  \voiceTwo
  s2. g,4~ | g1

}
left = \relative c' {
  \global

  b,,8 g' d' g, b, g' d' g, |
  b, g' d' g, b, g' d' g, |

}

\score {
  \new PianoStaff 
\new Staff = right 
\new Voice \rightOne
\new Voice \rightTwo
\new Voice \rightThree


\new Staff = left { \clef bass \left }
  

}

HTH,
  Harm


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


Re: stemless note

2013-08-27 Thread Thomas Morley
2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Mr. Morley:

 Thank you for your response and suggestion.
 This error is the only occurrence in the 118 measure piece. Can I insert
 the \newVoice just here and revert for the rest of the piece (already
 completed).

 Mark


Perhaps:

global = {
  \key g \minor
  \time 2/2
}

rightOne = \relative c'' {
  \global

  \voiceOne
  g1~ | g |
  \oneVoice

}

rightTwo = \relative c'' {
  \global

   d, f 8 d g, d' f d
   \new Voice { \voiceThree g, d' | f4. d8 f4. d8 } \\
 \new Voice { \voiceFour g,4~ | g1 } 
 \oneVoice

}

left = \relative c' {
  \global

  b,,8 g' d' g, b, g' d' g, |
  b, g' d' g, b, g' d' g, |

}

\score {
  \new PianoStaff 
\new Staff = right  \rightOne \\ \rightTwo 
\new Staff = left { \clef bass \left }
  

}


Cheers,
  Harm

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


Re: chopin example

2013-08-27 Thread Urs Liska

Am 27.08.2013 19:42, schrieb Martin Tarenskeen:



On Tue, 27 Aug 2013, Urs Liska wrote:


My Chopin score can be found here:

https://www.dropbox.com/sh/zqnsijhiwp2ebgr/op8gtlOx9N

(Let me know if the link doesn't work)


So you don't want to know _that_ the link works? ;-)

Nice score. Interesting use of polymetric notation. And interesting 
that he chose not to keep it for publication. Too advanced?
Are there any biographical notions that Chopin used that Nocturne 
(page 2) as a resource bin for the f minor piano concerto?


And one more question: You mentioned a Henle edition somewhere. Where 
did you copy the music from, Henle or the autograph?


Are you worried about copyrights? 

No, I'm just interested in editions from manuscript.
Yes, I have the Henle edition. 

Is this an edition of that specific version? Or a facsimile?

Chopin's autograph is in a museum somewhere in Mallorca.

Sometimes there are reproductions available?
Or: I have a bunch of digital photos of Schubert manuscripts that I was 
allowed to take in the Vienna City library (where one then even had the 
opportunity to put them on the piano and play from them!)
It's not my intention to make an exact copy of the Henle Edition. 
LilyPond's automatic formatting mechanisms make different choices than 
the Henle engravers. And I think I will change some details, without 
affecting Chopin's original intentions. For example: I think Chopin's 
usage of rests vs. spaces in the two voices of the left hand (last 
systems of page 2) is very inconsistent. That could be improved I guess.
I can't judge that specific case, but one often sees that composers can 
take the liberty to make 'intuitive' deviation from notation rules, 
especially when the manuscript isn't intended for the public. Usually 
they reconsider that when it comes to publication. And usually the 
result is more clear and 'correct' but somtimes less interesting than 
the initial version ...


Best
Urs


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


Re: chopin example

2013-08-27 Thread Urs Liska

Am 27.08.2013 20:22, schrieb Martin Tarenskeen:



On Tue, 27 Aug 2013, Urs Liska wrote:

Are there any biographical notions that Chopin used that Nocturne 
(page 2) as a resource bin for the f minor piano concerto?


Yes there are. I don't know the exact story. I remember having read 
somewhere it was written for his sister, as a pre-study for the 2nd 
piano concerto. Maybe the complete story can be found somewhere on the 
internet.


I think it is interesting to see that the 3/4 theme from the 2nd 
concerto in this version of the Nocturne is much more recognizable 
than in the better known 4/4 version without those polymetric bars.


Yes, obviously. I didn't know that piece really, but I've surely seen 
the score and probably also played a little bit from it. But I never 
noticed that connection. But when I saw your score today it practically 
sprang in my face ...


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


RE: stemless note

2013-08-27 Thread Mark Stephen Mrotek
Mr. Morley:

Thank you. Using your previous suggestion I created the attached
(StemCollision.ly) that prints the stem yet the head collides with the g1.

What would you suggest?

Mark 

-Original Message-
From: Thomas Morley [mailto:thomasmorle...@gmail.com] 
Sent: Tuesday, August 27, 2013 1:00 PM
To: Mark Stephen Mrotek
Cc: lilypond-user
Subject: Re: stemless note

2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Mr. Morley:

 Thank you for your response and suggestion.
 This error is the only occurrence in the 118 measure piece. Can I 
 insert the \newVoice just here and revert for the rest of the piece 
 (already completed).

 Mark


Perhaps:

global = {
  \key g \minor
  \time 2/2
}

rightOne = \relative c'' {
  \global

  \voiceOne
  g1~ | g |
  \oneVoice

}

rightTwo = \relative c'' {
  \global

   d, f 8 d g, d' f d
   \new Voice { \voiceThree g, d' | f4. d8 f4. d8 } \\
 \new Voice { \voiceFour g,4~ | g1 } 
 \oneVoice

}

left = \relative c' {
  \global

  b,,8 g' d' g, b, g' d' g, |
  b, g' d' g, b, g' d' g, |

}

\score {
  \new PianoStaff 
\new Staff = right  \rightOne \\ \rightTwo 
\new Staff = left { \clef bass \left }
  

}


Cheers,
  Harm
\version 2.16.2

global = {
  \key g \minor
  \time 2/2
}

rightOne = \relative c'' {
  \global
  
  g1~ | g |
  
}

rightTwo = \relative c'' {
  \global
  
   d, f 8 d g, d' f d
  
  \new Voice {
  \voiceOne g, d' |
  f4. d8 f4. d8 }
  \new Voice {
  \voiceTwo
  g,4~ | g1 
  } 
  
}

left = \relative c' {
  \global
  
  b,,8 g' d' g, b, g' d' g, |
  b, g' d' g, b, g' d' g, |

}

\score {
  \new PianoStaff 
\new Staff = right  \rightOne \\ \rightTwo 
\new Staff = left { \clef bass \left }
  
  
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: stemless note

2013-08-27 Thread Thomas Morley
2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Mr. Morley:

 Thank you. Using your previous suggestion I created the attached
 (StemCollision.ly) that prints the stem yet the head collides with the g1.

 What would you suggest?

My snippet! :)
Why did you change it?

-Harm

 Mark

 -Original Message-
 From: Thomas Morley [mailto:thomasmorle...@gmail.com]
 Sent: Tuesday, August 27, 2013 1:00 PM
 To: Mark Stephen Mrotek
 Cc: lilypond-user
 Subject: Re: stemless note

 2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Mr. Morley:

 Thank you for your response and suggestion.
 This error is the only occurrence in the 118 measure piece. Can I
 insert the \newVoice just here and revert for the rest of the piece
 (already completed).

 Mark


 Perhaps:

 global = {
   \key g \minor
   \time 2/2
 }

 rightOne = \relative c'' {
   \global

   \voiceOne
   g1~ | g |
   \oneVoice

 }

 rightTwo = \relative c'' {
   \global

d, f 8 d g, d' f d
\new Voice { \voiceThree g, d' | f4. d8 f4. d8 } \\
  \new Voice { \voiceFour g,4~ | g1 } 
  \oneVoice

 }

 left = \relative c' {
   \global

   b,,8 g' d' g, b, g' d' g, |
   b, g' d' g, b, g' d' g, |

 }

 \score {
   \new PianoStaff 
 \new Staff = right  \rightOne \\ \rightTwo 
 \new Staff = left { \clef bass \left }
   

 }


 Cheers,
   Harm

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


Re: How to add the number of repetitions above a bar

2013-08-27 Thread Gilberto Agostinho
Hi Thomas,

Thanks for your answer. About the 1st proposition, it looks great! It is
just a pity I was not able (so far) to write anything but pure numbers
above the bars. It would be great if I manage to add the x after the
number. About the 2nd proposition, those discussions in that link are way
above my level at Lilypond, I really could not understand much of what was
going on :(

I am experimenting now with analysis brackets plus the centralized bar
numbers, let's see how they work together.

Thanks a lot for all the help!
Gilberto


On Tue, Aug 27, 2013 at 9:05 PM, Thomas Morley thomasmorle...@gmail.comwrote:

 2013/8/27 Gilberto Agostinho gilbertohasn...@googlemail.com:
  Hi Carl,
 
  I had a look on those, and I was able to get the brackets, but they
 didn't
  look very nice because they were extending from a note to a note, not
 fro ma
  bar line to a bar line. On top of that, the main issue for me here is to
  have the 3x centralized above the bar; the brackets will just make it
 look
  prettier :)
 
  Nevertheless, I will check again the analysis brackets and see if I
 missed
  something out.
 
  Take care!
  Gilberto
 
 
  On Tue, Aug 27, 2013 at 8:07 PM, Carl Peterson carlopeter...@gmail.com
  wrote:
 
  On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho
  gilbertohasn...@googlemail.com wrote:
 
  Hello everyone,
 
  I am working with a score in Lilypond that has a lot of repetitions,
  where basically every bar has to be repeated a certain number of
 times. I
  would like to be able to write the number of repeats above every bar,
  similar to the score below (which was not created in Lilypond):
 
  http://i.stack.imgur.com/GLzuk.jpg
 
  It would be great to be able to have some brackets above the bar and
 also
  to have the 3x centralized, just like in the example above. So far,
 the
  only (temporary) solution I was able to come up with in Lilypond was
 to add
  repeat bars and then simply write 3x above the first note of every
 bar
  (since I could not have it centralized on the bar either). It does not
 look
  very good, but gets the job done. This temporary solution looks like
 this:
 
  http://i.stack.imgur.com/jcCh2.jpg
 
  Do you have any suggestions of how to make this last example look more
  similar to the first in Lilypond?
 
  Thanks a lot! Take care,
  Gilberto
 
 
  Off hand, I would suggest looking up analysis brackets in the Notation
  Reference. I don't recall at the moment how those work with text, but it
  will get you something approaching the brackets you're looking for.
 
  Carl
 
 
 
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  https://lists.gnu.org/mailman/listinfo/lilypond-user
 

 Hi Gilberto,

 the following two possibilities are not exactly what you want. Maybe
 you can adapt one


 1.)
 You could try to use \startMeasureCount, \stopMeasureCount while
 consisting Measure_counter_engraver in Score-layout.
 This is quite new functionality, implemented somewhere 2.17.x, pending
 its documentation.
 I quote the example from our regtests, 'measure-counter.ly':

 \version 2.17.25

 \relative c' {
   \startMeasureCount
   \repeat unfold 5 {
 a4 b c d
   }
   \stopMeasureCount
   a'4 b c d
   \override Staff.MeasureCounter.count-from = #2
   \startMeasureCount
   \repeat unfold 4 {
 a4 b c d
   }
   \stopMeasureCount\startMeasureCount
   \revert Staff.MeasureCounter.count-from
   \clef bass
   \key fis \major
   \time 3/4
   \repeat unfold 3 {
 R2.
   }
   \stopMeasureCount
 }

 \layout {
   \context {
 \Staff
 \consists #Measure_counter_engraver
   }
 }


 2.)--
 Maybe the frame-engraver is worth a second look:
 See here:

 http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html
 (it's not in the source).



 Thanks to David Nalesnik for both!


 Cheers,
   Harm

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


Re: Repeat bar line do not show in polymetric music

2013-08-27 Thread Gilberto Agostinho
Hi to everybody,

I have found a solution one of my questions on this mailing list, so I
thought it would be nice for me to share it here (in case someone might
look for it one day). It concerns the lack of automatic repeat bar lines
when using \repeat volta N {music} with the following snippet:

\layout {
\context { \Score
\remove Default_bar_line_engraver
}
\context { \Staff
\consists Default_bar_line_engraver
}
 }


The solution is to move the Repeat_acknowledge_engraver from the Score to
the Staff context in the layout. Also, in order to have the last bar line
appearing (\bar |.), the Timing_translator should be also moved from
the Score to the Staff context. Here is an example of a working code:

\version 2.17.24
A =  {
  \time 2/4
  c'4 e' \repeat volta 2 {g' c''} e'' g'' \bar |.
}

\score {

\new Staff {
  \A
}
  \layout {
\context { \Score
\remove Timing_translator
\remove Default_bar_line_engraver
\remove Repeat_acknowledge_engraver
}
\context { \Staff
\consists Timing_translator
\consists Default_bar_line_engraver
\consists Repeat_acknowledge_engraver
}
  }
}

Take care,
Gilberto


On Mon, Aug 26, 2013 at 2:37 AM, Gilberto Agostinho 
gilbertohasn...@googlemail.com wrote:

 Hi Thomas,

 Thank you so much for all your help, I really appreciate it. Well, in this
 case I will continue to manually add repeat bar lines, but I will also
 report this as a bug. Hopefully this could be solved in some future update.

 Take care!
 Gilberto

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


Re: How to add the number of repetitions above a bar

2013-08-27 Thread David Nalesnik
Hi Gilberto, Harm--


On Tue, Aug 27, 2013 at 4:06 PM, Gilberto Agostinho 
gilbertohasn...@googlemail.com wrote:

 Hi Thomas,

 Thanks for your answer. About the 1st proposition, it looks great! It is
 just a pity I was not able (so far) to write anything but pure numbers
 above the bars. It would be great if I manage to add the x after the
 number.


(See below.)

[...]

On Tue, Aug 27, 2013 at 9:05 PM, Thomas Morley thomasmorle...@gmail.comwrote:


[...]



 Hi Gilberto,

 the following two possibilities are not exactly what you want. Maybe
 you can adapt one


 1.)
 You could try to use \startMeasureCount, \stopMeasureCount while
 consisting Measure_counter_engraver in Score-layout.
 This is quite new functionality, implemented somewhere 2.17.x, pending
 its documentation.


There is no write-up yet in the Notation Reference, but there are two
snippets in the documentation: Numbering groups of measures and Centered
measure numbers.

I went ahead and hacked the stencil for MeasureCounter to show how this
might be done.  Of course, the number has no relation to the repeat
structure of the music, but it looks OK!



 }


 2.)--
 Maybe the frame-engraver is worth a second look:
 See here:

 http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html
 (it's not in the source).



 Thanks to David Nalesnik for both!


You're welcome!

--David


centered-reps.ly
Description: Binary data
attachment: centered-reps.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: stemless note

2013-08-27 Thread Mark Stephen Mrotek
Mr. Morley:

Actually I changed it right after your first suggestion and before I got the
one below.

I shall try the code you provided below.

Thank you for your kind attention.

Mark

-Original Message-
From: Thomas Morley [mailto:thomasmorle...@gmail.com] 
Sent: Tuesday, August 27, 2013 1:58 PM
To: Mark Stephen Mrotek
Cc: lilypond-user
Subject: Re: stemless note

2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Mr. Morley:

 Thank you. Using your previous suggestion I created the attached
 (StemCollision.ly) that prints the stem yet the head collides with the g1.

 What would you suggest?

My snippet! :)
Why did you change it?

-Harm

 Mark

 -Original Message-
 From: Thomas Morley [mailto:thomasmorle...@gmail.com]
 Sent: Tuesday, August 27, 2013 1:00 PM
 To: Mark Stephen Mrotek
 Cc: lilypond-user
 Subject: Re: stemless note

 2013/8/27 Mark Stephen Mrotek carsonm...@ca.rr.com:
 Mr. Morley:

 Thank you for your response and suggestion.
 This error is the only occurrence in the 118 measure piece. Can I 
 insert the \newVoice just here and revert for the rest of the piece 
 (already completed).

 Mark


 Perhaps:

 global = {
   \key g \minor
   \time 2/2
 }

 rightOne = \relative c'' {
   \global

   \voiceOne
   g1~ | g |
   \oneVoice

 }

 rightTwo = \relative c'' {
   \global

d, f 8 d g, d' f d
\new Voice { \voiceThree g, d' | f4. d8 f4. d8 } \\
  \new Voice { \voiceFour g,4~ | g1 } 
  \oneVoice

 }

 left = \relative c' {
   \global

   b,,8 g' d' g, b, g' d' g, |
   b, g' d' g, b, g' d' g, |

 }

 \score {
   \new PianoStaff 
 \new Staff = right  \rightOne \\ \rightTwo 
 \new Staff = left { \clef bass \left }
   

 }


 Cheers,
   Harm


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


Re: How to add the number of repetitions above a bar

2013-08-27 Thread Gilberto Agostinho
Hi David!

I can't thank you enough for this! It works beautifully :) I already made
some tests now and this is exactly what I needed.

Thanks again and take care!
Gilberto




On Tue, Aug 27, 2013 at 11:31 PM, David Nalesnik
david.nales...@gmail.comwrote:

 Hi Gilberto, Harm--


 On Tue, Aug 27, 2013 at 4:06 PM, Gilberto Agostinho 
 gilbertohasn...@googlemail.com wrote:

 Hi Thomas,

 Thanks for your answer. About the 1st proposition, it looks great! It is
 just a pity I was not able (so far) to write anything but pure numbers
 above the bars. It would be great if I manage to add the x after the
 number.


 (See below.)

 [...]

 On Tue, Aug 27, 2013 at 9:05 PM, Thomas Morley 
 thomasmorle...@gmail.comwrote:


 [...]



 Hi Gilberto,

 the following two possibilities are not exactly what you want. Maybe
 you can adapt one


 1.)
 You could try to use \startMeasureCount, \stopMeasureCount while
 consisting Measure_counter_engraver in Score-layout.
 This is quite new functionality, implemented somewhere 2.17.x, pending
 its documentation.


 There is no write-up yet in the Notation Reference, but there are two
 snippets in the documentation: Numbering groups of measures and Centered
 measure numbers.

 I went ahead and hacked the stencil for MeasureCounter to show how this
 might be done.  Of course, the number has no relation to the repeat
 structure of the music, but it looks OK!



 }


 2.)--
 Maybe the frame-engraver is worth a second look:
 See here:

 http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html
 (it's not in the source).



 Thanks to David Nalesnik for both!


 You're welcome!

 --David

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


Re: How to add the number of repetitions above a bar

2013-08-27 Thread David Nalesnik
On Tue, Aug 27, 2013 at 4:38 PM, Gilberto Agostinho 
gilbertohasn...@googlemail.com wrote:

 Hi David!

 I can't thank you enough for this! It works beautifully :) I already made
 some tests now and this is exactly what I needed.


I'm glad to hear this!

Just be aware that this workaround has its limitations.  Aside from the
fact that the number doesn't really denote repeats (which would only be an
issue with playback, I suppose):
(1) I didn't deal with the situation of a bar broken across a line;
(2) This will only work with single-bar repeats.

Limitation (1) really wouldn't be much of a problem.  Number (2), on the
other hand, would involve changes to the engraver itself.  (The code for it
is in scm/scheme-engravers.scm.)  I don't think this would be particularly
complex.

If you need this kind of functionality, just let me know!

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


Docs for Lylipond Emacs mode?

2013-08-27 Thread Alexander Wallace
Hi all? Aside from this: 
http://www.lilypond.org/doc/v2.17/Documentation/usage/text-editor-support#emacs-mode

Is there any documentation on all the features, shortcuts and what not of the 
Emacs mode for Lilypond?

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


Re: Docs for Lylipond Emacs mode?

2013-08-27 Thread Glen Larsen
The best place to look is within emacs: with a .ly file loaded get help on
the mode ( c-h m ). At least that will give you a list of the key-strokes
that will do something LilyPond-ish. By far what I use the most is 'C-c
C-l' to compile a LilyPond file and provide messages from the compilation
in a buffer (in compilation mode) where I can then mouse-click to get to
the position of failure. Typing 'C-c b' or a bar-check character ('|') also
gives a beat count in the measure, if you hadn't noticed.

Most of the other editing sugar I like is basic emacs : auto-fill'ing
comments, auto-indenting code, multiple windows and buffers, syntax
highlighting, etc.

-glen


On Tue, Aug 27, 2013 at 4:22 PM, Alexander Wallace a...@rwmotloc.com wrote:

 Hi all? Aside from this:
 http://www.lilypond.org/doc/v2.17/Documentation/usage/text-editor-support#emacs-mode

 Is there any documentation on all the features, shortcuts and what not of
 the Emacs mode for Lilypond?

 Thanks!
 ___
 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: Docs for Lylipond Emacs mode?

2013-08-27 Thread Alexander Wallace
Glen, this info helps a lot. I'll come back to with specifics if there is 
something i can not figure out.

Thanks!



 Original message 
From: Glen Larsen glenl@gmail.com 
Date: 08/27/2013  6:55 PM  (GMT-06:00) 
To: Alexander Wallace a...@rwmotloc.com 
Cc: lilypond-user lilypond-user@gnu.org 
Subject: Re: Docs for Lylipond Emacs mode? 
 
The best place to look is within emacs: with a .ly file loaded get help on the 
mode ( c-h m ). At least that will give you a list of the key-strokes that will 
do something LilyPond-ish. By far what I use the most is 'C-c C-l' to compile a 
LilyPond file and provide messages from the compilation in a buffer (in 
compilation mode) where I can then mouse-click to get to the position of 
failure. Typing 'C-c b' or a bar-check character ('|') also gives a beat count 
in the measure, if you hadn't noticed.

Most of the other editing sugar I like is basic emacs : auto-fill'ing comments, 
auto-indenting code, multiple windows and buffers, syntax highlighting, etc.

-glen


On Tue, Aug 27, 2013 at 4:22 PM, Alexander Wallace a...@rwmotloc.com wrote:
Hi all? Aside from this: 
http://www.lilypond.org/doc/v2.17/Documentation/usage/text-editor-support#emacs-mode

Is there any documentation on all the features, shortcuts and what not of the 
Emacs mode for Lilypond?

Thanks!
___
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