157 |
InstrumentIdxName = newInstrument->pInfo->Name; |
InstrumentIdxName = newInstrument->pInfo->Name; |
158 |
InstrumentStat = 100; |
InstrumentStat = 100; |
159 |
|
|
160 |
cmd = ChangeInstrument(newInstrument); |
{ |
161 |
if (cmd.pScript) { |
InstrumentChangeCmd< ::gig::DimensionRegion, ::gig::Instrument>& cmd = |
162 |
// give old instrument script back to instrument resource manager |
ChangeInstrument(newInstrument); |
163 |
cmd.pScript->resetAll(); |
if (cmd.pScript) { |
164 |
|
// give old instrument script back to instrument resource manager |
165 |
|
cmd.pScript->resetAll(); |
166 |
|
} |
167 |
} |
} |
168 |
|
|
169 |
StatusChanged(true); |
StatusChanged(true); |