From 334140b04a7a6f91c1fa41b6917d1b89d18e73ad Mon Sep 17 00:00:00 2001 From: SoulMelody Date: Thu, 19 Sep 2024 00:49:47 +0800 Subject: [PATCH] fix triangle formula --- libresvip/utils/music_math.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libresvip/utils/music_math.py b/libresvip/utils/music_math.py index ed1fc3bce..a622616fc 100644 --- a/libresvip/utils/music_math.py +++ b/libresvip/utils/music_math.py @@ -105,7 +105,7 @@ def cosine_easing_in_interpolation(r: float) -> float: @_transform_interpolation_args def cosine_easing_out_interpolation(r: float) -> float: - return math.cos(r * math.pi / 2) + return math.sin(r * math.pi / 2) @_transform_interpolation_args