patch-src_tracks_InstrumentTrack_cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $OpenBSD: patch-src_tracks_InstrumentTrack_cpp,v 1.1 2017/05/04 13:57:28 espie Exp $
  2. no separate scope -> different name
  3. Index: src/tracks/InstrumentTrack.cpp
  4. --- src/tracks/InstrumentTrack.cpp.orig
  5. +++ src/tracks/InstrumentTrack.cpp
  6. @@ -632,7 +632,7 @@ bool InstrumentTrack::play( const midiTime & _start,
  7. // get all notes from the given pattern...
  8. const NoteVector & notes = p->notes();
  9. // ...and set our index to zero
  10. - NoteVector::ConstIterator it = notes.begin();
  11. + NoteVector::ConstIterator it2 = notes.begin();
  12. #if LMMS_SINGERBOT_SUPPORT
  13. int note_idx = 0;
  14. #endif
  15. @@ -644,10 +644,10 @@ bool InstrumentTrack::play( const midiTime & _start,
  16. if( cur_start > 0 )
  17. {
  18. // skip notes which are posated before start-tact
  19. - while( it != notes.end() && ( *it )->pos() < cur_start )
  20. + while( it2 != notes.end() && ( *it2 )->pos() < cur_start )
  21. {
  22. #if LMMS_SINGERBOT_SUPPORT
  23. - if( ( *it )->length() != 0 )
  24. + if( ( *it2 )->length() != 0 )
  25. {
  26. ++note_idx;
  27. }
  28. @@ -657,8 +657,8 @@ bool InstrumentTrack::play( const midiTime & _start,
  29. }
  30. note * cur_note;
  31. - while( it != notes.end() &&
  32. - ( cur_note = *it )->pos() == cur_start )
  33. + while( it2 != notes.end() &&
  34. + ( cur_note = *it2 )->pos() == cur_start )
  35. {
  36. if( cur_note->length() != 0 )
  37. {
  38. @@ -681,7 +681,7 @@ bool InstrumentTrack::play( const midiTime & _start,
  39. ++note_idx;
  40. #endif
  41. }
  42. - ++it;
  43. + ++it2;
  44. }
  45. }
  46. return played_a_note;