Skip to content

Commit

Permalink
Bipolar CV inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
antisvin committed Apr 9, 2023
1 parent 18e6863 commit 9bc37e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bluemchen/Src/Bluemchen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void updateParameters(int16_t* parameter_values, size_t parameter_len, uint16_t*
#endif
for (int i = 0; i < NOF_ADC_VALUES / 2; i++) {
// CV ADC channels are inverted
takeover.update(i, smooth_adc_values[i * 2] + 2047 - smooth_adc_values[i * 2 + 1], 31);
takeover.update(i, smooth_adc_values[i * 2] + 4095 - smooth_adc_values[i * 2 + 1] * 2, 31);
graphics.params.updateValue(i, takeover.get(i));
}
}
Expand Down

0 comments on commit 9bc37e3

Please sign in to comment.