mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
Improve and rename envelope test. The test focuses on GO4k_ENV opcode only and does not use panning.
This commit is contained in:
parent
2bee9edd0b
commit
1f0fdfc30e
@ -1,7 +1,5 @@
|
||||
add_executable(test_env test_env.asm test_renderer.c test_env_expected.raw)
|
||||
add_custom_command(
|
||||
TARGET test_env POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${CMAKE_SOURCE_DIR}/tests/test_env_expected.raw
|
||||
${CMAKE_CURRENT_BINARY_DIR}/test_env_expected.raw)
|
||||
add_test(test_env test_env)
|
||||
add_executable(test_envelope test_envelope.asm test_renderer.c)
|
||||
add_test(test_envelope test_envelope)
|
||||
|
||||
file(GLOB RAW_FILES "${CMAKE_SOURCE_DIR}/tests/*.raw")
|
||||
file(COPY ${RAW_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
Binary file not shown.
@ -597,7 +597,7 @@ section .data
|
||||
go4k_synth_instructions
|
||||
GO4K_BEGIN_CMDDEF(Instrument0)
|
||||
db GO4K_ENV_ID
|
||||
db GO4K_PAN_ID
|
||||
db GO4K_ENV_ID
|
||||
db GO4K_OUT_ID
|
||||
GO4K_END_CMDDEF
|
||||
;// global commands
|
||||
@ -617,7 +617,7 @@ section .data
|
||||
go4k_synth_parameter_values
|
||||
GO4K_BEGIN_PARAMDEF(Instrument0)
|
||||
GO4K_ENV ATTAC(64),DECAY(64),SUSTAIN(64),RELEASE(80),GAIN(128)
|
||||
GO4K_PAN PANNING(64)
|
||||
GO4K_ENV ATTAC(95),DECAY(64),SUSTAIN(64),RELEASE(80),GAIN(128)
|
||||
GO4K_OUT GAIN(128), AUXSEND(0)
|
||||
GO4K_END_PARAMDEF
|
||||
;// global parameters
|
||||
@ -643,10 +643,9 @@ _go4k_delay_times
|
||||
section .data
|
||||
|
||||
global _test_name
|
||||
_test_name db 'test_env', 0 ; null terminated string
|
||||
_test_name db 'test_envelope', 0 ; null terminated string
|
||||
|
||||
global _test_max_samples
|
||||
_test_max_samples
|
||||
dd MAX_SAMPLES
|
||||
_test_max_samples dd MAX_SAMPLES
|
||||
|
||||
%include "../src/4klang.inc"
|
BIN
tests/test_envelope_expected.raw
Normal file
BIN
tests/test_envelope_expected.raw
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user