wavesynth: np.int is deprecated

pull/1745/head
Sebastien Bourdeauducq 2021-09-13 07:02:35 +08:00
parent 2d79d824f9
commit ffb1e3ec2d
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class CoefficientSource:
"""
t = np.rint(x/scale)
x_sample = t*scale
durations = np.diff(t).astype(np.int)
durations = np.diff(t).astype(int)
return x_sample, durations
def __call__(self, x, **kwargs):
@ -201,7 +201,7 @@ class SplineSource(CoefficientSource):
inc = np.diff(t) >= 0
inc = np.r_[inc, inc[-1]]
t = np.where(inc, np.ceil(t), np.floor(t))
dt = np.diff(t.astype(np.int))
dt = np.diff(t.astype(int))
valid = np.absolute(dt) >= min_duration
if not np.any(valid):