MarcM | 5 Sep 05:17 2015
Picon

\breathe too close to note


The \breathe sign collides with the note. This seems like a bug.
I've read on a post that offset does not have any effect on \breathe any
workaround? 

\version "2.19.26"
\language "english"

  \relative c' { f2 g a bf \breathe c d e f \breathe}

  % breathe is too close

  \relative c' { f4 g a bf \breathe c d e f \breathe}

  % breathe is almost invisible

  \relative c' { f8 g a bf \breathe c d e f \breathe}

--
View this message in context: http://lilypond.1069038.n5.nabble.com/breathe-too-close-to-note-tp180704.html
Sent from the User mailing list archive at Nabble.com.
Timothy Lanfear | 5 Sep 00:02 2015

inherit-acceptability

I like, and am using, the new inherit-acceptability feature. Without 
thinking too much about what I was doing, I put inherit-acceptability 
inside the definition of a new context, instead of following as shown in 
the documentation.

\layout {
   \context {
      \StaffGroup
      \name "RecorderConsort"
      \alias StaffGroup
      \inherit-acceptability RecorderConsort StaffGroup
   }
}

It works fine. Would inherit-acceptability ever be used other than right 
away when defining a new context? And if not, the first argument is 
redundant; perhaps it can be inferred?

--

-- 
Timothy Lanfear, Bristol, UK.
David O'Donnell | 4 Sep 20:40 2015
Picon

error: need \paper for paper block

Hello,

I am trying to create two scores from the same .ly file. The first score will be on custom 6x9 paper as defined by "hymnstyle.ly". The second score will be cropped by invoking lilypond-book and cropping the paper as in "hymnmelodystyle.ly". However I keep getting the error message "error: need \paper for paper block" referring to the style sheets. I have tried putting a blank paper block at the top level of the main file, but that doesn't seem to help. Any thoughts?

____

#(set-global-staff-size 16)
\paper {
#(set-paper-size "ustrade") 
}

%%%%%%%%%%%%%%

  \layout {
indent = 0.0\cm
ragged-right = ##f
    \context {
      \Score
      \remove "Bar_number_engraver"
    }
\context {
\Staff
\remove "Time_signature_engraver"
}
    \context {
      \Lyrics
      \override LyricSpace #'minimum-distance = #0.6
      \override LyricText #'font-size = #0.8
      \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
    }
  }
_____

Hymnmelodystyle.ly
______
#(set-global-staff-size 14)

\paper {
  indent=0\mm
  line-width=5.0\in
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
}

%%%%%%%%%%%
%%%%%%%%%%%
%%%%%%%%%%%

\layout {
  indent = 0.0\cm
  ragged-right = ##f
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
  \context {
    \Staff
    \remove "Time_signature_engraver"
  }
  \context {
    \Lyrics
    \override LyricText #'font-size = #0.8
  }
}

_______

Hymnfile.ly:
______

\version "2.18.0-1"
\include "english.ly"

%music and text are here

\book {
 \include "hymnstyle.ly"
     \header {}
  \score {
    \midi {}
    \layout {}
  }
}


#(define output-suffix "Melody")
\book {
  \include "hymnmelodystyle.ly"
    \paper {}
  \score {
    \layout {}
  }
}
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Ole Schmidt | 4 Sep 18:21 2015
Picon
Picon

how to define rehersal marks globally?

Hi,

When I have a score, how can I define rehersal marks globally (instead of in every voice) so that they appear
in every other voice, when I print it out  (like below)?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
global= {
  \time 4/4
  \key c \major
}

violinOne = \new Voice \relative c'' {
  \set Staff.instrumentName = #"Violin 1 "
\mark \default	
  c2 d \mark \default
  e1

  \bar "|."
}

violinTwo = \new Voice \relative c'' {
  \set Staff.instrumentName = #"Violin 2 "

  g2 f
  e1

  \bar "|."
}

viola = \new Voice \relative c' {
  \set Staff.instrumentName = #"Viola "
  \clef alto

  e2 d
  c1

  \bar "|."
}

cello = \new Voice \relative c' {
  \set Staff.instrumentName = #"Cello "
  \clef bass

  c2 b
  a1

  \bar "|."
}

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

thanks,  ole
Martin Lejeune | 4 Sep 18:05 2015
Picon

Extracting voices from score with rehearsalnumbers,repeats, etc.?

Hi List,
I try to extract single voices from my written score.
Copying all related informations like rehearsal letters (boxed barnumbers), repeats, etc.  is very boring. 
All these informations are written into one part (bass) and of course all other voices are without this marks.

Is there any syntax to define it into the \global part of the score?
I tried definition for boxed barnumbers, without success.
As an example I modified the jazzband template from the manual.
Thank you in advance!!

Best regards 
Martin

PS:


\version "2.18.2"
#(set-default-paper-size "a4" ' landscape)
\header {
  title = "New Music"
  subtitle = "template"
  composer = "xxx"
  meter = "uptempo"
  piece = "Swing"
  tagline = \markup {
    \column {
      "© 8/2015"
    }
  }
}

%#(set-global-staff-size 16)
\include "nederlands.ly"

%%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%

sl = {
  \override NoteHead.style = #'slash
  \hide Stem
}
nsl = {
  \revert NoteHead.style
  \undo \hide Stem
}
crOn = \override NoteHead.style = #'cross
crOff = \revert NoteHead.style


%% insert chord name style stuff here.

jazzChords = { }

%%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%

global = { \time 4/4\tempo 4 = 220 }


Key = { \key c\major }

% ############ Horns ############


% ------ Alto Saxophone ------
alto = \transpose c a \relative c' {
  \Key
 \repeat unfold 8 {c1} c1
}
altoHarmony = \transpose c' a {
  \jazzChords
}
altoSax = {
  \global
  \set Staff.instrumentName = #"Alto Sax"
  \set Staff.shortInstrumentName = #"as"
  
  \clef treble
  <<
    \alto
  >>
}


% ------ Trombone ------
tbone = \relative c {
  \Key
 
 \repeat unfold 8 {c1} c1

  
}
tboneHarmony = \chordmode {
  \jazzChords
   
}
trombone = {
  \global
  \set Staff.instrumentName = #"Trombone"
  \set Staff.shortInstrumentName = #"trb"
  \clef bass
  <<
    \tbone
  >>
}

% ############ Rhythm Section #############

% ------ Guitar ------
gtr = \relative c'' {
  \Key 
 \repeat unfold 8 {c1} c1

}

 

gtrHarmony = \chordmode {
  \jazzChords
 %1
   \mark \markup \box\bold  "1"
 c1:6 | 
   
}
guitar = {
  \global
  \set Staff.instrumentName = #"Guitar"
  \set Staff.shortInstrumentName = #"g"
  \clef treble
  <<
    \gtr
  >>
}

%% ------ Piano ------
rhUpper = \relative c''
{
  \voiceOne 
  \Key
 \repeat unfold 8 {c1} c1
}

rhLower = \relative c' {
  \voiceTwo
  \Key
 \repeat unfold 8 {c1} c1
}

lhUpper = \relative c' {
  \voiceOne 
  \Key
  \repeat unfold 8 {c1} c1
}
lhLower = \relative c {
  \voiceTwo
  \Key
 \repeat unfold 8 {c1} c1
   
}

PianoRH = {
  \clef treble
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
    \new Voice = "one" \rhUpper
    \new Voice = "two" \rhLower
  >>
}
PianoLH = {
  \clef bass
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
    \new Voice = "one" \lhUpper
    \new Voice = "two" \lhLower
  >>
}

piano = {
  <<
    \set PianoStaff.instrumentName = #"Piano"

    \new Staff = "upper" \PianoRH 
    \new Staff = "lower" \PianoLH
     \set Staff.shortInstrumentName = #"p"
  >>
}

