Re: Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread tisimst
On Tue, Jul 21, 2015 at 10:04 AM, BGM [via Lilypond] <
ml-node+s1069038n178891...@n5.nabble.com> wrote:

> My hymn has a key signature of B Major, so I have to manually sharp all
> the naturals in the code.
>
> On this one syllable - the "cha-" in Eucharist, I need to have the beamed
> 8th notes span for one syllable, and both be sharped AND still keep the
> slur line.
>
> How do I do that?
>
> melody = \relative c' {
> \global
> \partial 8
> fis8 b4 ais8[ gis] fis2 dis8[ e] dis8([ c]) b4. b8 e4 ...
> }
>
> wordsOne = \lyricmode {
> \set stanza = "1. "
> We Cru- sa- ders of the Eu- cha-_ rist,
> With joy we _  con- se- crate to Your Heart ...
> }
>
>
>
It looks like you've got everything except the c-sharp, no? The d-sharp/c
are beamed and slurred together. Or, do you mean like you've done with the
"sa-" on Cru- sa- ders, where each syllable gets the note instead of "cha-"
getting both eighth notes? If that's what you want, then you can just use a
phrasing slur instead of a slur:

dis8[ \( cis] \)

LilyPond ignores phrasing slurs when aligning lyrics. I'd advise against
this notation practice, though, since you usually only slur two sung notes
together when a single syllable is sung on both notes. If it needs to be
there for another verse, or an accompanying instrument, then I'd consider
making it a dashed line so the singer knows the lyrics aren't supposed to
be slurred. Slurring notes together for lyrics is called a "melisma", by
the way :-)

- Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Two-Syllable-Beam-with-Sharp-and-Slur-tp178891p178892.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: Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread tisimst
By the way, and you can ignore this if you want, LilyPond can put in a
properly placed lyric hyphen if you set the lyrics like this:

We Cru -- sa -- ders of the Eu -- cha -- _ rist,
With joy we _ con -- se -- crate to Your Heart

Also, if you use slurs in the notes then you shouldn't need to put single
underscores "_" in the lyrics. Up to you, of course.

- Abraham

On Tue, Jul 21, 2015 at 10:04 AM, BGM [via Lilypond] <
ml-node+s1069038n178891...@n5.nabble.com> wrote:

> My hymn has a key signature of B Major, so I have to manually sharp all
> the naturals in the code.
>
> On this one syllable - the "cha-" in Eucharist, I need to have the beamed
> 8th notes span for one syllable, and both be sharped AND still keep the
> slur line.
>
> How do I do that?
>
> melody = \relative c' {
> \global
> \partial 8
> fis8 b4 ais8[ gis] fis2 dis8[ e] dis8([ c]) b4. b8 e4 ...
> }
>
> wordsOne = \lyricmode {
> \set stanza = "1. "
> We Cru- sa- ders of the Eu- cha-_ rist,
> With joy we _  con- se- crate to Your Heart ...
> }
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/Two-Syllable-Beam-with-Sharp-and-Slur-tp178891.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/Two-Syllable-Beam-with-Sharp-and-Slur-tp178891p178894.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: Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread BGM
Thanks, Abraham - that's just what I wanted to do.  I am transcribing a
handwritten piece and it was written with the slur there.

I changed it from this
We Cru- sa- ders of the Eu- cha-_ rist,

to this:
We Cru- sa- ders of the Eu- cha- _ rist,

And with your fix it now shows correctly.
I am a programmer, and never in the world would I have used brackets and
parenthesis like that!

Thank you!







--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Two-Syllable-Beam-with-Sharp-and-Slur-tp178891p178895.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


Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread BGM
My hymn has a key signature of B Major, so I have to manually sharp all the
naturals in the code.

On this one syllable - the "cha-" in Eucharist, I need to have the beamed
8th notes span for one syllable, and both be sharped AND still keep the slur
line.

How do I do that?

melody = \relative c' {
\global
\partial 8
fis8 b4 ais8[ gis] fis2 dis8[ e] dis8([ c]) b4. b8 e4 ...
}

wordsOne = \lyricmode {
\set stanza = "1. "
We Cru- sa- ders of the Eu- cha-_ rist,
With joy we _  con- se- crate to Your Heart ...
}


 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Two-Syllable-Beam-with-Sharp-and-Slur-tp178891.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


CueVoice related display problem

2015-07-21 Thread Menu Jacques
Hello folks,

How can I get the rests parallel to the CueVoice to be as in the attached PNG 
image, i.e right below the staff?
Also, the flute stems are too short.

Thanks a lot!

JM


%%%
\version "2.19.22"

\relative {
  \clef "alto"
  \key d \major
  \time 2/4

  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
  R2*2

  <<
{
  R2 R2 R2 R2
  \cueClefUnset
}
\new CueVoice {
  \set instrumentCueName = "Flöte"
  \cueClef "treble"
  \relative {
a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
a4. r8 | % 235
a8 -. [ a8 -. a8 -. a8 -. ] | % 236
a8 -. [ b8 -. cis8 -. ] r8
  }
}
  >>

  d,2 | % 239
  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
}
%%%

What I get:


What I’d like to get:




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


Key Signature only on first staff

2015-07-21 Thread BGM
My piece is in B Major and the repition of the key signature takes up a lot
of room on the page.  

I would like to show it on the first staff only and suppress the rest.
What do I do?

My script is set up like this:

global = {
\time 4/4
\tempo 4=90
\key b \major
}

melody = \relative c' {
\global
   ...the music...
}

wordsOne = \lyricmode{
   \set stanza = "1"
...the lyrics...
}
wordsTwo = \lyricmode{
   \set stanza = "2"
...the lyrics...
}

\score {
<<
\new Staff {
\melody
}
\addlyrics { \wordsOne }
\addlyrics { \wordsTwo }
\addlyrics { \wordsThree }
\addlyrics { \wordsFour }

>>

\layout {
\context {
\Score
}
\context {
\Lyrics
}
}
  \midi { }
}




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Key-Signature-only-on-first-staff-tp178898.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: CueVoice related display problem

2015-07-21 Thread David Kastrup
Menu Jacques  writes:

> Hello folks,
>
> How can I get the rests parallel to the CueVoice to be as in the
> attached PNG image, i.e right below the staff?

Well, there is a bit more manual work involved than I like (if your
quoted Voice is placed in a music quote, \cueDuring will take some of
that work away), but you can use something like

\version "2.19.22"

\relative {
  \clef "alto"
  \key d \major
  \time 2/4

  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
  R2*2

  <<
\new Voice { \voiceTwo
  R2 R2 R2 \tweak staff-position #-6 R2
  \cueClefUnset
}
\new CueVoice {
  \set instrumentCueName = "Flöte"
  \cueClef "treble"
  \relative {
a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
a4. r8 | % 235
a8 -. [ a8 -. a8 -. a8 -. ] | % 236
a8 -. [ b8 -. cis8 -. ] r8
  }
}
  >>

  d,2 | % 239
  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
}


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


