|
|
|
@ -477,6 +477,8 @@ void setup() |
|
|
|
|
|
|
|
|
|
drum_mixer_r.gain(instance_id, 1.0); |
|
|
|
|
drum_mixer_l.gain(instance_id, 1.0); |
|
|
|
|
drum_reverb_send_mixer_r.gain(instance_id, 0.0); |
|
|
|
|
drum_reverb_send_mixer_l.gain(instance_id, 0.0); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -813,6 +815,20 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) |
|
|
|
|
drum_reverb_send_mixer_r.gain(slot, pseudo_log_curve(drum_config[d].reverb_send)); |
|
|
|
|
drum_reverb_send_mixer_l.gain(slot, pseudo_log_curve(drum_config[d].reverb_send)); |
|
|
|
|
Drum[slot]->play(drum_config[d].filename); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F("Drum ")); |
|
|
|
|
Serial.print(drum_config[d].shortname); |
|
|
|
|
Serial.print(F(" [")); |
|
|
|
|
Serial.print(drum_config[d].filename); |
|
|
|
|
Serial.print(F("], Slot ")); |
|
|
|
|
Serial.print(slot); |
|
|
|
|
Serial.print(F(": V")); |
|
|
|
|
Serial.print(mapfloat(inVelocity, 0, 127, drum_config[d].vol_min, drum_config[d].vol_max), 2); |
|
|
|
|
Serial.print(F(" P")); |
|
|
|
|
Serial.print(drum_config[d].pan, 2); |
|
|
|
|
Serial.print(F(" RS")); |
|
|
|
|
Serial.println(drum_config[d].reverb_send, 2); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -2132,8 +2148,8 @@ void set_fx_params(void) |
|
|
|
|
|
|
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
|
#ifdef USE_FX |
|
|
|
|
reverb_mixer_r.gain(2, 1.0); // Drums-Send
|
|
|
|
|
reverb_mixer_l.gain(2, 1.0); // Drums-Send
|
|
|
|
|
reverb_mixer_r.gain(2, 1.0); // Drums Reverb-Send
|
|
|
|
|
reverb_mixer_l.gain(2, 1.0); // Drums Reverb-Send
|
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|