From 6b74d11b4da8c5b9364c0f7b4a01f36e68f107d1 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 17 Mar 2023 10:51:37 +0100 Subject: [PATCH] Disabled compressor (won't work out opf the box). --- MicroDexed.ino | 31 ++++++++++++++++++------------- addon/test-sysex/FB_test.syx | Bin 0 -> 4104 bytes 2 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 addon/test-sysex/FB_test.syx diff --git a/MicroDexed.ino b/MicroDexed.ino index 8d3f004..43b0894 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -39,7 +39,7 @@ #include #include #include -#include +//#include #include #if NUM_DRUMS > 0 #include "midinotes.h" @@ -58,7 +58,7 @@ AudioSynthDexed* MicroDexed[NUM_DEXED]; AudioSynthEPiano ep(NUM_EPIANO_VOICES); -AudioEffectCompressor2* compressor[NUM_DEXED]; +//AudioEffectCompressor2* compressor[NUM_DEXED]; AudioSynthWaveform* chorus_modulator[NUM_DEXED]; #if MOD_FILTER_OUTPUT != MOD_NO_FILTER_OUTPUT AudioFilterBiquad* modchorus_filter[NUM_DEXED]; @@ -91,8 +91,8 @@ AudioEffectPlateReverb reverb; AudioMixer<5> master_mixer_r; AudioMixer<5> master_mixer_l; -AudioEffectCompressor2 compressor_r; -AudioEffectCompressor2 compressor_l; +//AudioEffectCompressor2 compressor_r; +//AudioEffectCompressor2 compressor_l; AudioAmplifier volume_r; AudioAmplifier volume_l; AudioEffectStereoMono stereo2mono; @@ -155,10 +155,12 @@ AudioConnection patchCord[] = { { reverb_mixer_l, 0, reverb, 1 }, { reverb, 0, master_mixer_r, MASTER_MIX_CH_REVERB }, { reverb, 1, master_mixer_l, MASTER_MIX_CH_REVERB }, - { master_mixer_r, compressor_r }, - { master_mixer_l, compressor_l }, - { compressor_r, volume_r }, - { compressor_l, volume_l }, +// { master_mixer_r, compressor_r }, +// { master_mixer_l, compressor_l }, +// { compressor_r, volume_r }, +// { compressor_l, volume_l }, + { master_mixer_r, volume_r }, + { master_mixer_l, volume_l }, { volume_r, 0, stereo2mono, 0 }, { volume_l, 0, stereo2mono, 1 }, { stereo2mono, 0, master_peak_r, 0 }, @@ -239,7 +241,7 @@ AudioConnection* dynamicConnections[NUM_DEXED * 17 + NUM_DRUMS * 4]; #endif FLASHMEM void create_audio_dexed_chain(uint8_t instance_id) { MicroDexed[instance_id] = new AudioSynthDexed(MAX_NOTES / NUM_DEXED, SAMPLE_RATE); - compressor[instance_id] = new AudioEffectCompressor2(); + //compressor[instance_id] = new AudioEffectCompressor2(); mono2stereo[instance_id] = new AudioEffectMonoStereo(); chorus_modulator[instance_id] = new AudioSynthWaveform(); #if MOD_FILTER_OUTPUT != MOD_NO_FILTER_OUTPUT @@ -255,11 +257,14 @@ FLASHMEM void create_audio_dexed_chain(uint8_t instance_id) { #endif delay_mixer[instance_id] = new AudioMixer<2>(); - dynamicConnections[nDynamic++] = new AudioConnection(*MicroDexed[instance_id], 0, *compressor[instance_id], 0); - dynamicConnections[nDynamic++] = new AudioConnection(*compressor[instance_id], 0, microdexed_peak_mixer, instance_id); + //dynamicConnections[nDynamic++] = new AudioConnection(*MicroDexed[instance_id], 0, *compressor[instance_id], 0); + //dynamicConnections[nDynamic++] = new AudioConnection(*compressor[instance_id], 0, microdexed_peak_mixer, instance_id); + //dynamicConnections[nDynamic++] = new AudioConnection(*compressor[instance_id], 0, *chorus_mixer[instance_id], 0); + //dynamicConnections[nDynamic++] = new AudioConnection(*compressor[instance_id], 0, *modchorus[instance_id], 0); + dynamicConnections[nDynamic++] = new AudioConnection(*MicroDexed[instance_id], 0, microdexed_peak_mixer, instance_id); + dynamicConnections[nDynamic++] = new AudioConnection(*MicroDexed[instance_id], 0, *chorus_mixer[instance_id], 0); + dynamicConnections[nDynamic++] = new AudioConnection(*MicroDexed[instance_id], 0, *modchorus[instance_id], 0); - dynamicConnections[nDynamic++] = new AudioConnection(*compressor[instance_id], 0, *chorus_mixer[instance_id], 0); - dynamicConnections[nDynamic++] = new AudioConnection(*compressor[instance_id], 0, *modchorus[instance_id], 0); #if MOD_FILTER_OUTPUT != MOD_NO_FILTER_OUTPUT dynamicConnections[nDynamic++] = new AudioConnection(*chorus_modulator[instance_id], 0, *modchorus_filter[instance_id], 0); dynamicConnections[nDynamic++] = new AudioConnection(*modchorus_filter[instance_id], 0, *modchorus[instance_id], 1); diff --git a/addon/test-sysex/FB_test.syx b/addon/test-sysex/FB_test.syx new file mode 100644 index 0000000000000000000000000000000000000000..c32953cc684a5499ccef8f47d1b78e85de9b6d85 GIT binary patch literal 4104 zcmez1%)qI@kgO)Dne5@gpw7U^U%(Q?!jP;kshI5U02E;0FJLeM3iu@JCr2be1sIr+ zR50>eurL5ss7b0o%wXWRU|`@t(E=1;VhD+kw=n_&7Cu!51_lR-5ZB-kLj@3^ul=k@ z_8SpnfARqPpUU=Q`rk!OKqfgk84~|Y&P)tWD#D7%u|Ck~_GM!5^-0zWfyF;dGDY#v z#LuPA5a%i3=A_`5lb)|&s6b!)nbGVwQULlL1VG+p04G%lpPB-oAOiwW`e)!!2HImN z;pyiYq7dfq>Fi2<>p(da0-&B6wSP4HN7LVE{u?cSM$6yP`e(HM9c_P%w!cQ(pQG(> JaQ~z1I{