mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
The LOCALPORT and GLOBALPORT just get numeric parameters (unit, port) and (voice, unit, port), respectively, which should be now quite intuitive as most of the time the port index is one of the parameters visible in the .asm file. Only a few units have extra ports beyond transformed variables. Overall, this should make the parsing of the .asm files a lot easier.
27 lines
831 B
NASM
27 lines
831 B
NASM
%define BPM 100
|
|
|
|
%include "../src/sointu_header.inc"
|
|
|
|
BEGIN_PATTERNS
|
|
PATTERN 64, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0, 0, 0, 0
|
|
END_PATTERNS
|
|
|
|
BEGIN_TRACKS
|
|
TRACK VOICES(1),0
|
|
END_TRACKS
|
|
|
|
BEGIN_PATCH
|
|
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
|
|
SU_LOADVAL MONO,VALUE(32) ; should receive -0.5
|
|
SU_SEND MONO,AMOUNT(96),LOCALPORT(5,0) ; should send -0.25
|
|
SU_SEND MONO,AMOUNT(96),LOCALPORT(6,0) + SEND_POP ; should send -0.25
|
|
SU_LOADVAL MONO,VALUE(128) ; should receive 1
|
|
SU_SEND MONO,AMOUNT(96),LOCALPORT(6,0) + SEND_POP ; should send 0.5
|
|
SU_LOADVAL MONO,VALUE(64) ; should receive -0.5
|
|
SU_LOADVAL MONO,VALUE(64) ; should receive 0.5
|
|
SU_OUT STEREO,GAIN(128)
|
|
END_INSTRUMENT
|
|
END_PATCH
|
|
|
|
%include "../src/sointu_footer.inc"
|