Re: space between text and the next system

2019-01-11 Thread Aaron Hill

On 2019-01-11 9:12 pm, Rachel Knight wrote:

There is a markup-system spacing, but I think it only applies to line
markups, not ones attached to notes as in my score. It didn’t affect
the spacing when I tried it. (I am trying to add more space between
systems one and two.) If that works, I will move all the pedal
markings below the score.


Perhaps adjusting the system-system-spacing might work then.  For 
instance, consider setting the 'padding value, which forces a minimum 
distance between the skylines of the neighboring systems.  For systems 
that have no pedal marks, they shouldn't need to move assuming your 
'basic-distance is set to a reasonable value, but then the ones that 
have the pedal marks will get too close and push the next system lower.


-- Aaron Hill

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


Re: space between text and the next system

2019-01-11 Thread Rachel Knight
There is a markup-system spacing, but I think it only applies to line markups, 
not ones attached to notes as in my score. It didn’t affect the spacing when I 
tried it. (I am trying to add more space between systems one and two.) If that 
works, I will move all the pedal markings below the score.
Rachel



> On Jan 11, 2019, at 1:40 PM, Ralph Palmer  wrote:
> 
> 
> 
> On Fri, Jan 11, 2019, 12:13 PM Ben   wrote:
> On 1/11/2019 11:32 AM, Rachel Knight wrote:
>> How do I add space between markups that I place under a system and the 
>> following system? I am adding harp pedal notation underneath a grand staff 
>> and would like the same amount of space 
>> 1. between the bottom of the text and the following system 
>> 2. between systems when there is no text.
>> 
>> Best,
>> Rachel
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user 
>> 
> 
> Hi Rachel,
> 
> For adding some space between systems using markup, this little 'trick' could 
> also work, if you want to try it. Does that help?
> 
> 
> 
> \version "2.19.82"
> 
> {
>   \repeat unfold 20 { c1 }
>   c_\markup \lower #15 " " c c c
> \repeat unfold 20 { c1 }
> 
>   c^\markup \raise #15 " "
>   \repeat unfold 20 { c1 }
> }
> 
> 
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user 
> 
> 
> I'm away from my computer, but you might also search the manual for something 
> like markup-system-spacing.
> 
> HTH,
> 
> 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: space between text and the next system

2019-01-11 Thread Rachel Knight
That work-around does work. Thanks! Is there any way I could make that into a 
global setting - there are a lot of pedals in harp music. . .

Rachel







> On Jan 11, 2019, at 1:12 PM, Ben  wrote:
> 
> On 1/11/2019 11:32 AM, Rachel Knight wrote:
>> How do I add space between markups that I place under a system and the 
>> following system? I am adding harp pedal notation underneath a grand staff 
>> and would like the same amount of space 
>> 1. between the bottom of the text and the following system 
>> 2. between systems when there is no text.
>> 
>> Best,
>> Rachel
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user 
>> 
> 
> Hi Rachel,
> 
> For adding some space between systems using markup, this little 'trick' could 
> also work, if you want to try it. Does that help?
> 
> 
> 
> \version "2.19.82"
> 
> {
>   \repeat unfold 20 { c1 }
>   c_\markup \lower #15 " " c c c
> \repeat unfold 20 { c1 }
> 
>   c^\markup \raise #15 " "
>   \repeat unfold 20 { c1 }
> }
> 
> 
> 
> 
> 
> 
> ___
> 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: space between text and the next system

2019-01-11 Thread Ralph Palmer
On Fri, Jan 11, 2019, 12:13 PM Ben  On 1/11/2019 11:32 AM, Rachel Knight wrote:
>
> How do I add space between markups that I place under a system and the 
> following system? I am adding harp pedal notation underneath a grand staff 
> and would like the same amount of space
> 1. between the bottom of the text and the following system
> 2. between systems when there is no text.
>
> Best,
> Rachel
> ___
> lilypond-user mailing 
> listlilypond-user@gnu.orghttps://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> Hi Rachel,
>
> For adding some space between systems using markup, this little 'trick'
> could also work, if you want to try it. Does that help?
>
>
> \version "2.19.82"
>
> {
>   \repeat unfold 20 { c1 }
>   c_\markup \lower #15 " " c c c
> \repeat unfold 20 { c1 }
>
>   c^\markup \raise #15 " "
>   \repeat unfold 20 { c1 }
> }
>
>
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


I'm away from my computer, but you might also search the manual for
something like markup-system-spacing.

HTH,

Ralph

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


Re: space between text and the next system

2019-01-11 Thread Ben

On 1/11/2019 11:32 AM, Rachel Knight wrote:

How do I add space between markups that I place under a system and the 
following system? I am adding harp pedal notation underneath a grand staff and 
would like the same amount of space
1. between the bottom of the text and the following system
2. between systems when there is no text.

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



Hi Rachel,

For adding some space between systems using markup, this little 'trick' 
could also work, if you want to try it. Does that help?



\version "2.19.82"

{
  \repeat unfold 20 { c1 }
  c_\markup \lower #15 " " c c c
\repeat unfold 20 { c1 }

  c^\markup \raise #15 " "
  \repeat unfold 20 { c1 }
}





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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread David Kastrup
"N. Andrew Walsh"  writes:

> Hi David,
>
> On Fri, Jan 11, 2019 at 5:58 PM David Kastrup  wrote:
>
>>
>> Just put the whole path in "double quote marks".
>>
>
> thanks. OK, now I must confess I don't really know what was going wrong
> exactly, but I resolved the error.

You cannot "resolve" this error since it is nothing a user should be
able to produce in the first place.  You may have been able to avoid
triggering it.

> My main file had a bunch of variables defining each instrument, and a
> separate file for score layout that placed them. A bunch of those
> variables weren't yet defined; now that they are, the error no longer
> appears. I have no idea how that relates to whether the viola part had
> accidentals on some notes, or whether a rest was beamed, or whatever,
> but now it works again.
>
> Coding discipline saves the day, I guess.

Ah, that's just superstitious.  Coding chaos could have gotten the same
result in an error like that.  Basically any change can cause a
different garbage collection sequence/behavior and thus mask the
problem.

> Thanks for the help. Sorry I couldn't get anything more productive,
> but I couldn't for the life of me reproduce the error, at any point,
> using gdb.  It only failed in frescobaldi, and (apparently) only
> because some instruments were still undefined.

I think "because" is the wrong word.  Defining an instrument variable
will take up significant memory space, so garbage collection will happen
at a significantly different place.  That's all.

-- 
David Kastrup

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread N. Andrew Walsh
Hi David,

On Fri, Jan 11, 2019 at 5:58 PM David Kastrup  wrote:

>
> Just put the whole path in "double quote marks".
>

thanks. OK, now I must confess I don't really know what was going wrong
exactly, but I resolved the error.

My main file had a bunch of variables defining each instrument, and a
separate file for score layout that placed them. A bunch of those variables
weren't yet defined; now that they are, the error no longer appears. I have
no idea how that relates to whether the viola part had accidentals on some
notes, or whether a rest was beamed, or whatever, but now it works again.

Coding discipline saves the day, I guess.

Thanks for the help. Sorry I couldn't get anything more productive, but I
couldn't for the life of me reproduce the error, at any point, using gdb.
It only failed in frescobaldi, and (apparently) only because some
instruments were still undefined.

Cheers,

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread David Kastrup
"N. Andrew Walsh"  writes:

D> On Fri, Jan 11, 2019 at 5:21 PM David Kastrup  wrote:
>
>>
>> You have to start gdb with the name of your LilyPond executable.
>>
>> --
>> David Kastrup
>>
> Ugh, OK, now it's getting confusing.
>
> Since gdb can't handle whitespaces in the path,

Just put the whole path in "double quote marks".

-- 
David Kastrup

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread N. Andrew Walsh
On Fri, Jan 11, 2019 at 5:21 PM David Kastrup  wrote:

