29 |
|
|
30 |
namespace LinuxSampler { namespace sf2 { |
namespace LinuxSampler { namespace sf2 { |
31 |
|
|
32 |
Voice::Voice() { |
Voice::Voice(): SignalRack(this) { |
33 |
pEngine = NULL; |
pEngine = NULL; |
34 |
pEG1 = &EG1; |
pEG1 = &EG1; |
35 |
pEG2 = &EG2; |
pEG2 = &EG2; |
39 |
|
|
40 |
} |
} |
41 |
|
|
42 |
|
void Voice::AboutToTrigger() { |
43 |
|
|
44 |
|
} |
45 |
|
|
46 |
EngineChannel* Voice::GetSf2EngineChannel() { |
EngineChannel* Voice::GetSf2EngineChannel() { |
47 |
return static_cast<EngineChannel*>(pEngineChannel); |
return static_cast<EngineChannel*>(pEngineChannel); |
48 |
} |
} |
405 |
}*/ // TODO: ^^^ |
}*/ // TODO: ^^^ |
406 |
bLFO3Enabled = false; |
bLFO3Enabled = false; |
407 |
} |
} |
408 |
|
|
409 |
|
SignalUnitRack* Voice::GetSignalUnitRack() { |
410 |
|
return static_cast<SignalUnitRack*> (&SignalRack); |
411 |
|
} |
412 |
|
|
413 |
float Voice::CalculateCutoffBase(uint8_t MIDIKeyVelocity) { |
float Voice::CalculateCutoffBase(uint8_t MIDIKeyVelocity) { |
414 |
/*float cutoff = pRegion->GetVelocityCutoff(MIDIKeyVelocity); |
/*float cutoff = pRegion->GetVelocityCutoff(MIDIKeyVelocity); |