Skip to content

Controllers/Modulators not resetting after program change. #1465

Answered by bradholland
bradholland asked this question in Q&A
Discussion options

You must be logged in to vote

I got it working.

All along I thought 64 was the default midi cc value. Turns out it wasn't.

Right before I change program I reset values to the following. and now all is good.

// Reset CCs (cutoff to max, others to 0)
fluid_synth_cc(plugin->synth, 0, CC_CUTOFF, 127);    // Cutoff fully open
fluid_synth_cc(plugin->synth, 0, CC_RESONANCE, 0);
fluid_synth_cc(plugin->synth, 0, CC_ATTACK, 0);
fluid_synth_cc(plugin->synth, 0, CC_DECAY, 0);
fluid_synth_cc(plugin->synth, 0, CC_SUSTAIN, 0);
fluid_synth_cc(plugin->synth, 0, CC_RELEASE, 0);

thanks!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bradholland
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bradholland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants