Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
LFrancis23 committed Dec 7, 2022
1 parent a27caed commit f2d0699
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions software/firmware/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,6 @@ int keyboard_task(){

keyboard_global->keys[i].midi_end = get_absolute_time();

uint16_t input_start = 1;
uint16_t input_end = 127;
uint16_t output_start = 127;
uint16_t output_end = 1;

double slope = 1.0 * (output_end - output_start) / (input_end - input_start);




int delta_t = to_ms_since_boot(keyboard_global->keys[i].midi_end) - to_ms_since_boot(keyboard_global->keys[i].midi_start);

if (delta_t > 127){
Expand Down

0 comments on commit f2d0699

Please sign in to comment.