mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-23 07:24:47 -04:00
feat(go4k&sointu): Export .h C header files from the songs using go, also automatically during build for the tests.
The header files are automatically generated during build. No need to #define anything; everything is fixed by the .asm file. This adds go as a dependency to run the unit tests, but this is probably not a bad thing, as go is probably needed anyway if one wants to actually start developing Sointu.
This commit is contained in:
22
tests/test_envelope_16bit.asm
Normal file
22
tests/test_envelope_16bit.asm
Normal file
@ -0,0 +1,22 @@
|
||||
%define BPM 100
|
||||
%define OUTPUT_16BIT
|
||||
|
||||
%include "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)
|
||||
SU_ENVELOPE STEREO(0),ATTACK(64),DECAY(64),SUSTAIN(64),RELEASE(80),GAIN(128)
|
||||
SU_ENVELOPE STEREO(0),ATTACK(95),DECAY(64),SUSTAIN(64),RELEASE(80),GAIN(128)
|
||||
SU_OUT STEREO(1),GAIN(128)
|
||||
END_INSTRUMENT
|
||||
END_PATCH
|
||||
|
||||
%include "sointu/footer.inc"
|
Reference in New Issue
Block a user