176 |
|
|
177 |
// request gig instrument from instrument manager |
// request gig instrument from instrument manager |
178 |
try { |
try { |
179 |
instrument_id_t instrid; |
InstrumentManager::instrument_id_t instrid; |
180 |
instrid.FileName = InstrumentFile; |
instrid.FileName = InstrumentFile; |
181 |
instrid.iInstrument = InstrumentIdx; |
instrid.Index = InstrumentIdx; |
182 |
pInstrument = Engine::instruments.Borrow(instrid, this); |
pInstrument = Engine::instruments.Borrow(instrid, this); |
183 |
if (!pInstrument) { |
if (!pInstrument) { |
184 |
InstrumentStat = -1; |
InstrumentStat = -1; |
553 |
SustainPedal = false; |
SustainPedal = false; |
554 |
SostenutoPedal = false; |
SostenutoPedal = false; |
555 |
GlobalVolume = CONFIG_GLOBAL_ATTENUATION; |
GlobalVolume = CONFIG_GLOBAL_ATTENUATION; |
556 |
|
MidiVolume = 1.0; |
557 |
GlobalPanLeft = 1.0f; |
GlobalPanLeft = 1.0f; |
558 |
GlobalPanRight = 1.0f; |
GlobalPanRight = 1.0f; |
559 |
// set all MIDI controller values to zero |
// set all MIDI controller values to zero |