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

Issue 3169041: [Patch] Fix #1333: beamed multi-note acciaccaturas (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Valentin Villenave
Modified:
12 years, 10 months ago
Reviewers:
Graham Percival (old account), Neil Puttock, carl.d.sorensen
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fix #1333: beamed multi-note acciaccaturas with a slashed stem This commit modifies the def-grace-function macro to make it aware of wether its argument is a single note or a SequentialMusic expression. The appropriate rules are looked up and applied accordingly; if a corresponding rule has not been defined, then the standard GraceMusic rules are applied instead. Where as single-note acciaccaturas are printed using a font glyph, this implementation uses a modified stencil to print a slash on the first stem of several beamed notes. It allows for a pure-Scheme implementation, albeit arguably not very elegant.

Patch Set 1 #

Patch Set 2 : Use optargs #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -28 lines) Patch
A input/regression/grace-beam-stroke.ly View 1 1 chunk +16 lines, -0 lines 0 comments Download
M ly/grace-init.ly View 1 1 chunk +26 lines, -15 lines 1 comment Download
M ly/music-functions-init.ly View 1 3 chunks +3 lines, -3 lines 1 comment Download
scm/music-functions.scm View 1 1 chunk +33 lines, -10 lines 0 comments Download

Messages

Total messages: 6
Valentin Villenave
Greetings everybody, here's a patch (more of a workaround, really) to address http://code.google.com/p/lilypond/issues/detail?id=1333 (aka Lily's ...
13 years, 5 months ago (2010-11-17 15:29:09 UTC) #1
Valentin Villenave
New patch set, with slightly better coding style . I'm not sure why, but the ...
13 years, 5 months ago (2010-11-18 08:43:28 UTC) #2
Graham Percival (old account)
I can't view scm/music-functions.scm ; please upload again. http://codereview.appspot.com/3169041/diff/3001/ly/grace-init.ly File ly/grace-init.ly (left): http://codereview.appspot.com/3169041/diff/3001/ly/grace-init.ly#oldcode4 ly/grace-init.ly:4: startGraceMusic ...
13 years, 5 months ago (2010-11-18 17:55:27 UTC) #3
Carl
Valentin, I couldn't comment inline on the scm file, because it gave me a server ...
13 years, 5 months ago (2010-11-18 19:31:28 UTC) #4
Neil Puttock
Hi Valentin, I'm afraid I share Carl's concerns here, though to my mind the most ...
13 years, 5 months ago (2010-11-18 19:59:23 UTC) #5
Valentin Villenave
13 years, 5 months ago (2010-11-18 21:39:35 UTC) #6
On 2010/11/18 19:59:23, Neil Puttock wrote:
> Hi Valentin,

Hi Carl, hi Neil, thank for stopping by! :-)
Graham: that's the reason why I uploaded a new patch set, but it didn't succeed
either.  I'm having some kind of a WTF situation here.

> I'm afraid I share Carl's concerns here

I think he's right too. I wanted to take this as a chance to "correct" the way
grace-functions are defined now, which I don't really like (having to define
startGrace and stopGrace as empty expressions? really?). And I was confident
that this could be handled with a straightforward convert-ly rule. However,
you're both right in pointing out that it might be an unnecessary risk.

> though to my mind the most pressing
> issue is how the slash is rendered.  I don't think it's enough to simply use a
> stencil override, since it makes it too difficult for users to tweak the
> appearance.

Hence the "workaround" part that I did mention in my description.  I did see it
as a temporary hack, or more appropriately, a proof-of-concept, until we could
have a genuinely proper solution (see below).

> I think rendering the slash with support for tweaking its appearance in a
> consistent manner demands an implementation as a separate grob.

Unfortunately, this is precisely where I'm out of my league.  My secret hope was
that something like the harp-pedal thing would happen, i.e. my initial "naive"
effort could entice proper programmers into implementing something nicer in the
future :-)

That being said, I'd be happy to play ball and give this a go: if you were to
implement such a grob (I'm guessing something like
BeamedMultiAcciaccaturaInitialStemSlash, only shorter ;-), where would you
start? Would it require a glyph, like what we're doing with non-beamed
acciaccaturas, or would a simple line be enough? And how would you compute the
angle of the slash?

(Besides, I'm concerned with the overhead/bloat/namespace pollution/etc. Would
this grob really need to be added to the Stem_engraver by default? It would be
used quite rarely, I think.)

Bonus question: if we were to have an AcciaccaturaSlash grob, then would we
still need the current implementation for slashed single notes (e.g. combining a
slash glyph with the flag glyph, etc.)? Or could we use the same grob in both
cases for visual consistency?

... Duh. I thought I was out of my league before, but it's even worse now :(

Cheers,
Valentin.
Sign in to reply to this message.

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