Re: Re:MIDI dynamics parsing error

2016-10-11 Thread Dominicus
Flaming Hakama by Elaine wrote
>> I'm dealing with several of these MIDI errors during compilation of a
>> long
>> piece.
>> "programming error: Impossible or ambiguous (de)crescendo in MIDI."
>>
>> I tried to get rid of these by placing a starting volume, but alas, it's
>> not
>> that simple.
> 
> The approach I use is to define some dynamics that don't print, and use
> them when necessary.

Indeed, I'm aware of this solution.  But v2.18 won't state which line or
measure is triggering the errors.

Since I'm cleaning up a long piece, finding which notes eliminate the errors
is non-trivial.  Trial/error search is very time-consuming due to compile
time and the hundreds of hairpins to review.  Since the issue relates to
starting volume, commenting out sections of the piece hoping to isolate to
fewer measures injects its own set of issues.

It would be a welcome enhancement to state either measure of line when
raising this error.  Has this been addressed in later versions?




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-MIDI-dynamics-parsing-error-tp195262p195286.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: Advice about layout / page formatting

2016-10-11 Thread Urs Liska
Maybe an even more elegant aporoach is using the 
https://github.com/openlilylib/page-layout package. Will need some stuff to be 
"installed" (and is not properly documented yet), but then provides a beautiful 
interface for managing alternative break sets.

HTH
Urs

Am 11. Oktober 2016 18:34:05 MESZ, schrieb tisimst :
>Jim,
>
>On Tue, Oct 11, 2016 at 10:13 AM, Jim Duke [via Lilypond] <
>ml-node+s1069038n195281...@n5.nabble.com> wrote:
>
>> I'm seeking advice on how to approach typesetting some hymns for use
>in
>> worship.  The music in our worship is A Capella congregational
>singing, and
>> we use both sheet music, which we put in folders in the pews, and
>slides,
>> which we project on a large screen at the front of the auditorium. 
>For
>> each hymn I want to produce a PDF of the sheet music, a set of PNG
>files
>> for each of the slides, and a MIDI file to aid in teaching the hymns
>to the
>> congregation.
>>
>> The way I've laid out each hymn is to create the following files:
>>
>> Slides.ly
>> Sheet-Music.ly
>> Words-And-Music.ly
>>
>> Slides.ly and Sheet-Music.ly import Words-and-Music.ly.
>>
>> The idea is to separate the music from the layout.  For the most part
>this
>> is working well.  But before I get into some of the issues I'm
>> encountering, is this a good approach?  I'm trying to make the
>Slides.ly
>> and Sheet-Music.ly as generic as possible.  My end goal would be for
>the
>> Slides.ly and Sheet-Music.ly to be identical across all hymns; but
>that
>> currently isn't possible.  I still need to manually unroll the music
>for
>> the slides (expand repeats, and music redirections such as DS al
>Coda,
>> etc.).  If I could figure out an automatic way to do that it would be
>> fantastic.
>>
>> Sorry for the long context intro.  Now to my questions.  I'm having
>no
>> problems at all with the sheet music other than the normal stuff new
>> Lilypond users encounter.  But for the slides there are several
>formatting
>> issues I'm having trouble with.
>>
>> First, on the first slide of every verse I put a title at the top
>with the
>> name of the song and the song number in our hymal.  On following
>slides
>> from the same verse, there is no title.  But, I'd like the first
>system on
>> every slide to start at the same place on the page.  As we present
>the
>> slides the movement of the systems around on the page is distracting.
> I'd
>> like to fix them on the page if I could.  Because of how large I want
>the
>> fonts to be, I typically can fit two systems on each page.  I have no
>idea
>> how to accomplish that.  Is there a parameter that directly controls
>the
>> distance from the top of the page to the first system?
>>
>> Second, controlling line breaks has been a challenge.  Since I want
>to use
>> a single source of words and music; forcing line breaks in the music
>> doesn't work.  Is there a way to embed the line break instructions in
>the
>> layout somehow?  I've seen references to using space notes.  For
>example,
>> for Abide with Me (tune EVENTIDE), I might have:
>>
>> For the sheet music:
>>
>> s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | s2 s4 s4 | s2 s2 | s4 s4 s4 s4
>| s1
>> | \break
>>
>> For the slides:
>>
>> s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | \break
>> s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | \break
>>
>> The Words-and-Music.ly file would have no layout guidance at all. 
>Would
>> that work?  How would I combine the layout "rhythms" with the music?
>>
>
>I believe this is the right way to do it if you need a consistent
>layout. I
>do this kind of thing all the time. It is so nice to be able to play
>around
>with the layout without fiddling with the music code. Combining the
>layout
>with the music is as simple as this:
>
>\new Staff <<
>  \rhythms
>  \music
>>>
>
>By the way, except for times where you may want a mid-measure \break,
>you
>can simplify your "rhythms" variables like this (using your examples):
>
>For the sheet music:
>
>s1*8 \break (or s1 | s | s | s | s | s | s | s | \break if you want to
>keep
>the bar checks)
>
>For the slides:
>
>s1*4 \break
>s1*4 \break
>
>Just some thoughts for you. This is how I usually do it. You can also
>include other score-level objects in the "rhythms" variables like \bar,
>\tempo, \key, etc.
>
>HTH,
>Abraham
>
>
>
>
>--
>View this message in context:
>http://lilypond.1069038.n5.nabble.com/Advice-about-layout-page-formatting-tp195281p195282.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

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Advice about layout / page formatting

2016-10-11 Thread tisimst
Jim,

On Tue, Oct 11, 2016 at 10:13 AM, Jim Duke [via Lilypond] <
ml-node+s1069038n195281...@n5.nabble.com> wrote:

> I'm seeking advice on how to approach typesetting some hymns for use in
> worship.  The music in our worship is A Capella congregational singing, and
> we use both sheet music, which we put in folders in the pews, and slides,
> which we project on a large screen at the front of the auditorium.  For
> each hymn I want to produce a PDF of the sheet music, a set of PNG files
> for each of the slides, and a MIDI file to aid in teaching the hymns to the
> congregation.
>
> The way I've laid out each hymn is to create the following files:
>
> Slides.ly
> Sheet-Music.ly
> Words-And-Music.ly
>
> Slides.ly and Sheet-Music.ly import Words-and-Music.ly.
>
> The idea is to separate the music from the layout.  For the most part this
> is working well.  But before I get into some of the issues I'm
> encountering, is this a good approach?  I'm trying to make the Slides.ly
> and Sheet-Music.ly as generic as possible.  My end goal would be for the
> Slides.ly and Sheet-Music.ly to be identical across all hymns; but that
> currently isn't possible.  I still need to manually unroll the music for
> the slides (expand repeats, and music redirections such as DS al Coda,
> etc.).  If I could figure out an automatic way to do that it would be
> fantastic.
>
> Sorry for the long context intro.  Now to my questions.  I'm having no
> problems at all with the sheet music other than the normal stuff new
> Lilypond users encounter.  But for the slides there are several formatting
> issues I'm having trouble with.
>
> First, on the first slide of every verse I put a title at the top with the
> name of the song and the song number in our hymal.  On following slides
> from the same verse, there is no title.  But, I'd like the first system on
> every slide to start at the same place on the page.  As we present the
> slides the movement of the systems around on the page is distracting.  I'd
> like to fix them on the page if I could.  Because of how large I want the
> fonts to be, I typically can fit two systems on each page.  I have no idea
> how to accomplish that.  Is there a parameter that directly controls the
> distance from the top of the page to the first system?
>
> Second, controlling line breaks has been a challenge.  Since I want to use
> a single source of words and music; forcing line breaks in the music
> doesn't work.  Is there a way to embed the line break instructions in the
> layout somehow?  I've seen references to using space notes.  For example,
> for Abide with Me (tune EVENTIDE), I might have:
>
> For the sheet music:
>
> s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1
> | \break
>
> For the slides:
>
> s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | \break
> s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | \break
>
> The Words-and-Music.ly file would have no layout guidance at all.  Would
> that work?  How would I combine the layout "rhythms" with the music?
>

I believe this is the right way to do it if you need a consistent layout. I
do this kind of thing all the time. It is so nice to be able to play around
with the layout without fiddling with the music code. Combining the layout
with the music is as simple as this:

\new Staff <<
  \rhythms
  \music
>>

By the way, except for times where you may want a mid-measure \break, you
can simplify your "rhythms" variables like this (using your examples):

For the sheet music:

s1*8 \break (or s1 | s | s | s | s | s | s | s | \break if you want to keep
the bar checks)

For the slides:

s1*4 \break
s1*4 \break

Just some thoughts for you. This is how I usually do it. You can also
include other score-level objects in the "rhythms" variables like \bar,
\tempo, \key, etc.

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Advice-about-layout-page-formatting-tp195281p195282.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


Advice about layout / page formatting

2016-10-11 Thread Jim Duke
I'm seeking advice on how to approach typesetting some hymns for use in 
worship.  The music in our worship is A Capella congregational singing, and we 
use both sheet music, which we put in folders in the pews, and slides, which we 
project on a large screen at the front of the auditorium.  For each hymn I want 
to produce a PDF of the sheet music, a set of PNG files for each of the slides, 
and a MIDI file to aid in teaching the hymns to the congregation.

The way I've laid out each hymn is to create the following files:

Slides.ly
Sheet-Music.ly
Words-And-Music.ly

Slides.ly and Sheet-Music.ly import Words-and-Music.ly.

The idea is to separate the music from the layout.  For the most part this is 
working well.  But before I get into some of the issues I'm encountering, is 
this a good approach?  I'm trying to make the Slides.ly and Sheet-Music.ly as 
generic as possible.  My end goal would be for the Slides.ly and Sheet-Music.ly 
to be identical across all hymns; but that currently isn't possible.  I still 
need to manually unroll the music for the slides (expand repeats, and music 
redirections such as DS al Coda, etc.).  If I could figure out an automatic way 
to do that it would be fantastic.

Sorry for the long context intro.  Now to my questions.  I'm having no problems 
at all with the sheet music other than the normal stuff new Lilypond users 
encounter.  But for the slides there are several formatting issues I'm having 
trouble with.

First, on the first slide of every verse I put a title at the top with the name 
of the song and the song number in our hymal.  On following slides from the 
same verse, there is no title.  But, I'd like the first system on every slide 
to start at the same place on the page.  As we present the slides the movement 
of the systems around on the page is distracting.  I'd like to fix them on the 
page if I could.  Because of how large I want the fonts to be, I typically can 
fit two systems on each page.  I have no idea how to accomplish that.  Is there 
a parameter that directly controls the distance from the top of the page to the 
first system?

Second, controlling line breaks has been a challenge.  Since I want to use a 
single source of words and music; forcing line breaks in the music doesn't 
work.  Is there a way to embed the line break instructions in the layout 
somehow?  I've seen references to using space notes.  For example, for Abide 
with Me (tune EVENTIDE), I might have:

For the sheet music:

s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | 
\break

For the slides:

s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | \break
s2 s4 s4 | s2 s2 | s4 s4 s4 s4 | s1 | \break

The Words-and-Music.ly file would have no layout guidance at all.  Would that 
work?  How would I combine the layout "rhythms" with the music?

That's it for now - this is already an abusively long email for a mailing list. 

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


Re: Controlling hairpin length - revisited!

2016-10-11 Thread David Nalesnik
Hi Kieren,

On Tue, Oct 11, 2016 at 9:51 AM, Kieren MacMillan
 wrote:
> Hi David,
>
>> Further down in that thread is an implementation of shorten-pair with
>> hairpins: 
>> http://lists.gnu.org/archive/html/lilypond-user/2016-06/msg00277.html
>
> The $1,000,000 Question: Why isn’t this in the distro?  =)

I think the interaction between this and other properties has to be
nailed down.  I'm not sure if it behaves "as expected" in conjunction
with whatever other property affects endpoints (to-barline,
bound-padding).

I'd welcome testing.

Also, there's the issue of programming language.  Should this
enhancement be added to the C++ original--easy enough-- or should the
distro ly:hairpin::print be replaced by a Scheme version?

I'd like to see the stencil function in Scheme, because it would then
be very convenient for users to adapt it to their needs.

A drawback would be speed, but would that even be noticeable?

>
> Thanks for this!

