|
|
|
@ -38,15 +38,13 @@ using namespace TeensyTimerTool; |
|
|
|
|
#include "effect_modulated_delay.h" |
|
|
|
|
#include "effect_stereo_mono.h" |
|
|
|
|
#include "effect_mono_stereo.h" |
|
|
|
|
#ifdef USE_PLATEREVERB |
|
|
|
|
#if defined(USE_PLATEREVERB) |
|
|
|
|
#include "effect_platervbstereo.h" |
|
|
|
|
#else |
|
|
|
|
#ifndef TEENSY_4 |
|
|
|
|
#elif defined(USE_FREEVERB_SIMD) |
|
|
|
|
#include "effect_freeverb_simd.h" |
|
|
|
|
#else |
|
|
|
|
#include "effect_freeverbf.h" |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#include "template_mixer.hpp" |
|
|
|
|
#include "UI.hpp" |
|
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
@ -78,16 +76,14 @@ AudioAnalyzePeak microdexed_peak; |
|
|
|
|
#if defined(USE_FX) |
|
|
|
|
AudioMixer<4> reverb_mixer_r; |
|
|
|
|
AudioMixer<4> reverb_mixer_l; |
|
|
|
|
#ifdef USE_PLATEREVERB |
|
|
|
|
#if defined(USE_PLATEREVERB) |
|
|
|
|
AudioEffectPlateReverb reverb; |
|
|
|
|
#else |
|
|
|
|
#ifndef TEENSY_4 |
|
|
|
|
#elif defined(USE_FREEVERB_SIMD) |
|
|
|
|
AudioEffectFreeverbSIMDStereo freeverb; |
|
|
|
|
#else |
|
|
|
|
AudioEffectFreeverbStereoFloat freeverb; |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
AudioMixer<4> master_mixer_r; |
|
|
|
|
AudioMixer<4> master_mixer_l; |
|
|
|
|
AudioAmplifier volume_r; |
|
|
|
@ -882,7 +878,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) |
|
|
|
|
|
|
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
|
// Check for Drum
|
|
|
|
|
if (inChannel == drum_midi_channel) |
|
|
|
|
if (inChannel == drum_midi_channel || drum_midi_channel == MIDI_CHANNEL_OMNI) |
|
|
|
|
{ |
|
|
|
|
if (drum_counter >= NUM_DRUMS) |
|
|
|
|
drum_counter = 0; |
|
|
|
@ -895,6 +891,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) |
|
|
|
|
Serial.print(F("]: ")); |
|
|
|
|
Serial.println(note_name); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
for (uint8_t d = 0; d < NUM_DRUMSET_CONFIG; d++) |
|
|
|
|
{ |
|
|
|
|
if (inNumber == drum_config[d].midinote) |
|
|
|
@ -2560,6 +2557,9 @@ uint8_t check_sd_cards(void) |
|
|
|
|
|
|
|
|
|
volumesize = volume.blocksPerCluster() * volume.clusterCount() / 2097152; |
|
|
|
|
|
|
|
|
|
if (volumesize == 0) |
|
|
|
|
ret = -1; |
|
|
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F("Volume type is FAT")); |
|
|
|
|
Serial.println(volume.fatType(), DEC); |
|
|
|
|