Skip to content

Commit

Permalink
Avoid adding too many pitchbend points when pressing the Smooth button
Browse files Browse the repository at this point in the history
  • Loading branch information
stargateaudio committed Oct 29, 2021
1 parent 16e9199 commit 2a0e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sglib/models/daw/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def smooth_automation_points(self, a_is_cc, a_cc_num=-1):
f_time_inc = 0.0625
f_start = f_pb1.start + f_time_inc
f_start_diff = f_pb2.start - f_pb1.start
if f_start_diff == 0.0:
if f_start_diff <= f_time_inc:
continue
f_val_inc = f_val_diff / (f_start_diff * 16.0)
if f_pb1.pb_val > f_pb2.pb_val:
Expand Down

0 comments on commit 2a0e268

Please sign in to comment.