Skip to content

Commit

Permalink
Merge branch 'master' into dsp-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Jan 12, 2025
2 parents fe98e60 + e57360d commit 9e08718
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/synth/fluid_voice.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,14 +1399,12 @@ fluid_voice_kill_excl(fluid_voice_t *voice)
fluid_voice_gen_set(voice, GEN_EXCLUSIVECLASS, 0);

/* Speed up the volume envelope */
/* The value was found through listening tests with hi-hat samples. */
fluid_voice_gen_set(voice, GEN_VOLENVRELEASE, -200);
/* The previously-used value of "-200" was found through listening tests
with hi-hat samples. This was changed to "-2000" after "-200" was shown
to cause too long cut times in most cases. */
fluid_voice_gen_set(voice, GEN_VOLENVRELEASE, -2000);
fluid_voice_update_param(voice, GEN_VOLENVRELEASE);

/* Speed up the modulation envelope */
fluid_voice_gen_set(voice, GEN_MODENVRELEASE, -200);
fluid_voice_update_param(voice, GEN_MODENVRELEASE);

at_tick = fluid_channel_get_min_note_length_ticks(voice->channel);
UPDATE_RVOICE_I1(fluid_rvoice_noteoff, at_tick);

Expand Down
7 changes: 6 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ else()

add_custom_target(renderExcl
COMMAND fluidsynth -R 0 -C 0 -g 1.4 -F "${EXCL_RENDER_DIR}/exclusive class cutoff speed.${FEXT}" "exclusive class cutoff speed.mid" "exclusive class cutoff speed.sf2"
COMMENT "Rendering Christian Collins' exclusive class cutoff test"
COMMAND fluidsynth -R 0 -C 0 -g 1.4 -F "${EXCL_RENDER_DIR}/MIDInotecut.${FEXT}" "MIDInotecut.mid" ${GENERAL_USER_GS2}
COMMAND fluidsynth -R 0 -C 0 -g 1.4 -F "${EXCL_RENDER_DIR}/percussion note cutoff.${FEXT}" "percussion note cutoff.mid" ${GENERAL_USER_GS2}
COMMAND fluidsynth -R 0 -C 0 -g 1.4 -F "${EXCL_RENDER_DIR}/percussion-test.${FEXT}" "percussion-test.mid" ${GENERAL_USER_GS2}
COMMAND fluidsynth -R 0 -C 0 -g 0.6 -F "${EXCL_RENDER_DIR}/e1m1_GeneralUser2.${FEXT}" "e1m1.mid" ${GENERAL_USER_GS2}
COMMAND fluidsynth -R 0 -C 0 -g 0.6 -F "${EXCL_RENDER_DIR}/e1m1_gzdoom.${FEXT}" "e1m1.mid" "../sf2/gzdoom.sf2"
COMMENT "Rendering exclusive class cutoff tests"
DEPENDS fluidsynth create_iir_dir
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/manual/exclusive_class/
VERBATIM
Expand Down

0 comments on commit 9e08718

Please sign in to comment.