def test_hip(benchmark): sin = osc.Sin(440) hi = sin.hip(440) hi.render_frame() benchmark(hi)
def test_lop(benchmark): sin = osc.Sin(440) low = sin.lop(440) low.render_frame() benchmark(low)
def test_saw(): saw = osc.Saw(440) saw.render_frame() saw = osc.Saw(osc.Sin(2), osc.Sin(2)) saw.render_frame()
def test_naive_square(): naive_square = osc.NaiveSquare(440) naive_square.render_frame() naive_square = osc.NaiveSquare(osc.Sin(2), osc.Sin(2)) naive_square.render_frame()
def test_square(): square = osc.Square(440) square.render_frame() square = osc.Square(osc.Sin(2), osc.Sin(2)) square.render_frame()
def test_lop1(benchmark): sin = osc.Sin(440) low = sin.lop1(440) low.configure() benchmark(low)
def test_hip1(benchmark): sin = osc.Sin(440) hi = sin.hip1(440) hi.configure() benchmark(hi)
def test_sin(benchmark): sin = osc.Sin(440) sin.configure() benchmark(sin)
def test_fixed_delay(benchmark): sin = osc.Sin(440) delayed = sin.fixed_delay(10) delayed.configure() benchmark(delayed)