Fwd: positioning dynamics vertically

2014-11-18 Thread David B. Stocker


Hello all,

I'm typesetting pieces for piano and melody instrument and I have a
question about dynamic placement.

I'm adding dynamics to the melody part in a separate Dynamics context
because I like for each line of markings to have its own static
baseline. But I need that baseline to 'hug' the bottom of the melody
staff and I haven't been able to do that.

Thanks in advance,

David

Here is my minimal example:

\version "2.18.2"


\paper {

ragged-last = ##f

ragged-last-bottom = ##f

}


pianoRH = \relative c'' {

c4 d e c

}


pianoLH = \relative c {

c2 g'4 e

}



hornNotes = \relative c'' {

g2 c

}


dyn = {

s2\mf\< s\!\f

}


\score {

<<

\new Staff \with {

fontSize = #-3

\override StaffSymbol #'staff-space = #(magstep -3)

\override StaffSymbol #'thickness = #(magstep -3)

}

<<

\new Voice {

\hornNotes

}

\new Dynamics {

\override DynamicText.font-size = #-3

\dyn

}





\new PianoStaff <<

\new Staff {

\pianoRH

}

\new Dynamics {

\dyn

}

\new Staff {

\clef bass

\pianoLH

}









}




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


positioning dynamics vertically

2014-11-18 Thread David B. Stocker

Hello all,

I'm typesetting pieces for piano and melody instrument and I have a 
question about dynamic placement.


I'm adding dynamics to the melody part in a separate Dynamics context 
because I like for each line of markings to have its own static 
baseline. But I need that baseline to 'hug' the bottom of the melody 
staff and I haven't been able to do that.


Thanks in advance,

David

Here is my minimal example:

\version "2.18.2"


\paper {

ragged-last = ##f

ragged-last-bottom = ##f

}


pianoRH = \relative c'' {

c4 d e c

}


pianoLH = \relative c {

c2 g'4 e

}



hornNotes = \relative c'' {

g2 c

}


dyn = {

s2\mf\< s\!\f

}


\score {

<<

\new Staff \with {

fontSize = #-3

\override StaffSymbol #'staff-space = #(magstep -3)

\override StaffSymbol #'thickness = #(magstep -3)

}

<<

\new Voice {

\hornNotes

}

\new Dynamics {

\override DynamicText.font-size = #-3

\dyn

}

>>

\new PianoStaff <<

\new Staff {

\pianoRH

}

\new Dynamics {

\dyn

}

\new Staff {

\clef bass

\pianoLH

}

>>

>>

}


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


Re: positioning dynamics vertically

2014-11-19 Thread David B. Stocker

Thanks Pierre.

Although that wasn't quite the effect I was after, that section of 
documentation yielded the solution I wanted.


I have read it before, but didn't really understand until I followed the 
breadcrumbs to the Dynamics context in the internals. What I needed was 
something called nonstaff-relatedstaff-spacing within the VerticalAxisGroup.


The idea was that with the Dynamics context for the horn centered 
between the horn staff and the treble staff of the PianoStaff, it was 
ambiguous which staff the dynamics belonged to whenever spacing got a 
little tight. This solution keeps the dynamics closer to the horn staff, 
regardless of how the staves and groups stretch to fill a page.


Here's what it looks like.

Thanks again,

David

\version "2.18.2"


\paper {

ragged-last = ##f

ragged-last-bottom = ##f

}


pianoRH = \relative c'' { c4 d e c }


pianoLH = \relative c { c2 g'4 e }


hornNotes = \relative c'' { g2 c }


dyn = { s2\mf\< s\!\f }

\score {

<<

\new StaffGroup <<

\new Staff

\with {

fontSize = #-3

\override StaffSymbol.staff-space = #(magstep -3)

\override StaffSymbol.thickness = #(magstep -3)

}

{

\new Voice \hornNotes

}

\new Dynamics {

\override Dynamics.VerticalAxisGroup.nonstaff-relatedstaff-spacing =

#'((basic-distance . 0)

(minimum-distance . 0)

(padding . 2.5))

\override DynamicText.font-size = #-3

\override Hairpin.height = #.

\dyn

}

>>

\new PianoStaff <<

\new Staff \pianoRH

\new Dynamics \dyn

\new Staff {

\clef bass

\pianoLH

}

>>

>>

%{ \layout {

\context {

\Staff

\override VerticalAxisGroup.default-staff-staff-spacing =

#'((basic-distance . 2)

(minimum-distance . 2)

(padding . 1))

\override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 2))

}

} %}

}




On 11/18/2014 02:41 PM, Pierre Perol-Schneider wrote:

Hi David,

2014-11-18 18:30 GMT+01:00 David B. Stocker <mailto:notesetters...@gmail.com>>:


I need that baseline to 'hug ' the bottom of the melody
staff and I haven't been able to do that.


See : 
http://lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems

Mini example enclosed.
HTH
Pierre




\version "2.18.2"

\paper {
  ragged-last = ##f
  ragged-last-bottom = ##f
}

pianoRH = \relative c'' { c4 d e c }

pianoLH = \relative c { c2 g'4 e }

hornNotes = \relative c'' { g2 c }

dyn = { s2\mf\< s\!\f }

\score {
  <<
\new StaffGroup <<
  \new Staff 
  \with { 
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\override StaffSymbol.thickness = #(magstep -3)
  }
  {
\new Voice \hornNotes
  }
  \new Dynamics {
\override Dynamics.VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 0)
   (minimum-distance . 0)
   (padding . 2.5))
\override DynamicText.font-size = #-3
\override Hairpin.height = #.
\dyn
  }
>>
\new PianoStaff <<
  \new Staff \pianoRH
  \new Dynamics \dyn
  \new Staff {
\clef bass
\pianoLH
  }
>>
  >>
  %{ \layout {
\context {
  \Staff
  \override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 2)
   (minimum-distance . 2)
   (padding . 1))
  \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 2))
}
  } %}
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Coloring Ledger Lines

2015-03-07 Thread David B. Stocker

Hello everyone,

Does anyone know why the ledger line color in this example isn't 
reverted like the other grob colors?


\relative c' {

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

a4 a a a

\revert Staff.NoteHead.color

\revert Staff.Stem.color

\revert Staff.LedgerLineSpanner.color

a a a a

}


Thanks,


David


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


Re: Coloring Ledger Lines

2015-03-08 Thread David B. Stocker

Thanks Pierre.

Does anyone know why this works and a simple \revert command fails?

On 03/08/2015 06:01 AM, Pierre Perol-Schneider wrote:

Hi David,

Try:

\version "2.18.2"

\relative c' {
  \override Staff.NoteHead.color = #grey
  \override Staff.Stem.color = #grey
  \override Staff.LedgerLineSpanner.color = #grey
  a4 a a a
  \stopStaff

  \revert Staff.NoteHead.color
  \revert Staff.Stem.color
  \revert Staff.LedgerLineSpanner.color
  \startStaff
  a a a a
}

Cheers,
Pierre

2015-03-08 5:21 GMT+01:00 David B. Stocker <mailto:notesetters...@gmail.com>>:


Hello everyone,

Does anyone know why the ledger line color in this example isn't
reverted like the other grob colors?

\relative c' {

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

a4 a a a

\revert Staff.NoteHead.color

\revert Staff.Stem.color

\revert Staff.LedgerLineSpanner.color

a a a a

}


Thanks,


David



___
lilypond-user mailing list
lilypond-user@gnu.org <mailto: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: Coloring Ledger Lines

2015-03-08 Thread David B. Stocker
I'm not sure what I'm looking at with the Scheme code, but I'll spend 
some time with it and see how it fits together.


Any clues as to how to fix the ugly spacing issue that results from 
using \stopStaff and \startStaff?


