can I force the KeySignature to display when a new clef requires it?

2015-05-05 Thread Kieren MacMillan
Hi all,

Yet another situation (see thread 
http://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00274.html) where I 
want to force a grob to appear, but can’t seem to find a way to do it…

I have a percussion staff containing music for a single player who switches 
between pitched and unpitched instruments. Gould confirms my intuition/desire 
in this case: “A key signature must be added if a treble or bass clef is 
introduced for a new instrument after a non-pitched percussion clef” (pg. 276).

However, while I can easily \hide (or \omit) the KeySignature when the 
instrument is unpitched, I can’t seem to force the KeySignature to appear when 
the clef changes to a “pitched clef”. As with the thread mentioned above, I’d 
rather not add a \key \default to the content, since this is a 
presentation-layer issue that I would, if possible, prefer to solve in the 
presentation (edition-engraver) layer.

Any hints on how I can do this would be appreciated.

Thanks,
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: Thumb in fret-diagram

2015-05-05 Thread Stephen MacNeil
Hi patrick,

This is the workaround I used to create fret-diagrams with a thumb.

http://mglessons.com/lilypond/fret-diagram.ly
http://mglessons.com/lilypond/fret-diagram.pdf

HTH
Stephen

%% cut

#(define-public (stack-stencil-overlay stencils)

Recursive function to add stencils together

(if (and (pair? stencils)

(ly:stencil? (car stencils)))

 (if (and (pair? (cdr stencils))

(ly:stencil? (cadr stencils)))

(let ((tail (stack-stencil-overlay (cdr stencils)))

(head (car stencils)))

(ly:stencil-add head tail))

(car stencils))

point-stencil))


#(define-markup-command (overlay layout props args)

(markup-list?)

Overlay arguments one on top of the next

(let ((stencils (interpret-markup-list layout props args)))

(stack-stencil-overlay

(remove ly:stencil-empty? stencils


% use this under title



chordTilte = \markup \fill-line {

\concat{


%% chord 1

\override #'(size . .7) \override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

Am

}

\vspace #-.6

\fret-diagram #6-x;5-o;4-2-2;3-2-3;2-1-1;1-o;

}

}




%% chord 2

%


 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

F

}

\vspace #-.6

\concat{ \fret-diagram #c:6-1-0;6-1-1;5-3-3;4-3-4;3-2-2;2-1-1;1-1-1;

}

}

}



 %% chord 3

\override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

C

}

\vspace #-.6

\fret-diagram-terse #x;3-3;2-2;o;1-1;o;

}

}

 %%

%% chord 4

%

\overlay {


 \overlay {

\translate #'(-.4 . -1.15) \lower #3.75 \finger \fontsize #-8 T

\override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

\concat { F \fontsize #-2.5 { maj\fontsize #1.5 7 }}

}

\vspace #-.6

\concat{ \fret-diagram #6-1;5-3-3;4-3-4;3-2-2;2-1-1;1-o;

}

}

}

}

}

 

\override #'(size . .7) \override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

\concat { G \fontsize #-2.5 {\fontsize #1.5 7 }}

}

\vspace #-.6

\fret-diagram #6-3-3;5-2-2;4-o;3-o;2-o;1-1-1;

}

}

%%

\override #'(size . .7) \override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

\concat { C \fontsize #-2.5 { \super ver. 2 }}

}

\vspace #-.6

\fret-diagram #6-x;5-3-3;4-2-2;3-o;2-1-1;1-3-4;

}

}

%%

\override #'(size . .7) \override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . arabic)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

% \concat { F \fontsize #-2.5 {\fontsize #1.5 7/D\super no 3rd }}

\concat { Dm \fontsize #-2.5 {\fontsize #1.5 9}}

}

\vspace #-.6

\fret-diagram #6-x;5-x;4-o;3-5-1;2-6-3;1-o;

}

}

%%

%%

\override #'(size . .7) \override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . arabic)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

Dm

}

\vspace #-.6

\fret-diagram #6-x;5-x;4-o;3-2-1;2-3-3;1-1-1;

}

}

%%

}

}

\header {

title = Song Title with markup

subtitle = \markup \raise #1 \fontsize #-4.2 Words and music by 

copyright = \markup \fontsize #-2.2 ©1669, Some One .

% subtitle = 

tagline = ##f

}

\markup {\chordTilte }


% Use as markup


%

chordWithThumb = \markup \overlay {


 \overlay {

\translate #'(-.4 . -1.15) \lower #3.75 \finger \fontsize #-8 T

\override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
below-string)

(dot-radius . 0.35)

(number-type . roman-lower)

(finger-code . below-string)

(fret-count . 3)))

\halign #-.72

\raise #0 \pad-around #.2 {

