[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \startTrillSpan without the tr at the beginning?
From: |
Richard Shann |
Subject: |
Re: \startTrillSpan without the tr at the beginning? |
Date: |
Mon, 26 Jan 2015 13:08:09 +0000 |
On Mon, 2015-01-26 at 11:40 +0000, Richard Shann wrote:
> On Mon, 2015-01-26 at 09:21 +0000, Richard Shann wrote:
> > On Sun, 2015-01-25 at 20:54 +0100, Pierre Perol-Schneider wrote:
> > > Try:
> > >
> > > {
> > > b'-\tweak style #'zigzag \startTextSpan
> > > b' b'
> > > \stopTextSpan
> > > }
> > >
> >
> > That is a step forward - the zigzag distinguishes the sign from the
> > prall ... looking up the documentation for TextSpanner leads to the same
> > as before "stencil" is referred to as "The symbol to print." and "the
> > stencil callback" in successive entries
> > http://lilypond.org/doc/v2.18/Documentation/internals/textspanner
> >
> > It looks like the actual drawing of zigzags and so on is in compiled
> > code, and so not replaceable by the user without running GUB - at least
> > I can't find any trace of it.
> >
> > Thanks for all these suggestions, I guess an enhancement request would
> > be for a wavy line zigzag ...
>
> Come to think of it, I can't find the documentation for what values for
> style are already available.
Even though I can't find it, it must be there as I see in the sources
(line-interface.cc)
"Generic line objects. Any object using lines supports this."
" The property @code{style} can be @code{line},"
" @code{dashed-line}, @code{trill}, @code{dotted-line},"
" @code{zigzag} or @code{none} (a transparent line).\n"
which tells me that zigzag is the closest thing currently available.
And as for drawing a wiggly-line this would mean adapting
Line_interface::make_zigzag_line () earlier in the same file.
But that requires some knowledge of the drawing primitives available...
Richard
> The documentation mentions 'dashed-line but
> how would the user know if 'wiggly-line was already available?
>
> Richard
>
>
>
>
> >
> > Richard
> >
> >
> > >
> > > Pierre
> > >
> > >
> > > 2015-01-25 20:14 GMT+01:00 Richard Shann <address@hidden>:
> > > On Sun, 2015-01-25 at 12:03 +0100, Pierre Perol-Schneider
> > > wrote:
> > > > Try :
> > > >
> > > > \version "2.18.2"
> > > >
> > > > {
> > > > b'-\tweak bound-details.left.text #'()
> > >
> > > I've started to look more deeply to see if the sharp zig-zag
> > > line could
> > > be replaced by a user-defined line. I found this
> > >
> > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> > > http://lilypond.org/doc/v2.18/Documentation/internals/trillspanner
> > >
> > > stencil (stencil):
> > >
> > > ly:line-spanner::print
> > >
> > > The symbol to print.
> > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> > > This sounds strange - I would guess stencil is a procedure not
> > > a glyph
> > > (? what would symbol mean here?) - and indeed the next entry
> > > on that
> > > page is
> > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> > > style (symbol):
> > >
> > > 'trill
> > >
> > > This setting determines in what style a grob is typeset.
> > > Valid
> > > choices depend on the stencil callback reading this property.
> > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> > >
> > > Is it on the cards to write some scheme procedure that stencil
> > > could be
> > > set to in order generate a more wavy line?
> > >
> > >
> > > Richard
> > >
> > >
> > >
> > >
> >
> >
> >
> > _______________________________________________
> > lilypond-user mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user