Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9921)

Issue 3509041: [Pseudo-patch] Add support for HairpinText indications. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by Valentin Villenave
Modified:
12 years, 9 months ago
Reviewers:
Neil Puttock
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Add support for HairpinText indications. This first attempt, although unsuccessful, aims to implement native, tweakable text indications that are sometimes found above or below Hairpin objects. (See LSR snippet #233 for an example.)

Patch Set 1 #

Patch Set 2 : Use 'mixed span-type in the (pseudo) regtest #

Total comments: 2

Patch Set 3 : make HairpinText a spanner #

Patch Set 4 : Fix Spanner declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -7 lines) Patch
A input/regression/hairpin-text.ly View 1 1 chunk +21 lines, -0 lines 0 comments Download
M lily/new-dynamic-engraver.cc View 1 2 3 4 chunks +30 lines, -7 lines 0 comments Download
scm/define-grobs.scm View 1 2 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Valentin Villenave
Greetings everybody, I am currently trying to understand how Grobs are created and handled, and ...
13 years, 4 months ago (2010-12-07 23:32:46 UTC) #1
Neil Puttock
Hi Valentin, I've added a few comments which I hope you'll find helpful. Cheers, Neil ...
13 years, 4 months ago (2010-12-08 01:09:38 UTC) #2
Valentin Villenave
[I should probably subscribe the codereview mail address to Frogs- and move the discussion there.] ...
13 years, 4 months ago (2010-12-08 08:09:14 UTC) #3
Neil Puttock
13 years, 4 months ago (2010-12-12 00:07:03 UTC) #4
On 8 December 2010 08:09,  <v.villenave@gmail.com> wrote:
> [I should probably subscribe the codereview mail address to Frogs- and
> move the discussion there.]

Sounds sensible to me.

> Thanks Neil! I've now tried to make a proper Spanner, which raises more
> questions of course (namely, how to properly start and finish it): right
> now there's no segfault anymore, but a "must have Item for spanner
> bound" error.

Did you notice which grob's missing the bound, though?  It's not what
you'd expect (i.e., the HairpinText grob :)

(hint: the code you've added for HairpinText prevents a Hairpin from
being created)

> Interesting.  I hadn't understood that the second argument was the grob
> cause, but that makes sense. (I guess that's why many grobs are created
> with make_item ("FooBar", SCM_EOL)?

Not all grobs are triggered by events or other grobs, so there'll
always be some with empty causes.

> Done. I also considered the possibility of using a Scheme procedure as a
> translator, but it seemed somehow uncanonical.

Actually, I think you'd find it easier to create HairpinText in a
separate engraver (at least until you're satisfied it's working
properly); this you could prototype in scheme (since you're unlikely
to need any C++ specific code).

Cheers,
Neil
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b