mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
Implement gain and inverse gain effects, for the moments when you just need them.
This commit is contained in:
@ -43,6 +43,10 @@ regression_test(test_envelope "" ENVELOPE)
|
||||
regression_test(test_envelope_stereo ENVELOPE)
|
||||
regression_test(test_loadval "" LOADVAL)
|
||||
regression_test(test_loadval_stereo LOADVAL LOADVAL_STEREO)
|
||||
regression_test(test_gain LOADVAL GAIN)
|
||||
regression_test(test_gain_stereo GAIN)
|
||||
regression_test(test_invgain LOADVAL INVGAIN)
|
||||
regression_test(test_invgain_stereo INVGAIN)
|
||||
regression_test(test_send LOADVAL SEND)
|
||||
regression_test(test_send_stereo SEND)
|
||||
regression_test(test_send_global SEND)
|
||||
|
BIN
tests/expected_output/test_gain.raw
Normal file
BIN
tests/expected_output/test_gain.raw
Normal file
Binary file not shown.
BIN
tests/expected_output/test_gain_stereo.raw
Normal file
BIN
tests/expected_output/test_gain_stereo.raw
Normal file
Binary file not shown.
BIN
tests/expected_output/test_invgain.raw
Normal file
BIN
tests/expected_output/test_invgain.raw
Normal file
Binary file not shown.
BIN
tests/expected_output/test_invgain_stereo.raw
Normal file
BIN
tests/expected_output/test_invgain_stereo.raw
Normal file
Binary file not shown.
24
tests/test_gain.asm
Normal file
24
tests/test_gain.asm
Normal file
@ -0,0 +1,24 @@
|
||||
%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(128)
|
||||
SU_GAIN STEREO,GAIN(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_END_INSTRUMENT
|
||||
SU_END_PATCH
|
||||
|
||||
%include "../src/sointu.asm"
|
25
tests/test_gain_stereo.asm
Normal file
25
tests/test_gain_stereo.asm
Normal file
@ -0,0 +1,25 @@
|
||||
%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(32)
|
||||
SU_GAIN MONO,GAIN(128)
|
||||
SU_LOADVAL MONO,VALUE(128)
|
||||
SU_GAIN MONO,GAIN(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_END_INSTRUMENT
|
||||
SU_END_PATCH
|
||||
|
||||
%include "../src/sointu.asm"
|
25
tests/test_invgain.asm
Normal file
25
tests/test_invgain.asm
Normal file
@ -0,0 +1,25 @@
|
||||
%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(48)
|
||||
SU_INVGAIN MONO,GAIN(64)
|
||||
SU_LOADVAL MONO,VALUE(80)
|
||||
SU_INVGAIN MONO,INVGAIN(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_END_INSTRUMENT
|
||||
SU_END_PATCH
|
||||
|
||||
%include "../src/sointu.asm"
|
24
tests/test_invgain_stereo.asm
Normal file
24
tests/test_invgain_stereo.asm
Normal file
@ -0,0 +1,24 @@
|
||||
%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(48)
|
||||
SU_LOADVAL MONO,VALUE(80)
|
||||
SU_INVGAIN STEREO,INVGAIN(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
SU_END_INSTRUMENT
|
||||
SU_END_PATCH
|
||||
|
||||
%include "../src/sointu.asm"
|
Reference in New Issue
Block a user