93 |
cmd.pRegionsInUse->clear(); |
cmd.pRegionsInUse->clear(); |
94 |
|
|
95 |
// delete all key groups |
// delete all key groups |
96 |
ActiveKeyGroups.clear(); |
DeleteGroupEventLists(); |
97 |
|
|
98 |
// request sf2 instrument from instrument manager |
// request sf2 instrument from instrument manager |
99 |
::sf2::Preset* newInstrument; |
::sf2::Preset* newInstrument; |
137 |
::sf2::Region* pRegion = newInstrument->GetRegion(i); |
::sf2::Region* pRegion = newInstrument->GetRegion(i); |
138 |
for (int j = 0 ; j < pRegion->pInstrument->GetRegionCount() ; j++) { |
for (int j = 0 ; j < pRegion->pInstrument->GetRegionCount() ; j++) { |
139 |
::sf2::Region* pSubRegion = pRegion->pInstrument->GetRegion(j); |
::sf2::Region* pSubRegion = pRegion->pInstrument->GetRegion(j); |
140 |
if (pSubRegion->exclusiveClass) ActiveKeyGroups[pSubRegion->exclusiveClass] = NULL; |
AddGroup(pSubRegion->exclusiveClass); |
141 |
} |
} |
142 |
} |
} |
143 |
|
|