OpenWareLaboratory
VelocityCurve Class Reference

General MIDI DLS Level 1 Specification: The MIDI Note Velocity value is converted to attenuation in dB by the Concave Transform attenuation = 20*log10(127^2/velocity^2) so gain = velocity^2/127^2 Adjustable for dynamic range. More...

Inheritance diagram for VelocityCurve:

Public Member Functions

void setDynamicRange (float db)
 
float velocityToGain (float v)
 

Detailed Description

General MIDI DLS Level 1 Specification: The MIDI Note Velocity value is converted to attenuation in dB by the Concave Transform attenuation = 20*log10(127^2/velocity^2) so gain = velocity^2/127^2 Adjustable for dynamic range.

ref: https://www.cs.cmu.edu/~rbd/papers/velocity-icmc2006.pdf

Definition at line 14 of file VelocityCurve.h.

Member Function Documentation

◆ setDynamicRange()

void VelocityCurve::setDynamicRange ( float  db)
inline

Definition at line 20 of file VelocityCurve.h.

◆ velocityToGain()

float VelocityCurve::velocityToGain ( float  v)
inline

Definition at line 25 of file VelocityCurve.h.

Referenced by AbstractSynth::noteOn().


The documentation for this class was generated from the following file: