|
|
|
@ -74,8 +74,8 @@ AudioConnection patchCord1(queue_r, volume_r); |
|
|
|
|
AudioConnection patchCord2(queue_l, volume_l); |
|
|
|
|
AudioConnection patchCord3(volume_r, peak_r); |
|
|
|
|
AudioConnection patchCord4(volume_l, peak_l); |
|
|
|
|
AudioConnection patchCord5(volume_r, 0, pt8211_1, 0); |
|
|
|
|
AudioConnection patchCord6(volume_l, 0, pt8211_1, 1); |
|
|
|
|
AudioConnection patchCord5(volume_r, 0, pt8211_1, 1); |
|
|
|
|
AudioConnection patchCord6(volume_l, 0, pt8211_1, 0); |
|
|
|
|
#endif |
|
|
|
|
// GUItool: end automatically generated code
|
|
|
|
|
|
|
|
|
@ -122,6 +122,8 @@ IntervalTimer sched_note_off; |
|
|
|
|
uint8_t _voice_counter = 0; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
enum MDA_EP_PARAM { DECAY, RELEASE, HARDNESS, TREBLE, PAN_TREM, LFO_RATE, VELOCITY_SENSE, STEREO, MAX_POLY, TUNE, DETUNE, OVERDRIVE }; |
|
|
|
|
|
|
|
|
|
void setup() |
|
|
|
|
{ |
|
|
|
|
//while (!Serial) ; // wait for Arduino Serial Monitor
|
|
|
|
@ -216,22 +218,15 @@ void setup() |
|
|
|
|
sched_note_off.begin(note_off, 6333333); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
0 decay |
|
|
|
|
1 release |
|
|
|
|
2 hardness |
|
|
|
|
3 treble |
|
|
|
|
4 pan_trem |
|
|
|
|
5 lfo_rate |
|
|
|
|
6 velocity_sense |
|
|
|
|
7 stereo |
|
|
|
|
8 max_poly |
|
|
|
|
9 tune |
|
|
|
|
10 detune |
|
|
|
|
11 overdrive |
|
|
|
|
*/ |
|
|
|
|
//ep->setParameter(11,1.0); // overdrive
|
|
|
|
|
//ep->setParameter(10,1.0); // overdrive
|
|
|
|
|
ep->setParameter(HARDNESS, 0.7); |
|
|
|
|
ep->setParameter(TREBLE, 0.85); |
|
|
|
|
ep->setParameter(DETUNE, 0.1); |
|
|
|
|
ep->setParameter(VELOCITY_SENSE, 0.2); |
|
|
|
|
ep->setParameter(STEREO, 0.7); |
|
|
|
|
ep->setParameter(MAX_POLY, 1.0); |
|
|
|
|
ep->setParameter(OVERDRIVE, 0.3); |
|
|
|
|
|
|
|
|
|
// DECAY,RELEASE,HARDNESS,TREBLE,PAN_TREM,LFO_RATE,VELOCITY_SENSE,STEREO,MAX_POLY,TUNE,DETUNE,OVERDRIVE
|
|
|
|
|
|
|
|
|
|
Serial.println(F("<setup end>")); |
|
|
|
|
|
|
|
|
@ -365,10 +360,6 @@ void print_midi_event(uint8_t type, uint8_t data1, uint8_t data2) |
|
|
|
|
Serial.print(data1, DEC); |
|
|
|
|
Serial.print(F(", data2: ")); |
|
|
|
|
Serial.println(data2, DEC); |
|
|
|
|
#ifndef MASTER_KEY_MIDI |
|
|
|
|
lcd.show(1, 0, 3, data1); |
|
|
|
|
lcd.show(1, 4, 3, data2); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|