Skip to content

Commit

Permalink
Merge pull request #927 from claytron/fix-midi-channel-display-monitor
Browse files Browse the repository at this point in the history
Fix display of midi channel
  • Loading branch information
SukuWc authored Feb 17, 2025
2 parents 472369a + 2f578b9 commit 8901de6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/main/panels/MidiMonitor/MidiMonitor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
<div class="border-gray-700 border rounded flex flex-col">
<span class="text-white bg-secondary px-1 truncate">Channel</span>
<span class="px-2 text-white text-center truncate"
>{last ? last.data.channel : "---"}</span
>{last ? last.data.channel + 1 : "---"}</span
>
</div>
<div class="border-gray-700 border rounded flex flex-col">
Expand Down Expand Up @@ -382,7 +382,7 @@
>
<div>[{message.device.x}, {message.device.y}]</div>
{#if isMIDI(message)}
<div>{message.data.channel}</div>
<div>{message.data.channel + 1}</div>
<div>{message.data.command.value}</div>
<div>{message.data.params.p1.value}</div>
<div>{message.data.params.p2.value}</div>
Expand Down Expand Up @@ -428,7 +428,7 @@
<SvgIcon fill="#FFF" iconPath="arrow_right" />
{/if}
</div>
<span class="truncate">Ch: {midi.data.channel}</span>
<span class="truncate">Ch: {midi.data.channel + 1}</span>
<span class="truncate">{midi.data.command.short}</span>
<span class="truncate">{midi.data.params.p1.short}:</span>
<span class="truncate"
Expand Down

0 comments on commit 8901de6

Please sign in to comment.