\version "2.18.2"


\paper {

indent = 0\in

ragged-right = ##f

}


\score {

\new Staff {

\relative c, {

\clef "treble_8"

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

e4 f g a b

\stopStaff

\revert Staff.NoteHead.color

\revert Staff.Stem.color

\revert Staff.LedgerLineSpanner.color

\startStaff

c d e f g a b c

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

d e f g \bar "||"

}

}

\layout {

\context {

\Staff \remove Time_signature_engraver

}

}

}


\score {

\new Staff {

\relative c, {

\clef "treble_8"

\cadenzaOn

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

e4 f g a b

\stopStaff

\revert Staff.NoteHead.color

\revert Staff.Stem.color

\revert Staff.LedgerLineSpanner.color

\startStaff

c d e f g a b c

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

d e f g \bar "||"

}

}

\layout {

\context {

\Staff \remove Time_signature_engraver

}

}

}



On 03/08/2015 12:22 PM, David Nalesnik wrote:



On Sun, Mar 8, 2015 at 11:02 AM, Pierre Perol-Schneider 
> wrote:


Interesting, thanks David.
Cheers,
Pierre


To get more of the control any user would expect, you could do 
something like this:

\version "2.19.16"

\new Staff <<
  \repeat unfold 8 {
\startStaff s4 \stopStaff
  }
  {
a4
\once \override Staff.LedgerLineSpanner.color = #blue
a
\once \override Staff.LedgerLineSpanner.color = #green
a
\once \override Staff.StaffSymbol.color = #red
a
a4 a a a
  }
>>



I imagine this could be automated fairly easily.  Who knows the 
overhead with large scores, though!


