Old 07-18-2018, 08:24 AM   #1
israeltandrade
Human being with feelings
 
israeltandrade's Avatar
 
Join Date: Aug 2016
Posts: 62
Default Sysex Filtering

Is ther a way to filter Sysex messages? My keyboard is with a problem, and it keeps sending random sysex messages that alter my VST parameters... Is there a way to prevent REAPER from recording these messages? A friend on other thread suggested some sort of JSFX filtering, but I don´t know if there is such a thing as a Sysex filter.

Can someone point a JSFX or plugin that could do the job?
israeltandrade is offline   Reply With Quote
Old 07-19-2018, 12:33 AM   #2
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,645
Default

Well, you could try this:

Code:
desc:SysEx blocker

@init

maxlen = 1024*1024;

@block

while((recvlen = midirecv_buf(offset, buf, maxlen)) > 0) (
  buf[0] != 0xF0 ? midisend_buf(offset, buf, recvlen);
);
Tale is offline   Reply With Quote
Old 07-19-2018, 02:32 AM   #3
israeltandrade
Human being with feelings
 
israeltandrade's Avatar
 
Join Date: Aug 2016
Posts: 62
Default

Thanks! Just to inform me (sorry, I´m a complete noob in regard of coding...), is this a conventional script? Should I make REAPER start activating it? (I know how to do it if would be a good idea)
Anyway thanks again!
israeltandrade is offline   Reply With Quote
Old 07-19-2018, 03:17 AM   #4
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,645
Default

First you need to copy-paste the script in your favorite text editor, and then save it as a plain text file. Then you ned to copy this file to your REAPER Effects folder, see:

https://reaperblog.net/2015/06/quick...ll-js-plugins/
Tale is offline   Reply With Quote
Old 07-19-2018, 04:37 PM   #5
israeltandrade
Human being with feelings
 
israeltandrade's Avatar
 
Join Date: Aug 2016
Posts: 62
Default

Oh, so it´s a JS plugin, thanks for the code and the information! So I just need to put it first on fx chain or input fx?
israeltandrade is offline   Reply With Quote
Old 07-19-2018, 10:50 PM   #6
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,645
Default

Yes, exactly!
Tale is offline   Reply With Quote
Old 07-20-2018, 09:10 AM   #7
israeltandrade
Human being with feelings
 
israeltandrade's Avatar
 
Join Date: Aug 2016
Posts: 62
Default

Using it. Thanks again!
israeltandrade is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.