% ------ Bass Guitar ------
Bass = \relative c {
  \Key
\bar "[|:"  \repeat unfold 8 {c1} \bar ":|]"  \mark \markup \box\bold  "9" c1
  
}
bass = {
  \global
  \set Staff.instrumentName = #"Bass"
   \set Staff.shortInstrumentName = #"b"
  \clef bass
  <<
    \Bass
  >>
}

% ------ Drums ------
up = \drummode {
  \voiceOne
 hh4 <hh sn> 
  hh4 <hh sn>  
}
down = \drummode {
  \voiceTwo
  bd4 s8 s4 bd4
s8 s4.

  
}

drumContents = {
  \global
  <<
    \set DrumStaff.instrumentName = #"Drums"
    \new DrumVoice \up
    \new DrumVoice \down
  >>
}

%%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%

\score {
  
  <<
    \new StaffGroup = "horns" <<
     
        \new ChordNames = "altochords" \altoHarmony
      \new Staff = "altosax" \altoSax
       \new ChordNames = "tbonechords" \tboneHarmony
      \new Staff = "trombone" \trombone
    >>

    \new StaffGroup = "rhythm" <<
      \new ChordNames = "gtrchords" \gtrHarmony
      \new Staff = "guitar" \guitar
      \new PianoStaff = "piano" \piano
      
      \new ChordNames = "gtrchords" \gtrHarmony
      \new Staff = "bass" \bass
      \new DrumStaff \drumContents
    >>
  >>
  \layout {

    \context { \Staff \RemoveEmptyStaves }
   
    \context {
      \Score
       \remove "Bar_number_engraver"
      \override BarNumber.padding = #3
      \override RehearsalMark.padding = #2
      skipBars = ##t
    }
  }
  \midi { }
}

Attachment (Jazz Sextett Template.ly): application/octet-stream, 6238 bytes

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Michael Gerdau | 4 Sep 15:23 2015
Picon

Move (arpeggio) tie - visibility of ties

Dear ponders,

I have an arpeggio which I'd like to engrave by adding ties as shown
in snippet http://lsr.di.unimi.it/LSR/Item?id=408

However one of the ties (connecting the dis) is almost invisible
Please see attached PDF. I've also attached the ly source.

What can I do to make it (more) visible ?

Kind regards,
Michael
--

-- 
 Michael Gerdau       email: mgd <at> qata.de
 GPG-keys available on request or at public keyserver
Attachment (arpeggiotie-display.pdf): application/pdf, 69 KiB
Attachment (arpeggiotie-display.ly): text/x-lilypond, 542 bytes
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
David Nalesnik | 4 Sep 00:52 2015
Picon

Fwd: Text centralized above a TextSpan

Sorry...didn't reply all..

---------- Forwarded message ----------
From: David Nalesnik <david.nalesnik <at> gmail.com>
Date: Thu, Sep 3, 2015 at 5:51 PM
Subject: Re: Text centralized above a TextSpan
To: Caio Giovaneti de Barros <caio.barros <at> gmail.com>


Hi Caio

On Thu, Sep 3, 2015 at 2:42 PM, Caio Giovaneti de Barros <caio.barros <at> gmail.com> wrote:
Hello David!

On 02-09-2015 10:19, David Nalesnik wrote:

Try this out:

http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00405.html


This looks ok, but I'm not sure it'll work form me. I need to tweak the Spanner a bit to centralize the line height vertically in relation to the left and right bounds