\center-column\text {

\halign #-13 \fontsize #-2.5 {

\concat { F \fontsize #-2.5 { 

Re: Color tweaks (edition engraver)

2015-05-05 Thread David Nalesnik
On Mon, May 4, 2015 at 10:04 PM, David Nalesnik david.nales...@gmail.com
wrote:

 Hi Kieren,

 On Sat, May 2, 2015 at 6:29 PM, Kieren MacMillan 
 kieren_macmil...@sympatico.ca wrote:

 Hi David,

   Out of curiosity, do you get results with color-tweaks2.ly (attached
 somewhere above)?
  Same thing: the EE-added tweak gets executed, but doesn’t appear in the
 log output.
  So it doesn't get colored?

 Sorry… let me be more clear. I \include-d the edition-engraver, and
 compiled twice: once with an \editionMod to move the [initial] Clef, and
 once without. The first time, the Clef moved (as expected) and was coloured
 (as hoped); the second time, the Clef was neither moved nor coloured (both
 as expected).


 HOWEVER, the console output was identical in both cases: the tweak was
 not recorded in the output (as I thought it should have been?).


 OK, then the modifying actual grobs approach is proving to be more useful
 on several counts.


And it works with that editionEngraver example.



 The attached file contains some improvements over color-tweaks2.ly.  The
 main difference is that it uses a simple Scheme engraver which must be
 \consists-ed.

 \voiceTwo and the like will result in colored objects (stems for example),
 but I don't think there's any help for that.  Call it a feature :)


oops, forgot the custom color settings.

Anyway, this should do the trick.  Let me know how it works out.

Best,
David

%%

override-color = #darkred

tweak-color = #blue

%tweak-color = #override-color

#(define (remove-first symbol alist)
   Remove the first key-value pair of association list @var{alist}
whose key matches @var{symbol}.
   (let loop ((alist alist) (result '()))
 (cond
  ((null? alist) result)
  ((eq? (caar alist) symbol)
   (append result (cdr alist)))
  (else (loop (cdr alist)
  (append result (list (car alist

#(define (grob::has-default-prop grob prop)
   Check all-grob-descriptions to see if symbol @var{grob} has
a default setting for symbol @var{prop}.  Either return the
setting or @code{#f}.
   (let ((description (assoc-get grob all-grob-descriptions)))
 (if description
 (assoc-get 'stencil description

#(define (mark-tweak grob)
   Color @var{grob} if it has been tweaked.  The color to use is stored
in the global variables @var{override-color} and @var{tweak-color}.
   (let* ((default (assoc-get (grob::name grob) all-grob-descriptions))
  (props (ly:grob-basic-properties grob))
  ;; Our procedure has been added to the head of grob's basic
  ;; properties.  Let's not count it as a tweak!
  (props
   (remove
(lambda (p)
  (and (procedure? (cdr p))
   (eq? (procedure-name (cdr p)) 'mark-tweak)))
props))
  ;; We're using after-line-breaking to set color of stencil, but
  ;; let's preserve its last setting
  (after-line-return (assoc-get 'after-line-breaking props))
  ;; Clef.glyph doesn't appear in all-grob-descriptions, but it
  ;; is set at some point automatically.  Don't mark it unless
  ;; it genuinely is a user override.  There may be other
  ;; such grobs.
  (props
   (if (eq? (grob::name grob) 'Clef)
   (reverse (remove-first 'glyph (reverse props)))
   props))
  (diff (lset-difference eq? props default)))
 ;; Tweaks will not appear in the basic properties alist of our grob,
but
 ;; we can find them through the music event which led to the grob.
This
 ;; is available through the stream-event which caused our grob.
 (if (null? diff)
 (let* ((cause (event-cause grob))
(tweaks (and cause
 (ly:music-property
  (ly:event-property cause 'music-cause)
  'tweaks
   (if (pair? tweaks)
   (set! (ly:grob-property grob 'color) tweak-color)))
 (set! (ly:grob-property grob 'color) override-color))

 ;; Return any default setting of after-line-breaking.
 after-line-return))

colorTweaksEngraver =
#(lambda (context)
   (make-engraver
(acknowledgers
 ((grob-interface engraver grob source-engraver)
  (if (grob::has-default-prop grob 'stencil)
  (set! (ly:grob-property grob 'after-line-breaking)
(mark-tweak grob)))


[...your music...]

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


Re: Thumb in fret-diagram

2015-05-05 Thread pls
Thanks!
On 05.05.2015, at 14:21, Stephen MacNeil classicalja...@gmail.com wrote:

 Hi patrick,
 
 This is the workaround I used to create fret-diagrams with a thumb.
 
 http://mglessons.com/lilypond/fret-diagram.ly
 http://mglessons.com/lilypond/fret-diagram.pdf
 
 HTH 
 Stephen
 
 %% cut
 
 #(define-public (stack-stencil-overlay stencils)
 Recursive function to add stencils together
 (if (and (pair? stencils)
 (ly:stencil? (car stencils)))
 (if (and (pair? (cdr stencils))
 (ly:stencil? (cadr stencils)))
 (let ((tail (stack-stencil-overlay (cdr stencils)))
 (head (car stencils)))
 (ly:stencil-add head tail))
 (car stencils))
 point-stencil))
 
 #(define-markup-command (overlay layout props args)
 (markup-list?)
 Overlay arguments one on top of the next
 (let ((stencils (interpret-markup-list layout props args)))
 (stack-stencil-overlay
 (remove ly:stencil-empty? stencils
 
 % use this under title
 
 
 chordTilte = \markup \fill-line {
 \concat{
 
 %% chord 1
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 Am
 }
 \vspace #-.6
 \fret-diagram #6-x;5-o;4-2-2;3-2-3;2-1-1;1-o;
 }
 }
 
 
 %% chord 2
 %
 
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 F
 }
 \vspace #-.6
 \concat{ \fret-diagram #c:6-1-0;6-1-1;5-3-3;4-3-4;3-2-2;2-1-1;1-1-1;
 }
 }
 }
 
 
 %% chord 3
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 C
 }
 \vspace #-.6
 \fret-diagram-terse #x;3-3;2-2;o;1-1;o;
 }
 }
 %%
 %% chord 4
 %
 \overlay {
 
 \overlay {
 \translate #'(-.4 . -1.15) \lower #3.75 \finger \fontsize #-8 T
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 \concat { F \fontsize #-2.5 { maj\fontsize #1.5 7 }}
 }
 \vspace #-.6
 \concat{ \fret-diagram #6-1;5-3-3;4-3-4;3-2-2;2-1-1;1-o;
 }
 }
 }
 }
 }
 
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 \concat { G \fontsize #-2.5 {\fontsize #1.5 7 }}
 }
 \vspace #-.6
 \fret-diagram #6-3-3;5-2-2;4-o;3-o;2-o;1-1-1;
 }
 }
 %%
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 \concat { C \fontsize #-2.5 { \super ver. 2 }}
 }
 \vspace #-.6
 \fret-diagram #6-x;5-3-3;4-2-2;3-o;2-1-1;1-3-4;
 }
 }
 %%
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . arabic)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 % \concat { F \fontsize #-2.5 {\fontsize #1.5 7/D\super no 3rd }}
 \concat { Dm \fontsize #-2.5 {\fontsize #1.5 9}}
 }
 \vspace #-.6
 \fret-diagram #6-x;5-x;4-o;3-5-1;2-6-3;1-o;
 }
 }
 %%
 %%
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . arabic)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 Dm
 }
 \vspace #-.6
 \fret-diagram #6-x;5-x;4-o;3-2-1;2-3-3;1-1-1;
 }
 }
 %%
 }
 }
 \header {
 title = Song Title with markup
 subtitle = \markup \raise #1 \fontsize #-4.2 Words and music by 
 copyright = \markup \fontsize #-2.2 ©1669, Some One .
 % subtitle = 
 tagline = ##f
 }
 \markup {\chordTilte }
 
 % Use as markup
 
 %
 chordWithThumb = \markup \overlay {
 
 \overlay {
 \translate #'(-.4 . -1.15) \lower #3.75 \finger \fontsize #-8 T
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code . 
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign 

Re: Moving Copyright Notice

2015-05-05 Thread Paul Morris
Hi Michael,

 On May 5, 2015, at 6:48 AM, Michael Gerdau m...@qata.de wrote:
 
 in the context of this thread I have a possibly stupid question:
 From reading the documentation under
 http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers
 I thought the proper syntax would be
\on-the-fly \part-first-page \fromproperty #'header:copyright
 However the OP's version
\on-the-fly #part-first-page \fromproperty #'header:copyright
 works likewise.
 
 Are '\' and '#' exchangeable or why do both versions seem to work ?

The # signals that what follows it is some Scheme code (a Scheme expression).  
In this case #part-first-page happens to refer to the same thing as 
\part-first-page.  Generally it’s clearer to use the \ form in cases like this 
(and save # for inserting some Scheme code that doesn’t have a \ equivalent).  

See the extending manual for more:
http://lilypond.org/doc/v2.18/Documentation/extending/lilypond-scheme-syntax

or this blog post:
http://lilypondblog.org/2014/03/music-functions-1-getting-to-grips-with-scheme-in-lilypond/

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


Re: Thumb in fret-diagram

2015-05-05 Thread Stephen MacNeil
No problem, hope it does what you need.

Stephen

On Tue, May 5, 2015 at 9:13 AM, pls p.l.schm...@gmx.de wrote:

 Thanks!
 On 05.05.2015, at 14:21, Stephen MacNeil classicalja...@gmail.com wrote:

 Hi patrick,

 This is the workaround I used to create fret-diagrams with a thumb.

 http://mglessons.com/lilypond/fret-diagram.ly
 http://mglessons.com/lilypond/fret-diagram.pdf

 HTH
 Stephen

 %% cut

 #(define-public (stack-stencil-overlay stencils)
 Recursive function to add stencils together
 (if (and (pair? stencils)
 (ly:stencil? (car stencils)))

  (if (and (pair? (cdr stencils))
 (ly:stencil? (cadr stencils)))
 (let ((tail (stack-stencil-overlay (cdr stencils)))
 (head (car stencils)))
 (ly:stencil-add head tail))
 (car stencils))
 point-stencil))

 #(define-markup-command (overlay layout props args)
 (markup-list?)
 Overlay arguments one on top of the next
 (let ((stencils (interpret-markup-list layout props args)))
 (stack-stencil-overlay
 (remove ly:stencil-empty? stencils

 % use this under title


 chordTilte = \markup \fill-line {
 \concat{

 %% chord 1
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code
 . below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 Am
 }
 \vspace #-.6
 \fret-diagram #6-x;5-o;4-2-2;3-2-3;2-1-1;1-o;
 }
 }
 

 %% chord 2
 %

 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 F
 }
 \vspace #-.6
 \concat{ \fret-diagram #c:6-1-0;6-1-1;5-3-3;4-3-4;3-2-2;2-1-1;1-1-1;
 }
 }
 }


 %% chord 3
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 C
 }
 \vspace #-.6
 \fret-diagram-terse #x;3-3;2-2;o;1-1;o;
 }
 }

 %%
 %% chord 4
 %
 \overlay {

 \overlay {
 \translate #'(-.4 . -1.15) \lower #3.75 \finger \fontsize #-8 T
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
 below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 \concat { F \fontsize #-2.5 { maj\fontsize #1.5 7 }}
 }
 \vspace #-.6
 \concat{ \fret-diagram #6-1;5-3-3;4-3-4;3-2-2;2-1-1;1-o;
 }
 }
 }
 }
 }

  
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code
 . below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 \concat { G \fontsize #-2.5 {\fontsize #1.5 7 }}
 }
 \vspace #-.6
 \fret-diagram #6-3-3;5-2-2;4-o;3-o;2-o;1-1-1;
 }
 }
 %%
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code
 . below-string)
 (dot-radius . 0.35)
 (number-type . roman-lower)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 \concat { C \fontsize #-2.5 { \super ver. 2 }}
 }
 \vspace #-.6
 \fret-diagram #6-x;5-3-3;4-2-2;3-o;2-1-1;1-3-4;
 }
 }
 %%
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code
 . below-string)
 (dot-radius . 0.35)
 (number-type . arabic)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 % \concat { F \fontsize #-2.5 {\fontsize #1.5 7/D\super no 3rd }}
 \concat { Dm \fontsize #-2.5 {\fontsize #1.5 9}}
 }
 \vspace #-.6
 \fret-diagram #6-x;5-x;4-o;3-5-1;2-6-3;1-o;
 }
 }
 %%
 %%
 \override #'(size . .7) \override #'(fret-diagram-details . ((finger-code
 . below-string)
 (dot-radius . 0.35)
 (number-type . arabic)
 (finger-code . below-string)
 (fret-count . 3)))
 \halign #-.72
 \raise #0 \pad-around #.2 {
 \center-column\text {
 \halign #-13 \fontsize #-2.5 {
 Dm
 }
 \vspace #-.6
 \fret-diagram #6-x;5-x;4-o;3-2-1;2-3-3;1-1-1;
 }
 }
 %%
 }
 }
 \header {
 title = Song Title with markup
 subtitle = \markup \raise #1 \fontsize #-4.2 Words and music by 
 copyright = \markup \fontsize #-2.2 ©1669, Some One .
 % subtitle = 
 tagline = ##f
 }
 \markup {\chordTilte }

 % Use as markup

 %
 chordWithThumb = \markup \overlay {

 \overlay {
 \translate #'(-.4 . -1.15) \lower #3.75 \finger \fontsize #-8 T
 \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
 below-string)
 (dot-radius . 

Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
Whoa! This works and the output is nice-looking, but what the ***? That's a ton 
of code you hacked together there! Shouldn't such a solution go into LilyPond 
itself in some way? (Maybe with a proper API where you can specify start and 
end characters inside the word, similar to \( and \).)


Am 06.05.2015 um 01:08 schrieb Thomas Morley thomasmorle...@gmail.com:

 2015-05-06 1:02 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
 Never mind. It's working now, thanks a lot!
 
 Good night,
 Tobias
 
 
 Am 06.05.2015 um 00:51 schrieb Simon Albrecht simon.albre...@mail.de:
 
 So sorry. I should’ve tested the code before posting…
 You need to use \line { } instead of a simple string in . See attachment.
 
 
 Am 06.05.2015 um 00:41 schrieb Tobias Braun:
 I got it to work in \lyricmode now, but it still won't work in the \markup 
 section.
 
 If I do it like you say below, I just get the code printed in the lyrics. 
 If I end the string before \override and start a new one after 
 köñiglichen, it works, but then I get line breaks around königlichen. 
 Adding \markup doesn't improve things either.
 
 What exactly do \override #'(word-space . 0) and \tied-lyric do? When 
 using \override #'(word-space . 0) inside a \lyricmode expression, ~ 
 won't create a lyric tie (with a blank) anymore, but just literally print 
 ~. I have to explicitly use \tied-lyric then.
 They are markup commands. \override (the markup command) takes two 
 arguments: a pair and a markup. The pair consists of property and value, 
 given in Scheme syntax: #'(word-space . 0). The markup is produced using 
 \tied-lyric, which takes a string (a series of characters enclosed in ) 
 as its argument, again prefixed with # to make it a Scheme expression. And 
 in order to use them in \lyricmode, you have to enclose them in \markup 
 explicitly.
 
 I hope that makes it a little clearer. Ein weites Feld…
 Good night, :-)
 Simon
 koeniglichen.ly
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 How about:
 
 
 \version 2.19.18
 
 %% https://code.google.com/p/lilypond/issues/detail?id=3088
 %% extended
 
 %%FIXME: add `\undertie undertied' to regression/markup-commands.ly
 
 %% FIXME: cp from stencil.scm -- define-public and remove copy
 #(define (make-bezier-sandwich-stencil coords thick xext yext)
  (let* ((command-list `(moveto
,(car (list-ref coords 3))
,(cdr (list-ref coords 3))
curveto
,(car (list-ref coords 0))
,(cdr (list-ref coords 0))
,(car (list-ref coords 1))
,(cdr (list-ref coords 1))
,(car (list-ref coords 2))
,(cdr (list-ref coords 2))
curveto
,(car (list-ref coords 4))
,(cdr (list-ref coords 4))
,(car (list-ref coords 5))
,(cdr (list-ref coords 5))
,(car (list-ref coords 6))
,(cdr (list-ref coords 6))
closepath)))
  (ly:make-stencil
`(path ,thick `(,@' ,command-list) 'round 'round #t)
xext
yext)))
 
 %% FIXME: rewrite generic wrt axes and replace make-parenthesis-stencil
 #(define (make-bow-stencil width height thickness angularity)
 Create a bow stencil.
 @var{width} is the width of the bow markup.
 @var{thickness} is the thickness of the bow.
 @var{height} is the heigth of the bow.
 The higher the value of number @var{angularity},
 the more angular the shape of the bow.
   (let* ((line-width 0.1)
  (base-x (if ( width 0) (- width) 0))
  (base-y (if ( height 0) (- height) 0))
  (x-extent (ordered-cons 0 width))
  (y-extent (ordered-cons 0 height))
  (left-x (interval-start x-extent))
  (right-x (interval-end x-extent))
  (inner-y 0)
  (outer-y height)
  (left-end-point (cons left-x inner-y))
  (right-end-point (cons right-x inner-y))
  (outer-control-y (+ inner-y (* 4/3 outer-y)))
  (inner-control-y (+ outer-control-y
 (if ( height 0) thickness (- thickness
  ;; keeping angularity allows for refactoring and
  ;; merging with make-parenthesis-stencil
  (offset-index (- (* 0.6 angularity) 0.8))
  (left-control-x (interval-index x-extent offset-index))
  (right-control-x (interval-index x-extent (- offset-index)))
  (left-outer-control-point
 (cons left-control-x outer-control-y))
  (right-outer-control-point
 (cons right-control-x outer-control-y))
  (right-inner-control-point
 (cons right-control-x inner-control-y))
  (left-inner-control-point
 (cons left-control-x 

Re: Centering a rest in a bar

2015-05-05 Thread Andrew Bernard
Well, having just posted this I find the technique described on the lilypond 
blog. But I am unable to download the code from the attached email link from 
2013. Can anybody help?

Andrew



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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Simon Albrecht
I correct myself: 
http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html#normal-repeats, 
at ‘Known issues and warnings’ has a remark about \unfoldRepeats 
(necessary for MIDI output) giving wrong results if measurePosition is 
set in an \alternative. This is probably the reason why the example uses 
measureLength (which gives the same output, after all).


Yours, Simon

Am 06.05.2015 um 01:02 schrieb Simon Albrecht:

Indeed. I’ll make a bug report.

Yours, Simon

Am 06.05.2015 um 00:55 schrieb Tobias Braun:

http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html

Search for Timing.measureLength there.


Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:


Am 06.05.2015 um 00:46 schrieb Tobias Braun:
So modifying measureLength, as suggested by the documentation, 
isn't a good idea after all? Shouldn't the documentation be updated 
accordingly then?

In which place? Please give a link.
~ Simon



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



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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Btw: I'm of course getting the bar check warnings described under Known issues 
and warnings if I put \unfoldRepeats in my MIDI context. Not very nice at all, 
especially for such a relatively simple piece of music ...


Am 06.05.2015 um 01:02 schrieb Simon Albrecht simon.albre...@mail.de:

 Indeed. I’ll make a bug report.
 
 Yours, Simon
 
 Am 06.05.2015 um 00:55 schrieb Tobias Braun:
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html
 
 Search for Timing.measureLength there.
 
 
 Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:
 
 Am 06.05.2015 um 00:46 schrieb Tobias Braun:
 So modifying measureLength, as suggested by the documentation, isn't a 
 good idea after all? Shouldn't the documentation be updated accordingly 
 then?
 In which place? Please give a link.
 ~ Simon
 


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


Centering a rest in a bar

2015-05-05 Thread Andrew Bernard
Greetings All,

Is there a way to centre a rest in a bar - an ordinary rest, not a multi 
measure rest?

The following vastly oversimplified snippet shows rests sitting at the left, as 
indeed they should, entirely correct. But my composer wants them in the middle. 
How does one achieve this, without simply specifying a move offset, as this has 
to be continually adjusted as the score is being developed and bars change 
width and so on.

Having asked this, the same applies for notes. How can I get a chord to sit in 
the middle of a bar? 18c composers very often did this.

Is there a way to address this topic in Scheme? I am sure I could write the 
Scheme, I just need to find a foothold somewhere to start.

\version 2.19.19

\paper {
  ragged-right = ##f
}

treble = \relative c'' {
  \clef treble
  \time 4/4
  r4 r r r
}

bass = \relative c {
  \clef bass
  \time 1/4
  c c c c
}

\score {

  
    \new Staff \treble
    \new Staff \bass
  

  \layout { }
}


Andrew



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


Re: Lyric tie inside word?

2015-05-05 Thread Thomas Morley
2015-05-06 1:02 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
 Never mind. It's working now, thanks a lot!

 Good night,
 Tobias


 Am 06.05.2015 um 00:51 schrieb Simon Albrecht simon.albre...@mail.de:

 So sorry. I should’ve tested the code before posting…
 You need to use \line { } instead of a simple string in . See attachment.


 Am 06.05.2015 um 00:41 schrieb Tobias Braun:
 I got it to work in \lyricmode now, but it still won't work in the \markup 
 section.

 If I do it like you say below, I just get the code printed in the lyrics. 
 If I end the string before \override and start a new one after 
 köñiglichen, it works, but then I get line breaks around königlichen. 
 Adding \markup doesn't improve things either.

 What exactly do \override #'(word-space . 0) and \tied-lyric do? When 
 using \override #'(word-space . 0) inside a \lyricmode expression, ~ 
 won't create a lyric tie (with a blank) anymore, but just literally print 
 ~. I have to explicitly use \tied-lyric then.
 They are markup commands. \override (the markup command) takes two 
 arguments: a pair and a markup. The pair consists of property and value, 
 given in Scheme syntax: #'(word-space . 0). The markup is produced using 
 \tied-lyric, which takes a string (a series of characters enclosed in ) as 
 its argument, again prefixed with # to make it a Scheme expression. And in 
 order to use them in \lyricmode, you have to enclose them in \markup 
 explicitly.

 I hope that makes it a little clearer. Ein weites Feld…
 Good night, :-)
 Simon
 koeniglichen.ly


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

How about:


\version 2.19.18

%% https://code.google.com/p/lilypond/issues/detail?id=3088
%% extended

%%FIXME: add `\undertie undertied' to regression/markup-commands.ly

%% FIXME: cp from stencil.scm -- define-public and remove copy
#(define (make-bezier-sandwich-stencil coords thick xext yext)
  (let* ((command-list `(moveto
,(car (list-ref coords 3))
,(cdr (list-ref coords 3))
curveto
,(car (list-ref coords 0))
,(cdr (list-ref coords 0))
,(car (list-ref coords 1))
,(cdr (list-ref coords 1))
,(car (list-ref coords 2))
,(cdr (list-ref coords 2))
curveto
,(car (list-ref coords 4))
,(cdr (list-ref coords 4))
,(car (list-ref coords 5))
,(cdr (list-ref coords 5))
,(car (list-ref coords 6))
,(cdr (list-ref coords 6))
closepath)))
  (ly:make-stencil
`(path ,thick `(,@' ,command-list) 'round 'round #t)
xext
yext)))

%% FIXME: rewrite generic wrt axes and replace make-parenthesis-stencil
#(define (make-bow-stencil width height thickness angularity)
 Create a bow stencil.
 @var{width} is the width of the bow markup.
 @var{thickness} is the thickness of the bow.
 @var{height} is the heigth of the bow.
 The higher the value of number @var{angularity},
 the more angular the shape of the bow.
   (let* ((line-width 0.1)
  (base-x (if ( width 0) (- width) 0))
  (base-y (if ( height 0) (- height) 0))
  (x-extent (ordered-cons 0 width))
  (y-extent (ordered-cons 0 height))
  (left-x (interval-start x-extent))
  (right-x (interval-end x-extent))
  (inner-y 0)
  (outer-y height)
  (left-end-point (cons left-x inner-y))
  (right-end-point (cons right-x inner-y))
  (outer-control-y (+ inner-y (* 4/3 outer-y)))
  (inner-control-y (+ outer-control-y
 (if ( height 0) thickness (- thickness
  ;; keeping angularity allows for refactoring and
  ;; merging with make-parenthesis-stencil
  (offset-index (- (* 0.6 angularity) 0.8))
  (left-control-x (interval-index x-extent offset-index))
  (right-control-x (interval-index x-extent (- offset-index)))
  (left-outer-control-point
 (cons left-control-x outer-control-y))
  (right-outer-control-point
 (cons right-control-x outer-control-y))
  (right-inner-control-point
 (cons right-control-x inner-control-y))
  (left-inner-control-point
 (cons left-control-x inner-control-y)))

   (make-bezier-sandwich-stencil
 (list right-inner-control-point
   left-inner-control-point
   left-end-point
   right-end-point
   left-outer-control-point
   right-outer-control-point
   right-end-point
   left-end-point)
 line-width
 x-extent
 y-extent)))

%% FIXME: replace make-parenthesis-stencil 

Repeat bar lines inside \markup block?

2015-05-05 Thread Tobias Braun
Hi,

Is there a way to print nice repeat bar lines in a \markup block used for 
verses of a song printed below the main score, instead of having to resort to 
|: or /:? I tried pasting the respective unicode signs and they display 
fine in my text editor, but unfortunately, LilyPond turns them into garbage in 
the rendered output.

Tobias


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Ok, but the fix tells me to alter a global browser setting, which I may not 
want to after all. It says this is required To get automatic language 
selection. What I really want, however, is manual language selection. Isn't 
that what the language links at the bottom are for? Instead, I am getting a 
broken kind of automatic language selection at the moment. Is there no way to 
turn automatic language selection off? Or just store the user's selection in a 
cookie or something?

Also, there are no instructions for the Safari browser on OS X on that page. 
Looking around the Safari preferences window, I get the impression that there 
is no such setting in Safari at all, let alone a way to configure it per site. 
(LilyPond documentation is the only web site I ever encountered which exhibits 
this problem.)


Am 06.05.2015 um 00:24 schrieb Simon Albrecht simon.albre...@mail.de:

 Well, in Lilypond we always try to represent the musical content 
 appropriately, and contrary to what Steven suggested, the measure length 
 doesn’t change here, only the second alternative ‘misses out one beat’ or 
 starts at another measure position. So setting measurePosition is the way to 
 go here. Although it /would/ be nice if Lily could do it right without 
 explicitly telling her – but there are quite a few things we still have to 
 teach her :-)
 
 Concerning automatic language selection on the website: there is an 
 explanation how to fix this on the bottom of every page. I hope it will help.
 
 Yours, Simon
 
 Am 05.05.2015 um 23:56 schrieb Tobias Braun:
 Yes, it does, thank you!
 
 But the docs tell me to use measureLength in some way. Is using 
 measurePosition, as you suggested, just another way of doing the same thing? 
 Or is my situation that much different from the docs so that a different 
 property has to be modified?
 
 Tobias
 
 
 Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:
 
 Tobias:
 
 Does this work?
 
 \version 2.18.2
 
 \relative c' {
 \partial 4
 \repeat volta 2 { c4 | c c c c | c c c }
 \repeat volta 2 { d4 | d d d d | }
 \alternative { { e4 e e } {
   \set Timing.measurePosition = #(ly:make-moment 1/4)
   f4 f f } } }
 
 Mark
 
 -Original Message-
 From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
 [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
 Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've read
 the docs and tried different things for hours now, to no avail. Here's my
 minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
 \partial 4
 \repeat volta 2 { c4 | c c c c | c c c }
 \repeat volta 2 { d4 | d d d d | }
 \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note in the
 second group of the \alternative expression?
 
 Thanks,
 Tobias
 
 
 ___
 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: Problem with repeats: stray bar line

2015-05-05 Thread Mark Stephen Mrotek
Tobias:

My understanding, which is certainly limited, is that Lilypond reads the
first alternate ending and sees only three beats and assumes that the second
alternate starts (read not played) with the fourth beat. Again a case when a
human performer is smarter than a computer!
So we have to tell Lily that the second alternative starts on the first of
four (that's where the 1/4 comes in) beats.

Mark

-Original Message-
From: Tobias Braun [mailto:lists.tob...@braun-abstatt.de] 
Sent: Tuesday, May 05, 2015 2:57 PM
To: Mark Stephen Mrotek
Cc: lilypond-user@gnu.org
Subject: Re: Problem with repeats: stray bar line

Yes, it does, thank you!

But the docs tell me to use measureLength in some way. Is using
measurePosition, as you suggested, just another way of doing the same thing?
Or is my situation that much different from the docs so that a different
property has to be modified?

Tobias


Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:

 Tobias:
 
 Does this work?
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { 
 \set Timing.measurePosition = #(ly:make-moment 1/4)
 f4 f f } } }
 
 Mark
 
 -Original Message-
 From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
 [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf 
 Of Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've 
 read the docs and tried different things for hours now, to no avail. 
 Here's my minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note 
 in the second group of the \alternative expression?
 
 Thanks,
 Tobias
 


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


Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
How would I put that character _below_ a word (as opposed to in-between two 
words)?
 

Am 06.05.2015 um 01:16 schrieb Kieren MacMillan kieren_macmil...@sympatico.ca:

 Hi all,
 
 Can’t you just use ‿ ??
 I’ve used it in the past, and it’s worked wonderfully for me.
 
 Hope this helps,
 Kieren.
 
 
 Kieren MacMillan, composer
 ‣ website: www.kierenmacmillan.info
 ‣ email: i...@kierenmacmillan.info
 


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


Re: Repeat bar lines inside \markup block?

2015-05-05 Thread Thomas Morley
2015-05-06 1:24 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
 Hi,

 Is there a way to print nice repeat bar lines in a \markup block used for 
 verses of a song printed below the main score, instead of having to resort to 
 |: or /:? I tried pasting the respective unicode signs and they display 
 fine in my text editor, but unfortunately, LilyPond turns them into garbage 
 in the rendered output.

 Tobias


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

I once started work on a markup-command called bar-line.
Maybe you'll find it in the archives. I'm too tired to search myself.

Cheers,
  Harm

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


Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
Never mind. It's working now, thanks a lot!

Good night,
Tobias


Am 06.05.2015 um 00:51 schrieb Simon Albrecht simon.albre...@mail.de:

 So sorry. I should’ve tested the code before posting…
 You need to use \line { } instead of a simple string in . See attachment.
 
 
 Am 06.05.2015 um 00:41 schrieb Tobias Braun:
 I got it to work in \lyricmode now, but it still won't work in the \markup 
 section.
 
 If I do it like you say below, I just get the code printed in the lyrics. If 
 I end the string before \override and start a new one after köñiglichen, 
 it works, but then I get line breaks around königlichen. Adding \markup 
 doesn't improve things either.
 
 What exactly do \override #'(word-space . 0) and \tied-lyric do? When 
 using \override #'(word-space . 0) inside a \lyricmode expression, ~ 
 won't create a lyric tie (with a blank) anymore, but just literally print 
 ~. I have to explicitly use \tied-lyric then.
 They are markup commands. \override (the markup command) takes two arguments: 
 a pair and a markup. The pair consists of property and value, given in Scheme 
 syntax: #'(word-space . 0). The markup is produced using \tied-lyric, which 
 takes a string (a series of characters enclosed in ) as its argument, again 
 prefixed with # to make it a Scheme expression. And in order to use them in 
 \lyricmode, you have to enclose them in \markup explicitly.
 
 I hope that makes it a little clearer. Ein weites Feld…
 Good night, :-)
 Simon
 koeniglichen.ly


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


Re: Lyric tie inside word?

2015-05-05 Thread Kieren MacMillan
Hi all,

Can’t you just use ‿ ??
I’ve used it in the past, and it’s worked wonderfully for me.

Hope this helps,
Kieren.


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


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


Re: Centering a rest in a bar

2015-05-05 Thread David Nalesnik
Hi Andrew,

On Tue, May 5, 2015 at 8:36 PM, Andrew Bernard andrew.bern...@gmail.com
wrote:

 Well, having just posted this I find the technique described on the
 lilypond blog. But I am unable to download the code from the attached email
 link from 2013. Can anybody help?


This came up recently.  See the following thread, where you should find a
link to the snippet you mention along with an alternate solution:
http://www.mail-archive.com/lilypond-user%40gnu.org/msg99913.html

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


Re: Can't compile after upgrade to 2.19.19

2015-05-05 Thread Keith OHara
Stan Mulder st45882wz at earthlink.net writes:

 convert-ly will change something like gsharp to g-sharp, but it won't change
 gsharp4 to g-sharp4. Anything with a number after it doesn't convert
 properly. So I've had to do all those manually (or with search and replace).

Oops.  The rule in convert-ly was not written carefully enough.
I put this on the bug list so it doesn't cause too many further problems.

Since you converted your music, I take it that you do not find too much 
other difficulty in using 'g-sharp' for what used to be 'gsharp'


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Simon Albrecht

Indeed. I’ll make a bug report.

Yours, Simon

Am 06.05.2015 um 00:55 schrieb Tobias Braun:

http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html

Search for Timing.measureLength there.


Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:


Am 06.05.2015 um 00:46 schrieb Tobias Braun:

So modifying measureLength, as suggested by the documentation, isn't a good 
idea after all? Shouldn't the documentation be updated accordingly then?

In which place? Please give a link.
~ Simon



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


Re: Lyric tie inside word?

2015-05-05 Thread Simon Albrecht

Nice one again, Harm! :-)
I love how every ‘normal’ person would come up with some twenty lines of 
‘ordinary’ code, whereas you deliver hundreds of lines of code with a 
fancy solution…

Kudos!
And, finally, (!) good night :-)

Am 06.05.2015 um 01:08 schrieb Thomas Morley:

How about:


\version 2.19.18

%% https://code.google.com/p/lilypond/issues/detail?id=3088
%% extended

%%FIXME: add `\undertie undertied' to regression/markup-commands.ly

%% FIXME: cp from stencil.scm -- define-public and remove copy
#(define (make-bezier-sandwich-stencil coords thick xext yext)
   (let* ((command-list `(moveto
 ,(car (list-ref coords 3))
 ,(cdr (list-ref coords 3))
 curveto
 ,(car (list-ref coords 0))
 ,(cdr (list-ref coords 0))
 ,(car (list-ref coords 1))
 ,(cdr (list-ref coords 1))
 ,(car (list-ref coords 2))
 ,(cdr (list-ref coords 2))
 curveto
 ,(car (list-ref coords 4))
 ,(cdr (list-ref coords 4))
 ,(car (list-ref coords 5))
 ,(cdr (list-ref coords 5))
 ,(car (list-ref coords 6))
 ,(cdr (list-ref coords 6))
 closepath)))
   (ly:make-stencil
 `(path ,thick `(,@' ,command-list) 'round 'round #t)
 xext
 yext)))

