From d7f5904d1611e905b76f30b08fdb70d821fea3ae Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sun, 21 Feb 2016 23:27:57 +0100 Subject: [PATCH] wavesynth: duration sign --- artiq/wavesynth/coefficients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/wavesynth/coefficients.py b/artiq/wavesynth/coefficients.py index 313913667..e43b03aae 100644 --- a/artiq/wavesynth/coefficients.py +++ b/artiq/wavesynth/coefficients.py @@ -139,7 +139,7 @@ class CoefficientSource: coefficients.shape[0])[:, None, None] if cutoff: coefficients[np.fabs(coefficients) < cutoff] = 0 - return build_segment(durations, coefficients, target=target, + return build_segment(np.fabs(durations), coefficients, target=target, variable=variable) def extend_segment(self, segment, *args, **kwargs):