Parent Directory | Revision Log | Patch
revision 368 by schoenebeck, Fri Feb 11 13:13:54 2005 UTC | revision 407 by persson, Wed Feb 23 19:14:14 2005 UTC | |
---|---|---|
# | Line 326 namespace LinuxSampler { namespace gig { | Line 326 namespace LinuxSampler { namespace gig { |
326 | ||
327 | Volume = pDimRgn->GetVelocityAttenuation(itNoteOnEvent->Param.Note.Velocity) / 32768.0f; // we downscale by 32768 to convert from int16 value range to DSP value range (which is -1.0..1.0) | Volume = pDimRgn->GetVelocityAttenuation(itNoteOnEvent->Param.Note.Velocity) / 32768.0f; // we downscale by 32768 to convert from int16 value range to DSP value range (which is -1.0..1.0) |
328 | ||
329 | Volume *= pDimRgn->SampleAttenuation; | |
330 | ||
331 | // setup EG 1 (VCA EG) | // setup EG 1 (VCA EG) |
332 | { | { |
333 | // get current value of EG1 controller | // get current value of EG1 controller |
|
ViewVC Help | |
Powered by ViewVC |