Re: repeated _\markup{} at same distance from staff...?

2015-05-08 Thread Phil Holmes
Just a thought of probably a better alternative to markup.  Treat your chord 
notation as lyrics: then it will be spaced vertically automatically.

http://lilypond.org/doc/v2.19/Documentation/notation/techniques-specific-to-lyrics

--
Phil Holmes


  - Original Message - 
  From: B~M 
  To: Stephen MacNeil 
  Cc: Lilypond-User Mailing List 
  Sent: Thursday, May 07, 2015 10:55 PM
  Subject: Re: repeated _\markup{} at same distance from staff...?


  thanks indeed Stephen, its a nice idea to lump the chord symbols into "one" 
rather 
  than do a \markup to all notes. The Vb is just the first inversion of the 
chord, the b is not 
  a flat symbol. 
  I guess one thing that puzzled me with the \override  TextScript.padding is 
why the outcome didn't just add an further offset but with the same result of 
the symbols going up and down following the music. 
  Perhaps \override means not only override the default offset, but turn off 
completely the following 
  of the music ? 


  Paul 




  On Fri, May 8, 2015 at 12:46 AM, Stephen MacNeil  
wrote:

Hey paul 


if the markup is all on one it takes only one staff padding. What i mean is 
each markup is based off of what you attach it to. so a trick I do is put them 
in one markup then all you need to do is center under each with halign.


here is an example 

Also i am not sure why you wanted Vb ... but it does say Exam so...

%%%

\paper {

indent = 0

top-system-spacing #'basic-distance = #10

score-system-spacing #'basic-distance = #20

system-system-spacing #'basic-distance = #20

last-bottom-spacing #'basic-distance = #10

}

I = \markup {I}

IV = \markup {IV}

V = \markup {V}

Vb = \markup {V \raise #1 \tiny\flat} 

roman = \markup {\I \halign #-1.5 {\IV} \halign #-1 {\V} \halign #-2.2 
{\Vb}}




global = {

\key d \major

\numericTimeSignature 

\time 4/4

}




sopMusic = \relative c'' {

% measure 1 

fis4\( d cis8[ b] a4

% measure 2

b b a2\) 

% measure 3

e'4\( d8[ e] fis4 g 

% measure 4

fis4 d e2\)

% measure 5

b4\( d8[ cis] b[ cis d e] 

% measure 6

fis4 e d2\) 

% measure 7

d4\( b a e' 

% measure 8

d cis d2\)

\bar "|." 

}




bassMusic = \relative c {

\override NoteHead.color = #blue

\override Stem.color = #blue

\override Accidental.color = #blue







% measure 1

d4_\roman a a cis 

% measure 2

g g a2

% measure 3

e'4 b d g,

% measure 4

d' b a2

% measure 5

b4 fis g b 

% measure 6

d a b2 

% measure 7




d4 b4 g a










% measure 8




g a d2







}

\score {










\new ChoirStaff <<

\new Staff = "women" <<

\new Voice = "sopranos" {

\voiceOne

<< \global \sopMusic >>

}

>>

\new Staff = "men" <<

\clef bass

\new Voice = "basses" {

\voiceTwo << \global \bassMusic >>

}

>>

>>

}



HTH

Stephen





--


  ___
  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: repeated _\markup{} at same distance from staff...?

2015-05-08 Thread Stephen MacNeil
what a great idea!

Stephen

On Fri, May 8, 2015 at 4:33 AM, Phil Holmes  wrote:

