Clean up the activation lists on clearing the synth
This commit is contained in:
parent
07e2513e52
commit
c15def27cf
1 changed files with 8 additions and 2 deletions
|
|
@ -108,6 +108,14 @@ void sfz::Synth::buildRegion(const std::vector<Opcode>& regionOpcodes)
|
||||||
|
|
||||||
void sfz::Synth::clear()
|
void sfz::Synth::clear()
|
||||||
{
|
{
|
||||||
|
for (auto &voice: voices)
|
||||||
|
voice->reset();
|
||||||
|
for (auto& list: noteActivationLists)
|
||||||
|
list.clear();
|
||||||
|
for (auto& list: ccActivationLists)
|
||||||
|
list.clear();
|
||||||
|
regions.clear();
|
||||||
|
filePool.clear();
|
||||||
hasGlobal = false;
|
hasGlobal = false;
|
||||||
hasControl = false;
|
hasControl = false;
|
||||||
numGroups = 0;
|
numGroups = 0;
|
||||||
|
|
@ -121,8 +129,6 @@ void sfz::Synth::clear()
|
||||||
globalOpcodes.clear();
|
globalOpcodes.clear();
|
||||||
masterOpcodes.clear();
|
masterOpcodes.clear();
|
||||||
groupOpcodes.clear();
|
groupOpcodes.clear();
|
||||||
regions.clear();
|
|
||||||
filePool.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void sfz::Synth::handleGlobalOpcodes(const std::vector<Opcode>& members)
|
void sfz::Synth::handleGlobalOpcodes(const std::vector<Opcode>& members)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue