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

Issue 30360043: Fix spurious error playing initial grace notes (issue 1412).

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by Devon Schudy
Modified:
10 years, 5 months ago
Reviewers:
Keith, janek
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fix spurious error playing initial grace notes (issue 1412). This happens because the MIDI output starts at tick 0, regardless of when the first event is. Initial grace notes start start at negative ticks, so midi_walker::output_event thinks they're out of order. Fixed by starting at the first event. Note that if a piece starts with a rest, the first event will be the first note, so we'll now skip the rest. To preserve initial rests, change the last line to: last_tick_ = items_.empty () ? 0 : min(items_[0]->audio_column_->ticks (), 0);

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M lily/midi-walker.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3
janek
I think we shouldn't skip rests by default. Other than that, it's nice to see ...
10 years, 5 months ago (2013-11-25 13:59:10 UTC) #1
Devon Schudy
janek.lilypond@gmail.com wrote: > I think we shouldn't skip rests by default. They're not skipped. I ...
10 years, 5 months ago (2013-11-25 14:13:15 UTC) #2
Keith
10 years, 5 months ago (2013-11-29 16:08:54 UTC) #3
Devon, 
I set up the latest-posted versions of your two patches that have finished
review, ready to push to the repository with headers as below, with the actual
email address being the one you used for discussion here.

Author: Devon Schudy <email>
    Grace notes: only shorten previous note if overlapping

Author: Devon Schudy <email>
    Fix spurious error playing initial grace notes (issue 1412)
Sign in to reply to this message.

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