Skip to content

Commit 53bd93c

Browse files
committed
Add basic block biquad test
1 parent 21ebcad commit 53bd93c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from synthnotehelper import *
2+
from synthio import BlockBiquad, FilterType
3+
import random
4+
5+
random.seed(41)
6+
7+
white_noise = array.array('h', [random.randint(-32000, 32000) for i in range(600)])
8+
9+
@synth_test_rms
10+
def gen(synth):
11+
l = LFO(sweep, offset=1440, scale=2880, rate=.025, once=True)
12+
yield [l]
13+
b = BlockBiquad(FilterType.LOW_PASS, l)
14+
n = Note(100, filter=b, waveform=white_noise)
15+
synth.press(n)
16+
yield 20

0 commit comments

Comments
 (0)