Parent Directory | Revision Log | Patch
revision 2081 by persson, Sat Mar 20 11:37:52 2010 UTC | revision 2082 by persson, Sun Apr 11 10:20:24 2010 UTC | |
---|---|---|
# | Line 117 namespace LinuxSampler { namespace sfz { | Line 117 namespace LinuxSampler { namespace sfz { |
117 | } | } |
118 | ||
119 | double Voice::GetVelocityAttenuation(uint8_t MIDIKeyVelocity) { | double Voice::GetVelocityAttenuation(uint8_t MIDIKeyVelocity) { |
120 | return double(MIDIKeyVelocity) / 127.0f; // TODO: | return pRegion->amp_velcurve[MIDIKeyVelocity]; |
121 | } | } |
122 | ||
123 | double Voice::GetVelocityRelease(uint8_t MIDIKeyVelocity) { | double Voice::GetVelocityRelease(uint8_t MIDIKeyVelocity) { |
|
ViewVC Help | |
Powered by ViewVC |