Elliott Posted June 14, 2023 Share Posted June 14, 2023 Hello! Can anyone make a variable channel pass-through filter for midi channels 1-6? For instance, I may want all 6 channels. Or just channels 5 and 2. Or just channels 3, 4, and 5. You get the idea, right? Quote Link to comment Share on other sites More sharing options...
fuzzfilth Posted June 14, 2023 Share Posted June 14, 2023 What have you tried so far ? Quote Link to comment Share on other sites More sharing options...
Elliott Posted June 14, 2023 Author Share Posted June 14, 2023 I tried to copy and paste sections of the stock channel filter script but I don't really know what I'm doing. I can buy the book and learn java for this but I don't have a ton of free time. I was hoping an altruistic nerd (or one who wants a few bucks) could help me out. Quote Link to comment Share on other sites More sharing options...
Solution David Nahmani Posted June 14, 2023 Solution Share Posted June 14, 2023 I haven't tested this but try to replace ... if (event.channel == CHANNEL_TO_PASS) ... with ... if ([3,4,5].includes(event.channel)) Quote Link to comment Share on other sites More sharing options...
des99 Posted June 14, 2023 Share Posted June 14, 2023 17 minutes ago, Elliott said: I can buy the book and learn java If you do, the first thing to learn is that Java != Javascript... 🙂 Quote Link to comment Share on other sites More sharing options...
Elliott Posted June 14, 2023 Author Share Posted June 14, 2023 I have successfully demonstrated my ignorance! Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted June 14, 2023 Share Posted June 14, 2023 Have you tried my suggestion? Quote Link to comment Share on other sites More sharing options...
Elliott Posted June 14, 2023 Author Share Posted June 14, 2023 Will get to it in a couple of hours. Thanks! Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted June 14, 2023 Share Posted June 14, 2023 You're welcome! 🙂 Quote Link to comment Share on other sites More sharing options...
Elliott Posted June 14, 2023 Author Share Posted June 14, 2023 I tried it. It says script evaluated successfully but when I run it no midi passes through at all. Quote Link to comment Share on other sites More sharing options...
des99 Posted June 14, 2023 Share Posted June 14, 2023 1 hour ago, Elliott said: I have successfully demonstrated my ignorance! No worries, it's a super common thing for pretty understandable reasons. I just didn't want you hitting the Java reference material - I wouldn't inflict that on anyone! 😉 Quote Link to comment Share on other sites More sharing options...
Elliott Posted June 14, 2023 Author Share Posted June 14, 2023 I tried again and it worked. Thanks! 2 Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted June 15, 2023 Share Posted June 15, 2023 2 hours ago, Elliott said: I tried again and it worked. Thanks! Great! Good to hear. 🙂 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.