Skip to content

Commit

Permalink
fix disting ex looper ops (monome#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
scanner-darkly authored Oct 12, 2023
1 parent cd7de54 commit 4dcf66b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- **FIX**: libavr32 update: support CDC grid size detection (e.g. zero), increase HID message buffer
- **NEW**: new Disting EX ops: `EX.CH`, `EX.#`, `EX.N#`, `EX.NO#`
- **NEW**: apply VCV Rack compatibility patches, so branches off main can be used in both hardware and software
- **FIX**: update Disting EX looper ops to work with Disting EX firmware 1.23+

## v4.0.0

Expand Down
1 change: 1 addition & 0 deletions docs/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- **FIX**: libavr32 update: support CDC grid size detection (e.g. zero), increase HID message buffer
- **NEW**: new Disting EX ops: `EX.CH`, `EX.#`, `EX.N#`, `EX.NO#`
- **NEW**: apply VCV Rack compatibility patches, so branches off main can be used in both hardware and software
- **FIX**: update Disting EX looper ops to work with Disting EX firmware 1.23+

## v4.0.0

Expand Down
34 changes: 17 additions & 17 deletions src/ops/disting.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,51 +799,51 @@ static void op_EX_LP_REC_get(const void *NOTUSED(data), scene_state_t *ss,
s16 loop = cs_pop(cs);
if (loop < 1 || loop > 4) return;

send4(0x46, 7, 0, loop);
send4(0x46, 56, 0, 0);
send4(0x46, 56, 0, 1);
send4(0x46, 56, 0, 0);
send4(0x6C, 7, 0, loop);
send4(0x6C, 55, 0, 0);
send4(0x6C, 55, 0, 1);
send4(0x6C, 55, 0, 0);
}

static void op_EX_LP_PLAY_get(const void *NOTUSED(data), scene_state_t *ss,
exec_state_t *NOTUSED(es), command_state_t *cs) {
s16 loop = cs_pop(cs);
if (loop < 1 || loop > 4) return;

send4(0x46, 7, 0, loop);
send4(0x46, 57, 0, 0);
send4(0x46, 57, 0, 1);
send4(0x46, 57, 0, 0);
send4(0x6C, 7, 0, loop);
send4(0x6C, 56, 0, 0);
send4(0x6C, 56, 0, 1);
send4(0x6C, 56, 0, 0);
}

static void op_EX_LP_REV_get(const void *NOTUSED(data), scene_state_t *ss,
exec_state_t *NOTUSED(es), command_state_t *cs) {
s16 loop = cs_pop(cs);
if (loop < 1 || loop > 4) return;

send4(0x46, 7, 0, loop);
send4(0x46, 58, 0, 0);
send4(0x46, 58, 0, 1);
send4(0x46, 58, 0, 0);
send4(0x6C, 7, 0, loop);
send4(0x6C, 57, 0, 0);
send4(0x6C, 57, 0, 1);
send4(0x6C, 57, 0, 0);
}

static void op_EX_LP_DOWN_get(const void *NOTUSED(data), scene_state_t *ss,
exec_state_t *NOTUSED(es), command_state_t *cs) {
s16 loop = cs_pop(cs);
if (loop < 1 || loop > 4) return;

send4(0x46, 7, 0, loop);
send4(0x46, 62, 0, 0);
send4(0x46, 62, 0, 1);
send4(0x46, 62, 0, 0);
send4(0x6C, 7, 0, loop);
send4(0x6C, 58, 0, 0);
send4(0x6C, 58, 0, 1);
send4(0x6C, 58, 0, 0);
}

static void op_EX_LP_CLR_get(const void *NOTUSED(data), scene_state_t *ss,
exec_state_t *NOTUSED(es), command_state_t *cs) {
s16 loop = cs_pop(cs);
if (loop < 1 || loop > 4) return;

send4(0x46, 7, 0, loop);
send4(0x6C, 7, 0, loop);
send1(0x58);
}

Expand Down

0 comments on commit 4dcf66b

Please sign in to comment.