summaryrefslogtreecommitdiff
path: root/sw/Core/Src/ui.h
diff options
context:
space:
mode:
authorMaking Sound Machines <40341903+makingsoundmachines@users.noreply.github.com>2024-08-01 23:03:45 +0200
committerGitHub <noreply@github.com>2024-08-01 23:03:45 +0200
commit5fffef41b9d02f38d0a571be1d53c6c8581d306e (patch)
tree2fe7f8fd378ef06ef6e2d15262320bb81e3e7dec /sw/Core/Src/ui.h
parent8069312a15ce3e60286a49e72bb80a7fad43d32c (diff)
parentdf5950d5baedea61eb51b674077afe00218a83ce (diff)
downloadplinky-5fffef41b9d02f38d0a571be1d53c6c8581d306e.tar.gz
Merge pull request #21 from makingsoundmachines/main
Unprinted pad sets MIDI I/O channels
Diffstat (limited to 'sw/Core/Src/ui.h')
-rwxr-xr-xsw/Core/Src/ui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/Core/Src/ui.h b/sw/Core/Src/ui.h
index 1a93c8d..9687d0d 100755
--- a/sw/Core/Src/ui.h
+++ b/sw/Core/Src/ui.h
@@ -590,6 +590,14 @@ const char *getparamstr(int p, int mod, int v, char *valbuf, char *decbuf) {
case P_ARPOCT:
v += (FULL * 10) / displaymax; // 1 based
break;
+ case P_MIDI_CH_IN:
+ case P_MIDI_CH_OUT: {
+ int midich = clampi(vscale,0,15)+1;
+ int n=sprintf(valbuf, "%d", midich);
+ if (!decbuf)
+ decbuf = valbuf + n;
+ return valbuf;
+ }
case P_ARPMODE:
return arpmodenames[clampi(vscale, 0, ARP_LAST - 1)];
case P_SEQMODE: