Re: disabling \break

2018-05-08 Thread Jan-Peter Voigt

Hi Herbie,

this is *the* use case for the edition-engraver:
https://github.com/openlilylib/edition-engraver/
or the page-layout package
https://github.com/openlilylib/page-layout
(which is using the edition-engraver for the conditional breaks)

If you install openLilyLib (https://github.com/openlilylib/oll-core), 
you can make use of these packages quite easily. That way you can 
separate breaks and page-layout from the music-content.


So the short answer is: Yes, it is possible to add a command that avoids 
certain breaks for certain commands.


If you want to know more about these tools don't hesitate to ask!

HTH
Jan-Peter



Am 08.05.2018 um 07:50 schrieb Herbert Liechti:

Hello

I searched a long time in the forum an internet and could not find an 
answer for my issue.


I write all my music with lilypond and at the end I have two output 
targets. One is the paper form and one
is a page layout for the tablet. The latter layout is optimized so that 
the screen of the table is used with small

margins. I use two book sections for this

I often do a line break at the end of each part (i.E. part A, part B, 
part C). For the paper output this is useful for

the tablet it is wasting place.

Is it possible to add a command that skips/disables/avoids the manual 
breaks when creating the tablet version?


Thanks & best regards
Herbie



___
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: disabling \break

2018-05-08 Thread Aaron Hill

On 2018-05-07 22:50, Herbert Liechti wrote:

Is it possible to add a command that skips/disables/avoids the manual
breaks when creating the tablet version?


Tags are probably the best option here:

%%%
\version "2.19.80"
tagBreak = \tag #'withBreaks { \break }
someMusic = { c'2 d' \tagBreak e1 }
\score { << \keepWithTag #'withBreaks \someMusic >> }
\score { << \keepWithTag #'withoutBreaks \someMusic >> }
%%%

You could also just define your own variable as either \break or {}.

%%%
\version "2.19.80"
condBreak = {} %or% \break
someMusic = { c'2 d' \condBreak e1 }
\score { << \someMusic >> }
%%%

-- Aaron Hill

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


disabling \break

2018-05-08 Thread Herbert Liechti
Hello

I searched a long time in the forum an internet and could not find an
answer for my issue.

I write all my music with lilypond and at the end I have two output
targets. One is the paper form and one
is a page layout for the tablet. The latter layout is optimized so that the
screen of the table is used with small
margins. I use two book sections for this

I often do a line break at the end of each part (i.E. part A, part B, part
C). For the paper output this is useful for
the tablet it is wasting place.

Is it possible to add a command that skips/disables/avoids the manual
breaks when creating the tablet version?

Thanks & best regards
Herbie
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves removes Dynamics context

2018-05-08 Thread Thomas Weber
Malte and Simon - I didn't have the opportunity to try your suggestions yet, 
but just wanted to say thanks for helping!


Am 07.05.2018 um 01:21 schrieb Simon Albrecht:
> On 06.05.2018 23:03, Malte Meyn wrote:
>> Am 06.05.2018 um 22:35 schrieb Thomas Weber:
>>> Can anybody help me with keeping the dynamics alive?  Many thanks!
>>>
>>> […]
>>>
>>> \layout {
>>>    \context {
>>>  \Score
>> Replace \Score by \Staff here.
>>>  \RemoveEmptyStaves
>>>  \override VerticalAxisGroup.remove-first = ##t
> In case you’re using any version starting from 2.19.36, you can replace the 
> above two lines by
> \RemoveAllEmptyStaves
>
> Best, Simon
>
> ___
> 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: Layout of a (piano) hand indicator

2018-05-08 Thread foxfanfare
Thomas Morley-2 wrote
> HTH a bit,  Harm

Yes it did! Thank you for the explanations!
Thomas Morley-2 wrote
> Likely better to create a new grob for piano-hand-indicator and whileon it
> a barre-indicator for guitar.

About this, I wonder if it is necessary for the hand-indicator bracket to be
linked with the fingering orientation? Would this not be easier and logical
to attach it to the notehead? Imagine you'd like to make an edition without
any fingerings and one with, you could just remove the fingering engraver
for this. But then, the brackets will also disapear!



--
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


Apply legato to music

2018-05-08 Thread Gianmaria Lari
This code generate a midi file where the first and last measure are played
"legato" because of the slur.

\version "2.19.81"
\include "articulate.ly"
music = { b( b b b) | d' d' d' d' | c'( c' c' c') }
\score {
  \articulate \music
  \midi{}
}


Now I would like to rewrite the previous code separating the legato
articulation from the music, something like in the following example (that
does not work).

\version "2.19.81"
\include "articulate.ly"
music = { b b b b | d' d' d' d' | c' c' c' c' }
dynamics = { s4( s4 s4 s4) | s1 | s4( s4 s4 s4) }

\score {
  \articulate \new Voice <<\music \dynamics>>
  \midi{}
}

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