Re: To hide a time signature

2006-10-02 Thread Mats Bengtsson

Marcus Macauley wrote:
I'm trying to hide the first time signature, but display any which 
come later. So here's a snippet:


\version 2.9.17
{
\once \override Staff.TimeSignature #'break-visibility = ##(#f #f #f)
\time 4/4 c'1 \time 3/4 c'2.
}

The tweak is based on this page:
http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/TimeSignature.html 



If you had followed the link at the bottom of that page to 
item-interface, you
would have found the solution much quicker. Always remember that the 
information
presented for each graphical object is just a subset of the full 
documentation of all
the available properties. To see it all, you need to browse through all 
the links to the

interfaces.

  /Mats


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


Re: To hide a time signature

2006-10-02 Thread Mats Bengtsson



Marcus Macauley wrote:
Indeed, that works too. But where is the stencil setting documented? 
And why isn't it mentioned on:
http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/TimeSignature.html 


?


That's a very good question, which I forward to bug-lilypond.
If you click on grob-interface, you will notice that stencil is listed
among the Internal properties, which probably explains why it isn't
listed on the main page of the graphical object.
I don't think this is a good idea, since we already have a number of 
examples

in the manual, TipsTricks and LSR that involves redefining stencil and as
the documentation is generated now, it's for example impossible to 
figure out

what the default value of stencil is for a given object, unless you look in
scm/define-grobs.scm

  /Mats


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


Re: To hide a time signature

2006-10-02 Thread Marcus Macauley

Mats,

I wrote:
I'm trying to hide the first time signature, but display any which come  
later. So here's a snippet:


\version 2.9.17
{
\once \override Staff.TimeSignature #'break-visibility = ##(#f #f #f)
\time 4/4 c'1 \time 3/4 c'2.
}

The tweak is based on this page:
http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/TimeSignature.html


You replied:
If you had followed the link at the bottom of that page to  
item-interface, you
would have found the solution much quicker. Always remember that the  
information
presented for each graphical object is just a subset of the full  
documentation of all
the available properties. To see it all, you need to browse through all  
the links to the

interfaces.


Indeed, I discovered those links soon after I posted. But the particular  
link you mention, item-interface, doesn't seem to offer much help here.  
It mentions the break-visibility setting, but so does the TimeSignature  
page itself, and it didn't take me long to find it on the TimeSignature  
page. True, the item-interface page explains it at greater length,  
though.


What I still don't understand is the stencil setting (which Kieren  
suggested as an alternative), which I now see is listed on the  
grob-interface page (linked from the bottom of the TimeSignature page),  
but there it appears under Internal properties and not under User  
settable properties. That seems to imply that stencil is not user  
settable, though Kieren's example suggests that it is. Also, whether or  
not stencil is user settable, the grob-interface page offers no clue  
as to what values/syntax it might take. The entry reads:


stencil (unknown)
   The symbol to print.

BUT, now I notice something I didn't see before. At the bottom of the list  
of user settable properties is:


transparent (boolean)
   This makes the grob invisible.

transparent: That sounds awfully familiar! It's wonder I couldn't see it  
before -- it's like I was looking right through it.


Sure enough, the following line works like a charm:

\once \override Staff.TimeSignature #'transparent = ##t

Seeing as grobs are ubiquitous in Lilypond (judging from, e.g., the list  
at the bottom of

http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/grob_002dinterface.html
), I imagine I won't have too much trouble the next time I want to hide  
something.


(My stencil query remains unresolved, but it's not so pressing.)

Thanks, Mats and Kieren, for the help.

Marcus


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


Re: To hide a time signature

2006-10-02 Thread Mats Bengtsson



Marcus Macauley wrote:


If you had followed the link at the bottom of that page to 
item-interface, you
would have found the solution much quicker. Always remember that the 
information
presented for each graphical object is just a subset of the full 
documentation of all
the available properties. To see it all, you need to browse through 
all the links to the

interfaces.


Indeed, I discovered those links soon after I posted. But the 
particular link you mention, item-interface, doesn't seem to offer 
much help here. It mentions the break-visibility setting, but so 
does the TimeSignature page itself, and it didn't take me long to find 
it on the TimeSignature page. True, the item-interface page explains 
it at greater length, though.
For example, it tells you that there is a predefined macro all-invisible 
that can

be used.

What I still don't understand is the stencil setting (which Kieren 
suggested as an alternative), which I now see is listed on the 
grob-interface page (linked from the bottom of the TimeSignature 
page), but there it appears under Internal properties and not under 
User settable properties. That seems to imply that stencil is not 
user settable, though Kieren's example suggests that it is. Also, 
whether or not stencil is user settable, the grob-interface page 
offers no clue as to what values/syntax it might take. The entry reads:



Yes, I already reported that problem to lilypond-bug in my previous email.
BUT, now I notice something I didn't see before. At the bottom of the 
list of user settable properties is:


transparent (boolean)
   This makes the grob invisible.

transparent: That sounds awfully familiar! It's wonder I couldn't 
see it before -- it's like I was looking right through it.
If you search the index of the manual for transparent objects, 
removing objects,
hiding objects or invisible objects you will find a link to some 
more information

on the transparent property in the manual.

Sure enough, the following line works like a charm:

\once \override Staff.TimeSignature #'transparent = ##t
As is explained in the manual, this will not do exactly the same thing 
as your
previous solution, since the transparent time signature will still 
occupy some

space (which is usually not desirable for this situation).

  /Mats



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


Re: To hide a time signature

2006-10-02 Thread Marcus Macauley

Mats,

If you search the index of the manual for transparent objects,  
removing objects,
hiding objects or invisible objects you will find a link to some  
more information

on the transparent property in the manual.


Thanks. I don't know how I missed that before.



\once \override Staff.TimeSignature #'transparent = ##t
As is explained in the manual, this will not do exactly the same thing  
as your
previous solution, since the transparent time signature will still  
occupy some

space (which is usually not desirable for this situation).


Good point. So my original solution, or Kieren's, was probably best.

Marcus


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


Re: To hide a time signature

2006-10-01 Thread Kieren MacMillan

Hi, Marcus:


But I'm curious, is there a better way to do this?


I don't claim it's necessarily better, but another way would be

\version 2.9.17
{
\once \override Staff.TimeSignature #'stencil = ##f
\time 4/4 c'1 \time 3/4 c'2.
}

HTH!
Kieren.


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


Re: To hide a time signature

2006-10-01 Thread Marcus Macauley

Hi Kieren,


I don't claim it's necessarily better, but another way
[to hide the initial time signature but not subsequent ones]
would be

\version 2.9.17
{
\once \override Staff.TimeSignature #'stencil = ##f
\time 4/4 c'1 \time 3/4 c'2.
}


Indeed, that works too. But where is the stencil setting documented? And  
why isn't it mentioned on:

http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/TimeSignature.html
?

In other words, how did you learn that tweak, and how might I have  
discovered one like that myself, without asking the mailing list?


(Searching Google for stencil site:lilypond.org didn't yield any obvious  
answers. Nor did the Lilypond index, in which stencil links to 8.1.6  
Overview of text markup commands --

http://lilypond.org/doc/v2.9/Documentation/user/lilypond/Overview-of-text-markup-commands.html
-- which explains the \stencil command, but not the #'stencil setting.)

Thanks,
Marcus


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