I'm calculating a value from an analog pin to set gain. The calculated range passed to the Gain is 0-apprx 0.8 but results in a very quiet sound that does not vary with the input. The sound also has some noise associated with it that was not there previously. Any thoughts on why this is not working correctly? I've looked at examples and don't see anything I am doing differently.
// Determine gain from pad velocity level and set
float pad1Velocity = (float)previousLevel1 / 1023.0;
mixer1.gain(0, pad1Velocity);
mixer1.gain(1, 0.3);
mixer1.gain(2, 0.3);
mixer1.gain(3, 0.3);
// Determine gain from pad velocity level and set
float pad1Velocity = (float)previousLevel1 / 1023.0;
mixer1.gain(0, pad1Velocity);
mixer1.gain(1, 0.3);
mixer1.gain(2, 0.3);
mixer1.gain(3, 0.3);