>
> You have to start gdb with the name of your LilyPond executable.
>
> --
> David Kastrup
>
Ugh, OK, now it's getting confusing.

Since gdb can't handle whitespaces in the path, I copied the whole project
directory into a new folder, and rewrote the includes and filenames to
eliminate whitespaces. If I try to compile the document in a path with
whitespaces, I get the ly:trampoline error; the *exact same file*, in a
path without them, fails under different conditions. Also, compiling fails
with those errors in frescobaldi, but not when I run lilypond on the file
from gdb (so there's no backtrace to post).

So now what?

Cheers,

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


space between text and the next system

2019-01-11 Thread Rachel Knight


How do I add space between markups that I place under a system and the 
following system? I am adding harp pedal notation underneath a grand staff and 
would like the same amount of space 
1. between the bottom of the text and the following system 
2. between systems when there is no text.

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread David Kastrup
"N. Andrew Walsh"  writes:

> On Fri, Jan 11, 2019 at 4:36 PM David Kastrup  wrote:
>
>>
>> I cannot really find the location where this error would get triggered,
>> so indeed a backtrace in gdb would be helpful.
>>
>>
> When I get to the (gdb) prompt, I try this:
> (gdb) run /[PATH]/plus-minus\ example\ 1.ly -file
> Starting program:  /[PATH]/plus-minus\ example\ 1.ly -file
> No executable file specified.
> Use the "file" or "exec-file" command.
>
>  What am I doing wrong with that command?

You have to start gdb with the name of your LilyPond executable.

-- 
David Kastrup

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread N. Andrew Walsh
On Fri, Jan 11, 2019 at 4:36 PM David Kastrup  wrote:

>
> I cannot really find the location where this error would get triggered,
> so indeed a backtrace in gdb would be helpful.
>
>
When I get to the (gdb) prompt, I try this:
(gdb) run /[PATH]/plus-minus\ example\ 1.ly -file
Starting program:  /[PATH]/plus-minus\ example\ 1.ly -file
No executable file specified.
Use the "file" or "exec-file" command.

 What am I doing wrong with that command?

Cheers,

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread David Kastrup
"N. Andrew Walsh"  writes:

> Hi David,
>
> On Fri, Jan 11, 2019 at 4:06 PM David Kastrup  wrote:
>
>> With the given example, I get no problem with either one or both of
>> those changes.
>>
>> How about actually posting the full error message?
>>
>
> Like I said: it works fine on its own; but within a larger orchestral
> piece, under those conditions, I get this:
>
> Interpreting music...ERROR: In procedure ly:trampoline:
> ERROR: Wrong type argument in position 3 (expecting Translator): # cell 0x7f4f1c4c5800; GC missed a reference>

I cannot really find the location where this error would get triggered,
so indeed a backtrace in gdb would be helpful.

-- 
David Kastrup

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread N. Andrew Walsh
Hi David,

On Fri, Jan 11, 2019 at 4:06 PM David Kastrup  wrote:

> With the given example, I get no problem with either one or both of
> those changes.
>
> How about actually posting the full error message?
>

Like I said: it works fine on its own; but within a larger orchestral
piece, under those conditions, I get this:

Interpreting music...ERROR: In procedure ly:trampoline:
ERROR: Wrong type argument in position 3 (expecting Translator): #

Cheers,

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


Re: garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread David Kastrup
"N. Andrew Walsh"  writes:

> I have the following code:
>
> \version "2.19.82"
>
> \relative c' {
>  \clef alto
>  \override Score.Stem.stemlet-length = #0.75
>  deh,2\f~ deh
>
>  | %2
>  deh2
>  %\once \override Beam.positions = #'(2.5 . 1.5)
>  c'16\rest[ deh,8.]
>
> }
>
> That compiles fine on its own. However, in the context of a full orchestra
> score, I get an error with ly:trampoline if:
>
> I uncomment the command for overriding Beam.positions
> or
> I tie the second deh in the first measure to the deh in the next, forcing
> an accidental onto the deh8. that's beamed. (I'm using the "c'16\rest" to
> force the rest into the middle of the Stave; is there a better way to do
> that?)

