mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
Implement IN, OUTAUX and AUX opcodes, to conveniently input from or output to global ports.
This commit is contained in:
29
tests/test_in.asm
Normal file
29
tests/test_in.asm
Normal file
@ -0,0 +1,29 @@
|
||||
%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(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_IN MONO,CHANNEL(1)
|
||||
SU_IN MONO,CHANNEL(0)
|
||||
SU_LOADVAL MONO,VALUE(96)
|
||||
SU_LOADVAL MONO,VALUE(96)
|
||||
SU_ADDP STEREO
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_END_INSTRUMENT
|
||||
SU_END_PATCH
|
||||
|
||||
%include "../src/sointu.asm"
|
Reference in New Issue
Block a user