From 2d583db990385506bff7020f4b4109976af5835f Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Tue, 10 Oct 2017 06:05:11 +0200 Subject: [PATCH] Fix arpeggio sort mode (#3867) When in sort mode and playing over multiple base notes, in the beginning of the notes there is a chance that the notes will play together as an ordinary chord instead of arpeggiate. This is a regression from 6650dd3. Fixes #3342 --- src/core/InstrumentFunctions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/InstrumentFunctions.cpp b/src/core/InstrumentFunctions.cpp index b1c4be22a..2860045b8 100644 --- a/src/core/InstrumentFunctions.cpp +++ b/src/core/InstrumentFunctions.cpp @@ -524,6 +524,13 @@ void InstrumentFunctionArpeggio::processNote( NotePlayHandle * _n ) frames_processed += arp_frames; cur_frame += arp_frames; } + + // make sure note is handled as arp-base-note, even + // if we didn't add a sub-note so far + if( m_arpModeModel.value() != FreeMode ) + { + _n->setMasterNote(); + } }