Skip to content

Commit

Permalink
Add test files for AWE32 NRPN (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst authored Nov 23, 2024
1 parent 069a176 commit 8558d7b
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 1 deletion.
32 changes: 31 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ if(NOT DEFINED GENERAL_USER_GS2)
else()

set(IIR_FILTER_RENDER_DIR "${CMAKE_CURRENT_BINARY_DIR}/manual/iir_filter")
set(AWE32_NRPN_RENDER_DIR "${CMAKE_CURRENT_BINARY_DIR}/manual/awe32_nrpn")

if(LIBSNDFILE_SUPPORT)
set(FEXT "wav")
Expand All @@ -63,7 +64,8 @@ else()
add_custom_target(check_manual)

add_custom_target(create_iir_dir
COMMAND ${CMAKE_COMMAND} -E make_directory ${IIR_FILTER_RENDER_DIR})
COMMAND ${CMAKE_COMMAND} -E make_directory ${IIR_FILTER_RENDER_DIR} ${AWE32_NRPN_RENDER_DIR}
VERBATIM)

add_custom_target(render1415
COMMAND fluidsynth -R 0 -C 0 -g 1 -F ${IIR_FILTER_RENDER_DIR}/1415_the-nervous-filter.${FEXT} "The Nervous Filter trimmed.mid" ${GENERAL_USER_GS2}
Expand Down Expand Up @@ -97,10 +99,38 @@ else()
VERBATIM
)


add_custom_target(renderAltitude
COMMAND fluidsynth -R 1 -C 1 -g 0.5 -F ${AWE32_NRPN_RENDER_DIR}/Altitude.${FEXT} Altitude.mid Altitude.sf2
COMMENT "Rendering AWE32 NRPN test file Altitude.mid"
DEPENDS fluidsynth create_iir_dir
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/manual/awe32_nrpn/Altitude/
VERBATIM
)

add_custom_target(renderFilter
COMMAND fluidsynth -R 0 -C 0 -F "${AWE32_NRPN_RENDER_DIR}/The Nervous Filter.${FEXT}" "The Nervous Filter.mid" ${GENERAL_USER_GS2}
COMMENT "Rendering AWE32 NRPN test file The Nervous Filter.mid"
DEPENDS fluidsynth create_iir_dir
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/manual/awe32_nrpn/Filter/
VERBATIM
)

add_custom_target(renderUplift
COMMAND fluidsynth -R 1 -C 1 -g 0.7 -F ${AWE32_NRPN_RENDER_DIR}/Uplift-fixed.${FEXT} Uplift-fixed.mid Uplift.sf2
COMMENT "Rendering AWE32 NRPN test file Uplift.mid"
DEPENDS fluidsynth create_iir_dir
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/manual/awe32_nrpn/Uplift/
VERBATIM
)

# Add a dependency so that rendering targets depends on check_manual
add_dependencies(check_manual render1415)
add_dependencies(check_manual render1417)
add_dependencies(check_manual render1424)
add_dependencies(check_manual render1427)
add_dependencies(check_manual renderAltitude)
add_dependencies(check_manual renderFilter)
add_dependencies(check_manual renderUplift)

endif()
11 changes: 11 additions & 0 deletions test/manual/awe32_nrpn/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Altitude/Altitude.mid filter=lfs diff=lfs merge=lfs -text
Altitude/Altitude-SB[[:space:]]Audigy2[[:space:]]ZS.ogg filter=lfs diff=lfs merge=lfs -text
Altitude/Altitude.sbk filter=lfs diff=lfs merge=lfs -text
Altitude/Altitude.sf2 filter=lfs diff=lfs merge=lfs -text
Altitude/Altitude.txt filter=lfs diff=lfs merge=lfs -text
Filter/The[[:space:]]Nervous[[:space:]]Filter.mid filter=lfs diff=lfs merge=lfs -text
Filter/The[[:space:]]Nervous[[:space:]]Filter[[:space:]]SB[[:space:]]Live.wav filter=lfs diff=lfs merge=lfs -text
Uplift/Uplift.mid filter=lfs diff=lfs merge=lfs -text
Uplift/Uplift.sbk filter=lfs diff=lfs merge=lfs -text
Uplift/Uplift.sf2 filter=lfs diff=lfs merge=lfs -text
Uplift/Uplift.txt filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Altitude/Altitude-SB Audigy2 ZS.ogg
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Altitude/Altitude.mid
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Altitude/Altitude.sbk
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Altitude/Altitude.sf2
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Altitude/Altitude.txt
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Filter/The Nervous Filter SB Live.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Filter/The Nervous Filter.mid
Git LFS file not shown
2 changes: 2 additions & 0 deletions test/manual/awe32_nrpn/Uplift/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Uplift-fixed-SB[[:space:]]Audigy2[[:space:]]ZS.ogg filter=lfs diff=lfs merge=lfs -text
Uplift-fixed.mid filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Uplift/Uplift-fixed-SB Audigy2 ZS.ogg
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Uplift/Uplift-fixed.mid
Git LFS file not shown
Binary file added test/manual/awe32_nrpn/Uplift/Uplift.mid.orig
Binary file not shown.
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Uplift/Uplift.sbk
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Uplift/Uplift.sf2
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/manual/awe32_nrpn/Uplift/Uplift.txt
Git LFS file not shown
Binary file not shown.

0 comments on commit 8558d7b

Please sign in to comment.