101 |
dmsg(4,("RAM only voice launched (Looping: %s)\n", (RAMLoop) ? "yes" : "no")); |
dmsg(4,("RAM only voice launched (Looping: %s)\n", (RAMLoop) ? "yes" : "no")); |
102 |
} |
} |
103 |
|
|
104 |
CurrentPitch = pow(2, (double) (MIDIKey - (int) pSample->MIDIUnityNote) / (double) 12); |
// Pitch according to keyboard position (if keyrange > 1 key) |
105 |
|
CurrentPitch = (pRegion->KeyRange.high != pRegion->KeyRange.low) ? |
106 |
|
pow(2, (double) (MIDIKey - (int) pSample->MIDIUnityNote) / (double) 12) : 1.0; |
107 |
Volume = pDimRgn->GetVelocityAttenuation(Velocity); |
Volume = pDimRgn->GetVelocityAttenuation(Velocity); |
108 |
|
|
109 |
// ************************************************ |
// ************************************************ |