]> git.donarmstrong.com Git - lilypond.git/commitdiff
Try changing near and far
authorPhil Holmes <mail@philholmes.net>
Sun, 24 Jul 2016 13:51:45 +0000 (14:51 +0100)
committerPhil Holmes <mail@philholmes.net>
Sun, 24 Jul 2016 13:51:45 +0000 (14:51 +0100)
lily/dynamic-performer.cc

index 6acf7d00a19ff0dafc37a7d38abc1c55daf81614..857b3590dc1a143e29ec813c71bb1fa523129c2f 100644 (file)
@@ -256,11 +256,11 @@ Dynamic_performer::compute_departure_volume (Direction depart_dir,
 
   const Real vol_range = max_vol - min_vol;
 
-  const Real near = minmax (depart_dir, start_vol, end_vol)
+  const Real near_vol = minmax (depart_dir, start_vol, end_vol)
                     + depart_dir * near_padding * vol_range;
-  const Real far = minmax (-depart_dir, start_vol, end_vol)
+  const Real far_vol = minmax (-depart_dir, start_vol, end_vol)
                    + depart_dir * far_padding * vol_range;
-  const Real depart_vol = minmax (depart_dir, near, far);
+  const Real depart_vol = minmax (depart_dir, near_vol, far_vol);
   return max (min (depart_vol, max_vol), min_vol);
 }