With the given example, I get no problem with either one or both of
those changes.

How about actually posting the full error message?

-- 
David Kastrup

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


garbage-collection/trampoline error with beams and accidentals

2019-01-11 Thread N. Andrew Walsh
I have the following code:

\version "2.19.82"

\relative c' {
 \clef alto
 \override Score.Stem.stemlet-length = #0.75
 deh,2\f~ deh

 | %2
 deh2
 %\once \override Beam.positions = #'(2.5 . 1.5)
 c'16\rest[ deh,8.]

}

That compiles fine on its own. However, in the context of a full orchestra
score, I get an error with ly:trampoline if:

I uncomment the command for overriding Beam.positions
or
I tie the second deh in the first measure to the deh in the next, forcing
an accidental onto the deh8. that's beamed. (I'm using the "c'16\rest" to
force the rest into the middle of the Stave; is there a better way to do
that?)

So somewhere in there it's running into errors. From the previous posts on
this, it's something wrong with gdb that I need to track down; can someone
help me with debugging?

Cheers,

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


Coloring notes played on black piano key AND coloring accidental and key signature notes with different colors

2019-01-11 Thread Pierre-Emile LHUILLIER
Dear all,



Could you help me achieving the following objectives :



1)  In a piano staff, I would like to color (in blue) the notes that
are played on the black piano keys

And if possible :

2)  I would like to color differently the note that are played on a
black piano keys because of the key signature (in blue) from the notes that
are played on black piano keys because of accidentals (in red)



Best regards


Pierre-Emile
\version "2.10.16"

#(ly:set-option 'point-and-click #f)
#(set-default-paper-size "a4" )
#(set-global-staff-size 20 )

\header
{
	title = "Sonata No. 14, 'Moonlight'"
	composer = "Ludwig van Beethoven"
	opus = "Op. 27, No. 2"
	piece = \markup { \bold "Adagio sostenuto" }

	mutopiatitle = "Sonata No. 14 “Moonlight” (1st Movement: Adagio sostenuto)"
	mutopiacomposer = "BeethovenLv"
	mutopiainstrument = "Piano"
	date = "1802"
	source = "Berners, 1908 (edited by A. Winterberger)"
	style = "Classical"
	mutopiacopyright = "Creative Commons Attribution-ShareAlike 2.5"

	maintainer = "Stewart Holmes"
	maintainerEmail = "stew...@stewartholmes.com"
	maintainerWeb = "www.stewartholmes.com"
	lastupdated = "2007/Feb/11"

	copyright = \markup { \teeny \center-align { "Copyright © 2007" "Licensed under the Creative Commons Attribution-ShareAlike 2.5 License" "http://creativecommons.org/licenses/by-sa/2.5."; } }
	footer = "Mutopia-2007/02/11-276"
	tagline = ""
}

down =
{
	\change Staff = "down"
}
up =
{
	\change Staff = "up"
}

moveFingering = #(define-music-function (parser location shift) (pair?)
#{
	\once \override Fingering #'extra-offset = $shift
#})

moveText = #(define-music-function (parser location shift) (pair?)
#{
	\once \override TextScript #'extra-offset = $shift
#})

movePhrasingSlur = #(define-music-function (parser location shift) (pair?)
#{
	\once \override PhrasingSlur #'extra-offset = $shift
#})

fingerscript =
{
	\once \override TextScript #'font-size = #-5
	\once \override TextScript #'font-encoding = #'fetaNumber
}

topmain =  \relative c'
{
	\key e \major
	\time 2/2
	\clef treble
	\stemUp
	
	s1*4			%1
	s2 r4 gis'8.^\pp gis16 |	%5
	gis2. gis8. gis16 |
	\movePhrasingSlur #'(0 . 2) \fingerscript \moveText #'(0 . 1.5) gis2-"5 - 4" \(a2-5 |
	\fingerscript \moveText #'(0 . -1) gis2-"4 - 5" fis4-4 \moveFingering #'(0 . 2) b-5\) |
	e,-3 r r2 |		%9
	r r4 g8. g16 |
	g2. g8. g16 |
	g2. \(fis4-4\) |
	\fingerscript fis2-"5 - 4" \(\moveFingering #'(0 . 1) g4-5 \moveFingering #'(0 . 0.5) e-4\) |		%13
	fis2-5 fis |
	b,4 r r 
	%\once \override PhrasingSlur #'control-points = #'((0 . 0) (3 . 5) (6 . 5) (10 . 0)) 
	\fingerscript 
	
	
	\override PhrasingSlur #'extra-offset = #'(0 . 2)
	%\override PhrasingSlur #'after-line-breaking = #pagebreakone
	\moveText #'(0 . 1.2) b'-"5 - 4" \( |  
	
	\revert PhrasingSlur #'extra-offset
	
	c2.-5 ais4-4\) |
	b2.-5 \fingerscript \moveFingering #'(-0.1 . -0.15) b4-"5 - 4" \( |		%17
	\moveFingering #'(0 . 1.3) c2.-5 ais4-4\) |
	b2-5 \(b |
	b \fingerscript a-"4 - 5"\) |
	\fingerscript g-"4 - 5" \fingerscript fis-"4 - 5" |		%21
	\fingerscript cis-"3 - 5" cis4 cis |
	\down
	fis,-1
	\up
	r r cis''8. cis16 |
	cis2. cis8. cis16 |
	cis2 \(bis4 cis-4\) |	%25
	dis2.-5 \fingerscript dis4-"5 - 4" |
	e2-5 \(\fingerscript dis4-"4 - 5" \fingerscript cis-"4 - 5"\) |
	s-\p \moveFingering #'(0 . 0.5) gis-4 \(\moveFingering #'(0 . 1) a-5 \moveFingering #'(0 . 1) fis-3\) |
	s gis, \(a fis\) |		%29
	s cis''-4 \(e cis\) |
	\down
	s cis,-4 \(e cis\) |
	\up
	s1*2 |			%33
	s1*3 |
	\stemDown
	\phrasingSlurDown
	s4 \clef bass s4 a8*2/3 dis,4*2/3 \(cis4 |	%37
	bis2\) dis4 \(\moveText #'(0.9 . -6) \fingerscript cis-"1 - 2" |
	bis2\) \moveText #'(-1 . -7) \fingerscript d4-"2 - 1" \(\moveFingering #'(-0.15 . -0.1) cis-2 |
	bis2_\markup {\italic "decresc."}\) s2 |
	s1 |			%41
	\stemUp
	s4 \clef treble s s gis''8.^\pp gis16 |
	gis2. gis8. gis16 |
	\phrasingSlurUp
	\fingerscript gis2-"5 - 4" \(\moveFingering #'(0 . 1.1) a-5 |
	\fingerscript gis-"4 - 5" \moveFingering #'(0 . 1.6) fis4-4 b4-5\) |		%45
	e,-3 r r b'8. b16 |
	b2. b8. b16 |
	\fingerscript b2-"5 - 4" \(\moveFingering #'(0 . 1.1) bis4-5 cis-4\) |
	\fingerscript dis2-"5 - 4" \(\moveFingering #'(0 . 1.1) e-5 |		%49
	\fingerscript d-"4 - 5" \fingerscript bis-"4 - 5"\) |
	cis2.-5 \fingerscript cis4-"5 - 4" \( | 
	\moveFingering #'(0 . 1) d2.-5 bis4-4\) |
	cis2.-5 cis4 \( |	%53
	d2. bis4\) | 
	cis2 cis |
	b!2. b4 |
	a-4 a-5 gis-4 gis-5 | 	%57
	fis2-4_\markup {\italic "cresc."} \(\fingerscript gis4-"5 - 4" a-5\) |
	\fingerscript gis2-"4 - 5"-\p gis-5 |
	cis,4-3 s s2 | 
	s1 |			%61
	s1 |
	s2 \clef bass s4 \moveFingering #'(0 . 1) bis4-5 | 
	s8*2/3 \clef treble s4*2/3 s2. |
	s2 \clef bass s4 bis4-5 | 		%65
	s1 |
	s2 d,\rest |
	d\rest -\pp |
	1^\fermata |			%69
	
	\stemNeutral
	\bar "|."
}

topsecondary =  \relative c'
{
	#(override-auto-beam-setting '(end * * * *)  1 4)
	#(override-auto-beam-setting '(end * * * *)  2 4)
	#(override-auto-beam-setting '(end * * * *)  3 4)
	
	\set tupletSpannerDuration = #(ly:make-moment 1 4)
	
	\set f

Re[2]: Make dynamic script with long text

2019-01-11 Thread Trevor


Andrew, you wrote 11/01/2019 00:50:24
Subject: Re: Make dynamic script with long text

Here is an interesting technical documentation issue, which is that I 
had no idea this has anything to do with extra-spacing-width, and only 
hit on it after long searches of the web and the archives, then based 
on somebody's guess. Somehow there needs to be some _explanatory_ 
document that actually explains these concepts in lilypond, because in 
this case and others, it's non-obvious (to my dim consciousness). I'd 
seriously offer to write such a text, but I am exactly the wrong person 
to do so because I am the one that is baffled still in general by these 
internals.
You're right that there is little specific documentation about 
extra-spacing-width. It is mentioned only briefly in the Learning 
Manual:


see http://lilypond.org/doc/v2.19/Documentation/learning/moving-objects

The problem is that there are far too many of these properties to 
document any but a tiny fraction of them with detailed explanations and 
examples. The approach we, the documentation writers, adopted was to 
attempt to teach people through the Learning Manual how to find 
pertinent properties for themselves by using the Internal Manual. Pretty 
well the whole of section 4 of the LM is devoted to showing users how to 
do this.


For example, look up TextScript in the All layout objects of the 
Internals Manual:


http://lilypond.org/doc/v2.19/Documentation/internals/textscript

There you'll find extra-spacing-width and Harm's recipe for setting the 
width of an object to zero.


Reading and understanding section 4 of the LM will greatly help you with 
your understanding (I hope; at least that was my objective!)


Actually, as to your last point about being baffled, it was my being in 
exactly that position several years ago that prompted me to write most 
of the LM. I reasoned that as I was in the same position as most new 
users I was well-placed to document the initial stages of learning to 
use LilyPond as I myself discovered them. That gradually lead to an 
understanding of the internals and the LM was the result.


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


Re: Ambitus per voice and Ez_numbers_engraver

2019-01-11 Thread Gloops
Hello Harm
Thank you for this correction ...
Is there any way to engrave the ambitus directly without going through
"note-head :: brew-ez-stencil" in order to avoid the head of the note?
Gilles



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Organization of the piese part by part, not staff by staff

2019-01-11 Thread Mats Bengtsson


On 2019-01-10 21:19, Павел Буданов wrote:

Hello everybody!
This case is usually used: we are instancing staffs, voices and 
putting notes into them. This is simply example:

\new GrandStaff <<
 \new Staff \rightHand
  \new Staff \leftHand
>>
But I want to organizate the piece in other case. For example, I want 
to engrave any rondo. In first, I will instancing staff structure and 
write initialing:

\new GrandStaff <<
  \new Staff { \key c \minor ... }
 \new Staff { \clef bass \key c \minor ... }
>>
Then I declare the variables with music:
refren = <<
\relative c'' { g8 c e es4. f8 d4. es8 c2 }
\relative { r8 r4 c8 es g c c, f g b c, }
>>
episodeA = <<
  ... >>
episodeB = <<
  ... >>
And I will add this music to score block:
\refren \bar "||" \episodeA \refren \episodeB
Is this case possible? If so, how to implement it correctly, where is 
the documentation written about it? Sorry for my bad english.


You probably already know this, but in addition to the answers you 
already have received, the simplest answer for the simplest special 
case, when you only have a single voice of music, is of course:


episodeA = {c d e f}

episodeB = {g f e d }

ending= {c1}

% Pasting it together:

{\episodeA \episodeB \ending}


However, as soon as you have several parallel voices/staves in each of 
the sections, then you either could paste each full voice together as 
described above, or use any of the techniques that Valentine mentioned 
in his reply, for example.


   /Mats

--
=
Mats Bengtsson, Prof.
Information Science and Engineering
School of Electrical Engin. and Comp. Science
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Email: mats.bengts...@ee.kth.se
WWW: https://www.kth.se/profile/matben/
=


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


Re: Organization of the piese part by part, not staff by staff

2019-01-11 Thread Павел Буданов
Thank you for the answers. I learned everything I needed11.01.2019, 03:37, "Saul Tobin" :Fundamentally, the data model of Lilypond is horizontal, even when you delve into the guts of how the program works (iterators, streams, engravers). My advice is to embrace that and adapt your workflow and thinking to take advantage of Lilypond's strengths, rather than fighting against it.In my experience composing with Lilypond, dividing pieces into sections like this leads to more pain later on if I decide I want something like an overlapping hairpin between the sections. Yeah, it's a little annoying to count bars in each part if I decide to add a measure or change a time signature, but it's not that big a deal if you use barchecks and one measure per line of code.Having a single variable for the music for each part to be extracted makes a lot of sense, since it keeps the composer in the mindset of what each player will be seeing.My two cents.On Thu, Jan 10, 2019 at 4:03 PM Valentin Villenave  wrote:On 1/10/19, Павел Буданов  wrote:
> And I will add this music to score block:
> \refren \bar "||" \episodeA \refren \episodeB
> Is this case possible? If so, how to implement it correctly, where is the
> documentation written about it?

Greetings Pavel,
at its heart, LilyPond very much encourages «horizontal thinking»:
it’s easier to enter one melodic voice, then another, then another.

However, there are a few ways to enter music section by section like
what you’re looking for. The first one is to use \context Staff (which
can re-use an existing Staff rather than create a \new one every
time):

%%%

FirstSection = <<
  \context Staff = "voice" \relative c' {
    c2 d e1
  }
  \context PianoStaff = "piano" <<
    \context Staff = "right" \relative c' {
      2  1
    }
    \context Staff = "left" \relative c {
      \clef bass
      e2 b c1
    }
  >>
>>

SecondSection = <<
  \context Staff = "voice" \relative c' {
    a'2 f4 a g1
  }
  \context PianoStaff = "piano" <<
    \context Staff = "right" \relative c' {
      2   q
    }
    \context Staff = "left" \relative c {
      \clef bass
      f,4 g a b c2 c
    }
  >>