A simple thing to do would be to modify mrkp.  Something like this:
             (mrkp
                (lambda (x y)
                  #{
                    \markup
                    \override #`(line-width . ,(+ staff-space y))
                    \fill-line
                    \translate #'(0 . -0.5)
                    $x
                  #}))

You could of course calculate the \translate value, though this would be more involved.
 
and also use custom symbols for each bound.

It should be fairly straightforward to adapt the function to work with a list of markups rather than a string.

David 

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
robert edge | 3 Sep 04:40 2015
Picon

getting ties to NOT avoid accidentals

Let's say I have something like:

{
\clef bass
cis1~ cis!1~ cis!1
}

I want all the accidentals to appear and I do not want the tie to be moved
really far away like it is now.  I preferred a few versions ago when it
would go right through the accidental.

I realize this is arguably crude and will make lovers of fine page layout
cringe.  

Nonetheless, is it possible to rig Lilypond to behave this way?

thanks!
Caio Giovaneti de Barros | 2 Sep 14:41 2015
Picon

Text centralized above a TextSpan

Hi,

Is it possible to have text centralized above a TextSpan? I've already 
saw in the documentation text added in the middle of hairpins and of 
course there is a tuplet number or fraction in the middle of the tuplet 
bracket. But it seems that in Text Span this is not so easy to do.

Thanks!
Caio
Javier Ruiz-Alma | 2 Sep 10:18 2015

RE: Issue 4236

https://code.google.com/p/lilypond/issues/detail?id=4236

This also produces the unwanted "warning: omitting tuplet bracket with
neither left nor right bound":
\version "2.18.2"
\relative c''{
  \tupletSpan 4
  \tuplet 3/2 { c8 c c c c c c2.:8 }
}

Workaround:
\version "2.18.2"
\relative c''{
  \tupletSpan 4
  \tuplet 3/2 { c8 c c c c c }
  \tupletSpan \default
  \tuplet 3/2 { c2.:8 }
}

Workaround didn't work for whole measure rests, though.
	
Javier
Martin Lejeune | 1 Sep 22:59 2015
Picon

lilypond: merging rests in polyphonic staff

Hi Everybody,
here's a newbie question.
I tried to configure "merging automatically" of rests in polyphonic staffs (piano) with a snipped, which I found in the manual.
It doesn't work. 
What's the mistake, any idea?

Thanks very much!

Cheers 
Martin

PS:

My example:

Attachment (Merging rests.ly): application/octet-stream, 1125 bytes

\version "2.18.2"
\header {
  title = "merging rests"
}

global = { \time 4/4 }
Key = { \key g\major }

%% ------ Piano ------
rhUpper = \relative c''
{
  \voiceOne 
  \Key
  R1*4
g4 r8 g r2 |
}

rhLower = \relative c' {
  \voiceTwo
  \Key
R1*4
b4 r8 b r2 |
}

lhUpper = \relative c' {
  \voiceOne 
  \Key
  R1*4 |
  g4 r8 g r2 | 
}
lhLower = \relative c {
  \voiceTwo
  \Key
  R1*4|
  d4 r8 d r2 | 
}

PianoRH = {
  \clef treble
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
    \new Voice = "one" \rhUpper
    \new Voice = "two" \rhLower
  >>
}
PianoLH = {
  \clef bass
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
    \new Voice = "one" \lhUpper
    \new Voice = "two" \lhLower
  >>
}

piano = {
  <<
    \set PianoStaff.instrumentName = #"Piano"

    \new Staff = "upper" \PianoRH 
    \new Staff = "lower" \PianoLH
     \set Staff.shortInstrumentName = #"p"
  >>
}


\score {
  
  <<
   \new PianoStaff = "piano" \piano
    >>
 
  \layout {
    \context { \Staff \RemoveEmptyStaves }
    \context {
      \Score
      \override BarNumber.padding = #3
      skipBars = ##t
    }
  }
}




the snippet doesn't work:

Attachment (Merging rest Snippet.ly): application/octet-stream, 571 bytes

\version "2.18.2"
 \new Score {
   <<
    \new Staff  <<
      s4-\markup{ LilyPond default, rests in both voices. }
      \relative c'' { c4 d e r | r2  e4 g | R1 } 
      \\
      \relative c'' { c4 b a r | r a g2   | R1 }
    >>       
    \new Staff \with {
      \override RestCollision.positioning-done = #merge-rests-on-positioning
    } 
    <<
      s4-\markup{Merge rests as per standard notation practice.}
      \relative c'' { c4 d e r | r2  e4 g | R1 } 
      \\
      \relative c'' { c4 b a r | r a g2   | R1 }
    >>   

 }  
}
  \layout {}
  \midi {}
}

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Gmane