>  Just a thought of probably a better alternative to markup.  Treat your
> chord notation as lyrics: then it will be spaced vertically automatically.
>
>
> http://lilypond.org/doc/v2.19/Documentation/notation/techniques-specific-to-lyrics
>
> --
> Phil Holmes
>
>
>
> - Original Message -
> *From:* B~M 
> *To:* Stephen MacNeil 
> *Cc:* Lilypond-User Mailing List 
> *Sent:* Thursday, May 07, 2015 10:55 PM
> *Subject:* Re: repeated _\markup{} at same distance from staff...?
>
>  thanks indeed Stephen, its a nice idea to lump the chord symbols into
> "one" rather
> than do a \markup to all notes. The Vb is just the first inversion of the
> chord, the b is not
> a flat symbol.
> I guess one thing that puzzled me with the \override  TextScript.padding
> is why the outcome didn't just add an further offset but with the same
> result of the symbols going up and down following the music.
> Perhaps \override means not only override the default offset, but turn off
> completely the following
> of the music ?
>
> Paul
>
>
> On Fri, May 8, 2015 at 12:46 AM, Stephen MacNeil  > wrote:
>
>>Hey paul
>>
>> if the markup is all on one it takes only one staff padding. What i mean
>> is each markup is based off of what you attach it to. so a trick I do is
>> put them in one markup then all you need to do is center under each with
>> halign.
>>
>> here is an example
>> Also i am not sure why you wanted Vb ... but it does say Exam so...
>>
>> %%%
>>
>> \paper {
>>
>> indent = 0
>>
>> top-system-spacing #'basic-distance = #10
>>
>> score-system-spacing #'basic-distance = #20
>>
>> system-system-spacing #'basic-distance = #20
>>
>> last-bottom-spacing #'basic-distance = #10
>>
>> }
>>
>> I = \markup {I}
>>
>> IV = \markup {IV}
>>
>> V = \markup {V}
>>
>> Vb = \markup {V \raise #1 \tiny\flat}
>>
>> roman = \markup {\I \halign #-1.5 {\IV} \halign #-1 {\V} \halign #-2.2
>> {\Vb}}
>>
>>
>> global = {
>>
>> \key d \major
>>
>> \numericTimeSignature
>>
>> \time 4/4
>>
>> }
>>
>>
>> sopMusic = \relative c'' {
>>
>> % measure 1
>>
>> fis4\( d cis8[ b] a4
>>
>> % measure 2
>>
>> b b a2\)
>>
>> % measure 3
>>
>> e'4\( d8[ e] fis4 g
>>
>> % measure 4
>>
>> fis4 d e2\)
>>
>> % measure 5
>>
>> b4\( d8[ cis] b[ cis d e]
>>
>> % measure 6
>>
>> fis4 e d2\)
>>
>> % measure 7
>>
>> d4\( b a e'
>>
>> % measure 8
>>
>> d cis d2\)
>>
>> \bar "|."
>>
>> }
>>
>>
>> bassMusic = \relative c {
>>
>> \override NoteHead.color = #blue
>>
>> \override Stem.color = #blue
>>
>> \override Accidental.color = #blue
>>
>>
>>
>> % measure 1
>>
>> d4_\roman a a cis
>>
>> % measure 2
>>
>> g g a2
>>
>> % measure 3
>>
>> e'4 b d g,
>>
>> % measure 4
>>
>> d' b a2
>>
>> % measure 5
>>
>> b4 fis g b
>>
>> % measure 6
>>
>> d a b2
>>
>> % measure 7
>>
>>
>> d4 b4 g a
>>
>>
>>
>>
>> % measure 8
>>
>>
>> g a d2
>>
>>
>>
>> }
>>
>> \score {
>>
>>
>>
>>
>> \new ChoirStaff <<
>>
>> \new Staff = "women" <<
>>
>> \new Voice = "sopranos" {
>>
>> \voiceOne
>>
>> << \global \sopMusic >>
>>
>> }
>>
>> >>
>>
>> \new Staff = "men" <<
>>
>> \clef bass
>>
>> \new Voice = "basses" {
>>
>> \voiceTwo << \global \bassMusic >>
>>
>> }
>>
>> >>
>>
>> >>
>>
>> }
>>
>> HTH
>> Stephen
>>
>
>  --
>
> ___
> 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