%% FIXME: rewrite generic wrt axes and replace make-parenthesis-stencil
#(define (make-bow-stencil width height thickness angularity)
  Create a bow stencil.
  @var{width} is the width of the bow markup.
  @var{thickness} is the thickness of the bow.
  @var{height} is the heigth of the bow.
  The higher the value of number @var{angularity},
  the more angular the shape of the bow.
(let* ((line-width 0.1)
   (base-x (if ( width 0) (- width) 0))
   (base-y (if ( height 0) (- height) 0))
   (x-extent (ordered-cons 0 width))
   (y-extent (ordered-cons 0 height))
   (left-x (interval-start x-extent))
   (right-x (interval-end x-extent))
   (inner-y 0)
   (outer-y height)
   (left-end-point (cons left-x inner-y))
   (right-end-point (cons right-x inner-y))
   (outer-control-y (+ inner-y (* 4/3 outer-y)))
   (inner-control-y (+ outer-control-y
  (if ( height 0) thickness (- thickness
   ;; keeping angularity allows for refactoring and
   ;; merging with make-parenthesis-stencil
   (offset-index (- (* 0.6 angularity) 0.8))
   (left-control-x (interval-index x-extent offset-index))
   (right-control-x (interval-index x-extent (- offset-index)))
   (left-outer-control-point
  (cons left-control-x outer-control-y))
   (right-outer-control-point
  (cons right-control-x outer-control-y))
   (right-inner-control-point
  (cons right-control-x inner-control-y))
   (left-inner-control-point
  (cons left-control-x inner-control-y)))

(make-bezier-sandwich-stencil
  (list right-inner-control-point
left-inner-control-point
left-end-point
right-end-point
left-outer-control-point
right-outer-control-point
right-end-point
left-end-point)
  line-width
  x-extent
  y-extent)))

%% FIXME: replace make-parenthesis-stencil by this:
#(define (make-parenthesis-stencil height width thick angularity)
   (ly:stencil-rotate-absolute
 (make-bow-stencil height width thick angularity)
 -90 0 0))

%% FIXME: cp from bezier-bow.cc
#(define (F0_1 x) (* (/ 2 PI) (atan (* PI x 0.5
#(define (slur-height w h_inf r_0)
(F0_1 (* (/ (* w r_0) h_inf) h_inf)))

#(define (make-tie-stencil width thickness direction)
   (let* ((height-limit 1)
  (ratio 0.25)
  (angularity 0.5)
  (height (slur-height width height-limit ratio)))
   (make-bow-stencil width (* direction height) thickness angularity)))