(Aside: it might be interesting to come up with something emulating 
the old single-impression printing technique where staff lines, notes, 
and text were stamped together and inexactly 
aligned--http://en.wikipedia.org/wiki/History_of_music_publishing 
(under Rastell)  Can't come up with a good visual.)


David


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


Re: Coloring Ledger Lines

2015-03-08 Thread David B. Stocker

I see. Thanks for the explanation.

David

On 03/08/2015 02:42 PM, David Nalesnik wrote:



On Sun, Mar 8, 2015 at 1:35 PM, David B. Stocker 
mailto:notesetters...@gmail.com>> wrote:


I'm not sure what I'm looking at with the Scheme code, but I'll
spend some time with it and see how it fits together.


The log output indicates the StaffSymbol and LedgerLineSpanner objects 
that are created.  It's purely for the sake of the explanation.


You might think that each ledger line is a separate object, able to be 
overridden.  That, however, is not the case.  All the ledger lines in 
a line of music are a single object, so any override will affect them 
all.  The scheme functions just confirm this.


HTH,
David


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


Re: Coloring Ledger Lines

2015-03-08 Thread David B. Stocker
Okay, David provided the answer to my last question about the spacing, I 
just had to figure it out.


It seems like a hack to my, but it achieves the result I'm after, so if 
no one has a more elegant suggestion, this is what I'm going with:


\version "2.18.2"


\paper {

indent = 0\in

ragged-right = ##f

}


\score {

\new Staff <<

{ \repeat unfold 17 { \startStaff s4 \stopStaff } }

\relative c, {

\clef "treble_8"

\cadenzaOn

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

e4 f g a b

%\stopStaff

\revert Staff.NoteHead.color

\revert Staff.Stem.color

\revert Staff.LedgerLineSpanner.color

%\startStaff

c d e f g a b c

\override Staff.NoteHead.color = #grey

\override Staff.Stem.color = #grey

\override Staff.LedgerLineSpanner.color = #grey

d e f g \bar "||"

}

>>

\layout {

\context {

\Staff \remove Time_signature_engraver

}

}

}


Thanks again, LilyPond Community.

Cheers!



On 03/08/2015 12:22 PM, David Nalesnik wrote:

\new Staff <<
  \repeat unfold 8 {
\startStaff s4 \stopStaff
  }
  {
a4
\once \override Staff.LedgerLineSpanner.color = #blue
a
\once \override Staff.LedgerLineSpanner.color = #green
a
\once \override Staff.StaffSymbol.color = #red
a
a4 a a a
  }
>>


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


Re: Coloring Ledger Lines

2015-03-08 Thread David B. Stocker

Hi David,

Using \stopStaff ... \startStaff results in uneven spacing in the pair 
of notes between which the new StafSymbol is created. My (our) solution 
is to start a StaffSymbol before every note so that the spacing is uniform.


Like I said, it's kind of a hack, but it works.

Best regards,

David

On 03/08/2015 03:19 PM, David Nalesnik wrote:

David,

On Sun, Mar 8, 2015 at 2:00 PM, David B. Stocker 
mailto:notesetters...@gmail.com>> wrote:


Okay, David provided the answer to my last question about the
spacing, I just had to figure it out.

It seems like a hack to my, but it achieves the result I'm after,
so if no one has a more elegant suggestion, this is what I'm going
with:


If you're just going to have a few changes, then there would be a need 
to create so many new StaffSymbols.  Why not:


\version "2.18.2"

\paper {
  indent = 0\in
  ragged-right = ##f
}

\score {
  \new Staff <<
\relative c, {
  \clef "treble_8"
  \cadenzaOn
  \override Staff.NoteHead.color = #grey
  \override Staff.Stem.color = #grey
  \override Staff.LedgerLineSpanner.color = #grey
  e4 f g a b
  \stopStaff \startStaff
  \revert Staff.NoteHead.color
  \revert Staff.Stem.color
  \revert Staff.LedgerLineSpanner.color
  c d e f g a b c
  \stopStaff \startStaff
  \override Staff.NoteHead.color = #grey
  \override Staff.Stem.color = #grey
  \override Staff.LedgerLineSpanner.color = #grey
  d e f g \bar "||"
}
  >>
  \layout {
\context {
  \Staff \remove Time_signature_engraver
}
  }
}

%%

In other words, just remember to put

\stopStaff \startStaff

before every override of LedgerLineSpanner.

-DN


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


Hymns and justified lyrics

2015-04-09 Thread David B. Stocker

Hello LilyPonders,

I have a client who is working on a hymnal, and they would like for the 
beginning of the lines of verses to be left justified. The best way I 
can see to do this, from a visual standpoint, is to make the longest 
syllable on the first note of each line centered like it normally is, 
and then left-align all the others to that syllable.


Please see the attached minimal example.

First, I want to know whether it is possible to automate this behavior 
with LilyPond (I think it is).


And next, I'd like it if someone would point me in the direction of how 
to achieve this. My sense is that it is going to require some 
function-writing. I'm not a programmer (at all, really), but I'm not 
opposed to learning how to do this. Actually, I've been meaning to learn 
how to extend and modify some aspects of LilyPond for my own projects 
and doing so for a client-project is the best excuse I might have for 
jumping in.


Also, it's something that may be useful for other users as well, so at 
the very least it should be included in the LSR, and maybe made 
available for everyone in a future release.


I'm also open to collaboration on this, if anyone else is interested.

So, my hunch is that I'm going to write a function that queries the 
value of the left edge of the centered syllable in one verse, and then 
calculates the amount of offset to apply to the syllables at the same 
point in other verses on a case-by-case basis.


1) where can I start with learning this sort of tinkering, and 2) does 
anyone have other functions that behave in a similar way (fetching a 
value, making a calculation, and then applying it somewhere else) that I 
could study to figure out how I might do this?


Again, I have no idea, so let me know if I'm way off base here.

Thanks,

David

\version "2.18.2"


\paper {

%line-width = 10\in

indent = 0\in

ragged-right = ##t

}


%% Default LilyPond beginning-of-line lyric alignment and spacing