\offset and mutable properties

2015-07-21 Thread Simon Albrecht

Hello,

while developing a workaround (or solution?) for issue 4316 
, I 
encountered the following problem: \offset cannot be used on X and Y 
offset properties, apparently because these are mutable, and as the doc 
string for (offsetter) in scm/music-functions.scm states, \offset is 
limited to work only on immutable properties. (I haven’t really gotten 
behind the distinction of mutable/immutable properties…)
Now, I don’t really know how to circumvent this, and it seems like a 
really important usecase for \offset. Do you have any ideas here?


For more context, see issue 4316 and the current version of the \off 
function I’m developing (attached; I hope it’s readable by the comments 
I gave).


TIA,
Simon
\version "2.19.23"

off =
#(define-music-function
  (spec event)
  (pair? ly:music?)
  "Shift grobs using X- and Y-offset, with outside-staff-priority unset by default.

Provides dedicated input modes for Dynamics in order to handle the tricky interaction with DynamicLineSpanner and both settings of outside-staff-priority.
"
  ;; default values
  (define x-off 0)
  (define y-off 0)
  (define inside-staff? #t)
  (define dynamic? #f)
  (define dyn-line-off 0)

  (define (spec-type? spec symbol-list)
(and (list? spec)
 (member (car spec) symbol-list)))

  ;; Apply tweak only if cond? is true
  (define (cond-tweak cond? prop val arg)
(if cond? (tweak prop val arg) arg))

  ;; differentiate between spec-types
  (cond
   ((number-pair? spec)
(set! x-off (car spec))
(set! y-off (cdr spec)))
   ;; Offset DynamicText and Hairpin.
   ((spec-type? spec '(dynamic dyn d))
(set! dynamic? #t)
(set! x-off (second spec))
(set! y-off (third spec)))
   ;; Offset DynamicLineSpanner; Y-offset only
   ((spec-type? spec '(dynamic-line dyn-line dl))
;; Allow requiring outside-staff placement
;; by giving #f as an additional element.
(if (= 3 (length spec)) (set! inside-staff? (third spec)))
(set! dyn-line-off (second spec)))
   (else (ly:warning "Cannot read specification for offset - using default values.")))

  (cond-tweak inside-staff? 'outside-staff-priority #f
(offset 'X-offset x-off
  (offset 'Y-offset y-off
(cond-tweak
 (and dynamic? inside-staff?)
 '(DynamicLineSpanner outside-staff-priority)
 #f
 (offset '(DynamicLineSpanner Y-offset) dyn-line-off event))

\relative {
  \hideNotes
  \dynamicUp
  b'2-\off #'(dl 0) -\off #'(d 0 0) \< 2\f\>
  2 2\!\<
  2\f
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Key Signature only on first staff

2015-07-21 Thread Simon Albrecht

Hello Brother Gabriel,

Am 21.07.2015 um 19:11 schrieb BGM:

My piece is in B Major and the repetition of the key signature takes up a lot
of room on the page.

I would like to show it on the first staff only and suppress the rest.

That is unusual, but I’ve seen it done in hymn books on small formats.

What do I do?

The LilyPond command you want is very straightforward: \omit KeySignature.
I attach an example which also features a parallel music expression 
containing layout information and omits the clefs.


\version "2.19.23"

\paper { 
  #(set-paper-size "a6")
  ragged-right = ##t
}

music = \relative {
  fis'1
  fis
  fis
}

aux = {
  \key b \major
  s1
  \omit Staff.KeySignature
  \omit Staff.Clef
  \omit Staff.ClefModifier
  s
  \break
  s
  \bar "|."
}

\score {
  <<
\new Voice << \music \aux >>
\new Voice << \clef "treble_8" \music \aux >>
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Key Signature only on first staff

2015-07-21 Thread Simon Albrecht

Am 21.07.2015 um 19:43 schrieb Simon Albrecht:

Hello Brother Gabriel,

Am 21.07.2015 um 19:11 schrieb BGM:
My piece is in B Major and the repetition of the key signature takes 
up a lot

of room on the page.

I would like to show it on the first staff only and suppress the rest.

That is unusual, but I’ve seen it done in hymn books on small formats.

What do I do?

The LilyPond command you want is very straightforward: \omit KeySignature.
Actually, you need Staff.KeySignature, because the KeySignature lives in 
Staff, not in Voice (as Bottom context).
I attach an example which also features a parallel music expression 
containing layout information and omits the clefs.

Only I forgot to give you my best regards before hitting ‘Send’ :-)
Simon

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


Re: Key Signature only on first staff

2015-07-21 Thread Wols Lists
On 21/07/15 18:43, Simon Albrecht wrote:
> Hello Brother Gabriel,
> 
> Am 21.07.2015 um 19:11 schrieb BGM:
>> My piece is in B Major and the repetition of the key signature takes
>> up a lot
>> of room on the page.
>>
>> I would like to show it on the first staff only and suppress the rest.
> That is unusual, but I’ve seen it done in hymn books on small formats.

I hate it, but actually, it is very normal!

Mostly in Brass Band march parts, but pretty much any part from the
first half of last century (and I play a few!) only display the key
signature when it changes.

Cheers,
Wol

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


Re: Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread Trevor Daniels

BGM  wrote Tuesday, July 21, 2015 5:37 PM

> I am a programmer, and never in the world would I have used brackets and
> parenthesis like that!

It's better not to think of them as brackets and parentheses, because they are 
not, they are symbols indicating the start and end points of beams and slurs.  
Have a look at

http://www.lilypond.org/doc/v2.19/Documentation/learning/on-the-un_002dnestedness-of-brackets-and-ties

for an overview.

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


Re: Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread Brother Gabriel-Marie
Say, you all are very friendly!  I didn't expect such 
enthusiastic help!
I started asking questions on Music Stack Exchange and they 
were giving me such a hard time that I was getting a bit 
discouraged.

http://music.stackexchange.com/questions/34199/lilypond-incorrectly-displaying-natural-signs-in-b-major/34206#34206

I am a regular user of Gregorio, and I know Gregorian Chant 
pretty well, but I am learning music theory for modern 
nation as I go. At the moment I am creating a childrens' 
hymnal for Eucharistic Crusaders - I have an old booklet 
hand-written by nuns and am using Frescobaldi with Lilypond 
to typeset everything.  I'm not completely new to modern 
notation, but I never learned it as a child (we didn't study 
that in the hills where I'm from).


So as I proceed with this little booklet, I'm sure to have 
other questions that I can't resolve by googling or 
searching the docs. I will be pleased to use the list!  
Thanks for being so nice!


On 7/21/2015 12:51 PM, Trevor Daniels wrote:

BGM  wrote Tuesday, July 21, 2015 5:37 PM


I am a programmer, and never in the world would I have used brackets and
parenthesis like that!

It's better not to think of them as brackets and parentheses, because they are 
not, they are symbols indicating the start and end points of beams and slurs.  
Have a look at

http://www.lilypond.org/doc/v2.19/Documentation/learning/on-the-un_002dnestedness-of-brackets-and-ties

for an overview.

Trevor


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


Align instrumentName baseline (?) to Lyrics baseline

2015-07-21 Thread RomanticStrings
How might I ensure that the bottom of a columned instrumentName aligns to the
bottom of the Lyrics in a score?

I am trying to imitate chant notation with the initial capital and mode in a
centered column, but I don't know how to make sure that the bottom of the
"A" lines up with the bottom of the "L" under the music.  Is there a
different way to approach this than with instrumentName?

InstrName-Lyrics-align.ly
  

InstrName-Lyrics-align.pdf
 
 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Align-instrumentName-baseline-to-Lyrics-baseline-tp178907.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: Key Signature only on first staff

2015-07-21 Thread Brother Gabriel-Marie

Mr. Albrecht,
Where do I add the
\omit Staff.KeySignature
in my composition?

You are using a different setup.
Or do I have to change the way I'm laying it out?


global = {
\time 4/4
\tempo 4=90
\key b \major
}

melody = \relative c' {
\global
   ...the music...
}

wordsOne = \lyricmode{
   \set stanza = "1"
...the lyrics...
}
wordsTwo = \lyricmode{
   \set stanza = "2"
...the lyrics...
}

\score {
<<
\new Staff {
\melody
}
\addlyrics { \wordsOne }
\addlyrics { \wordsTwo }
\addlyrics { \wordsThree }
\addlyrics { \wordsFour }
>>
\layout {
\context {
\Score
}
\context {
\Lyrics
}
}
  \midi { }
}
On 7/21/2015 12:43 PM, Simon Albrecht wrote:

Hello Brother Gabriel,

Am 21.07.2015 um 19:11 schrieb BGM:
My piece is in B Major and the repetition of the key 
signature takes up a lot

of room on the page.

I would like to show it on the first staff only and 
suppress the rest.
That is unusual, but I’ve seen it done in hymn books on 
small formats.

What do I do?
The LilyPond command you want is very straightforward: 
\omit KeySignature.
I attach an example which also features a parallel music 
expression containing layout information and omits the clefs.




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


Attachment size

2015-07-21 Thread Ralph Palmer
Hello again -

While we're at it, does anyone have any suggestions for reducing image
size? I started with a .jpg with fairly high resolution, I guess. I have
Gimp2 installed, but I could not figure out how to get the file size down
below 2 Mb. I tried fiddling with the resolution and  exporting to .png and
to .pdf, but neither got the size below 2 Mb. Any suggestions?

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Two-Syllable Beam with Sharp and Slur

2015-07-21 Thread Robert Schmaus


Am 21/07/15 um 20:16 schrieb Brother Gabriel-Marie:
> I started asking questions on Music Stack Exchange and they were giving
> me such a hard time that I was getting a bit discouraged.
> http://music.stackexchange.com/questions/34199/lilypond-incorrectly-displaying-natural-signs-in-b-major/34206#34206

Since you provided the link to show us the hard time you've had on Stack
Exchange: I beg to differ. You were entering all-natural notes but
provided a key signature of b-major. Then you asked on SE why almost all
notes have natural signs in front of them.

What the folk on SE did was (1) helping you - like asking if you meant
gis instead of g, or if the piece really was in Bb or indeed C - and (2)
telling you that any music engraving software is just a tool which you
will only be able to use properly if you understand (at least roughly)
what you're doing. Which your answers on SE indicate you did not, if I
may be so bold.

So, while you should not get discouraged, you should nevertheless be
open to suggestions and criticism. This mailing list is full of
extraordinarily helpful and nice people, that's for sure, but the SE
guys were rather helpful as well. All they did in addition was
suggesting to become more familiar with musical theory, notation, and
indeed the stuff you were actually trying to transcribe.

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


Re: Key Signature only on first staff

2015-07-21 Thread Simon Albrecht

Am 21.07.2015 um 20:29 schrieb Brother Gabriel-Marie:

Mr. Albrecht,
Where do I add the
\omit Staff.KeySignature
in my composition?
After the first note or measure, so it affects all but the first key 
signatures.


You are using a different setup.
Or do I have to change the way I'm laying it out?
You have to do nothing. Laying out one’s LilyPond files can be a quite 
personal decision on what you like best; I was merely proposing a way 
which proves to be robust for larger and more complicated setups also.


In general, I’d suggest the Learning Manual as a must-read gentle 
introduction to LilyPond: 
.


Happy Ponding,
Simon



global = {
\time 4/4
\tempo 4=90
\key b \major
}

melody = \relative c' {
\global
   ...the music...
}

wordsOne = \lyricmode{
   \set stanza = "1"
...the lyrics...
}
wordsTwo = \lyricmode{
   \set stanza = "2"
...the lyrics...
}

\score {
<<
\new Staff {
\melody
}
\addlyrics { \wordsOne }
\addlyrics { \wordsTwo }
\addlyrics { \wordsThree }
\addlyrics { \wordsFour }
>>
\layout {
\context {
\Score
}
\context {
\Lyrics
}
}
  \midi { }
}
On 7/21/2015 12:43 PM, Simon Albrecht wrote:

Hello Brother Gabriel,

Am 21.07.2015 um 19:11 schrieb BGM:
My piece is in B Major and the repetition of the key signature takes 
up a lot

of room on the page.

I would like to show it on the first staff only and suppress the rest.

That is unusual, but I’ve seen it done in hymn books on small formats.

What do I do?
The LilyPond command you want is very straightforward: \omit 
KeySignature.
I attach an example which also features a parallel music expression 
containing layout information and omits the clefs.






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


Re: Attachment size

2015-07-21 Thread Simon Albrecht

Am 21.07.2015 um 20:55 schrieb Ralph Palmer:

Hello again -

While we're at it, does anyone have any suggestions for reducing image 
size? I started with a .jpg with fairly high resolution, I guess. I 
have Gimp2 installed, but I could not figure out how to get the file 
size down below 2 Mb. I tried fiddling with the resolution and 
 exporting to .png and to .pdf, but neither got the size below 2 Mb. 
Any suggestions?
On Ubuntu, I have the ‘Simple image reducer’ installed, which is 
designed for exactly that. It supports different output formats also.


HTH, Simon

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


Problem with merging notes and accidental placement in two voices

2015-07-21 Thread Ralph Palmer
Greetings -

(This is the second time - my original .png was too large.)

I'm running LilyPond 18.2 under Win7.

I'm attaching 3 files:
1) NoteMergeAndAccidentals.ly   :   LilyPond source file with no tweaks
2) NoteMergeAndAccidentals.pdf   :  a PDF of NoteMergeAndAccidentals.ly
3)NoteMergeAndAccidentalsOriginal.png   :   what I'm trying to replicate.

I'm having problems with some music in two vioces. I can "un-merge" the
first two notes in the accompanying .ly file, but I can't seem to un-merge
the accidentals. I'm also unable to get separate the a-flat and a-natural
and get their accidentals next to the notes.

I would appreciate any help with these issues.

Thanks for your time and attention,

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
\version "2.18.2"

%%% Problem both with merging noteheads AND with accidentals 

\language "english" 

\relative c' { 
\clef treble
\key bf \major
\time 2/4
<< 
  \voiceOne
  { 
  e'8. r16 a,!8. r16 |
  } 
   \\
   \new Voice
   \voiceTwo
{ 
  ef'!8. r16 af,8 gf16 r |
} 
>>
}

NoteMergeAndAccidentals.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: CueVoice related display problem

2015-07-21 Thread Menu Jacques
Hello David,

Thanks for your help!

I’ll look more into \cueDuring, but this solution is already fine.

JM

> Le 21 juil. 2015 à 19:19, David Kastrup  a écrit :
> 
> Menu Jacques  writes:
> 
>> Hello folks,
>> 
>> How can I get the rests parallel to the CueVoice to be as in the
>> attached PNG image, i.e right below the staff?
> 
> Well, there is a bit more manual work involved than I like (if your
> quoted Voice is placed in a music quote, \cueDuring will take some of
> that work away), but you can use something like
> 
> \version "2.19.22"
> 
> \relative {
>  \clef "alto"
>  \key d \major
>  \time 2/4
> 
>  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
>  R2*2
> 
>  <<
>\new Voice { \voiceTwo
>  R2 R2 R2 \tweak staff-position #-6 R2
>  \cueClefUnset
>}
>\new CueVoice {
>  \set instrumentCueName = "Flöte"
>  \cueClef "treble"
>  \relative {
>a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
>a4. r8 | % 235
>a8 -. [ a8 -. a8 -. a8 -. ] | % 236
>a8 -. [ b8 -. cis8 -. ] r8
>  }
>}
>>> 
> 
>  d,2 | % 239
>  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
> }
> 
> 
> -- 
> David Kastrup
> ___
> 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 merging notes and accidental placement in two voices

2015-07-21 Thread Simon Albrecht

Hi Ralph,

this is issue 1134 
. There are 
workarounds tracked there.


HTH, Simon

Am 21.07.2015 um 21:13 schrieb Ralph Palmer:

Greetings -

(This is the second time - my original .png was too large.)

I'm running LilyPond 18.2 under Win7.

I'm attaching 3 files:
1) NoteMergeAndAccidentals.ly   :   LilyPond source file with no tweaks
2) NoteMergeAndAccidentals.pdf   :  a PDF of NoteMergeAndAccidentals.ly
3)NoteMergeAndAccidentalsOriginal.png   :   what I'm trying to replicate.

I'm having problems with some music in two vioces. I can "un-merge" 
the first two notes in the accompanying .ly file, but I can't seem to 
un-merge the accidentals. I'm also unable to get separate the a-flat 
and a-natural and get their accidentals next to the notes.


I would appreciate any help with these issues.

Thanks for your time and attention,

Ralph

--
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com 


___
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: Attachment size

2015-07-21 Thread Malte Meyn
The GIMP can export to jpg and png; in the export window you can change 
the compression level or quality – higher compression means lower 
quality but also smaller files. How much the file size changes and which 
image format is better (in quality, file size, …) depends on the image 
content.


Am 21.07.2015 um 20:55 schrieb Ralph Palmer:

Hello again -

While we're at it, does anyone have any suggestions for reducing image
size? I started with a .jpg with fairly high resolution, I guess. I have
Gimp2 installed, but I could not figure out how to get the file size down
below 2 Mb. I tried fiddling with the resolution and  exporting to .png and
to .pdf, but neither got the size below 2 Mb. Any suggestions?

Ralph



___
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: Key Signature only on first staff

2015-07-21 Thread Brother Gabriel-Marie
Okay, well, I have actually read the learning manual, just 
so everyone knows.


If I place \omit Staff.KeySignature anywhere significant, it 
removes the key signature, but it removes it also from the 
first staff too.  I want the key signature at the very 
beginning.


On 7/21/2015 2:02 PM, Simon Albrecht wrote:

Am 21.07.2015 um 20:29 schrieb Brother Gabriel-Marie:

Mr. Albrecht,
Where do I add the
\omit Staff.KeySignature
in my composition?
After the first note or measure, so it affects all but the 
first key signatures.


You are using a different setup.
Or do I have to change the way I'm laying it out?
You have to do nothing. Laying out one’s LilyPond files 
can be a quite personal decision on what you like best; I 
was merely proposing a way which proves to be robust for 
larger and more complicated setups also.


In general, I’d suggest the Learning Manual as a must-read 
gentle introduction to LilyPond: 
.


Happy Ponding,
Simon



global = {
\time 4/4
\tempo 4=90
\key b \major
}

melody = \relative c' {
\global
   ...the music...
}

wordsOne = \lyricmode{
   \set stanza = "1"
...the lyrics...
}
wordsTwo = \lyricmode{
   \set stanza = "2"
...the lyrics...
}

\score {
<<
\new Staff {
\melody
}
\addlyrics { \wordsOne }
\addlyrics { \wordsTwo }
\addlyrics { \wordsThree }
\addlyrics { \wordsFour }
>>
\layout {
\context {
\Score
}
\context {
\Lyrics
}
}
  \midi { }
}
On 7/21/2015 12:43 PM, Simon Albrecht wrote:

Hello Brother Gabriel,

Am 21.07.2015 um 19:11 schrieb BGM:
My piece is in B Major and the repetition of the key 
signature takes up a lot

of room on the page.

I would like to show it on the first staff only and 
suppress the rest.
That is unusual, but I’ve seen it done in hymn books on 
small formats.

What do I do?
The LilyPond command you want is very straightforward: 
\omit KeySignature.
I attach an example which also features a parallel music 
expression containing layout information and omits the 
clefs.








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


Re: Key Signature only on first staff

2015-07-21 Thread Malte Meyn
You have to insert the \omit commands not in the first bar but later. 
The following code hopefully does what you want. Explanation: I used a 
spacer rest (s1) in global. Because this would move not only the \omits 
but also the beginning of the melody, I moved the \global from the 
beginning of the melody to the \new Staff, where melody and global are 
now simultaneous.


\version "2.19.22"

global = {
  \time 4/4
  \tempo 4=90
  \key b \major
  s1
  \omit Staff.KeySignature
  \omit Staff.Clef
}

melody = \relative c' {
  \repeat unfold 10 { cis dis e fis }
}

wordsOne = \lyricmode{
  \set stanza = "1"
  c d e f g
}
wordsTwo = \lyricmode{
  \set stanza = "2"
  c d e f g
}

\score {
  <<
\new Staff <<
  \global
  \melody
>>
\addlyrics { \wordsOne }
\addlyrics { \wordsTwo }
  >>
}

Am 21.07.2015 um 21:48 schrieb Brother Gabriel-Marie:


global = {
 \time 4/4
 \tempo 4=90
 \key b \major
}

melody = \relative c' {
 \global
...the music...
}

