def test(stop_at, input_a, input_b1, input_b2, input_c, expected, is_infinite): pattern = ChainPattern( EventPattern(a=input_a, b=input_b1), EventPattern(b=input_b2), EventPattern(c=input_c), ) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test( stop_at, inner_pattern, calculation_rate, channel_count, release_time, expected, is_infinite, ): pattern = BusPattern( inner_pattern, calculation_rate=calculation_rate, channel_count=channel_count, release_time=release_time, ) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, operator, input_, expected, is_infinite): pattern = UnaryOpPattern(operator, input_) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, input_a, input_b1, input_b2, input_c, expected, is_infinite): pattern = UpdatePattern(EventPattern(a=input_a, b=input_b1), b=input_b2, c=input_c) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, inner_pattern, release_time, expected, is_infinite): pattern = GroupPattern(inner_pattern, release_time=release_time) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, inner_pattern, synthdef, release_time, kwargs, expected, is_infinite): pattern = FxPattern(inner_pattern, synthdef, release_time=release_time, **kwargs) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, input_a, input_b, expected, is_infinite): pattern = MonoEventPattern(a=input_a, b=input_b) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, sequence, iterations, expected, is_infinite): pattern = SequencePattern(sequence, iterations=iterations) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, pattern, expected, is_infinite): pattern = SeedPattern(pattern) run_pattern_test(pattern, expected, is_infinite, stop_at)
def test(stop_at, patterns, expected, is_infinite): pattern = ParallelPattern(patterns) run_pattern_test(pattern, expected, is_infinite, stop_at)