[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[fluid-dev] Velocity to Initial FC default setting
From: |
Ebrahim Mayat |
Subject: |
[fluid-dev] Velocity to Initial FC default setting |
Date: |
Tue, 22 Jan 2008 06:06:46 -0800 |
On Jan 20, 2008, at 2:03 PM, S. Christian Collins wrote:
I have been able to circumvent the default velo->fc implementation in
FluidSynth by modifying the fluid_mod.c file as follows (section:
'special treatment' for default controller):
* replace this:
if ((mod->src2 == FLUID_MOD_VELOCITY) &&
(mod->src1 == FLUID_MOD_VELOCITY) &&
(mod->flags1 == (FLUID_MOD_GC | FLUID_MOD_UNIPOLAR
| FLUID_MOD_NEGATIVE | FLUID_MOD_LINEAR)) &&
(mod->flags2 == (FLUID_MOD_GC | FLUID_MOD_UNIPOLAR
| FLUID_MOD_POSITIVE | FLUID_MOD_SWITCH)) &&
(mod->dest == GEN_FILTERFC)) {
if (voice->vel < 64){
return (fluid_real_t) mod->amount / 2.0;
} else {
return (fluid_real_t) mod->amount * (127 - voice->vel) / 127;
}
}
* with this:
if ((mod->src2 == FLUID_MOD_VELOCITY) &&
(mod->src1 == FLUID_MOD_VELOCITY) &&
(mod->flags1 == (FLUID_MOD_GC | FLUID_MOD_UNIPOLAR
| FLUID_MOD_NEGATIVE | FLUID_MOD_LINEAR)) &&
(mod->flags2 == (FLUID_MOD_GC | FLUID_MOD_UNIPOLAR
| FLUID_MOD_POSITIVE | FLUID_MOD_SWITCH)) &&
(mod->dest == GEN_FILTERFC)) {
return 0;
}
This is obviously an inelegant hack. However, the vel-fc programming in
my SoundFonts sounds as it should.
Hello Chris
For a soundfont of only ~ 30 MB, the sounds are simply amazing.
A couple of observations:
The Grand Piano, for instance, is harmonically-rich with crystal-clear upper
registers, a well-defined mid-range and solid,crunchy lower registers. I do not
own an 88-key MIDI controller yet and your soundfont requires one to render its
full potential.
The harpsichord sounds alive and intimate at the same time.
With minor gain adjustments, the synth strings and synth brass do not distort.
YES! inactivating the vel-->fc modulator definitely works wonders.
No audio dropouts even when playing fast passages. Even using the sustain pedal
sounds natural.
About the only patch that I have an issue with (and a minor irritation at the
most) is the Electric Grand patch which has some additional distortion during
the release phase.
WAY TO GO!!!
E