wordsOne = \lyricmode{
\set stanza = "1"
 ...the lyrics...
}
wordsTwo = \lyricmode{
\set stanza = "2"
 ...the lyrics...
}

\score {
 <<
 \new Staff {
 \melody
 }
 \addlyrics { \wordsOne }
 \addlyrics { \wordsTwo }
 \addlyrics { \wordsThree }
 \addlyrics { \wordsFour }
 >>
 \layout {
 \context {
 \Score
 }
 \context {
 \Lyrics
 }
 }
   \midi { }
}


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


RE:Attachment size

2015-07-21 Thread Stephen MacNeil
Not sure if this will help but, I only run LFS so no bells and whistles. So
to do this i wrote a few scripts that use ghostscript.

modify what you need or use it as it is

gsPdf - prints specified pages from a larger pdf
gsJpg - creates jpg images from pdf files

(all small in size)

they assume a  $HOME/tmp/ directory

http://mglessons.com/lilypond/gsPrint/gsJpg

http://mglessons.com/lilypond/gsPrint/gsPdf

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


Re: Align instrumentName baseline (?) to Lyrics baseline

2015-07-21 Thread RomanticStrings
Here is an image of the score:

 

Here is the example of the chant notation score I am trying to imitate:


 

~Conor



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Align-instrumentName-baseline-to-Lyrics-baseline-tp178907p178922.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: \offset and mutable properties

