From ccab5a5ef892e9bca96eddb7100590e95bfacf5c Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 28 May 2023 22:06:33 -0600 Subject: [PATCH] Fix unit test --- tests/test_nodes_sequencing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_nodes_sequencing.py b/tests/test_nodes_sequencing.py index 85fd9abc..b3393e4b 100644 --- a/tests/test_nodes_sequencing.py +++ b/tests/test_nodes_sequencing.py @@ -6,9 +6,10 @@ Fs = 120 def test_nodes_sequencing_sequence(graph): + Fs = 12 graph.sample_rate = Fs ar = [1, 2, 3] - a = Sequence(ar, OneTapDelay(Impulse(4), [1/4, 2/4])) + a = Sequence(ar, OneTapDelay(Impulse(4), [1/4, 2/4], max_delay_time=1.0)) graph.render_subgraph(a) expected_l = np.repeat([0] + ar, Fs / 4) expected_r = np.repeat([0, 0] + ar, Fs / 4)[:Fs]