\score {

\new Staff <<

\new Voice = "hymn" {

\relative c'' {

\partial 2 a4 a \bar "|"

}

}

\new Lyrics \lyricsto "hymn" {

with my

}

\new Lyrics \lyricsto "hymn" {

through the

}

\new Lyrics \lyricsto "hymn" {

praise the

}

\new Lyrics \lyricsto "hymn" {

bless -- ed

}

>>

}


%% Left justifying the first syllable in each verse results in funky 
note spacing



syllableLeft = { \once \override LyricText.self-alignment-X = #LEFT }


\score {

\new Staff <<

\new Voice = "hymn" {

\relative c'' {

\partial 2 a4 a \bar "|"

}

}

\new Lyrics \lyricsto "hymn" {

\syllableLeft with my

}

\new Lyrics \lyricsto "hymn" {

\syllableLeft through the

}

\new Lyrics \lyricsto "hymn" {

\syllableLeft praise the

}

\new Lyrics \lyricsto "hymn" {

\syllableLeft bless -- ed

}

>>

}


%% Left justifying syllables to the longest syllable by hand is 
time-consuming, inaccurate, and not persistent


%% if a different lyric font is chosen later


\score {

\new Staff <<

\new Voice = "hymn" {

\relative c'' {

\partial 2 a4 a \bar "|"

}

}

\new Lyrics \lyricsto "hymn" {

\once \override LyricText.self-alignment-X = #1 with my

}

\new Lyrics \lyricsto "hymn" {

through the

}

\new Lyrics \lyricsto "hymn" {

\once \override LyricText.self-alignment-X = #0.35 praise the

}

\new Lyrics \lyricsto "hymn" {

\once \override LyricText.self-alignment-X = #0.8 bless -- ed

}

>>

}




\version "2.18.2"

\paper {
  %line-width = 10\in
  indent = 0\in
  ragged-right = ##t
}

%% Default LilyPond beginning-of-line lyric alignment and spacing

\score {
  \new Staff <<
\new Voice = "hymn" {
  \relative c'' {
\partial 2 a4 a \bar "|"
  }
}
\new Lyrics \lyricsto "hymn" {
  with my
}
\new Lyrics \lyricsto "hymn" {
  through the
}
\new Lyrics \lyricsto "hymn" {
  praise the
}
\new Lyrics \lyricsto "hymn" {
  bless -- ed
}
  >>
}

%% Left justifying the first syllable in each verse results in funky note spacing

syllableLeft = { \once \override LyricText.self-alignment-X = #LEFT }

\score {
  \new Staff <<
\new Voice = "hymn" {
  \relative c'' {
\partial 2 a4 a \bar "|"
  }
}
\new Lyrics \lyricsto "hymn" {
  \syllableLeft with my
}
\new Lyrics \lyricsto "hymn" {
  \syllableLeft through the
}
\new Lyrics \lyricsto "hymn" {
  \syllableLeft praise the
}
\new Lyrics \lyricsto "hymn" {
  \syllableLeft bless -- ed
}
  >>
}

%% Left justifying syllables to the longest syllable by hand is time-consuming, inaccurate, and not persistent
%% if a different lyric font is chosen later

\score {
  \new Staff <<
\new Voice = "hymn" {
  \relative c'' {
\partial 2 a4 a \bar "|"
  }
}
\new Lyrics \lyricsto "hymn" {
  \once \override LyricText.self-alignment-X = #1 with my
}
\new Lyrics \lyricsto "hymn" {
  through the
}
\new Lyrics \lyricsto "hymn" {
  \once \override LyricText.self-alignment-X = #0.35 praise the
}
 

Re:Hymns and justified lyrics

2015-04-12 Thread David B. Stocker

David,

Thank you for this. This is exactly what I'm after.

It seems like you're a Scheme guy. Is there a learning resource you 
would recommend to a very green beginner?


Thanks again,

David

On 04/09/2015 01:22 PM, lilypond-user-requ...@gnu.org wrote:

You can find a function here which I believe does what you want:

http://www.mail-archive.com/lilypond-user%40gnu.org/msg81870.html

It's been a while, but it looks like you add \tagIt at the line beginning,
to any of the verses,  This will center the lines based on the longest word
and left-justify, regardless of the verse to which you attach the \tagIt.

Attached is the relevant code with your example.

Of course it would be great to automate this so you wouldn't have to worry
about line breaks, and possibly that could be done here.

Hope this helps,
David

P.S.  I see the following message in the above thread:
http://www.mail-archive.com/lilypond-user%40gnu.org/msg81941.html
Possibly you could request the code from the poster.



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


Upper and Lower slurs in \partCombine

2015-05-04 Thread 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


Re: Upper and Lower slurs in \partCombine

2015-05-04 Thread David B. Stocker

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


q shortcut and voicings in TAB

2015-06-17 Thread David B. Stocker

Question:

Using the q shorthand for chords doesn't result in exact duplicates with 
regard to fret positions.


In my minimal example, pasted below, I would intend for repeated chords 
to have the same fret position as the initial iteration. I would think 
this would be the desired behavior to save typing using the q shorthand.


\version "2.18.2"


\new TabVoice \relative c {

8 q q q

}


% desired output:


\new TabVoice \relative c {

\repeat unfold 4 { 8 }

}


Thanks,


David


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


Changing notehead sizes within chords

2015-06-29 Thread David B. Stocker

Hello group,

Is there a way to apply a NoteHead font-size once to a single music 
expression and then combine it with one or more other music expressions 
to get different notehead sizes on a single set of stems (i.e., one 
Voice context)?


This is a common notation for pop music where there is typically one 
lead vocal part with one or more harmony voices which are mixed lower.


Please see my tiny example below.

Thanks,

David

%%% Tiny Example %%%

\version "2.18.2"


%% Lead voice with backing harmony voices


leadVoice = \relative c'' { c4( d e2 ) }


bkgdVoiceI = \relative c'' { g4( b c2 ) }


bkgdVoiceII = \relative c'' { e4( f g2 ) }


%% Desired output


\new Voice \relative c'' {

<\tweak font-size #-3 g c \tweak font-size #-3 e >4(

<\tweak font-size #-3 b d \tweak font-size #-3 f >

<\tweak font-size #-3 c e \tweak font-size #-3 g >2 )

}


%% Actual output


\new Voice <<

\override NoteHead.font-size = #-3 {

\bkgdVoiceII

}

\leadVoice

\override NoteHead.font-size = -3 {

\bkgdVoiceI

}

>>


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


Re: Changing notehead sizes within chords

2015-06-29 Thread David B. Stocker

Klaus and Thomas,

Thank you. These are exactly the kind of thing I was looking for.

I've been starting to fool around with scheme and it's going very 
slowly. Maybe examining these and learning how/why they work will help 
me with the lilypond-specific scheme knowledge required to start solving 
some of these challenges.


Do either of you recommend a source on Scheme for beginners?

Thanks,

David

On 06/29/2015 06:32 PM, lilypond-user-requ...@gnu.org wrote:

Maybe there's a way to have a function tweak all the notes in a music
>expression, but that's far beyond my scheme knowledge.
>
>Cheers,
>Klaus



Maybe:

\version "2.18.2"

font-size-tweak =
#(define-music-function (parser location music) (ly:music?)
(map-some-music
  (lambda (m)
(and (music-is-of-type? m 'note-event)
 #{ \tweak font-size #-3 $m #}))
  music))

leadVoice = \relative c'' { c4( d e2 ) }
bkgdVoiceI = \relative c'' { g4( b c2 ) }
bkgdVoiceII = \relative c'' { e4( f g2 ) }

\new Voice
<<
   \font-size-tweak \bkgdVoiceII
   \leadVoice
   \font-size-tweak \bkgdVoiceI

>>

HTH,
   Harm



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


Fwd: Middle voices and rests

2012-05-14 Thread David B. Stocker

Hi group,

Any guess on how to make LilyPond automatically shift rests the way it 
shifts notes in middle voices to avoid collisions with other notes?


Here's a minimal example.

Thanks,

David

%% Example %%

\version "2.14"

upstems = {

\relative c' {

c2

}

}

middle = {

\relative c' {

g4 g

}

}

middleRest = {

\relative c' {

g4 \rest g

}

}

downstems = {

\relative c {

c2

}

}

\score {

<<

\new Staff {

\clef "treble_8"

<<

{ \new Voice { \voiceOne \upstems } }

{ \new Voice { \voiceThree \middle } }

{ \new Voice { \voiceTwo \downstems } }

>>

}

\new TabStaff {

<<

{ \upstems }

{ \middle }

{ \downstems }

>>

}

>>

}

\score {

<<

\new Staff {

\clef "treble_8"

<<

{ \new Voice { \voiceOne \upstems } }

{ \new Voice { \voiceThree \middleRest } }

{ \new Voice { \voiceTwo \downstems } }

>>

}

\new TabStaff {

<<

{ \upstems }

{ \middleRest }

{ \downstems }

>>

}

>>

}



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


Even page numbers on right?

2012-06-17 Thread David B. Stocker
Is there a way to have LilyPond print even page numbers in the top right 
corner and odd page numbers in the top left?


This seems like it should be possible but I can't find any way to do it 
either in the manuals or the LSR or on the lilypond-user list.


Thanks,

David

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


Re: Even page numbers on right?

2012-06-18 Thread David B. Stocker

Thanks, Janeck.

In case anyone who wants to know doesn't, here is the code that worked 
for me:


\version "2.14"

\paper {

   evenHeaderMarkup = \markup {

 \column {

   \fill-line {

 \line { }

 \line {

   \on-the-fly #print-page-number-check-first

   \fromproperty #'page:page-number-string

 }

   }

 }

   }

   oddHeaderMarkup = \markup {

 \column {

   \fill-line {

 \line {

   \on-the-fly #print-page-number-check-first

   \fromproperty #'page:page-number-string

 }

 \line { }

   }

 }

   }

}



Janek WarchoĊ‚ wrote:

On Sun, Jun 17, 2012 at 11:30 AM, David B. Stocker
 wrote:

Is there a way to have LilyPond print even page numbers in the top right
corner and odd page numbers in the top left?

This seems like it should be possible but I can't find any way to do it
either in the manuals or the LSR or on the lilypond-user list.

you have to define your own header layout.  See
http://www.lilypond.org/doc/v2.15/Documentation/notation/custom-headers-footers-and-titles#custom-layout-for-headers-and-footers

hth,
Janek




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


Free online courses

2012-09-30 Thread David B. Stocker
I'm posting this link in hopes that some may be interested or find it 
useful.


Coursera is offering free, online courses hosted by various University 
departments in a variety of disciplines and subjects. There are about 20 
relating to Computer Programming.


I'm currently taking the course "Learn to Program: The Fundamentals" 
which demonstrates programming fundamentals using Python.


I'm a veteran LilyPond user, with absolutely no programming experience. 
It occurs to me that this may be a way for people who may want to 
contribute to LilyPond but who are not programmers by day to perhaps get 
their feet wet.


https://www.coursera.org/category/cs-programming

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


Overriding bound details of VoiceFollower line

2014-01-20 Thread David B. Stocker
I've followed the directions in "Using the line-spanner-interface" 
<http://lilypond.org/doc/v2.16/Documentation/notation/spanners> in the 
manuals, trying to nudge the right end of a Voice Change line.


It isn't working.

Would someone mind taking a look at my example, and see if I'm missing 
something obvious?


I'm using LilyPond 2.16.2


Thanks,

David


%%%Minimal Example%%%

\version "2.16.2"


\include "english.ly"


\score {

\new PianoStaff <<

\new Staff = "Right" <<

\clef "treble"

\key d \major

\time 4/4

\new Voice {

\relative c'' {

\voiceOne

r8 e fs fs16 gs a8 e b b

}

}

\new Voice {

\relative c'' {

\voiceTwo

e16 a, b cs d e~ e d cs8 b16 a s4

}

}

>>

\new Staff = "Left" <<

\clef "bass"

\key d \major

\time 4/4

\new Voice {

\relative c' {

\voiceOne

\showStaffSwitch

cs8 a r a e'

\once \override VoiceFollower #'(bound-details right Y) = #-2

e \change Staff = "Right"

\voiceTwo gs fs16 e

}

}

\new Voice {

\relative c' {

\voiceTwo

a8 a a a a gs16 d e8 d

}

}

>>

>>

}


%%%End Minimal Example%%%



--
David B. Stocker
804-335-6042
http://notesettersinc.com

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


Re: Overriding bound details of VoiceFollower line

2014-01-20 Thread David B. Stocker

Doh!

That does the trick.

Thanks Alex.

On 01/20/2014 12:34 PM, Alex Loomis wrote:

Move it to after the e but before the change.

\voiceOne

\showStaffSwitch

cs8 a r a e' e

\once \override VoiceFollower #'(bound-details right Y) = #-2

\change Staff = "Right"

\voiceTwo gs fs16 e




On Mon, Jan 20, 2014 at 11:55 AM, David B. Stocker 
mailto:notesetters...@gmail.com>> wrote:


I've followed the directions in "Using the line-spanner-interface"
<http://lilypond.org/doc/v2.16/Documentation/notation/spanners> in
the manuals, trying to nudge the right end of a Voice Change line.

It isn't working.

Would someone mind taking a look at my example, and see if I'm
missing something obvious?

I'm using LilyPond 2.16.2


Thanks,

David


%%%Minimal Example%%%

\version "2.16.2"


\include "english.ly <http://english.ly>"


\score {

\new PianoStaff <<

\new Staff = "Right" <<

\clef "treble"

\key d \major

\time 4/4

\new Voice {

\relative c'' {

\voiceOne

r8 e fs fs16 gs a8 e b b

}

}

\new Voice {

\relative c'' {

\voiceTwo

e16 a, b cs d e~ e d cs8 b16 a s4

}

}

>>

\new Staff = "Left" <<

\clef "bass"

\key d \major

\time 4/4

\new Voice {

\relative c' {

\voiceOne

\showStaffSwitch

cs8 a r a e'

\once \override VoiceFollower #'(bound-details right Y) = #-2

e \change Staff = "Right"

\voiceTwo gs fs16 e

}

}

\new Voice {

\relative c' {

\voiceTwo

a8 a a a a gs16 d e8 d

}

}

>>

>>

}


%%%End Minimal Example%%%



-- 
David B. Stocker

804-335-6042  
http://notesettersinc.com


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




--
David B. Stocker
804-335-6042
http://notesettersinc.com

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


ly2video on Ubuntu

2014-04-06 Thread David B. Stocker

Hi all,

Has anyone had success getting ly2video to work on recent versions of 
Ubuntu or Debian?


I'm using ly2video 0.4.1 on UbuntuStudio 13.10 and seem to be running 
into issue #32:


https://github.com/aspiers/ly2video/issues/32

I'm messing around with changing the ly2video.py script according to the 
proposed workaround, but haven't had any luck.


Has anyone gotten it to work? If so, do you remember the procedure you used?

Thanks,

David

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


Re: precisely controlling with width of an example

2014-04-17 Thread David B. Stocker
I haven't tried this, but might setting a custom page size of 4\in width 
and then setting margins to 0\cm in the paper block do the trick?


Best regards,

David

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