2015-07-21 Thread David Nalesnik
Hi Simon,

On Tue, Jul 21, 2015 at 12:26 PM, Simon Albrecht 
wrote:

> Hello,
>
> while developing a workaround (or solution?) for issue 4316 <
> https://code.google.com/p/lilypond/issues/detail?id=4316>, I encountered
> the following problem: \offset cannot be used on X and Y offset properties,
> apparently because these are mutable, and as the doc string for (offsetter)
> in scm/music-functions.scm states, \offset is limited to work only on
> immutable properties. (I haven’t really gotten behind the distinction of
> mutable/immutable properties…)
> Now, I don’t really know how to circumvent this, and it seems like a
> really important usecase for \offset. Do you have any ideas here?
>
>
The issue of mutable properties is actually only a problem with
Hairpin.X-offset in your example.  You'll note that each of the other
properties you offset has a default value in scm/define-grobs.scm to
calculate a displacement against.

The problem with these other properties is that "unpure-pure containers"
are involved, and the current implementation of \offset has no provision
for dealing with this situation.  If it could, a number of use cases would
be opened up--some very handy ones at that.

It is straightforward to redefine \offset to extract the unpure component
in such cases and use that to offset against.  (See attached.)  I haven't
noticed any problems, but I do wonder if a problem might occur, say, if the
change to the property should properly result in a different line break.

