Added detection for overclocking (>=204 Mhz) and extending automaticly polyphony

Added connection von SGTL5000 audio in directly to master_mixer_* port 2 for audio thru.
pull/32/head
Holger Wirtz 5 years ago
parent 735a9e8ddb
commit 872c5e9594
  1. 11
      MicroDexed.ino
  2. 14
      config.h

@ -104,6 +104,9 @@ AudioOutputI2S i2s1;
AudioConnection patchCord12(stereo2mono, 0, i2s1, 0);
AudioConnection patchCord13(stereo2mono, 1, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1;
AudioInputI2S i2s1in;
AudioConnection patchCord17(i2s1in, 0, master_mixer_r, 2);
AudioConnection patchCord18(i2s1in, 1, master_mixer_l, 2);
#elif defined (I2S_AUDIO_ONLY)
AudioOutputI2S i2s1;
AudioConnection patchCord12(stereo2mono, 0, i2s1, 0);
@ -444,7 +447,6 @@ void setup()
show_cpu_and_mem_usage();
#endif
// init master_mixer
#if NUM_DEXED > 1
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++)
@ -455,6 +457,13 @@ void setup()
#else
master_mixer_r.gain(0, 1.0);
master_mixer_l.gain(0, 1.0);
#endif
#ifdef TEENSY_AUDIO_BOARD
master_mixer_r.gain(2, 1.0); // I2S Input
master_mixer_l.gain(2, 1.0); // I2S Input
#else
master_mixer_r.gain(2, 0.0); // I2S Input
master_mixer_l.gain(2, 0.0); // I2S Input
#endif
master_mixer_r.gain(3, 0.0);
master_mixer_l.gain(3, 0.0);

@ -280,17 +280,29 @@
#define MIDI_DEVICE_USB_HOST 1
#if defined(USE_FX)
#if NUM_DEXED == 1
#if F_CPU >= 216
#define MAX_NOTES 16
#else
#define MAX_NOTES 12
#endif
#else
#if F_CPU >= 216
#define MAX_NOTES 16
#else
#define MAX_NOTES 9
#define MAX_NOTES 12
#endif
#endif
#else
#if NUM_DEXED == 1
#define MAX_NOTES 16
#else
#if F_CPU >= 216
#define MAX_NOTES 16
#else
#define MAX_NOTES 13
#endif
#endif
#endif
#define TEENSY3_6
#endif

Loading…
Cancel
Save