summaryrefslogtreecommitdiff
path: root/lily
diff options
context:
space:
mode:
authorPhil Holmes <mail@philholmes.net>2016-07-24 14:51:45 +0100
committerPhil Holmes <mail@philholmes.net>2016-07-24 14:51:45 +0100
commitee6212f6538384b0730ba0754bd8a31c2b2ebda3 (patch)
treeb5e63f1c78c8ef7e31f1d37de0963727315320bf /lily
parent9907affcd589c75d8a24e477a56b06b41e9d901e (diff)
Try changing near and far
Diffstat (limited to 'lily')
-rw-r--r--lily/dynamic-performer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lily/dynamic-performer.cc b/lily/dynamic-performer.cc
index 6acf7d00a1..857b3590dc 100644
--- a/lily/dynamic-performer.cc
+++ b/lily/dynamic-performer.cc
@@ -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);
}