Skip to content

Commit eda43d7

Browse files
committed
Add some more Note tests
1 parent 9f138dc commit eda43d7

9 files changed

+8314
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from synthnotehelper import *
2+
3+
4+
@synth_test
5+
def gen(synth):
6+
l = LFO(bend_out, offset=0.2, scale=0.8, rate=4, once=True)
7+
yield [l]
8+
n = Note(128, amplitude=l)
9+
synth.press(n)
10+
yield 1 / 4

tests/circuitpython/synth_note_amplitude.py.exp

Lines changed: 2048 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from synthnotehelper import *
2+
3+
4+
@synth_test
5+
def gen(synth):
6+
l = LFO(sweep, rate=4, once=True)
7+
yield [l]
8+
n = Note(32, bend=l)
9+
synth.press(n)
10+
yield 1 / 4

tests/circuitpython/synth_note_bend.py.exp

Lines changed: 2048 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from synthnotehelper import *
2+
3+
4+
@synth_test
5+
def gen(synth):
6+
l = LFO(bend_out, offset=0.2, scale=0.8, rate=4, once=True)
7+
yield [l]
8+
n = Note(128, amplitude=l)
9+
synth.press(n)
10+
yield 1 / 4

0 commit comments

Comments
 (0)