#(define-markup-command (undertie layout props arg)
   (markup?)
#:category font
#:properties ((thickness 1)
   (offset 2)
   (direction DOWN)
   (adjust-length 0)
   (adjust-x-pos 0))

@cindex undertie-ing text

Undertie @var{arg}. Looks at @code{thickness} to determine line
thickness, and @code{offset} to determine line y-offset.

@lilypond[verbatim,quote]
\\markup \\line {
\\undertie \undertied\
\\override #'(offset . 5)
\\override #'(thickness . 1)
\\undertie \undertied\
\\override #'(offset . 1)
\\override #'(thickness . 5)
\\undertie \undertied\
}
@end lilypond
   (let* ((line-thickness (ly:output-def-lookup layout 'line-thickness))
  (thick (* thickness line-thickness))
  (markup 

Re: Cross-Staff Kneed Beams; Nested Voices

2015-05-05 Thread Sam Bivens
Hi Simon, Carl, and Stephen,

Thanks for all of the helpful remarks. I've been consulting the manual
for weeks now on various issues, but apparently I kept looking right
past the most important bit:

In all but the simplest works it is advisable to create explicit
|Voice| contexts...

Alas, I had it backwards, but at least it's fixed now!

Thanks again,

--Sam

-- 
Sam Bivens
Ph.D. Student, Music Theory
Eastman School of Music
Co-Editor, /Intégral/
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyric tie inside word?

2015-05-05 Thread Thomas Morley
2015-05-06 1:19 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
 Whoa! This works and the output is nice-looking, but what the ***? That's a 
 ton of code you hacked together there! Shouldn't such a solution go into 
 LilyPond itself in some way? (Maybe with a proper API where you can specify 
 start and end characters inside the word, similar to \( and \).)


 Am 06.05.2015 um 01:08 schrieb Thomas Morley thomasmorle...@gmail.com:

 2015-05-06 1:02 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
 Never mind. It's working now, thanks a lot!

 Good night,
 Tobias


 Am 06.05.2015 um 00:51 schrieb Simon Albrecht simon.albre...@mail.de:

 So sorry. I should’ve tested the code before posting…
 You need to use \line { } instead of a simple string in . See attachment.


 Am 06.05.2015 um 00:41 schrieb Tobias Braun:
 I got it to work in \lyricmode now, but it still won't work in the 
 \markup section.

 If I do it like you say below, I just get the code printed in the lyrics. 
 If I end the string before \override and start a new one after 
 köñiglichen, it works, but then I get line breaks around königlichen. 
 Adding \markup doesn't improve things either.

 What exactly do \override #'(word-space . 0) and \tied-lyric do? When 
 using \override #'(word-space . 0) inside a \lyricmode expression, ~ 
 won't create a lyric tie (with a blank) anymore, but just literally print 
 ~. I have to explicitly use \tied-lyric then.
 They are markup commands. \override (the markup command) takes two 
 arguments: a pair and a markup. The pair consists of property and value, 
 given in Scheme syntax: #'(word-space . 0). The markup is produced using 
 \tied-lyric, which takes a string (a series of characters enclosed in ) 
 as its argument, again prefixed with # to make it a Scheme expression. And 
 in order to use them in \lyricmode, you have to enclose them in \markup 
 explicitly.

 I hope that makes it a little clearer. Ein weites Feld…
 Good night, :-)
 Simon
 koeniglichen.ly


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

 How about:


 \version 2.19.18


Did you notice this comment and followed the link?

 %% https://code.google.com/p/lilypond/issues/detail?id=3088
 %% extended

It's code by Jan Nieuwenhuizen and we already have a tracker for it.
I did only a few extendings.

Cheers,
  Harm

 %%FIXME: add `\undertie undertied' to regression/markup-commands.ly

 %% FIXME: cp from stencil.scm -- define-public and remove copy
 #(define (make-bezier-sandwich-stencil coords thick xext yext)
  (let* ((command-list `(moveto
,(car (list-ref coords 3))
,(cdr (list-ref coords 3))
curveto
,(car (list-ref coords 0))
,(cdr (list-ref coords 0))
,(car (list-ref coords 1))
,(cdr (list-ref coords 1))
,(car (list-ref coords 2))
,(cdr (list-ref coords 2))
curveto
,(car (list-ref coords 4))
,(cdr (list-ref coords 4))
,(car (list-ref coords 5))
,(cdr (list-ref coords 5))
,(car (list-ref coords 6))
,(cdr (list-ref coords 6))
closepath)))
  (ly:make-stencil
`(path ,thick `(,@' ,command-list) 'round 'round #t)
xext
yext)))

 %% FIXME: rewrite generic wrt axes and replace make-parenthesis-stencil
 #(define (make-bow-stencil width height thickness angularity)
 Create a bow stencil.
 @var{width} is the width of the bow markup.
 @var{thickness} is the thickness of the bow.
 @var{height} is the heigth of the bow.
 The higher the value of number @var{angularity},
 the more angular the shape of the bow.
   (let* ((line-width 0.1)
  (base-x (if ( width 0) (- width) 0))
  (base-y (if ( height 0) (- height) 0))
  (x-extent (ordered-cons 0 width))
  (y-extent (ordered-cons 0 height))
  (left-x (interval-start x-extent))
  (right-x (interval-end x-extent))
  (inner-y 0)
  (outer-y height)
  (left-end-point (cons left-x inner-y))
  (right-end-point (cons right-x inner-y))
  (outer-control-y (+ inner-y (* 4/3 outer-y)))
  (inner-control-y (+ outer-control-y
 (if ( height 0) thickness (- thickness
  ;; keeping angularity allows for refactoring and
  ;; merging with make-parenthesis-stencil
  (offset-index (- (* 0.6 angularity) 0.8))
  (left-control-x (interval-index x-extent offset-index))
  (right-control-x (interval-index x-extent (- offset-index)))
  (left-outer-control-point
 (cons left-control-x outer-control-y))
  

Re: Lyric tie inside word?

2015-05-05 Thread Kieren MacMillan
Hi Tobias,

 How would I put that character _below_ a word (as opposed to in-between two 
 words)?

Maybe like:

\version 2.19.17
\markup \combine test \translate #'(0.85 . -0.5) ‿

Hope this helps!
Kieren.



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


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html

Search for Timing.measureLength there.


Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:

 Am 06.05.2015 um 00:46 schrieb Tobias Braun:
 So modifying measureLength, as suggested by the documentation, isn't a good 
 idea after all? Shouldn't the documentation be updated accordingly then?
 In which place? Please give a link.
 ~ Simon


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
I tried both variants. Either of them seem to produce the bar check warnings.


Am 06.05.2015 um 01:09 schrieb Simon Albrecht simon.albre...@mail.de:

 I correct myself: 
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html#normal-repeats,
  at ‘Known issues and warnings’ has a remark about \unfoldRepeats (necessary 
 for MIDI output) giving wrong results if measurePosition is set in an 
 \alternative. This is probably the reason why the example uses measureLength 
 (which gives the same output, after all).
 
 Yours, Simon
 
 Am 06.05.2015 um 01:02 schrieb Simon Albrecht:
 Indeed. I’ll make a bug report.
 
 Yours, Simon
 
 Am 06.05.2015 um 00:55 schrieb Tobias Braun:
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html
 
 Search for Timing.measureLength there.
 
 
 Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:
 
 Am 06.05.2015 um 00:46 schrieb Tobias Braun:
 So modifying measureLength, as suggested by the documentation, isn't a 
 good idea after all? Shouldn't the documentation be updated accordingly 
 then?
 In which place? Please give a link.
 ~ Simon
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 


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


Re: vertical alignment

2015-05-05 Thread Phil Holmes
It's because you/he has put the lower note in the upper voice, so LilyPond 
shifts it to show this.


Firstly, though, you can simplify it immensely by getting rid of most of the 
{ }


So: try this:


 { c2. c4~ c1 bes1 a1 } \\ {g2. aes4~ aes1 ges1 des1 } 




--
Phil Holmes


- Original Message - 
From: Ole Schmidt

To: lilypond-user@gnu.org List
Sent: Tuesday, May 05, 2015 4:08 PM
Subject: vertical alignment


Hi,


A friend showed me his first leadsheed to proofread and we both stumbled 
over the strange alignment in bar three of the attached file.

Is this a bug or a feature?


thanks for help


ole


code%%%
\version 2.18.2

\new Staff
\relative c''
{
  \key des\major\time 2/2



   {c2.} \\ {g2.}  {c4~} \\ {aes4~} 
   {c1} \\ {aes1} 
{ges1} \\ {bes1} 
{des1} \\ {a1} 

}
%%







___
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: vertical alignment

2015-05-05 Thread pls
Hi Ole,

in measure 3 your friend swapped voices. It should read {bes1} \\ { ges1}  
instead of {ges1} \\ { bes1} .

hth
patrick
On 05.05.2015, at 17:08, Ole Schmidt oleschm...@gmx.net wrote:

 Hi,
 
 A friend showed me his first leadsheed to proofread and we both stumbled over 
 the strange alignment in bar three of the attached file.
 Is this a bug or a feature?
 
 thanks for help
 
 ole
 
 code%%%
 \version 2.18.2
 
  \new Staff 
  \relative c''  
  {  
\key des\major\time 2/2
   

  
 {c2.} \\ {g2.}  {c4~} \\ {aes4~} 
 {c1} \\ {aes1} 
  {ges1} \\ {bes1} 
  {des1} \\ {a1} 
 
  }
 %%
 
 
 Bildschirmfoto 2015-05-05 um 
 17.02.49.jpg___
 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: What is the problem with \relative? (Was: Do we really offer the future?)

2015-05-05 Thread Shane Brandes
That is indeed a clever way of manipulating the absolute mode good for
some things, but not terribly handy once you get into active keyboard
music as you would end up thinking like a drifting organ tuner.

Shane

On Mon, May 4, 2015 at 10:57 PM, Keith OHara k-ohara5...@oco.net wrote:
 Federico Bruni fedelogy at gmail.com writes:

 2015-04-23 9:21 GMT+02:00 Martin Tarenskeen m.tarenskeen at zonnet.nl:

 I often use LilyPond to quickly enter a very simple tune or small
 pianosheet needing just a simple texteditor (Vim). I use \relative all the
 time. c g c e g is soo much faster and easier than c''' g'' c''' e''' g'''
 g'''.
 And personally I find lilypond code in \relative mode easier to read.
 I agree that for complex scores with much music in variables \relative mode
 can have annoying side-effects.

 I agree: relative mode is much easier to enter.

 What if we compare relative mode to absolute mode with repeated 's removed?

 Is
   \relative c''' { c g c e g }
 easier than
   \transpose c c''' { c g, c e g}
 ?

 I find it easier to remember that a note is below the middle octave in
 the range of an instrument, than to remember whether the previous note was
 more than three scale-steps away.

 We can easily define a shorter way to express the transposition by octaves
   \absolute c''' { c g, c e g }
 and it is not too hard to change the 460 examples in the manual that have
 an implicit \relative c' {} or relative c'' {} to copy/paste-able music.


 ___
 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


vertical alignment

2015-05-05 Thread Ole Schmidt
Hi,

A friend showed me his first leadsheed to proofread and we both stumbled over 
the strange alignment in bar three of the attached file.
Is this a bug or a feature?

thanks for help

ole

code%%%
\version 2.18.2

 \new Staff 
 \relative c''  
 {  
   \key des\major\time 2/2
  
   
 
{c2.} \\ {g2.}  {c4~} \\ {aes4~} 
{c1} \\ {aes1} 
 {ges1} \\ {bes1} 
 {des1} \\ {a1} 

 }
%%






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


Re: Color tweaks (edition engraver)

2015-05-05 Thread Kieren MacMillan
Hi David,

 And it works with that editionEngraver example.

It definitely works with a minimal EE example… Nice work!

However, I added it to my current (definitely non-minimal!) score, and it fails 
with:

  In procedure ly:music-property in expression (ly:music-property 
(ly:event-property cause #) (quote tweaks)):
  [file-path here] Wrong type argument in position 1 (expecting Music): ()

That line is

#(define (mark-tweak grob)
 [%%%SNIP%%%]
 (if (null? diff)
 (let* ((cause (event-cause grob))
(tweaks (and cause
 (ly:music-property%%  THIS ONE
  (ly:event-property cause 'music-cause)
  'tweaks

Can’t spend time tracking down the issue further now, but wanted you to know.

Thanks!
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: Color tweaks (edition engraver)

2015-05-05 Thread David Nalesnik
Hi Kieren,

On Tue, May 5, 2015 at 8:57 AM, Kieren MacMillan 
kieren_macmil...@sympatico.ca wrote:

 Hi David,

  And it works with that editionEngraver example.

 It definitely works with a minimal EE example… Nice work!

 However, I added it to my current (definitely non-minimal!) score, and it
 fails with:

   In procedure ly:music-property in expression (ly:music-property
 (ly:event-property cause #) (quote tweaks)):
   [file-path here] Wrong type argument in position 1 (expecting Music): ()

 That line is

 #(define (mark-tweak grob)
  [%%%SNIP%%%]
  (if (null? diff)
  (let* ((cause (event-cause grob))
 (tweaks (and cause
  (ly:music-property%%  THIS ONE
   (ly:event-property cause 'music-cause)
   'tweaks

 Can’t spend time tracking down the issue further now, but wanted you to
 know.

 Thanks!


The fix here is no problem.  Quoting just mark-tweak:

 #(define (mark-tweak grob)
   Color @var{grob} if it has been tweaked.  The color to use is stored
in the global variables @var{override-color} and @var{tweak-color}.
   (let* ((default (assoc-get (grob::name grob) all-grob-descriptions))
  (props (ly:grob-basic-properties grob))
  ;; Our procedure has been added to the head of grob's basic
  ;; properties.  Let's not count it as a tweak!
  (props
   (remove
(lambda (p)
  (and (procedure? (cdr p))
   (eq? (procedure-name (cdr p)) 'mark-tweak)))
props))
  ;; We're using after-line-breaking to set color of stencil, but
  ;; let's preserve its last setting
  (after-line-return (assoc-get 'after-line-breaking props))
  ;; Clef.glyph doesn't appear in all-grob-descriptions, but it
  ;; is set at some point automatically.  Don't mark it unless
  ;; it genuinely is a user override.  There may be other
  ;; such grobs.
  (props
   (if (eq? (grob::name grob) 'Clef)
   (reverse (remove-first 'glyph (reverse props)))
   props))
  (diff (lset-difference eq? props default)))
 ;; Tweaks will not appear in the basic properties alist of our grob,
but
 ;; we can find them through the music event which led to the grob.
This
 ;; is available through the stream-event which caused our grob.
 (if (null? diff)
 (let* ((cause (event-cause grob))
(music-cause
 (if (ly:stream-event? cause)
 (ly:event-property cause 'music-cause)
 #f))
(tweaks (and (ly:music? music-cause)
 (ly:music-property
  music-cause
  'tweaks
   (if (pair? tweaks)
   (set! (ly:grob-property grob 'color) tweak-color)))
 (set! (ly:grob-property grob 'color) override-color))

 ;; Return any default setting of after-line-breaking.
 after-line-return))

%%%

Thanks for pointing this out!

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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Simon Albrecht
And, an obvious point: If you modify measureLength, you’d have to modify 
it again after the second alternative, else all following music (if 
there were any) would go on with 3/4 time (without a printed change of 
TimeSignature!).


Am 05.05.2015 um 23:56 schrieb Tobias Braun:

Yes, it does, thank you!

But the docs tell me to use measureLength in some way. Is using 
measurePosition, as you suggested, just another way of doing the same thing? Or 
is my situation that much different from the docs so that a different property 
has to be modified?

Tobias


Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:


Tobias:

Does this work?

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } {
  \set Timing.measurePosition = #(ly:make-moment 1/4)
  f4 f f } } }

Mark

-Original Message-
From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Tobias Braun
Sent: Tuesday, May 05, 2015 2:07 PM
To: lilypond-user@gnu.org Group
Subject: Problem with repeats: stray bar line

Hi,

I have a weird problem with repeats that I just can't figure out. I've read
the docs and tried different things for hours now, to no avail. Here's my
minimal example:

%%

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { f4 f f \bar |. } } }

%%

Can anyone tell me why I get that stray bar line after the first note in the
second group of the \alternative expression?

Thanks,
Tobias



___
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: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
I got it to work in \lyricmode now, but it still won't work in the \markup 
section.

If I do it like you say below, I just get the code printed in the lyrics. If I 
end the string before \override and start a new one after köñiglichen, it 
works, but then I get line breaks around königlichen. Adding \markup doesn't 
improve things either.

What exactly do \override #'(word-space . 0) and \tied-lyric do? When using 
\override #'(word-space . 0) inside a \lyricmode expression, ~ won't create 
a lyric tie (with a blank) anymore, but just literally print ~. I have to 
explicitly use \tied-lyric then.

Tobias


Am 06.05.2015 um 00:19 schrieb Simon Albrecht simon.albre...@mail.de:

 Just include everything except \markup instead of the word:
 
 \markup {
   \fill-line {
 \hspace #0.1
  \column {
  \vspace #0.5
   \line { \bold 2.
 \column {
   Er ging aus der Kammer sein, / dem \override #'(word-space . 0) 
 \tied-lyric #kö~niglichen Saal so rein, /
   Gott von Art und Mensch, ...
 }
   }
 
 (It might even work with nested \markup commands)
 
 For use in \lyricmode consider 
 http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-vocal-music#multiple-syllables-to-one-note.
  With german text, however, you still need to override word-space, so see 
 attachment. Alternatively, just leave the tie out…
 
 Yours, Simon
 
 Am 05.05.2015 um 23:52 schrieb Tobias Braun:
 Hello Simon,
 
 Thanks a lot! Marvelous, I'd never have been able to come up with this.
 
 I'm just not quite sure yet how to integrate it with the rest of my lyrics. 
 At the moment, it looks something like this:
 
 \markup {
   \fill-line {
 \hspace #0.1
  \column {
  \vspace #0.5
   \line { \bold 2.
 \column {
   Er ging aus der Kammer sein, / dem königlichen Saal so rein, /
   Gott von Art und Mensch, ...
 }
   }
 
 Where exactly do I put the code you posted below? It's working as a 
 standalone line in my LilyPond file, but I couldn't figure out how to 
 integrate it into the code above. (Neither did I get it to work inside a 
 \lyricmode expression for use in lyrics directly below the notes.)
 
 Tobias
 
 
 Am 05.05.2015 um 23:35 schrieb Simon Albrecht simon.albre...@mail.de:
 
 Hello Tobias,
 
 I’m not sure what you tried previously, but this should do what you want:
 
 \markup \override #'(word-space . 0) \tied-lyric #kö~niglichen
 
 See http://lilypond.org/doc/v2.18/Documentation/notation/music
 Admittedly, it’s not as elegant as the one in the EG :-) – that would 
 require a manually tweaked version – but it’s clear.
 
 Yours, Simon
 
 Am 05.05.2015 um 23:23 schrieb Tobias Braun:
 Hi,
 
 How can I achieve a lyric tie inside a word, as seen in the second verse 
 of the attached music?
 
 Putting a '~' inside the word creates a lyric tie, but also inserts a 
 space, splitting my word into two words.
 
 Moreover, how can I achieve this in a \markup section below the actual 
 score? Down there, it is far more useful than in the lyrics directly below 
 the notes. But in the \markup section, I couldn't even get the lyric tie 
 with a space in it to work. I suppose I'd somehow have to make the \markup 
 section into a \lyricmode one? That didn't work either, unfortunately.
 
 Thanks,
 Tobias
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 
 lyr-tie-german.ly

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


Re: Lyric tie inside word?

2015-05-05 Thread Simon Albrecht

So sorry. I should’ve tested the code before posting…
You need to use \line { } instead of a simple string in . See attachment.


Am 06.05.2015 um 00:41 schrieb Tobias Braun:
I got it to work in \lyricmode now, but it still won't work in the 
\markup section.


If I do it like you say below, I just get the code printed in the 
lyrics. If I end the string before \override and start a new one after 
köñiglichen, it works, but then I get line breaks around 
königlichen. Adding \markup doesn't improve things either.


What exactly do \override #'(word-space . 0) and \tied-lyric do? 
When using \override #'(word-space . 0) inside a \lyricmode 
expression, ~ won't create a lyric tie (with a blank) anymore, but 
just literally print ~. I have to explicitly use \tied-lyric then.
They are markup commands. \override (the markup command) takes two 
arguments: a pair and a markup. The pair consists of property and value, 
given in Scheme syntax: #'(word-space . 0). The markup is produced using 
\tied-lyric, which takes a string (a series of characters enclosed in 
) as its argument, again prefixed with # to make it a Scheme 
expression. And in order to use them in \lyricmode, you have to enclose 
them in \markup explicitly.


I hope that makes it a little clearer. Ein weites Feld…
Good night, :-)
Simon
\version 2.19.17

\markup {
  \fill-line {
\hspace #0.1
\column {
  \vspace #0.5
  \line {
\bold 2.
\column {
  \line {
Er ging aus der Kammer sein, / dem
\override #'(word-space . 0)
\tied-lyric #kö~niglichen Saal so rein, /
  }
  Gott von Art und Mensch, ...
}
  }
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with repeats: stray bar line

2015-05-05 Thread Simon Albrecht

Am 06.05.2015 um 00:46 schrieb Tobias Braun:

So modifying measureLength, as suggested by the documentation, isn't a good 
idea after all? Shouldn't the documentation be updated accordingly then?

In which place? Please give a link.
~ Simon

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


Re: Lyric tie inside word?

2015-05-05 Thread Simon Albrecht

Just include everything except \markup instead of the word:

\markup {
  \fill-line {
\hspace #0.1
 \column {
\vspace #0.5
  \line { \bold 2.
\column {
  Er ging aus der Kammer sein, / dem \override #'(word-space . 
0) \tied-lyric #kö~niglichen Saal so rein, /

  Gott von Art und Mensch, ...
}
  }

(It might even work with nested \markup commands)

For use in \lyricmode consider 
http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-vocal-music#multiple-syllables-to-one-note. 
With german text, however, you still need to override word-space, so see 
attachment. Alternatively, just leave the tie out…


Yours, Simon

Am 05.05.2015 um 23:52 schrieb Tobias Braun:

Hello Simon,

Thanks a lot! Marvelous, I'd never have been able to come up with this.

I'm just not quite sure yet how to integrate it with the rest of my 
lyrics. At the moment, it looks something like this:


\markup {
  \fill-line {
\hspace #0.1
 \column {
\vspace #0.5
  \line { \bold 2.
\column {
  Er ging aus der Kammer sein, / dem königlichen Saal so rein, /
  Gott von Art und Mensch, ...
}
  }

Where exactly do I put the code you posted below? It's working as a 
standalone line in my LilyPond file, but I couldn't figure out how to 
integrate it into the code above. (Neither did I get it to work inside 
a \lyricmode expression for use in lyrics directly below the notes.)


Tobias


Am 05.05.2015 um 23:35 schrieb Simon Albrecht simon.albre...@mail.de 
mailto:simon.albre...@mail.de:



Hello Tobias,

I’m not sure what you tried previously, but this should do what you want:

\markup \override #'(word-space . 0) \tied-lyric #kö~niglichen

See http://lilypond.org/doc/v2.18/Documentation/notation/music
Admittedly, it’s not as elegant as the one in the EG :-) – that would 
require a manually tweaked version – but it’s clear.


Yours, Simon

Am 05.05.2015 um 23:23 schrieb Tobias Braun:

Hi,

How can I achieve a lyric tie inside a word, as seen in the second verse of the 
attached music?

Putting a '~' inside the word creates a lyric tie, but also inserts a space, 
splitting my word into two words.

Moreover, how can I achieve this in a \markup section below the actual score? 
Down there, it is far more useful than in the lyrics directly below the notes. 
But in the \markup section, I couldn't even get the lyric tie with a space in 
it to work. I suppose I'd somehow have to make the \markup section into a 
\lyricmode one? That didn't work either, unfortunately.

Thanks,
Tobias



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






\version 2.19.17

\score {
  
\new Staff { c'4 d'4. c'8 }
\addlyrics {
  \markup \override #'(word-space . 0)
  \tied-lyric #kö~nig -- li -- chen
}
  
}

\score {
  
\new Staff { c'4 d'4. c'8 }
\addlyrics { könig -- li -- chen }
  
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with repeats: stray bar line

2015-05-05 Thread Simon Albrecht
Well, in Lilypond we always try to represent the musical content 
appropriately, and contrary to what Steven suggested, the measure length 
doesn’t change here, only the second alternative ‘misses out one beat’ 
or starts at another measure position. So setting measurePosition is the 
way to go here. Although it /would/ be nice if Lily could do it right 
without explicitly telling her – but there are quite a few things we 
still have to teach her :-)


Concerning automatic language selection on the website: there is an 
explanation how to fix this on the bottom of every page. I hope it will 
help.


Yours, Simon

Am 05.05.2015 um 23:56 schrieb Tobias Braun:

Yes, it does, thank you!

But the docs tell me to use measureLength in some way. Is using 
measurePosition, as you suggested, just another way of doing the same thing? Or 
is my situation that much different from the docs so that a different property 
has to be modified?

Tobias


Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:


Tobias:

Does this work?

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } {
  \set Timing.measurePosition = #(ly:make-moment 1/4)
  f4 f f } } }

Mark

-Original Message-
From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Tobias Braun
Sent: Tuesday, May 05, 2015 2:07 PM
To: lilypond-user@gnu.org Group
Subject: Problem with repeats: stray bar line

Hi,

I have a weird problem with repeats that I just can't figure out. I've read
the docs and tried different things for hours now, to no avail. Here's my
minimal example:

%%

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { f4 f f \bar |. } } }

%%

Can anyone tell me why I get that stray bar line after the first note in the
second group of the \alternative expression?

Thanks,
Tobias



___
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: Accessing context properties (e.g. the current key) from a music function?

2015-05-05 Thread Leah Velleman

 The problem arises because \applyContext is evaluated later than
 \transpose.  When music functions do their work, contexts have not been
 created yet,

 The output shows that the original binding of k is in effect when
 \transpose is called.


Aha! Thank you — that makes sense.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: What is the problem with \relative? (Was: Do we really offer the future?)

2015-05-05 Thread Steve Lacy
+1 to Keith's idea.

In fact, I remember first learning about \relative and being *amazed* that
it didn't work as described.

I'm mostly transcribing/re-engraving for solo violin, and most pieces stay
within a small 2-octave range.  The \relative c'''{ ...} syntax was exactly
what I wanted.

Steve

On Mon, May 4, 2015 at 7:57 PM, Keith OHara k-ohara5...@oco.net wrote:

 Federico Bruni fedelogy at gmail.com writes:

  2015-04-23 9:21 GMT+02:00 Martin Tarenskeen m.tarenskeen at zonnet.nl
 :
 
  I often use LilyPond to quickly enter a very simple tune or small
 pianosheet needing just a simple texteditor (Vim). I use \relative all the
 time. c g c e g is soo much faster and easier than c''' g'' c''' e''' g'''
 g'''.
  And personally I find lilypond code in \relative mode easier to read.
  I agree that for complex scores with much music in variables \relative
 mode
 can have annoying side-effects.
 
  I agree: relative mode is much easier to enter.

 What if we compare relative mode to absolute mode with repeated 's removed?

 Is
   \relative c''' { c g c e g }
 easier than
   \transpose c c''' { c g, c e g}
 ?

 I find it easier to remember that a note is below the middle octave in
 the range of an instrument, than to remember whether the previous note was
 more than three scale-steps away.

 We can easily define a shorter way to express the transposition by octaves
   \absolute c''' { c g, c e g }
 and it is not too hard to change the 460 examples in the manual that have
 an implicit \relative c' {} or relative c'' {} to copy/paste-able music.


 ___
 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: trill spanner

2015-05-05 Thread Pierre Perol-Schneider
Or a more elegant one:

\version 2.18.2

\relative {
  c'
  -\tweak style #'trill
  \startTextSpan
  d e f
  \stopTextSpan
}

Cheers,
Pierre

2015-05-05 8:52 GMT+02:00 Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com:

 Hi Craig,

 Try:

 \version 2.18.2

 \relative {
   c'
   -\tweak bound-details.left.text \markup\null
   \startTrillSpan
   d e f
   \stopTrillSpan
 }

 Cheers,
 Pierre

 2015-05-05 7:19 GMT+02:00 Craig Dabelstein craig.dabelst...@gmail.com:

 Dear Lilyponders,

 Could anyone tell me how to produce a trill spanner without the tr
 symbol at the beginning?

 I'm trying to a produce a wavy trill line above a bar of music, but
 without the tr symbol at the start.

 Craig


   *Craig Dabelstein*
  e:craig.dabelst...@gmail.com
  http://www.facebook.com/craig.dabelstein
 http://au.linkedin.com/pub/craig-dabelstein/b2/5b8/389/en

 ___
 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: spanned text like Retenu...

2015-05-05 Thread Venus' Wink
Thanks of Mr. Perol-Schneider,
I've found the way to make it bold style:

{
\override TextSpanner.bound-details.left.text = \markup{\bold Retenu}
\startTextSpan ... \stopTextSpan
}

but not yet
- how to cancel italic style,
- how to expand it to bar.

Thanks
Venus' Wink

 -Original Message-
 From: venuswi...@inbox.com
 Sent: Mon, 4 May 2015 20:30:49 -0800
 To: lilypond-user@gnu.org
 Subject: spanned text like Retenu...
 
 Hi,
 
 How can I write spanned bold, not italic text
 expanded to a right end of a measure
 such as Retenu... in the attachment?
 
 thanks
 Venus' Wink
 
 
 Share photos  screenshots in seconds...
 TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if1
 Works in all emails, instant messengers, blogs, forums and social
 networks.


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth



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


Re: trill spanner

2015-05-05 Thread Pierre Perol-Schneider
Hi Craig,

Try:

\version 2.18.2

\relative {
  c'
  -\tweak bound-details.left.text \markup\null
  \startTrillSpan
  d e f
  \stopTrillSpan
}

Cheers,
Pierre

2015-05-05 7:19 GMT+02:00 Craig Dabelstein craig.dabelst...@gmail.com:

 Dear Lilyponders,

 Could anyone tell me how to produce a trill spanner without the tr
 symbol at the beginning?

 I'm trying to a produce a wavy trill line above a bar of music, but
 without the tr symbol at the start.

 Craig


   *Craig Dabelstein*
  e:craig.dabelst...@gmail.com
  http://www.facebook.com/craig.dabelstein
 http://au.linkedin.com/pub/craig-dabelstein/b2/5b8/389/en

 ___
 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: spanned text like Retenu...

2015-05-05 Thread Pierre Perol-Schneider
Hi Venus' Wink,

Try :

\version 2.18.2

\relative {
\once \override TextSpanner.bound-details.left.text = \markup \bold
Retenu
\once \override TextSpanner.to-barline = ##t
c'4
%% optional:
%-\tweak bound-details.left.text \markup\normal-text\bold Retenu
%-\tweak to-barline ##t
\startTextSpan  d e f g a b c d
\stopTextSpan
}

See also:
- http://lilypond.org/doc/v2.18/Documentation/notation/spanners
-

Cheers,
Pierre

PS. I totally missed your post and cannot see any attachement.


2015-05-05 9:22 GMT+02:00 Venus' Wink venuswi...@inbox.com:

 Thanks of Mr. Perol-Schneider,
 I've found the way to make it bold style:

 {
 \override TextSpanner.bound-details.left.text = \markup{\bold Retenu}
 \startTextSpan ... \stopTextSpan
 }

 but not yet
 - how to cancel italic style,
 - how to expand it to bar.

 Thanks
 Venus' Wink

  -Original Message-
  From: venuswi...@inbox.com
  Sent: Mon, 4 May 2015 20:30:49 -0800
  To: lilypond-user@gnu.org
  Subject: spanned text like Retenu...
 
  Hi,
 
  How can I write spanned bold, not italic text
  expanded to a right end of a measure
  such as Retenu... in the attachment?
 
  thanks
  Venus' Wink
 
  
  Share photos  screenshots in seconds...
  TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if1
  Works in all emails, instant messengers, blogs, forums and social
  networks.

 
 FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
 Check it out at http://www.inbox.com/earth



 ___
 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: trill spanner

2015-05-05 Thread Davide Liessi

Dear Pierre,

Il 05/05/15 09.01, Pierre Perol-Schneider ha scritto:

Or a more elegant one:

\version 2.18.2

\relative {
   c'
   -\tweak style #'trill
   \startTextSpan
   d e f
   \stopTextSpan
}


this might be more elegant than your first solution (matter of taste), 
but I would consider it incorrect input, since in this case LilyPond 
does not know that it is a trill (so e.g. articulate.ly or user scripts 
would not recognize it).
I would favour a more meaningful code, although maybe slightly less 
elegant, like your first solution.



2015-05-05 8:52 GMT+02:00 Pierre Perol-Schneider
\version 2.18.2

\relative {
   c'
   -\tweak bound-details.left.text \markup\null
   \startTrillSpan
   d e f
   \stopTrillSpan
}


Best wishes.
Davide

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


Re: spanned text like Retenu...

2015-05-05 Thread Pierre Perol-Schneider
Oops,  wrong copy/paste, so here  again:

\version 2.18.2

\relative {
\once \override TextSpanner.bound-details.left.text =
\markup\normal-text\bold Retenu
\once \override TextSpanner.to-barline = ##t
c'4
%% optional:
%-\tweak bound-details.left.text \markup\normal-text\bold Retenu
%-\tweak to-barline ##t
\startTextSpan  d e f g a b c d
\stopTextSpan
}

Cheers,
Pierre

2015-05-05 9:39 GMT+02:00 Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com:

 Hi Venus' Wink,

 Try :

 \version 2.18.2

 \relative {
 \once \override TextSpanner.bound-details.left.text = \markup \bold
 Retenu
 \once \override TextSpanner.to-barline = ##t
 c'4
 %% optional:
 %-\tweak bound-details.left.text \markup\normal-text\bold Retenu
 %-\tweak to-barline ##t
 \startTextSpan  d e f g a b c d
 \stopTextSpan
 }

 See also:
 - http://lilypond.org/doc/v2.18/Documentation/notation/spanners
 -

 Cheers,
 Pierre

 PS. I totally missed your post and cannot see any attachement.


 2015-05-05 9:22 GMT+02:00 Venus' Wink venuswi...@inbox.com:

 Thanks of Mr. Perol-Schneider,
 I've found the way to make it bold style:

 {
 \override TextSpanner.bound-details.left.text = \markup{\bold
 Retenu}
 \startTextSpan ... \stopTextSpan
 }

 but not yet
 - how to cancel italic style,
 - how to expand it to bar.

 Thanks
 Venus' Wink

  -Original Message-
  From: venuswi...@inbox.com
  Sent: Mon, 4 May 2015 20:30:49 -0800
  To: lilypond-user@gnu.org
  Subject: spanned text like Retenu...
 
  Hi,
 
  How can I write spanned bold, not italic text
  expanded to a right end of a measure
  such as Retenu... in the attachment?
 
  thanks
  Venus' Wink
 
  
  Share photos  screenshots in seconds...
  TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if1
  Works in all emails, instant messengers, blogs, forums and social
  networks.

 
 FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
 Check it out at http://www.inbox.com/earth



 ___
 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: my favorite bug :-)

2015-05-05 Thread ArnoldTheresius
Carl Sorensen-3 wrote
 On 5/4/15 1:35 AM, ArnoldTheresius lt;

 Arnold.Wendl@

 gt; wrote:
 
2. the PS file, because it's used for another postprocessing: I generate a
booklet layout PDF from it (this PDF uses the double sheet size, e.g. A3)
 
 How do you do this?  This is something I'm very interested in, but I've
 been doing it from the generated PDF, rather than from the PS.  This has
 the effect of messing up the margins a bit, so I'd like to try the PS to
 PDF conversion.
 
 Thanks,
 
 Carl
 
 
 ___
 lilypond-user mailing list

 lilypond-user@

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

I did it by an own C program (which finally calls GS for the conversion
of my intermediate PS file into a PDF, too) - because I've done similar
things in the past and I did not have any other tool available.

Moreover, I did some checks on my computer. It did always compile
my lines.ly into lines.pdf - on commandline with 'file name only' and
with 'relative path into a subfolder'.

I'm currious, what's the command line lilypond tries to generate the
PDF? (You'll see it close to the end if you turn on the debugging
output).

ArnoldTheresius



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/my-favorite-bug-tp175778p176106.html
Sent from the User mailing list archive at Nabble.com.

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


Re: trill spanner

2015-05-05 Thread Craig Dabelstein
Thanks Pierre and Davide,

That will work fine.

Much appreciated.

Craig


On Tue, 5 May 2015 at 17:44 Davide Liessi davide.lie...@gmail.com wrote:

 Dear Pierre,

 Il 05/05/15 09.01, Pierre Perol-Schneider ha scritto:
  Or a more elegant one:
 
  \version 2.18.2
 
  \relative {
 c'
 -\tweak style #'trill
 \startTextSpan
 d e f
 \stopTextSpan
  }

 this might be more elegant than your first solution (matter of taste),
 but I would consider it incorrect input, since in this case LilyPond
 does not know that it is a trill (so e.g. articulate.ly or user scripts
 would not recognize it).
 I would favour a more meaningful code, although maybe slightly less
 elegant, like your first solution.

  2015-05-05 8:52 GMT+02:00 Pierre Perol-Schneider
  \version 2.18.2
 
  \relative {
 c'
 -\tweak bound-details.left.text \markup\null
 \startTrillSpan
 d e f
 \stopTrillSpan
  }

 Best wishes.
 Davide

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


Cross-Staff Kneed Beams; Nested Voices

2015-05-05 Thread Sam Bivens
Hi guys,

Two questions that I just can't figure out for some reason:

First, I can't manage to create kneed beams for the right hand
cross-staff eighth notes in the below example. I've attempted to invoke
\override Beam.auto-knee-gap, but to no avail (so it's not included
here). Here's the code, and I've attached an image:

\version 2.18.2

\language english


global = {

\key e \major

\time 3/4

}


up = \relative c' {

\global



{

bs4 cs a |

}

\\

{

gs8 \change Staff = down ds \change Staff = up a'

\change Staff = down ds, \change Staff = upfs

\change Staff = down ds |

}



}


down = \relative c, {

\global

\clef bass



{

c4\rest b4. s8 |

}

\\

{

s4 b8. cs'16 b8 s |

}



}


\score {

\new PianoStaff 

\set PianoStaff.instrumentName = #

\new Staff = up \up

\new Staff = down \down



}



Second, is it possible to create nested multiple voices? What I mean is
to insert multiple voices within a single voice of a larger multi-voice
context. I need to create a third voice for one measure of a piece and
I'm wondering how to do this without creating a third voice full of s
for the entire work.

I hope my questions aren't too elementary--I'm relatively new to this!

Thanks,

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


Re: Cross-Staff Kneed Beams; Nested Voices

2015-05-05 Thread Simon Albrecht

Hi Sam,

welcome to the list!
Some notes:
– For future posts, it is useful if you include code examples as an 
attachment, so they won’t get messed up somewhere on the way. That makes 
it easier for others to help.
– On your first question: The problems cease to appear if you use the 
commands \voiceOne, \voiceTwo etc., see 
http://lilypond.org/doc/v2.18/Documentation/learning/explicitly-instantiating-voices 
and, if necessary, the Notation Reference section linked from there. 
With this, Lily will complain about not finding a good beam position, 
but the output is fine, so you can ignore the warning (this is normal). 
auto-knee-gap is used without staff changes.
– http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices 
also explains temporary voices, which will answer your second question.
– Don’t worry about asking elementary questions, that’s what this list 
is for. We’ll be happy to ease your getting a grip with Lilypond.
– And, for the basics it is virtually essential to read the Learning 
Manual. It is very helpful and will answer many basic questions you’d 
else have to post on this list. Also it introduces into using the other 
documentation available.


Happy Ponding and HTH,
Simon

Am 05.05.2015 um 22:26 schrieb Sam Bivens:

Hi guys,

Two questions that I just can't figure out for some reason:

First, I can't manage to create kneed beams for the right hand 
cross-staff eighth notes in the below example. I've attempted to 
invoke \override Beam.auto-knee-gap, but to no avail (so it's not 
included here). Here's the code, and I've attached an image:


\version 2.18.2

\language english


global = {

\key e \major

\time 3/4

}


up = \relative c' {

\global



{

bs4 cs a |

}

\\

{

gs8 \change Staff = down ds \change Staff = up a'

\change Staff = down ds, \change Staff = upfs

\change Staff = down ds |

}



}


down = \relative c, {

\global

\clef bass



{

c4\rest b4. s8 |

}

\\

{

s4 b8. cs'16 b8 s |

}



}


\score {

\new PianoStaff 

\set PianoStaff.instrumentName = #

\new Staff = up \up

\new Staff = down \down



}



Second, is it possible to create nested multiple voices? What I mean 
is to insert multiple voices within a single voice of a larger 
multi-voice context. I need to create a third voice for one measure of 
a piece and I'm wondering how to do this without creating a third 
voice full of s for the entire work.


I hope my questions aren't too elementary--I'm relatively new to this!

Thanks,

--Sam


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


\version 2.18.2
\language english

global = {
  \key e \major
  \time 3/4
}

downOne = { \change Staff = down \voiceOne }
upTwo = { \change Staff = up \voiceTwo }

up = \relative c' {
  \global
  
{
  bs4 cs a |
}
\\
{
  gs8 \downOne ds \upTwo a'
  \downOne ds, \upTwo fs
  \downOne ds |
}
  
}


down = \relative c, {
  \global
  \clef bass
  
{
  \voiceOne c4\rest b4. s8 |
}
\\
{
  \voiceTwo s4 b8. cs'16 b8 s |
}
  
}


\score {
  \new PianoStaff 
\set PianoStaff.instrumentName = #
\new Staff = up \up
\new Staff = down \down
  
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cross-Staff Kneed Beams; Nested Voices

2015-05-05 Thread Carl Sorensen


On 5/5/15 1:26 PM, Sam Bivens sambiv...@gmail.com wrote:
Second, is it possible to create nested multiple voices? What I
mean is to insert multiple voices within a single voice of a larger
multi-voice context. I need to create a third voice for one measure
of a piece and I'm wondering how to do this without creating a third
voice full of s for the entire work.
\new Staff 
\new Voice {\voiceOne c''4  {d'' e'' f''} \new Voice {\voiceThree f''4
g'' a''} }
\new Voice {\voiceTwo a'4 b' c'' d''}




HTH,

Carl



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


Re: Can't compile after upgrade to 2.19.19

2015-05-05 Thread Stan Mulder
Keith OHara k-ohara5a5a at oco.net writes:

 At version 2.19.16, the name changed from 'eflat' to 'e-flat'
 The convert-ly program will change existing files for you.
 I first saw it suggested here
 https://code.google.com/p/lilypond/issues/detail?id=4076#c20

convert-ly will change something like gsharp to g-sharp, but it won't change
gsharp4 to g-sharp4. Anything with a number after it doesn't convert
properly. So I've had to do all those manually (or with search and replace).


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


Re: Cross-Staff Kneed Beams; Nested Voices

2015-05-05 Thread Simon Albrecht

And I forgot:

Am 05.05.2015 um 22:26 schrieb Sam Bivens:
Second, is it possible to create nested multiple voices? What I mean 
is to insert multiple voices within a single voice of a larger 
multi-voice context.
No, a voice cannot contain another voice. But, as referenced, you can 
create another voice from within the current one.


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


Re: spanned text like Retenu...

2015-05-05 Thread Venus' Wink
Hi Pierre,

Both of your ways bring me to my purpose.
Thanks a lot.

Venus' Wink

-Original Message-
From: pierre.schneider.pa...@gmail.com
Sent: Tue, 5 May 2015 09:48:14 +0200
To: venuswi...@inbox.com
Subject: Re: spanned text like Retenu...

Oops,  wrong copy/paste, so here  again:

\version 2.18.2

\relative {
    \once \override TextSpanner.bound-details.left.text = 
\markup\normal-text\bold Retenu
    \once \override TextSpanner.to-barline = ##t
    c'4
    %% optional:
    %-\tweak bound-details.left.text \markup\normal-text\bold Retenu
    %-\tweak to-barline ##t
    \startTextSpan  d e f g a b c d
    \stopTextSpan
}

Cheers,

Pierre

2015-05-05 9:39 GMT+02:00 Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com:

Hi Venus' Wink,

Try :

\version 2.18.2

\relative {
    \once \override TextSpanner.bound-details.left.text = \markup \bold Retenu
    \once \override TextSpanner.to-barline = ##t
    c'4
    %% optional:
    %-\tweak bound-details.left.text \markup\normal-text\bold Retenu
    %-\tweak to-barline ##t
    \startTextSpan  d e f g a b c d
    \stopTextSpan
}

See also: 
- http://lilypond.org/doc/v2.18/Documentation/notation/spanners 
[http://lilypond.org/doc/v2.18/Documentation/notation/spanners]
- 

Cheers,

Pierre

PS. I totally missed your post and cannot see any attachement.

2015-05-05 9:22 GMT+02:00 Venus' Wink venuswi...@inbox.com:

Thanks of Mr. Perol-Schneider,
 I've found the way to make it bold style:

 {
     \override TextSpanner.bound-details.left.text = \markup{\bold Retenu}
     \startTextSpan ... \stopTextSpan
 }

 but not yet
 - how to cancel italic style,
 - how to expand it to bar.

 Thanks
 Venus' Wink

  -Original Message-
  From: venuswi...@inbox.com
  Sent: Mon, 4 May 2015 20:30:49 -0800
  To: lilypond-user@gnu.org
  Subject: spanned text like Retenu...
 
  Hi,
 
  How can I write spanned bold, not italic text
  expanded to a right end of a measure
  such as Retenu... in the attachment?
 
  thanks
  Venus' Wink
 
  
  Share photos  screenshots in seconds...
  TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if1 
  [http://www.imtoolpack.com/default.aspx?rc=if1]
  Works in all emails, instant messengers, blogs, forums and social
  networks.

 
 FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
 Check it out at http://www.inbox.com/earth [http://www.inbox.com/earth]

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


FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks  orcas on your 
desktop!
Check it out at http://www.inbox.com/marineaquarium



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


Re: Upper and Lower slurs in \partCombine

2015-05-05 Thread Phil Holmes
Just reading the section on slurs takes you immediately to the snippet on 
double slurs, so it's not really that hard to see.

--
Phil Holmes


  - Original Message - 
  From: David B. Stocker 
  To: Simon Albrecht ; lilypond-user@gnu.org 
  Sent: Monday, May 04, 2015 6:15 PM
  Subject: Re: Upper and Lower slurs in \partCombine


  Thanks. Both this and Phil's suggestion are what I need.

  For what it's worth, the 2.18 Notation Manual Index doesn't reference 
doubleSlur directly either under doubleSlur or Slurs, although when you 
look up Slur, simultaneous phrasing, it's in that general area if you scroll 
up on the resulting page, which I hadn't noticed before.

  Best regards,

  David


  On 05/04/2015 12:52 PM, Simon Albrecht wrote:

You might check out doubleSlurs in the docs.

HTH, Simon


Am 04.05.2015 um 17:49 schrieb David B. Stocker:

  Hello,


  The 2.18 manuals seem to indicate that simultaneous slurs are a no-no, 
but I thought I'd check here to see if anyone knows of a trick I haven't 
thought of.

  In my example, I would like to have a slur below the staff starting and 
ending in the same place as the slur above the staff. PrhasingSlur doesn't 
produce the desired result. I've also tried making a slur of a different length 
- the 1st two notes only - and then using \shape to lengthen the slur and make 
the arc look more natural.

  This method works, but it is cumbersome.

  Is there an easy way to do this?

  David


  %example.ly



  \version 2.18.2



  partOne = \relative c'' { a4( bes c2 ) }



  partTwo = \relative c' { f4( g a2 ) }



  \score {

  \partcombine \partOne \partTwo

  }






   

___
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
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: spanned text like Retenu...

2015-05-05 Thread Venus' Wink
I resend my attachment.
But I think Mr. Perol-Schneider has understood my intent.

The attachment is about 5kBytes, so it doesn't seem oversize.
Probably, something unlucky occured.
But it was lucky that very similar question was posted
at almost same time.

Thanks
Venus' Wink

 -Original Message-
 From: b.m.bar...@btinternet.com
 Sent: Tue, 05 May 2015 08:55:02 +0100
 To: pierre.schneider.pa...@gmail.com, venuswi...@inbox.com
 Subject: Re: spanned text like Retenu...
 
 At 09:39 05/05/2015 +0200, Pierre Perol-Schneider wrote:
 PS. I totally missed your post and cannot see any attachment.
 
 Neither did anyone else: it's not in the archives, so was evidently
 never distributed. It may be that the attached file was oversize. Or
 it may just have got lost - the way some of my messages do!
 
 Brian Barker - privately


FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks  orcas on your 
desktop!
Check it out at http://www.inbox.com/marineaquarium
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Moving Copyright Notice

2015-05-05 Thread Pierre Perol-Schneider
Hi Simon,

simply put oddFooterMarkup defs in a 'paper' bloc:

\version 2.18

\paper {
  oddFooterMarkup = \markup {
\column {
  \fill-line {
%% Copyright header field only on first page in each bookpart.
\on-the-fly #part-first-page \fromproperty #'header:copyright
\null
  }
  \fill-line {
%% Tagline header field only on last page in the book.
\on-the-fly #last-page \fromproperty #'header:tagline
  }
}
  }
}

\header {
  copyright = test copyright
}

\markup \null

Cheers,
Pierre

2015-05-05 11:49 GMT+02:00 Simon Albrecht simon.albre...@mail.de:

 Hello everybody,

 Am 05.05.2015 um 02:02 schrieb Adam Michael Wood:

 I would like the copyright notice to appear just below the last system of
 music, flush left.
 (See for example,  the copyright notices under hymns in almost every
 hymnal.)

 Is there a way to move the copyright notice this way?

 Yes, see 
 http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers
 .
 I created an example file (see attachment), which unfortunately doesn’t
 work – I don’t know why.
 Can anybody say why the #part-first-page procedure (defined in ly/
 titling-init.ly) isn’t recognised here?

 HTH, Simon

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


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


Re: Moving Copyright Notice

2015-05-05 Thread Simon Albrecht

Hello everybody,

Am 05.05.2015 um 02:02 schrieb Adam Michael Wood:

I would like the copyright notice to appear just below the last system of
music, flush left.
(See for example,  the copyright notices under hymns in almost every
hymnal.)

Is there a way to move the copyright notice this way?
Yes, see 
http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers.
I created an example file (see attachment), which unfortunately doesn’t 
work – I don’t know why.
Can anybody say why the #part-first-page procedure (defined in 
ly/titling-init.ly) isn’t recognised here?


HTH, Simon
\version 2.18

oddFooterMarkup = \markup {
  \column {
\fill-line {
  %% Copyright header field only on first page in each bookpart.
  \on-the-fly #part-first-page \fromproperty #'header:copyright
  \null
}
\fill-line {
  %% Tagline header field only on last page in the book.
  \on-the-fly #last-page \fromproperty #'header:tagline
}
  }
}

\header {
  copyright = test copyright
}

\markup \null___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Hi,

I have a weird problem with repeats that I just can't figure out. I've read the 
docs and tried different things for hours now, to no avail. Here's my minimal 
example:

%%

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { f4 f f \bar |. } }
}

%%

Can anyone tell me why I get that stray bar line after the first note in the 
second group of the \alternative expression?

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


Re: Lyric tie inside word?

2015-05-05 Thread Simon Albrecht

Hello Tobias,

I’m not sure what you tried previously, but this should do what you want:

\markup \override #'(word-space . 0) \tied-lyric #kö~niglichen

See http://lilypond.org/doc/v2.18/Documentation/notation/music
Admittedly, it’s not as elegant as the one in the EG :-) – that would 
require a manually tweaked version – but it’s clear.


Yours, Simon

Am 05.05.2015 um 23:23 schrieb Tobias Braun:

Hi,

How can I achieve a lyric tie inside a word, as seen in the second verse of the 
attached music?

Putting a '~' inside the word creates a lyric tie, but also inserts a space, 
splitting my word into two words.

Moreover, how can I achieve this in a \markup section below the actual score? 
Down there, it is far more useful than in the lyrics directly below the notes. 
But in the \markup section, I couldn't even get the lyric tie with a space in 
it to work. I suppose I'd somehow have to make the \markup section into a 
\lyricmode one? That didn't work either, unfortunately.

Thanks,
Tobias



___
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: Problem with repeats: stray bar line

2015-05-05 Thread Mark Stephen Mrotek
Tobias:

Does this work?

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { 
  \set Timing.measurePosition = #(ly:make-moment 1/4)
  f4 f f } } }

Mark

-Original Message-
From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Tobias Braun
Sent: Tuesday, May 05, 2015 2:07 PM
To: lilypond-user@gnu.org Group
Subject: Problem with repeats: stray bar line

Hi,

I have a weird problem with repeats that I just can't figure out. I've read
the docs and tried different things for hours now, to no avail. Here's my
minimal example:

%%

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { f4 f f \bar |. } } }

%%

Can anyone tell me why I get that stray bar line after the first note in the
second group of the \alternative expression?

Thanks,
Tobias


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


Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
Hello Simon,

Thanks a lot! Marvelous, I'd never have been able to come up with this.

I'm just not quite sure yet how to integrate it with the rest of my lyrics. At 
the moment, it looks something like this:

\markup {
  \fill-line {
\hspace #0.1
 \column {
\vspace #0.5
  \line { \bold 2.
\column {
  Er ging aus der Kammer sein, / dem königlichen Saal so rein, /
  Gott von Art und Mensch, ...
}
  }

Where exactly do I put the code you posted below? It's working as a standalone 
line in my LilyPond file, but I couldn't figure out how to integrate it into 
the code above. (Neither did I get it to work inside a \lyricmode expression 
for use in lyrics directly below the notes.)

Tobias


Am 05.05.2015 um 23:35 schrieb Simon Albrecht simon.albre...@mail.de:

 Hello Tobias,
 
 I’m not sure what you tried previously, but this should do what you want:
 
 \markup \override #'(word-space . 0) \tied-lyric #kö~niglichen
 
 See http://lilypond.org/doc/v2.18/Documentation/notation/music
 Admittedly, it’s not as elegant as the one in the EG :-) – that would require 
 a manually tweaked version – but it’s clear.
 
 Yours, Simon
 
 Am 05.05.2015 um 23:23 schrieb Tobias Braun:
 Hi,
 
 How can I achieve a lyric tie inside a word, as seen in the second verse of 
 the attached music?
 
 Putting a '~' inside the word creates a lyric tie, but also inserts a space, 
 splitting my word into two words.
 
 Moreover, how can I achieve this in a \markup section below the actual 
 score? Down there, it is far more useful than in the lyrics directly below 
 the notes. But in the \markup section, I couldn't even get the lyric tie 
 with a space in it to work. I suppose I'd somehow have to make the \markup 
 section into a \lyricmode one? That didn't work either, unfortunately.
 
 Thanks,
 Tobias
 
 
 
 ___
 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: Problem with repeats: stray bar line

2015-05-05 Thread Steven Weber
Because you're in 4/4 and didn't tell Lilypond that the alternative bars
were in 3/4.  See
http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats for
details on how to fix this.

--Steven

-Original Message-
From: lilypond-user-bounces+panteck=hotmail@gnu.org
[mailto:lilypond-user-bounces+panteck=hotmail@gnu.org] On Behalf Of
Tobias Braun
Sent: Tuesday, May 05, 2015 2:07 PM
To: lilypond-user@gnu.org Group
Subject: Problem with repeats: stray bar line

Hi,

I have a weird problem with repeats that I just can't figure out. I've read
the docs and tried different things for hours now, to no avail. Here's my
minimal example:

%%

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { f4 f f \bar |. } } }

%%

Can anyone tell me why I get that stray bar line after the first note in the
second group of the \alternative expression?

Thanks,
Tobias

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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Hi Steven, thanks for the reply.

But I'm not really in 3/4 in those measures, am I? I mean, together with the 
partial measure at the very beginning, the alternative measures add up to 4/4 
again, right? Unfolding all the repeats should give a proper 4/4 piece where 
the partial measure at the beginning and the so-called 3/4 measure at the end 
add up to 4/4 again. So this is kind of a limitation of LilyPond's \repeat 
expression, I guess?

I suppose you were referring to the \set Timing.measureLength bit in the 
documentation. I've read that, but I wasn't sure if the criteria described 
there applied to my exact situation and I thus didn't understand how to 
actually apply that workaround to my minimal example.

(Btw: Is there a way to tell the documentation to stick to English without 
having to switch my whole system to English or something? I keep clicking 
English at the bottom of the page, but when navigating around, it will always 
revert to German (my system language) sooner or later. Very annoying when 
working with an English markup language that is LilyPond, posting to an English 
mailing list, and googling for solutions in English.)

Tobias


Am 05.05.2015 um 23:23 schrieb Steven Weber pant...@hotmail.com:

 Because you're in 4/4 and didn't tell Lilypond that the alternative bars
 were in 3/4.  See
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats for
 details on how to fix this.
 
 --Steven
 
 -Original Message-
 From: lilypond-user-bounces+panteck=hotmail@gnu.org
 [mailto:lilypond-user-bounces+panteck=hotmail@gnu.org] On Behalf Of
 Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've read
 the docs and tried different things for hours now, to no avail. Here's my
 minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note in the
 second group of the \alternative expression?
 
 Thanks,
 Tobias


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Yes, it does, thank you!

But the docs tell me to use measureLength in some way. Is using 
measurePosition, as you suggested, just another way of doing the same thing? Or 
is my situation that much different from the docs so that a different property 
has to be modified?

Tobias


Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:

 Tobias:
 
 Does this work?
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { 
 \set Timing.measurePosition = #(ly:make-moment 1/4)
 f4 f f } } }
 
 Mark
 
 -Original Message-
 From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
 [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
 Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've read
 the docs and tried different things for hours now, to no avail. Here's my
 minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note in the
 second group of the \alternative expression?
 
 Thanks,
 Tobias
 


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


Re: Moving Copyright Notice

2015-05-05 Thread Michael Gerdau
Hi list,

in the context of this thread I have a possibly stupid question:
From reading the documentation under
http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers
I thought the proper syntax would be
\on-the-fly \part-first-page \fromproperty #'header:copyright
However the OP's version
\on-the-fly #part-first-page \fromproperty #'header:copyright
works likewise.

Are '\' and '#' exchangeable or why do both versions seem to work ?

Best wishes,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Jianpu Notation

2015-05-05 Thread MING TSANG
Paul  David :
I test the jianpu10a.ly with the following code and notice that a tie note is 
not working properly. 
%snippet begin .\version 2.18.2\language english
global = {  \key f\major}\include jianpu10a.ly
notes = { c'1 f'2( g') g'2~g'2 e'2. r4 } \new JianpuStaff \jianpuMusic { 
\global \notes }  \new Staff { \global \notes }%snippet end .
Immanuel,Ming. 

 



 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
   

 
On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
And, I've attached some real world examples from Baidu, which displays key 
B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly which fixes 
this.

Ok, thanks for this.
-Paul

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