Re: disabling \break

2018-05-14 Thread Herbert Liechti
Thank your for all your suggestions. I'm now dealing with tags. This is
very easy to use.

Best regards

2018-05-09 10:56 GMT+02:00 Caagr98 :

> If you want a more lightweight way to do it, this function should also
> work:
> ⋘
> removeBreaks =
>   #(define-music-function (mus) (ly:music?)
>  (music-filter
>(lambda (v) (not (music-is-of-type? v 'break-event)))
>mus))
> ⋙
>
>
> On 05/08/18 14:17, Jan-Peter Voigt wrote:
> > 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
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
herbert.liec...@thinx.ch,  ThinX networked business services,  Bielstrasse
69,  CH-4500 Solothurn
Mobile +41 (0)76 334 81 66, http://thinx.ch
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: disabling \break

2018-05-09 Thread Caagr98
If you want a more lightweight way to do it, this function should also work:
⋘
removeBreaks =
  #(define-music-function (mus) (ly:music?)
 (music-filter
   (lambda (v) (not (music-is-of-type? v 'break-event)))
   mus))
⋙


On 05/08/18 14:17, Jan-Peter Voigt wrote:
> 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

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


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