You're very welcome.

DN

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


Re: Controlling hairpin length - revisited!

2016-10-11 Thread Kieren MacMillan
Hi David,

> Further down in that thread is an implementation of shorten-pair with
> hairpins: 
> http://lists.gnu.org/archive/html/lilypond-user/2016-06/msg00277.html

The $1,000,000 Question: Why isn’t this in the distro?  =)

Thanks for this!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info


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


Re: writing custom engravers in scheme - defining context properties?

2016-10-11 Thread David Kastrup
Maxwell Phillips  writes:

> Thanks everyone for all the great info! Both the examples and the
> explanation of how these properties work are really helpful.
>
> It seems like including an argument in the engraver definition is the way
> to go, unless you need to manually change the behavior in the middle of a
> score. But maybe in many situations this isn't a bad test of how well
> thought-out the engraver is.

Most engravers really are better off with maintaining their own
variables: those can work with multiple engraver instances and cannot
get lost when using \change .  Context properties are nice for
communication.

-- 
David Kastrup

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


Re: writing custom engravers in scheme - defining context properties?

2016-10-11 Thread Maxwell Phillips
Thanks everyone for all the great info! Both the examples and the
explanation of how these properties work are really helpful.

It seems like including an argument in the engraver definition is the way
to go, unless you need to manually change the behavior in the middle of a
score. But maybe in many situations this isn't a bad test of how well
thought-out the engraver is.

Thanks again!

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


Re: Controlling hairpin length - revisited!

2016-10-11 Thread David Nalesnik
Hi,


On Tue, Oct 11, 2016 at 9:07 AM, tisimst  wrote:
> David,
>
> On Tue, Oct 11, 2016 at 8:01 AM, Kieren MacMillan [via Lilypond] <[hidden
> email]> wrote:
>>
>> Hi David,
>>
>> > Just so that I have as many weapons as possible at my disposal, are
>> > there any other parameters which might directly affect the horizontal
>> > position of the left-hand end and/or the right-hand end or a hairpin,
>> > or its length?
>>
>> \after
>> Hairpin.bound-padding
>> Hairpin.X-offset
>> Hairpin.extra-offset
>>
>> Those are my main weapons.  =)
>> Kieren.
>
>
> Here's another solution I cooked up with more granular control of both ends
> of the hairpin:
> http://lists.gnu.org/archive/html/lilypond-user/2016-06/msg00176.html
>
> It's not perfect, but might do the job for you.
>


Further down in that thread is an implementation of shorten-pair with
hairpins: http://lists.gnu.org/archive/html/lilypond-user/2016-06/msg00277.html

This will allow you independent control of the left and right ends,
regardless of whether a dynamic or dynamics are preset.
(Bound-padding works only when a dynamic is present, and affects right
and left equally.).

It's a rewrite of the Hairpin stencil function.  One benefit of doing
this is there is no scaling of the shortened or lengthened Hairpin.
Possibly this avoids distortion.

HTH,

DN

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


Re: Show TupletNumber after \hide

2016-10-11 Thread Mark Mathias
Gentlemen,

All of this is enlightening and helpful! Thank you. And pardon the snake
oil :-) ... that's what you get from a musician who loves LilyPond but
struggles with the computing side!

Mark

On Tue, Oct 11, 2016 at 5:48 AM, Thomas Morley 
wrote:

> 2016-10-11 6:26 GMT+02:00 Mark Mathias :
> > LilyPond Friends,
> >
> > The manuals explain how to hide tuplet numbers, but nowhere could I find
> an
> > explanation of how to turn them back on. After many experiments, I
> finally
> > found an easy way to control turning on tuplet numbers after turning them
> > off. The secret was to enclose within curly brackets those tuplets whose
> > number needed to be hidden. Should this be shared somewhere?
> >
> > \version "2.19.16"
> > \relative c' {
> >   \tuplet 3/2 { c8 c c } c4
> >   \once \hide TupletNumber { \tuplet 3/2 { c8 c c } } c4
> >   \tuplet 3/2 { c8 c c } c4
> > }
> >
> > Thanks,
> > Mark
> >
> >
> Hi Mark,
>
> others commented on it already.
>
> Let me share some general advice.
>
> I suspect you were a little confused by the \hide TupletNumber command
> and how to deal with it to fit your needs.
>
> \hide and a lot of other commands are shortcuts, or you could even say
> syntactic sugar. Sometimes it will get you more steps forward, when
> you make yourself clear what they actually represent.
>
> - Sometimes the docs help.
> Though, in the case of \hide the NR _explains_ what it is/does but the
> underlying code is not quoted (would be beyond the purpose of the NR).
>
> - You could look through the source-files.
> Using the search-function of my editor I got 13 hits for `hide' in
> .ly-files. Actually not that much for such a generic search-term and
> the wanted one is among them.
>
> - Or most simple, use \displayLilyMusic
> {
>   \displayLilyMusic
>   \hide TupletNumber \tuplet 3/2 { c'8 c' c' }
> }
> returns:
> \override TupletNumber.transparent = ##t
>
> Now you know it's a common override, which could be used with other
> commands like \once, \temporary etc. And/or \revert later.
>
> Letting things be displayed with the various displaying-procedures
> helps a lot. I do it all the time.
>
> HTH,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Controlling hairpin length - revisited!

2016-10-11 Thread tisimst
David,

On Tue, Oct 11, 2016 at 8:01 AM, Kieren MacMillan [via Lilypond] <
ml-node+s1069038n195270...@n5.nabble.com> wrote:

> Hi David,
>
> > Just so that I have as many weapons as possible at my disposal, are
> > there any other parameters which might directly affect the horizontal
> > position of the left-hand end and/or the right-hand end or a hairpin,
> > or its length?
>
> \after
> Hairpin.bound-padding
> Hairpin.X-offset
> Hairpin.extra-offset
>
> Those are my main weapons.  =)
> Kieren.
>

Here's another solution I cooked up with more granular control of both ends
of the hairpin: http://lists.gnu.org/archive/html/lilypond-user/2016-06/
msg00176.html

It's not perfect, but might do the job for you.

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Controlling-hairpin-length-revisited-tp195269p195271.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: Controlling hairpin length - revisited!

2016-10-11 Thread Kieren MacMillan
Hi David,

> Just so that I have as many weapons as possible at my disposal, are
> there any other parameters which might directly affect the horizontal
> position of the left-hand end and/or the right-hand end or a hairpin,
> or its length?

\after
Hairpin.bound-padding
Hairpin.X-offset
Hairpin.extra-offset

Those are my main weapons.  =)
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Controlling hairpin length - revisited!

2016-10-11 Thread David Sumbler
After a 9 month gap, I have finally come back to Lilypond and will
attempt to finish tweaking my string quartet score and parts.  I have
installed v2.19.48, and I have run 'convert-ly' on my files.

The reasons for the long gap were (a) moving house in February and,
more importantly (b) feeling very discouraged by the apparent
unpredictability of hairpin lengths in Lilypond, despite all Harm's
valiant efforts.

So, for now, I accept that I am going to have to tweak errant hairpins
individually, using trial and error for the most part.

The only parameter that I am aware of that will affect the printed
length and position of a hairpin is Hairpin.minimum-length.

Just so that I have as many weapons as possible at my disposal, are
there any other parameters which might directly affect the horizontal
position of the left-hand end and/or the right-hand end or a hairpin,
or its length?

David

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


Re: Show TupletNumber after \hide

2016-10-11 Thread Thomas Morley
2016-10-11 6:26 GMT+02:00 Mark Mathias :
> LilyPond Friends,
>
> The manuals explain how to hide tuplet numbers, but nowhere could I find an
> explanation of how to turn them back on. After many experiments, I finally
> found an easy way to control turning on tuplet numbers after turning them
> off. The secret was to enclose within curly brackets those tuplets whose
> number needed to be hidden. Should this be shared somewhere?
>
> \version "2.19.16"
> \relative c' {
>   \tuplet 3/2 { c8 c c } c4
>   \once \hide TupletNumber { \tuplet 3/2 { c8 c c } } c4
>   \tuplet 3/2 { c8 c c } c4
> }
>
> Thanks,
> Mark
>
>
Hi Mark,

others commented on it already.

Let me share some general advice.

I suspect you were a little confused by the \hide TupletNumber command
and how to deal with it to fit your needs.

\hide and a lot of other commands are shortcuts, or you could even say
syntactic sugar. Sometimes it will get you more steps forward, when
you make yourself clear what they actually represent.

- Sometimes the docs help.
Though, in the case of \hide the NR _explains_ what it is/does but the
underlying code is not quoted (would be beyond the purpose of the NR).

- You could look through the source-files.
Using the search-function of my editor I got 13 hits for `hide' in
.ly-files. Actually not that much for such a generic search-term and
the wanted one is among them.

