|
|
@ -50,9 +50,7 @@ Dexed::Dexed(double rate) : lvtk::Synth<DexedVoice, Dexed>(p_n_ports, p_midi_in) |
|
|
|
fx.init(rate); |
|
|
|
fx.init(rate); |
|
|
|
|
|
|
|
|
|
|
|
if(!(engineMkI=new (std::nothrow) EngineMkI)) |
|
|
|
if(!(engineMkI=new (std::nothrow) EngineMkI)) |
|
|
|
{ |
|
|
|
|
|
|
|
TRACE("Cannot not create engine EngineMkI"); |
|
|
|
TRACE("Cannot not create engine EngineMkI"); |
|
|
|
} |
|
|
|
|
|
|
|
if(!(engineOpl=new (std::nothrow) EngineOpl)) |
|
|
|
if(!(engineOpl=new (std::nothrow) EngineOpl)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
delete(engineMkI); |
|
|
|
delete(engineMkI); |
|
|
@ -67,9 +65,7 @@ Dexed::Dexed(double rate) : lvtk::Synth<DexedVoice, Dexed>(p_n_ports, p_midi_in) |
|
|
|
|
|
|
|
|
|
|
|
for(i=0; i<MAX_ACTIVE_NOTES; i++) { |
|
|
|
for(i=0; i<MAX_ACTIVE_NOTES; i++) { |
|
|
|
if(!(voices[i].dx7_note = new (std::nothrow) Dx7Note)) |
|
|
|
if(!(voices[i].dx7_note = new (std::nothrow) Dx7Note)) |
|
|
|
{ |
|
|
|
|
|
|
|
TRACE("Cannot create DX7Note [%d]",i); |
|
|
|
TRACE("Cannot create DX7Note [%d]",i); |
|
|
|
}
|
|
|
|
|
|
|
|
voices[i].keydown = false; |
|
|
|
voices[i].keydown = false; |
|
|
|
voices[i].sustained = false; |
|
|
|
voices[i].sustained = false; |
|
|
|
voices[i].live = false; |
|
|
|
voices[i].live = false; |
|
|
|