mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
Add tests for opcode stereo variants, squashing several bugs in the process. Implement receive opcode to test stereo sending.
This commit is contained in:
28
tests/test_send_stereo.asm
Normal file
28
tests/test_send_stereo.asm
Normal file
@ -0,0 +1,28 @@
|
||||
%define BPM 100
|
||||
%define SINGLE_FILE
|
||||
%define USE_SECTIONS
|
||||
|
||||
%include "../src/sointu.inc"
|
||||
|
||||
SU_BEGIN_PATTERNS
|
||||
PATTERN 64, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
SU_END_PATTERNS
|
||||
|
||||
SU_BEGIN_TRACKS
|
||||
TRACK VOICES(1),0
|
||||
SU_END_TRACKS
|
||||
|
||||
SU_BEGIN_PATCH
|
||||
SU_BEGIN_INSTRUMENT VOICES(1) ; Instrument0
|
||||
SU_LOADVAL MONO,VALUE(0)
|
||||
SU_LOADVAL MONO,VALUE(0)
|
||||
SU_SEND STEREO,AMOUNT(96),PORT(6,receive,left) + SEND_POP
|
||||
SU_LOADVAL MONO,VALUE(64)
|
||||
SU_LOADVAL MONO,VALUE(128)
|
||||
SU_SEND STEREO,AMOUNT(128),PORT(6,receive,left) + SEND_POP
|
||||
SU_RECEIVE STEREO; should receive 0.5 -0.5
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_END_INSTRUMENT
|
||||
SU_END_PATCH
|
||||
|
||||
%include "../src/sointu.asm"
|
Reference in New Issue
Block a user