>>

\score {
  {
    \FirstSection
    \bar "||"
    \SecondSection
  }
}

%

The second trick you may be interested in learning, is \parallelMusic
(which allows you to enter polyphonic music with every voice at once).
Have a look at this chapter:
http://lilypond.org/doc/stable/Documentation/notation/multiple-voices#writing-music-in-parallel

Good luck!

V.

___
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: include directory for scheme load command

2019-01-11 Thread Gianmaria Lari
Thank you Urs, I'm checking!
g.

On Fri, 11 Jan 2019 at 08:59, Urs Liska  wrote:

> Hi Gianmaria,
> Am 11.01.19 um 08:50 schrieb Gianmaria Lari:
>
> I'm trying to use the #(load "filename") command[*].
> It works correctly when the file to load is in the same directory as my
> lilypond file. Is there any way to make lilypond be able to load the file
> from my "include" folder?
>
>
> If you are using openLilyLib (i.e. the oll-core module) you can simply use
> \addGuilePath, otherwise a look at
> https://github.com/openlilylib/oll-core/blob/master/internal/add-guile-path.ily
> might help you (although most of it relies on oll-core functions as well).
> The essential functionality is at the very end of that file.
>
> HTH
> Urs
>
> Thank you, g.
>
> [*] The file is "swing.scm"
>
> ___
> lilypond-user mailing 
> listlilypond-user@gnu.orghttps://lists.gnu.org/mailman/listinfo/lilypond-user
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user