pull/32/head
Holger Wirtz 5 years ago
parent 2e55f4ba1a
commit 46b587020c
  1. 3
      MicroDexed.ino
  2. 2
      config.h
  3. 9
      dexed.cpp
  4. 1
      dexed.h

@ -1714,11 +1714,8 @@ void show_patch(uint8_t instance_id)
{ {
char vn[VOICE_NAME_LEN]; char vn[VOICE_NAME_LEN];
if (instance_id < 0xFF)
{
Serial.print(F("INSTANCE ")); Serial.print(F("INSTANCE "));
Serial.println(instance_id, DEC); Serial.println(instance_id, DEC);
}
memset(vn, 0, sizeof(vn)); memset(vn, 0, sizeof(vn));
Serial.println(F("+==========================================================================================================+")); Serial.println(F("+==========================================================================================================+"));

@ -85,7 +85,7 @@
#define MOD_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT // MOD_LINKWITZ_RILEY_FILTER_OUTPUT MOD_BUTTERWORTH_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT #define MOD_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT // MOD_LINKWITZ_RILEY_FILTER_OUTPUT MOD_BUTTERWORTH_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT
#define MOD_FILTER_CUTOFF_HZ 3000 #define MOD_FILTER_CUTOFF_HZ 3000
// FX-CHAIN ENABLE/DISABLE // FX-CHAIN ENABLE/DISABLE
#define USE_FX 1 //#define USE_FX 1
//************************************************************************************************* //*************************************************************************************************
//* AUDIO SOFTWARE SETTINGS //* AUDIO SOFTWARE SETTINGS

@ -83,6 +83,8 @@ Dexed::Dexed(int rate)
sustain = false; sustain = false;
velocity_level = (100.0 / 127.0);
setEngineType(DEXED_ENGINE); setEngineType(DEXED_ENGINE);
} }
@ -168,7 +170,7 @@ void Dexed::keydown(int16_t pitch, uint8_t velo) {
} }
pitch += data[144] - TRANSPOSE_FIX; pitch += data[144] - TRANSPOSE_FIX;
velo = (((float)velo) * velocity_level + 0.5); // 100/127 velo = float(velo) * velocity_level + 0.5; // 100/127
int previousKeyDown = lastKeyDown; int previousKeyDown = lastKeyDown;
lastKeyDown = pitch; lastKeyDown = pitch;
@ -733,3 +735,8 @@ void Dexed::setVelocityLevel(uint8_t velocity_level)
{ {
velocity_level = float(velocity_level) / 127.0; velocity_level = float(velocity_level) / 127.0;
} }
float Dexed::getVelocityLevel(void)
{
return (velocity_level);
}

@ -173,6 +173,7 @@ class Dexed
void setATController(uint8_t at_range, uint8_t pb_assign); void setATController(uint8_t at_range, uint8_t pb_assign);
void setPortamentoMode(uint8_t portamento_mode, uint8_t portamento_glissando, uint8_t portamento_time); void setPortamentoMode(uint8_t portamento_mode, uint8_t portamento_glissando, uint8_t portamento_time);
void setVelocityLevel(uint8_t velocity_level); void setVelocityLevel(uint8_t velocity_level);
float getVelocityLevel(void);
ProcessorVoice voices[MAX_NOTES]; ProcessorVoice voices[MAX_NOTES];
Controllers controllers; Controllers controllers;

Loading…
Cancel
Save