Skip to content

Commit

Permalink
Update MIDI Channel Matrix Router 0.9 > 0.9.1 (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTalagan committed Jun 15, 2024
1 parent af18665 commit aaa021f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MIDI/talagan_MIDI Channel Matrix Router.jsfx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
desc:MIDI Channel Matrix Router
author: Ben 'Talagan' Babut
version: 0.9
version: 0.9.1
changelog:
- First version.
- Bug fix : MIDI Bus was not handled correctly
donation:
https://www.paypal.com/donate/?business=3YEZMY9D6U8NC&no_recurring=1&currency_code=EUR
screenshot:
Expand Down Expand Up @@ -529,7 +529,7 @@ function drawBottomBanner()
// Header text
gfx_rgb(TH.HEADER_TEXT);
gfx_x = 6; gfx_y = gfx_h - 14;
gfx_drawstr("MIDI Channel Matrix Router v0.9 by Benjamin 'Talagan' Babut");
gfx_drawstr("MIDI Channel Matrix Router v0.9.1 by Benjamin 'Talagan' Babut");
);

function drawGridLabels(lpos, tpos, square_w, square_h)
Expand Down Expand Up @@ -770,6 +770,7 @@ function receive()
);

function forwardCurrentEvent() (
midi_bus = evt.bus-1;
midisend(evt.mpos, evt.msg1, evt.msg2, evt.msg3)
);

Expand All @@ -789,6 +790,7 @@ function treatCurrentEvent()
while(chano < 16) (
(chan_mask & (1 << chano) != 0)?(
// Channel matches
midi_bus = (midiBusOutput() == AS_SRC)?(evt.bus-1):(midiBusOutput()-1);
nmsg1 = (evt.type << 4) | chano;
midisend(evt.offset, nmsg1, evt.msg2, evt.msg3);
);
Expand Down

0 comments on commit aaa021f

Please sign in to comment.