Now, whether it would be feasible to offset against mutable properties I'm
not sure.  I've never had success getting changes to values stored there to
have any effect on output.  Too late in the game?

Hope this helps,
David
\version "2.19.23"

#(define (find-value-to-offset prop self alist)
  "Return the first value of the property @var{prop} in the property
alist @var{alist} -- after having found @var{self}.  If @var{self} is
not found, return the first value of @var{prop}."
  (let ((segment (member (cons prop self) alist)))
(if (not segment)
(assoc-get prop alist)
(assoc-get prop (cdr segment)

#(define (offset-multiple-types arg offsets)
  "Displace @var{arg} by @var{offsets} if @var{arg} is a number, a
number pair, or a list of number pairs.  If @var{offsets} is an empty
list or if there is a type-mismatch, @var{arg} will be returned."
  (cond
((and (number? arg) (number? offsets))
 (+ arg offsets))
((and (number-pair? arg)
  (or (number? offsets)
  (number-pair? offsets)))
 (coord-translate arg offsets))
((and (number-pair-list? arg) (number-pair-list? offsets))
 (map
   (lambda (x y) (coord-translate x y))
   arg offsets))
(else arg)))

#(define-public (offsetter property offsets)
  "Apply @var{offsets} to the default values of @var{property} of @var{grob}.
Offsets are restricted to immutable properties and values of type @code{number},
@code{number-pair}, or @code{number-pair-list}."
  (define (self grob)
(let* ((immutable (ly:grob-basic-properties grob))
   ; We need to search the basic-properties alist for our property to
   ; obtain values to offset.  Our search is complicated by the fact that
   ; calling the music function `offset' as an override conses a pair to
   ; the head of the alist.  This pair must be discounted.  The closure it
   ; contains is named `self' so it can be easily recognized.  If `offset'
   ; is called as a tweak, the basic-property alist is unaffected.
   (target (find-value-to-offset property self immutable))
   ; if target is a procedure, we need to apply it to our grob to calculate
   ; values to offset.
   (vals
 (cond ((ly:unpure-pure-container? target)
((ly:unpure-pure-container-unpure-part target) grob))
   ((procedure? target) (target grob))
   (else target)))
   (can-type-be-offset?
 (or (number? vals)
 (number-pair? vals)
 (number-pair-list? vals

  (if can-type-be-offset?
  ; '(+inf.0 . -inf.0) would offset to itself.  This will be confusing to a
  ; user unaware of the default value of the property, so issue a warning.
  (if (equal? empty-interval vals)
  (ly:warning "default '~a of ~a is ~a and can't be offset"
property grob vals)
  (let* ((orig (ly:grob-original grob))
 (siblings
   (if (ly:spanner? grob)
   (ly:spanner-broken-into orig)
   '()))
 (total-found (length siblings))
 ; Since there is some flexibility in input syntax,
 ; structure of `offsets' is normalized.
 (offsets
   (if (or (not (pair? offsets))
   (number-pair?

Re: lilypond-user Digest, Vol 152, Issue 74

2015-07-21 Thread Brother Gabriel-Marie

Malte,

Okay, that does work for suppressing the key signatures in 
the latter staves, but I start my melody with a \partial 8 
and the spacer throws off the count.


So I took that line:
\omit Staff.KeySignature

and threw it in after the leading note in the melody and it 
worked!


As it turns out, that's all I had to do in the first place.
Let the signature print the first time and *then* disable it.

Thanks!

On 7/21/2015 2:56 PM, lilypond-user-requ...@gnu.org wrote:

Send lilypond-user mailing list submissions to
lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
lilypond-user-requ...@gnu.org

You can reach the person managing the list at
lilypond-user-ow...@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."


Today's Topics:

1. Re:CueVoice related display problem (Menu Jacques)
2. Re:Problem with merging notes and accidental placement in two
   voices (Simon Albrecht)
3. Re:Attachment size (Malte Meyn)
4. Re:Key Signature only on first staff (Brother Gabriel-Marie)
5. Re:Key Signature only on first staff (Malte Meyn)
6. RE:Attachment size (Stephen MacNeil)


--

Message: 1
Date: Tue, 21 Jul 2015 21:24:28 +0200
From: Menu Jacques 
To: David Kastrup 
Cc: Menu Jacques , lilypond-user

Subject: Re: CueVoice related display problem
Message-ID: <3cb7870c-a331-46fb-9beb-698257502...@bluewin.ch>
Content-Type: text/plain; charset=windows-1252

Hello David,

Thanks for your help!

I?ll look more into \cueDuring, but this solution is already fine.

JM


Le 21 juil. 2015 ? 19:19, David Kastrup  a ?crit :

Menu Jacques  writes:


Hello folks,

How can I get the rests parallel to the CueVoice to be as in the
attached PNG image, i.e right below the staff?

Well, there is a bit more manual work involved than I like (if your
quoted Voice is placed in a music quote, \cueDuring will take some of
that work away), but you can use something like

\version "2.19.22"

\relative {
  \clef "alto"
  \key d \major
  \time 2/4

  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
  R2*2

  <<
\new Voice { \voiceTwo
  R2 R2 R2 \tweak staff-position #-6 R2
  \cueClefUnset
}
\new CueVoice {
  \set instrumentCueName = "Fl?te"
  \cueClef "treble"
  \relative {
a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
a4. r8 | % 235
a8 -. [ a8 -. a8 -. a8 -. ] | % 236
a8 -. [ b8 -. cis8 -. ] r8
  }
}
  d,2 | % 239
  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
}


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




--

Message: 2
Date: Tue, 21 Jul 2015 21:29:31 +0200
From: Simon Albrecht 
To: Ralph Palmer , lilypond-user
Mailinglist 
Subject: Re: Problem with merging notes and accidental placement in
two voices
Message-ID: <55ae9d9b.6060...@mail.de>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hi Ralph,

this is issue 1134
<https://code.google.com/p/lilypond/issues/detail?id=1134>. There are
workarounds tracked there.

HTH, Simon

Am 21.07.2015 um 21:13 schrieb Ralph Palmer:

Greetings -

(This is the second time - my original .png was too large.)

I'm running LilyPond 18.2 under Win7.

I'm attaching 3 files:
1) NoteMergeAndAccidentals.ly   :   LilyPond source file with no tweaks
2) NoteMergeAndAccidentals.pdf   :  a PDF of NoteMergeAndAccidentals.ly
3)NoteMergeAndAccidentalsOriginal.png   :   what I'm trying to replicate.

I'm having problems with some music in two vioces. I can "un-merge"
the first two notes in the accompanying .ly file, but I can't seem to
un-merge the accidentals. I'm also unable to get separate the a-flat
and a-natural and get their accidentals next to the notes.

I would appreciate any help with these issues.

Thanks for your time and attention,

Ralph

--
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com <mailto:palmer.r.vio...@gmail.com>


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

-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.gnu.org/archive/html/lilypond-user/attachments/20150721/5f257a54/attachment.html>

--

Message: 3
Date: Tue, 21 Jul 2015 21:44:41 +0200
From: Malte Meyn 
To: lilypond-user@gnu.org
Subject: Re: Attachment size
Message-ID: <55aea129.1070...@malteme

Re: lilypond-user Digest, Vol 152, Issue 74

2015-07-21 Thread Malte Meyn
Spacer rests can be made of arbitrary length, so s8 instead of s1 would 
do the trick too ;) But your solution is easier, why didn’t I think of that?


Am 21.07.2015 um 22:22 schrieb Brother Gabriel-Marie:

Malte,

Okay, that does work for suppressing the key signatures in the latter
staves, but I start my melody with a \partial 8 and the spacer throws
off the count.

So I took that line:
\omit Staff.KeySignature

and threw it in after the leading note in the melody and it worked!

As it turns out, that's all I had to do in the first place.
Let the signature print the first time and *then* disable it.

Thanks!

On 7/21/2015 2:56 PM, lilypond-user-requ...@gnu.org wrote:

Send lilypond-user mailing list submissions to
lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
lilypond-user-requ...@gnu.org

You can reach the person managing the list at
lilypond-user-ow...@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."


Today's Topics:

1. Re:CueVoice related display problem (Menu Jacques)
2. Re:Problem with merging notes and accidental placement in two
   voices (Simon Albrecht)
3. Re:Attachment size (Malte Meyn)
4. Re:Key Signature only on first staff (Brother Gabriel-Marie)
5. Re:Key Signature only on first staff (Malte Meyn)
6. RE:Attachment size (Stephen MacNeil)


--

Message: 1
Date: Tue, 21 Jul 2015 21:24:28 +0200
From: Menu Jacques 
To: David Kastrup 
Cc: Menu Jacques , lilypond-user

Subject: Re: CueVoice related display problem
Message-ID: <3cb7870c-a331-46fb-9beb-698257502...@bluewin.ch>
Content-Type: text/plain; charset=windows-1252

Hello David,

Thanks for your help!

I?ll look more into \cueDuring, but this solution is already fine.

JM


Le 21 juil. 2015 ? 19:19, David Kastrup  a ?crit :

Menu Jacques  writes:


Hello folks,

How can I get the rests parallel to the CueVoice to be as in the
attached PNG image, i.e right below the staff?

Well, there is a bit more manual work involved than I like (if your
quoted Voice is placed in a music quote, \cueDuring will take some of
that work away), but you can use something like

\version "2.19.22"

\relative {
  \clef "alto"
  \key d \major
  \time 2/4

  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
  R2*2

  <<
\new Voice { \voiceTwo
  R2 R2 R2 \tweak staff-position #-6 R2
  \cueClefUnset
}
\new CueVoice {
  \set instrumentCueName = "Fl?te"
  \cueClef "treble"
  \relative {
a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
a4. r8 | % 235
a8 -. [ a8 -. a8 -. a8 -. ] | % 236
a8 -. [ b8 -. cis8 -. ] r8
  }
}
  d,2 | % 239
  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
}


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




--

Message: 2
Date: Tue, 21 Jul 2015 21:29:31 +0200
From: Simon Albrecht 
To: Ralph Palmer , lilypond-user
Mailinglist 
Subject: Re: Problem with merging notes and accidental placement in
two voices
Message-ID: <55ae9d9b.6060...@mail.de>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hi Ralph,

this is issue 1134
<https://code.google.com/p/lilypond/issues/detail?id=1134>. There are
workarounds tracked there.

HTH, Simon

Am 21.07.2015 um 21:13 schrieb Ralph Palmer:

Greetings -

(This is the second time - my original .png was too large.)

I'm running LilyPond 18.2 under Win7.

I'm attaching 3 files:
1) NoteMergeAndAccidentals.ly   :   LilyPond source file with no tweaks
2) NoteMergeAndAccidentals.pdf   :  a PDF of NoteMergeAndAccidentals.ly
3)NoteMergeAndAccidentalsOriginal.png   :   what I'm trying to
replicate.

I'm having problems with some music in two vioces. I can "un-merge"
the first two notes in the accompanying .ly file, but I can't seem to
un-merge the accidentals. I'm also unable to get separate the a-flat
and a-natural and get their accidentals next to the notes.

I would appreciate any help with these issues.

Thanks for your time and attention,

Ralph

--
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com <mailto:palmer.r.vio...@gmail.com>


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

-- next part --
An HTML attachment was scrubbed...
URL:
<http://lists.gnu.org/archive/html/lilypond-user/attachments/20150721/5f257a54/attachment.html>


-

Re: \offset and mutable properties

2015-07-21 Thread David Nalesnik
On Tue, Jul 21, 2015 at 3:17 PM, David Nalesnik 
wrote:

(See attached.)
>

Sorry about the extra brace at the end!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Attachment size

2015-07-21 Thread tisimst
You are probably doing this already, but in GIMP, go to "Image" > "Scale
Image" and change the Width/Height units to "Percent" and change it to
something smaller than 100% and hit "Scale". This should reduce the size of
the image nicely.

For reference, though, when saving to an image format, remember that JPG
will almost always be MUCH SMALLER than PNG (unfortunately), sometimes 2-3x
smaller in size because it is a compressed, lossy format. PNG can also do
compression, but mostly it doesn't compare in file size to JPG. Same with
JPG being smaller than PDF (usually).

Forgive the noise if you've already tried this and knew that about image
types, but that's what I would do.

- Abraham

On Tue, Jul 21, 2015 at 12:55 PM, Ralph Palmer [via Lilypond] <
ml-node+s1069038n178910...@n5.nabble.com> wrote:

> Hello again -
>
> While we're at it, does anyone have any suggestions for reducing image
> size? I started with a .jpg with fairly high resolution, I guess. I have
> Gimp2 installed, but I could not figure out how to get the file size down
> below 2 Mb. I tried fiddling with the resolution and  exporting to .png and
> to .pdf, but neither got the size below 2 Mb. Any suggestions?
>
> Ralph
>
> --
> Ralph Palmer
> Brattleboro, VT
> USA
> [hidden email] 
>
> ___
> 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/Attachment-size-tp178910.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/Attachment-size-tp178910p178927.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: Problem with merging notes and accidental placement in two voices

2015-07-21 Thread Ralph Palmer
On Tue, Jul 21, 2015 at 3:29 PM, Simon Albrecht 
wrote:

>  Hi Ralph,
>
> this is issue 1134
> 
> . There are
> workarounds tracked there.
>
> HTH, Simon
>

Thanks, Simon, for the quick and helpful response! It looks like the
"human" workaround will do the trick.

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Attachment size

2015-07-21 Thread Ralph Palmer
On Tue, Jul 21, 2015 at 4:47 PM, tisimst  wrote:

> You are probably doing this already, but in GIMP, go to "Image" > "Scale
> Image" and change the Width/Height units to "Percent" and change it to
> something smaller than 100% and hit "Scale". This should reduce the size of
> the image nicely.
>
>
Thanks to all of you who responded to my query. I ended up not using Gimp
at all. I was able (after some hardware changes) to scan, then crop, the
page that was giving me the problem, and the end product came out quite
small.

Thanks again,

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Align instrumentName baseline (?) to Lyrics baseline

2015-07-21 Thread Klaus Blum
Hi Conor, 

not the most beautiful hack, but maybe it helps: Instead of instrumentName,
use a stanza object: 

% -

\version "2.19.21"

stemOff = { \hide Staff.Stem }

\score {
  <<
\new Staff
\relative c' {
  \stemOff
  \dynamicUp
  \cadenzaOn
  f4
}
\addlyrics {
  \set stanza =
  \markup {
\normal-text
\with-dimensions #'(0 . 0) #'(0 . 0)
\translate #'(-8 . 0)
\override #`(direction . ,UP)
\fontsize #1.5  % for the letter "V", maybe needs to be adjusted as
stanza numbers use a smaller font size
\dir-column {
  \abs-fontsize #36
  \center-align
  A
  \vspace #0.5
  \center-align
  V
}
  }
  L
}
  >>
  \layout {
\context {
  \Staff
  \remove "Time_signature_engraver"
}
ragged-right = ##t
  }
}

% -

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Align-instrumentName-baseline-to-Lyrics-baseline-tp178907p178930.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: \offset and mutable properties

2015-07-21 Thread Simon Albrecht

Hi David,

thanks for the response.

Am 21.07.2015 um 22:17 schrieb David Nalesnik:

Hi Simon,

On Tue, Jul 21, 2015 at 12:26 PM, Simon Albrecht 
mailto:simon.albre...@mail.de>> wrote:


Hello,

while developing a workaround (or solution?) for issue 4316
, I
encountered the following problem: \offset cannot be used on X and
Y offset properties, apparently because these are mutable, and as
the doc string for (offsetter) in scm/music-functions.scm states,
\offset is limited to work only on immutable properties. (I
haven’t really gotten behind the distinction of mutable/immutable
properties…)
Now, I don’t really know how to circumvent this, and it seems like
a really important usecase for \offset. Do you have any ideas here?


The issue of mutable properties is actually only a problem with 
Hairpin.X-offset in your example.

So a ‘mutable property’ would be one that is unset by default?
  You'll note that each of the other properties you offset has a 
default value in scm/define-grobs.scm
As a side note: I find it confusing that these are not to be found in 
the IR.

to calculate a displacement against.

The problem with these other properties is that "unpure-pure 
containers" are involved, and the current implementation of \offset 
has no provision for dealing with this situation.  If it could, a 
number of use cases would be opened up--some very handy ones at that.


It is straightforward to redefine \offset to extract the unpure 
component in such cases and use that to offset against.  (See 
attached.)  I haven't noticed any problems, but I do wonder if a 
problem might occur, say, if the change to the property should 
properly result in a different line break.


Now, whether it would be feasible to offset against mutable properties 
I'm not sure.  I've never had success getting changes to values stored 
there to have any effect on output.  Too late in the game?
I added issue 4516 
 for improving 
\offset and referenced your first suggestions there.


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


Re: \offset and mutable properties

2015-07-21 Thread Simon Albrecht
And I forgot to mention: Unfortunately, your offIIb.ly file doesn’t 
place the dynamics in the middle of the staff symbol as they should be – 
probably because of outside-staff-priority?


Thanks in advance,
Simon

Am 21.07.2015 um 22:17 schrieb David Nalesnik:

Hi Simon,

On Tue, Jul 21, 2015 at 12:26 PM, Simon Albrecht 
mailto:simon.albre...@mail.de>> wrote:


Hello,

while developing a workaround (or solution?) for issue 4316
, I
encountered the following problem: \offset cannot be used on X and
Y offset properties, apparently because these are mutable, and as
the doc string for (offsetter) in scm/music-functions.scm states,
\offset is limited to work only on immutable properties. (I
haven’t really gotten behind the distinction of mutable/immutable
properties…)
Now, I don’t really know how to circumvent this, and it seems like
a really important usecase for \offset. Do you have any ideas here?


The issue of mutable properties is actually only a problem with 
Hairpin.X-offset in your example.  You'll note that each of the other 
properties you offset has a default value in scm/define-grobs.scm to 
calculate a displacement against.


The problem with these other properties is that "unpure-pure 
containers" are involved, and the current implementation of \offset 
has no provision for dealing with this situation.  If it could, a 
number of use cases would be opened up--some very handy ones at that.


It is straightforward to redefine \offset to extract the unpure 
component in such cases and use that to offset against.  (See 
attached.)  I haven't noticed any problems, but I do wonder if a 
problem might occur, say, if the change to the property should 
properly result in a different line break.


Now, whether it would be feasible to offset against mutable properties 
I'm not sure.  I've never had success getting changes to values stored 
there to have any effect on output.  Too late in the game?


Hope this helps,
David





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


Re: \offset and mutable properties

2015-07-21 Thread David Nalesnik
Hi Simon,

On Tue, Jul 21, 2015 at 6:25 PM, Simon Albrecht 
wrote:

>  And I forgot to mention: Unfortunately, your offIIb.ly file doesn’t place
> the dynamics in the middle of the staff symbol as they should be – probably
> because of outside-staff-priority?
>
>
No, the Y-offset callback will return the same values whether
outside-staff-priority is its usual value or ##f.  \offset takes the result
of this Y-offset callback and offsets against it.

This is probably not what you want, but there's a tricky way to offset
against a user value, involving a combination of override and tweak:

 \relative {
  \hideNotes
  \dynamicUp
  \override DynamicLineSpanner.outside-staff-priority = ##f
  \override DynamicLineSpanner.Y-offset = 0 % try other values
  b'2
  -\offset DynamicLineSpanner.Y-offset 2
  \< 2\f\>
  2 2\f\<
  2\f
}

Here, of course, we could simply do the following :)

\relative {
  \hideNotes
  \dynamicUp
  \override DynamicLineSpanner.outside-staff-priority = ##f
  \override DynamicLineSpanner.Y-offset = 2
  b'2\< 2\f\>
  2 2\f\<
  2\f
}

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


Re: \offset and mutable properties

2015-07-21 Thread David Nalesnik
On Tue, Jul 21, 2015 at 6:18 PM, Simon Albrecht 
wrote:

>
>   So a ‘mutable property’ would be one that is unset by default?
>

My understanding is that immutable properties store default values--such as
a procedure to be applied when calculating Stem.thickness or whatever, and
immutable properties store the results of calculations for a particular
instance of a grob--for example, the value obtained by applying the default
procedure to a certain Stem.

These terms are defined here (a bit cryptically I think):
http://lilypond.org/doc/v2.19/Documentation/notation/technical-glossary

>
> You'll note that each of the other properties you offset has a
> default value in scm/define-grobs.scm
>
> As a side note: I find it confusing that these are not to be found in the
> IR.
>

But they are--for example,
http://lilypond.org/doc/v2.19/Documentation/internals/dynamiclinespanner is
built from the entry in scm/define-grobs.scm.


> I added issue 4516
> 
>  for improving
> \offset and referenced your first suggestions there.
>
>
Thanks!

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


Re: \offset and mutable properties

2015-07-21 Thread David Nalesnik
On Tue, Jul 21, 2015 at 7:43 PM, David Nalesnik 
wrote:

>
>
> On Tue, Jul 21, 2015 at 6:18 PM, Simon Albrecht 
> wrote:
>
>>
>>   So a ‘mutable property’ would be one that is unset by default?
>>
>
> My understanding is that immutable properties store default values--such
> as a procedure to be applied when calculating Stem.thickness or whatever,
> and immutable properties
>

Arghh.. "mutable"


> store the results of calculations for a particular instance of a grob--for
> example, the value obtained by applying the default procedure to a certain
> Stem.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \offset and mutable properties

2015-07-21 Thread Simon Albrecht

Am 22.07.2015 um 02:43 schrieb David Nalesnik:



On Tue, Jul 21, 2015 at 6:18 PM, Simon Albrecht 
mailto:simon.albre...@mail.de>> wrote:



So a ‘mutable property’ would be one that is unset by default?


My understanding is that immutable properties store default 
values--such as a procedure to be applied when calculating 
Stem.thickness or whatever, and immutable properties store the results 
of calculations for a particular instance of a grob--for example, the 
value obtained by applying the default procedure to a certain Stem.


These terms are defined here (a bit cryptically I think): 
http://lilypond.org/doc/v2.19/Documentation/notation/technical-glossary

Cryptically indeed :-)




  You'll note that each of the other properties you offset has a
default value in scm/define-grobs.scm

As a side note: I find it confusing that these are not to be found
in the IR.


But they are--for example, 
http://lilypond.org/doc/v2.19/Documentation/internals/dynamiclinespanner 
is built from the entry in scm/define-grobs.scm.

Where do I have my mind? …

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


Re: lilypond-user Digest, Vol 152, Issue 74

2015-07-21 Thread David Kastrup
Malte Meyn  writes:

> Spacer rests can be made of arbitrary length, so s8 instead of s1
> would do the trick too ;) But your solution is easier, why didn’t I
> think of that?
>
> Am 21.07.2015 um 22:22 schrieb Brother Gabriel-Marie:
>> Malte,
>>
>> Okay, that does work for suppressing the key signatures in the latter
>> staves, but I start my melody with a \partial 8 and the spacer throws
>> off the count.

Both of you have quoted an entire daily digest in your replies.

DO NOT EVER DO THIS!

Both of your mails will appear in the next daily digest, meaning that
the next daily digest will contain 2 complete quotes of the last daily
digest.

Keep this up for a week, and 95% of all list traffic will consist of
regurgitated old digests.

Preferably _never_ reply to a digest (that gives a useless subject line
and cross references that would make it possible for mail readers to
group mails into threads).  And _never_ leave any material in your reply
that you are not actually referring to.  It just accumulates (or in the
case of digests, grows exponentially) in discussions and digests and is
readily available in archives, either the official one or your private
mail archive.

Be courteous to your fellow list readers: don't dump unnecessary
material on them and force them to figure out what you intended as
context and what is just accumulated garbage.

-- 
David Kastrup

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