Skip to content

Commit

Permalink
test.py: Add a test of portamento.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwe committed Aug 31, 2024
1 parent 5664aca commit b585739
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,24 @@ def run(self):
amy.send(time=500, vel=0)


class TestPortamento(AmyTest):

def run(self):
amy.send(time=0, voices="0,1,2", load_patch=0)
amy.send(time=0, voices="0,1,2", osc=0, portamento=100)
amy.send(time=0, voices="0,1,2", osc=1, portamento=100)
amy.send(time=0, voices="0,1,2", osc=2, portamento=100)

amy.send(time=50, voices="0", note=60, vel=1)
amy.send(time=50, voices="1", note=64, vel=1)
amy.send(time=50, voices="2", note=67, vel=1)

amy.send(time=300, voices="0", note=65)
amy.send(time=300, voices="1", note=69)
amy.send(time=300, voices="2", note=72)

amy.send(time=800, voices="0,1,2", vel=0)


def main(argv):
if len(argv) > 1:
Expand Down
Binary file added tests/ref/TestPortamento.wav
Binary file not shown.

0 comments on commit b585739

Please sign in to comment.