Skip to content

Commit

Permalink
faster exclusive class note cutoff (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbumpy409 authored Jan 10, 2025
1 parent 8f6011f commit 48d4bcc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/synth/fluid_voice.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,12 +1399,14 @@ 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_gen_set(voice, GEN_MODENVRELEASE, -1000);
fluid_voice_update_param(voice, GEN_MODENVRELEASE);

at_tick = fluid_channel_get_min_note_length_ticks(voice->channel);
Expand Down

0 comments on commit 48d4bcc

Please sign in to comment.