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

Issue 5528111: Broadcast articulations not in EventChord (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by dak
Modified:
12 years, 3 months ago
Reviewers:
MikeSol
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Broadcast articulations not in EventChord This is in preparation for issue 2070. Should not cause any differences in output with current parser.

Patch Set 1 #

Patch Set 2 : Reduce impact on unexpected code areas. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M lily/event-chord-iterator.cc View 1 chunk +1 line, -1 line 0 comments Download
M lily/include/music.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/music-iterator.hh View 1 chunk +1 line, -1 line 0 comments Download
M lily/music.cc View 1 1 chunk +15 lines, -2 lines 0 comments Download
M lily/music-iterator.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
MikeSol
I would advise not handling it this way - the function to_event is supposed to ...
12 years, 3 months ago (2012-01-17 17:42:38 UTC) #1
MikeSol
I still think this patch goes outside the model of the way these things are ...
12 years, 3 months ago (2012-01-18 11:39:18 UTC) #2
dak
12 years, 3 months ago (2012-01-18 11:40:58 UTC) #3
On 2012/01/17 17:42:38, MikeSol wrote:
> I would advise not handling it this way - the function to_event is supposed to
> take music and return an event.  In this patch, it is taking music, returning
an
> event, and maybe broadcasting music and/or sending it to a context.
> 
> I'd recommend creating a new iterator, rhythmic-music-iterator, that inherits
> from Simple_music_iterator.

I have reduced the impact on strange areas: it is now just send_to_context and
its caller report_event that take an optional argument changing the behavior.

I don't see how a rhythmic-music-iterator would help here since the rhythmic
events need to get handled either way, whether they are called inside of an
EventChord or not.  The problem is that the _default_ behavior of articulations
needs to be that they just get _removed_ from events and broadcast in parallel. 
Only inside of EventChord are they allowed to stay associated with the
individual event carrying them.

That's the way things work currently.  It is just that this unwrapping and
parallel broadcasting is currently wired into the parser, where _everything_
gets wrapped in an EventChord (except when it isn't, like inside of a chord),
just in two different manners depending on whether we are in-chord or not.

So if we are not wrapping non-chord notes in EventChord, this difference needs
to get established elsewhere if the input is to retain its meaning.  And that
means the default behavior needs to be unwrapping, while EventChord refrains
from it.

I don't see that a rhythmic-music-iterator would help since it gets to play at a
time when the distinction of EventChord-or-not must already have had its effect.
Sign in to reply to this message.

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