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

Issue 1786041: Add support for multi-note tremolo (Closed)

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

Description

Add support for multi-note tremolo -) Remove all checks for exactly one or two notes as arguments to a tremolo repeat -) Create proper beaming for multi-note tremolo (so far, the chord-tremolo-engraver always assumed exactly two beamed notes) -) Extend the make-repeat function to scale the notes properly also in the case of multi-note tremolos

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix breaking issue between tremolos, also some other crashes and some nitpicks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -41 lines) Patch
A input/regression/repeat-tremolo-three-notes.ly View 1 1 chunk +19 lines, -0 lines 0 comments Download
M lily/chord-tremolo-engraver.cc View 1 5 chunks +27 lines, -18 lines 0 comments Download
M lily/chord-tremolo-iterator.cc View 2 chunks +1 line, -6 lines 0 comments Download
M scm/music-functions.scm View 1 2 chunks +13 lines, -17 lines 0 comments Download

Messages

Total messages: 3
Neil Puttock
Hi Reinhold, This will be a great enhancement if you can sort out the forbidden ...
13 years, 9 months ago (2010-07-09 20:19:11 UTC) #1
Reinhold
http://codereview.appspot.com/1786041/diff/1/3 File lily/chord-tremolo-engraver.cc (right): http://codereview.appspot.com/1786041/diff/1/3#newcode87 lily/chord-tremolo-engraver.cc:87: announce_end_grob (beam_, previous_grob_->self_scm ()); On 2010/07/09 20:19:11, Neil Puttock ...
13 years, 9 months ago (2010-07-10 09:51:33 UTC) #2
Neil Puttock
13 years, 9 months ago (2010-07-11 17:02:42 UTC) #3
On 2010/07/10 09:51:33, Reinhold wrote:

> Hmm, but that's the first event where I know that the tremolo has ended.
Before
> the stopping spanner event, there is no way to determine whether there will be
> still some notes or not...

It's an unavoidable consequence of the iteration process, since the
TremoloRepeatedMusic triggers the creation of the start/stop events; unlike the
events generated by manual beaming, they're always running behind.  Naturally
this doesn't matter if we're restricted to two-note tremolos since we know once
a second stem's been acknowledged that the beam should end.
 
> Would it be a problem to use announce_end_grob here like before, even though
> there might be another note coming up?
> I.e. what side-effects does calling announce_end_grob have?

AFAICT, it's only used by the Spanner_break_forbid_engraver, so will only affect
beams in a stem tremolo.  But it will have the unfortunate side effect of making
every tremolo longer than two notes breakable (ignoring 'breakable = ##f) after
the second stem.

Cheers,
Neil
Sign in to reply to this message.

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