Don't copy DetuningHelper in Note copy constructor (#7888)
Reworks how note detuning copying works so as not to perform a clip duplication and allocation by default in the constructors --------- Co-authored-by: Dalton Messmer <messmer.dalton@gmail.com>
This commit is contained in:
@@ -163,8 +163,7 @@ private slots:
|
||||
Note* note = midiClip.addNote(Note(TimePos(4, 0)), false);
|
||||
note->createDetuning();
|
||||
|
||||
DetuningHelper* dh = note->detuning();
|
||||
auto clip = dh->automationClip();
|
||||
auto clip = note->detuning()->automationClip();
|
||||
clip->setProgressionType( AutomationClip::ProgressionType::Linear );
|
||||
clip->putValue(TimePos(0, 0), 0.0);
|
||||
clip->putValue(TimePos(4, 0), 1.0);
|
||||
|
||||
Reference in New Issue
Block a user