Skip to content

Commit 1240f54

Browse files
committed
Comment on velocity formula [ci skip]
1 parent 1fc0cfb commit 1240f54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/MidiDefs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ static const float *MidiVelocityVolume10bit = []() -> const float *
9797
static float volume[1024];
9898

9999
auto curve = [](double x) {
100+
#pragma message("TODO(jpc) improve velocity formula")
101+
// misbehaved near the zero, too loud in high values
100102
const double a = 0.01;
101103
const double b = -0.02;
102104
double t = a * x + b;

0 commit comments

Comments
 (0)