Da Capo

2015-05-08 Thread Friedrich Fischer

Hello,
From 2.19.16 to 2.19.19 the lines of the stave are missing at D.C. al 
Fine with a key change.
(The wider line distance in the example is made by Frescobaldi 2.18 by 
using convert-ly.)

Friedrich
\version "2.19.16"

\relative cis {

  \time 2/4

  \key a \major

  \clef "treble_8"

  cis16 cis cis cis cis4

  ^\markup { \italic \halign #0.1 "D.C. al Fine" } \bar "||" \key e \major

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


Re: can Keep_alive_together_engraver be temporarily suspended?

2015-05-08 Thread Peter Crighton
2015-05-07 22:45 GMT+02:00 Kieren MacMillan :
>
> I have
>
>   PianoStaff
>   <<
> Staff
> Dynamics
> Staff
> Pedals
>   >>
>
> By default, the PianoStaff \consists “Keep_alive_together_engraver”, and
> this is generally perfect for me. I have one section of my current score in
> which I would like to reduce the piano part to just the upper staff.
>
> I tried \remove-ing the engraver, but a lot of horrible things happened
> (e.g., the Dynamics disappeared!?), and in my current deadline crunch, I
> don’t have time to properly bug-fix that if there’s a quick way to just
> pull out the lower staff for a few measures.
>

Where do you use \RemoveEmptyStaves? Try moving it to the lower Staff and
not the PianoStaff. I don’t know how your score is organised … is that an
option for you?
Like this:

\version "2.19.15"

\new PianoStaff \with {
  \remove "Keep_alive_together_engraver"
} <<
  \new Staff \relative c' {
\clef "treble"
c1 \break c1
  }
  \new Dynamics {
s1\f s1\p
  }
  \new Staff \with {
\RemoveEmptyStaves
  } \relative c {
\clef "bass"
c1 R1
  }
  \new Dynamics {
s1\sustainOn s1\sustainOff
  }
>>

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeated _\markup{} at same distance from staff...?

2015-05-08 Thread Klaus Blum
Hi Paul, hi Phil, 

from my own experiences, I can absolutely recommend using lyrics. 
Here's a snippet that might be useful:
http://lsr.di.unimi.it/LSR/Item?id=967

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/repeated-markup-at-same-distance-from-staff-tp176279p176325.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: TimeSignatures over BarLines

2015-05-08 Thread Alexander Kobel

On 2015-05-08 02:29, Thomas Morley wrote:

2015-05-07 18:48 GMT+02:00 Alexander Kobel :

Dear all,

I'm trying to move time signatures to print over bar lines for a modern
piece, to allow for a proportional (or almost proportional) note spacing
despite several time changes.

The usual approach is to place them over the staff, like here:
   http://lsr.di.unimi.it/LSR/Item?id=272
However, the full piece has a whole bunch of staves, so vertical space is at
a premium; for each staff, the signatures do not fit, and I feel that a
single time signature over the score is not enough.
Hence, I decided to break the bar line stencil into two short slices, and
squeeze the time signature in between.

I'm almost there. The missing piece is automatic adjustment of time
signatures at the beginning of a system. If realignTimeSignatures in the
attached example is delayed by one measure, the default placement of the
first time signature is perfect - as usual. However, I could not find a way
to do the same for the time signature in the fourth system (other than
manually reverting the overrides).
I achieve either
1) a nice placement of the in-line signature (with \realignTimeSignatures),
but have to shift the begin-of-line ones by some amount and cannot make
enough space for them, xor
2) the default position for the begin-of-line signatures (with
\realignTimeSignaturesII), but then I cannot position barlines and time
signatures on top of each other.
Can anyone enlighten me here?

Bonus points for someone who can come up with a proper centered alignment of
the "4" in the double bar line at the /end/ of the third system...


Thanks in advance,
Alexander




Hi,

how about:


move-time-sig-into-bar-line =
\override Staff.BarLine.before-line-breaking =


Ahahahaha! Going the other way around. Actually, this is not moving the 
time sig into the bar line, but the bar line into the time signature. 
Good idea; I guess that's also a reason why it can be done in 
before-line-breaking, right?
Anyway, I have to digest this piece of code you gave here. But it works 
like a charm. Amazing!



[...]

There's a TODO in it ...
And I'm not sure how the combination of time-sig and (double-)bar-line
at line-end should look like.
If the bar-line is really at line-end the time-sig will stick out to
the right. Is this wanted?


Honestly, I'm not sure yet (just as I have to get used to the entire 
look). But it was my intention. I think of it similar as a staff bracket 
sticking out to the left...
But that I could derive from your snippet - write a before-line-breaking 
for TimeSignature, too, parse the X-parents just as you did for the 
BarLine, and if (= (ly:item-break-dir grob) LEFT) (where grob is the 
time signature), then


(ly:grob-set-property! grob 'space-alist
   `((right-edge fixed-space
   .
   ,(/ (- time-sig-length bar-line-length) -2


Wonderful. Thanks a lot!


Best,
Alexander

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


Re: Da Capo

2015-05-08 Thread Thomas Morley
2015-05-08 15:31 GMT+02:00 Friedrich Fischer :
> Hello,
> From 2.19.16 to 2.19.19 the lines of the stave are missing at D.C. al Fine
> with a key change.
> (The wider line distance in the example is made by Frescobaldi 2.18 by using
> convert-ly.)
> Friedrich


See:
http://lilypond.1069038.n5.nabble.com/Staff-ends-before-clef-time-and-key-td174133.html#a174170

HTH,
  Harm

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


Re: woff svg

2015-05-08 Thread tisimst
Stephen,

It looks like the images on the LSR are just PNG files.

- Abraham

On Thu, May 7, 2015 at 9:19 AM, Stephen MacNeil [via Lilypond] <
ml-node+s1069038n176293...@n5.nabble.com> wrote:

> I made a script a while ago that prints single or multiple pages to jpg or
> pdf and those I can easily include on a web page however, woff svg (which i
> know nothing about) comes out without the font? what i mean is the staff
> shows but there are boxes where the notes go. So my question is how do i
> include them in html. I guess how is it done on the LSR (are they svg?)
>
> Stephen
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
> http://lilypond.1069038.n5.nabble.com/woff-svg-tp176293.html
>  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/woff-svg-tp176293p176336.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: woff svg

2015-05-08 Thread Scott Miller
lilybin.com is looking to change to use svg rather than png to display a
score in a browser.

https://github.com/trevordixon/LilyBin/issues/20

This is still in development but the above link may have some good info.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Start with changed staff

2015-05-08 Thread Helge
Hi,

I have to write some scores where each piece starts with a long note
simultaneous with an arpeggio down. This arpeggio shall be written
explicitly. This should be possible with this code

\version "2.19.16"

\new PianoStaff <<
  \new Staff = upper
  \relative c'' {
\time 2/4 
\repeat volta 2 {
  e2 
}
  }
  \new Staff = "lower"
  \relative c'' {
\clef bass
\repeat volta 2 {
  %s32
  \change Staff = "upper"
  e32
  c g d \change Staff = "lower" c g c,4

  s16
}
  }
>>

The problem is that the change Staff does not work at the very first
note. You can remove the "%" before the "s32" and comment out the "e32"
to see how it should be, except that the melody line is missing the
first 32th note.

I would say that this is a bug. But do you have a nice workaround?

The "\repeat volta" is not necessary to reproduce the problem. But if
you have any idea to circumvent the problem it would be good when it
works even in this context.

Best regards
Helge#

-- 
GnuPG fingerprint: EDCE F8C8 B727 6CC5 7006  05C1 BD3F EADC 8922 1F61


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