Add basic block biquad test
This commit is contained in:
parent
21ebcad778
commit
53bd93c8f6
1 changed files with 16 additions and 0 deletions
16
tests/circuitpython/synthio_block_biquad.py
Normal file
16
tests/circuitpython/synthio_block_biquad.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from synthnotehelper import *
|
||||
from synthio import BlockBiquad, FilterType
|
||||
import random
|
||||
|
||||
random.seed(41)
|
||||
|
||||
white_noise = array.array('h', [random.randint(-32000, 32000) for i in range(600)])
|
||||
|
||||
@synth_test_rms
|
||||
def gen(synth):
|
||||
l = LFO(sweep, offset=1440, scale=2880, rate=.025, once=True)
|
||||
yield [l]
|
||||
b = BlockBiquad(FilterType.LOW_PASS, l)
|
||||
n = Note(100, filter=b, waveform=white_noise)
|
||||
synth.press(n)
|
||||
yield 20
|
||||
Loading…
Reference in a new issue