Menu

#4907 Midi_walker::do_start_note: skip ignored notes in stop_note_queue

Verified
Enhancement
2016-08-02
2016-06-26
No

Midi_walker::do_start_note: skip ignored notes in stop_note_queue

For each semitone pitch value, stop_note_queue is likely supposed to contain
at most one Midi_note event with its "ignore_" flag set to false, and the
comparisons between notes of equal semitone pitch to be always done between
the input note and this unique queued note that is not (yet) being ignored.

If notes which are already being ignored are not skipped in the loop, the
task of raising the "ignore_" flags for note events of equal semitone pitch
(overlapping in time) which stop before the maximum stopping time of these
notes may, due to breaking out of the loop, fail to work if there are three
or more simultaneous notes of equal semitone pitch, leading to the emission
of premature "note off" events for this pitch, as demonstrated, for example,
in http://lists.gnu.org/archive/html/bug-lilypond/2016-06/msg00042.html.

http://codereview.appspot.com/296570043

Discussion

  • Anonymous

    Anonymous - 2016-06-27
    • Description has changed:

    Diff:

    
    
    • Needs: -->
    • Patch: new --> review
     
  • Anonymous

    Anonymous - 2016-06-27

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2016-06-30
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2016-06-30

    Patch on countdown for July 3rd.

    Heikki, a Reg test was asked for in the Reitveld. Any comments?

     
  • H T LilyPond

    H T LilyPond - 2016-07-02
     
  • H T LilyPond

    H T LilyPond - 2016-07-02

    clarify description of regression test

    http://codereview.appspot.com/296570043

     
  • H T LilyPond

    H T LilyPond - 2016-07-02

    I added a regression test as requested in the review comments. (The fix remains the same, so there are no new changes to the actual code that would need another review cycle.)

     
  • Anonymous

    Anonymous - 2016-07-02
    • Needs: -->
    • Patch: new --> review
    • Type: --> Enhancement
     
  • Anonymous

    Anonymous - 2016-07-02

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2016-07-04
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2016-07-04

    Patch on countdown for July 7th.

     
  • Anonymous

    Anonymous - 2016-07-07
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2016-07-07

    Patch counted down - please push.

     
  • Anonymous

    Anonymous - 2016-07-11
    • labels: --> Fixed_2_19_46
    • Patch: push -->
     
  • Anonymous

    Anonymous - 2016-07-11

    author Heikki Tauriainen g034737@welho.com
    Sun, 26 Jun 2016 15:47:03 +0100 (17:47 +0300)
    committer James Lowe pkx166h@gmail.com
    Mon, 11 Jul 2016 06:02:35 +0100 (06:02 +0100)
    commit e7121831390ef4b0d09c1d509e1ccb0de2ea36a8

     
  • H T LilyPond

    H T LilyPond - 2016-07-11
    • status: Started --> Fixed
     
  • Phil Holmes

    Phil Holmes - 2016-08-02
    • status: Fixed --> Verified