- Or most simple, use \displayLilyMusic
{
  \displayLilyMusic
  \hide TupletNumber \tuplet 3/2 { c'8 c' c' }
}
returns:
\override TupletNumber.transparent = ##t

Now you know it's a common override, which could be used with other
commands like \once, \temporary etc. And/or \revert later.

Letting things be displayed with the various displaying-procedures
helps a lot. I do it all the time.

HTH,
  Harm

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


Re: Show TupletNumber after \hide

2016-10-11 Thread David Kastrup
Simon Albrecht  writes:

> On 11.10.2016 06:26, Mark Mathias wrote:
>> LilyPond Friends,
>>
>> The manuals explain how to hide tuplet numbers, but nowhere could I
>> find an explanation of how to turn them back on. After many
>> experiments, I finally found an easy way to control turning on
>> tuplet numbers after turning them off. The secret was to enclose
>> within curly brackets those tuplets whose number needed to be
>> hidden.
>
> This can’t have been the reason. \once makes the tweak valid for only
> one point of time, after which it will be immediately reverted.
> Additionally, there’s \undo which can be used as a shortcut for the
> corresponding \revert. So these examples both work as expected (at
> least, here they do):
>
> \version "2.19.16"
> m = \relative c' { \tuplet 3/2 { c8 c c } c4 }
> {
>   \m
>   \once\hide TupletNumber \m
>   \m
>   \hide TupletNumber \m \m
>   \undo\hide TupletNumber \m

The proper pairing would be \temporary\hide ... \undo\hide

Otherwise if the default is in the context definitions of the Bottom
context itself, it gets lost.  \temporary\hide leaves the previous
definition on the property stack while overriding it so that one can
revert back to it, using either \undo or an explicit \revert.

-- 
David Kastrup

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


Re: Show TupletNumber after \hide

2016-10-11 Thread Simon Albrecht

On 11.10.2016 06:26, Mark Mathias wrote:

LilyPond Friends,

The manuals explain how to hide tuplet numbers, but nowhere could I 
find an explanation of how to turn them back on. After many 
experiments, I finally found an easy way to control turning on tuplet 
numbers after turning them off. The secret was to enclose within curly 
brackets those tuplets whose number needed to be hidden.


This can’t have been the reason. \once makes the tweak valid for only 
one point of time, after which it will be immediately reverted.
Additionally, there’s \undo which can be used as a shortcut for the 
corresponding \revert. So these examples both work as expected (at 
least, here they do):


\version "2.19.16"
m = \relative c' { \tuplet 3/2 { c8 c c } c4 }
{
  \m
  \once\hide TupletNumber \m
  \m
  \hide TupletNumber \m \m
  \undo\hide TupletNumber \m
}

HTH, Simon

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


Re: Show TupletNumber after \hide

2016-10-11 Thread David Kastrup
Mark Mathias  writes:

> LilyPond Friends,
>
> The manuals explain how to hide tuplet numbers, but nowhere could I find an
> explanation of how to turn them back on. After many experiments, I finally
> found an easy way to control turning on tuplet numbers after turning them
> off. The secret was to enclose within curly brackets those tuplets whose
> number needed to be hidden. Should this be shared somewhere?
>
> \version "2.19.16"
> \relative c' {
>   \tuplet 3/2 { c8 c c } c4
>   \once \hide TupletNumber { \tuplet 3/2 { c8 c c } } c4
>   \tuplet 3/2 { c8 c c } c4
> }

Sorry to say but that's snake oil.  The decisive difference here is
\once , not the braces.  It makes no difference whether they are there
or not.

-- 
David Kastrup

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