|
|
@ -191,6 +191,10 @@ void Dexed::keydown(uint8_t pitch, uint8_t velo) { |
|
|
|
|
|
|
|
|
|
|
|
pitch += data[144] - TRANSPOSE_FIX; |
|
|
|
pitch += data[144] - TRANSPOSE_FIX; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(NORMALIZE_DX_VELOCITY) |
|
|
|
|
|
|
|
velo = ((float)velo) * 0.7874015; // 100/127
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
int previousKeyDown = lastKeyDown; |
|
|
|
int previousKeyDown = lastKeyDown; |
|
|
|
lastKeyDown = pitch; |
|
|
|
lastKeyDown = pitch; |
|
|
|
|
|
|
|
|
|
|
@ -221,6 +225,7 @@ void Dexed::keydown(uint8_t pitch, uint8_t velo) { |
|
|
|
|
|
|
|
|
|
|
|
if (keydown_counter == 0) |
|
|
|
if (keydown_counter == 0) |
|
|
|
lfo.keydown(); |
|
|
|
lfo.keydown(); |
|
|
|
|
|
|
|
|
|
|
|
if ( monoMode ) { |
|
|
|
if ( monoMode ) { |
|
|
|
for (uint8_t i = 0; i < max_notes; i++) { |
|
|
|
for (uint8_t i = 0; i < max_notes; i++) { |
|
|
|
if ( voices[i].live ) { |
|
|
|
if ( voices[i].live ) { |
|
|
|