Skip to content

Commit

Permalink
respond to ES.CV ii command (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
csboling authored Mar 26, 2021
1 parent e81d527 commit 781689e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libavr32
Submodule libavr32 updated 1 files
+1 −0 src/ii.h
17 changes: 13 additions & 4 deletions src/ansible_grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,8 @@ void ii_kria(uint8_t *d, uint8_t l) {
ii_tx_queue(0);
break;
}
ii_tx_queue(dac_get_value(d[1]) >> 8);
ii_tx_queue(dac_get_value(d[1]) & 0xff);
ii_tx_queue(ET[outputs[d[1]].semitones] >> 8);
ii_tx_queue(ET[outputs[d[1]].semitones] & 0xff);
break;
case II_KR_MUTE:
if ( d[1] == 0 ) {
Expand Down Expand Up @@ -3904,8 +3904,8 @@ void ii_mp(uint8_t *d, uint8_t l) {
ii_tx_queue(0);
break;
}
ii_tx_queue(dac_get_value(d[1]) >> 8);
ii_tx_queue(dac_get_value(d[1]) & 0xff);
ii_tx_queue(ET[outputs[d[1]].semitones] >> 8);
ii_tx_queue(ET[outputs[d[1]].semitones] & 0xff);
break;
default:
ii_grid(d, l);
Expand Down Expand Up @@ -5636,6 +5636,15 @@ void ii_es(uint8_t *data, uint8_t l) {
monomeFrameDirty++;
break;

case ES_CV + II_GET:
if (data[1] < 0 || data[1] > 3) {
ii_tx_queue(0);
ii_tx_queue(0);
break;
}
ii_tx_queue(ET[outputs[data[1]].semitones] >> 8);
ii_tx_queue(ET[outputs[data[1]].semitones] & 0xff);
break;
default:
ii_grid(data, l);
ii_ansible(data, l);
Expand Down

0 comments on commit 781689e

Please sign in to comment.