Jump to content

Filtering and remapping CC's


Michael Maine
Go to solution Solved by Jordi Torres,

Recommended Posts

Hi, I need help using IK Hammond B-3X with my Viscount Legend Live organ as a MIDI controller. Unfortunately, the software is poorly set up for controllers besides Hammond models. It doesn't have allowances for CC's coming in on different channels, and seems to be listening on ALL channels to the CC's. I need to filter certains CC's and remap them to other CC's on channel 1.

Ideally if there is a solution to this (scripter?) that I can use in both Logic and Mainstage, that would be ideal!

I need to filter out Channel 2 and 3 from reaching B-3X, while remapping the following:

Channel 2:
CC's 12-20 need to be remapped to channel 1, CC's 21-29
95 to 95

Channel 3:
CC's 12 and 13 remapped to Chan 1 CC's 33 and 35

Possibly some other things... but this would give me a functional organ controller. Thank you in advance for any help!

Link to comment
Share on other sites

  • Solution

Hi Michael,

On 2/4/2023 at 4:14 AM, Michael Maine said:

I need to filter out Channel 2 and 3 from reaching B-3X, while remapping the following:

Channel 2:
CC's 12-20 need to be remapped to channel 1, CC's 21-29
95 to 95

Channel 3:
CC's 12 and 13 remapped to Chan 1 CC's 33 and 35

Here's a script for Scripter that does that:

const ccMap = {
  2: {
    12: 21,
    13: 22,
    14: 23,
    15: 24,
    16: 25,
    17: 26,
    18: 27,
    19: 28,
    20: 29,
    95: 95,
  },
  3: {
    12: 33,
    13: 35,
  },
};

function HandleMIDI(e) {
  if (e instanceof ControlChange && (e.channel === 2 || e.channel === 3)) {
    if (Object.keys(ccMap[e.channel]).includes(String(e.number))) {
      e.number = ccMap[e.channel][e.number];
      e.channel = 1;
      e.send();
    }
  } else {
    e.send();
  }
}

J.

  • Like 2
Link to comment
Share on other sites

Thanks so much! For some reason, that didn't achieve what I wanted it to with drawbar control. But I did figure out how to get the remapping to work in Bome MIDI Translator Pro.

Ok, so second half of your script for blocking, plus BOME worked, thanks!

 

Edited by Michael Maine
Link to comment
Share on other sites

3 minutes ago, Michael Maine said:

Thanks so much!

No problem!

4 minutes ago, Michael Maine said:

For some reason, that didn't achieve what I wanted it to

Hmm, either I misinterpreted what you wrote or you did not properly explain what you actually where looking to achieve? But since you found your own solution with Bome MIDI translator then that's Ok.

8 minutes ago, Michael Maine said:

OK, so with Mainstage the problem is I need to block one of my MIDI inputs, because it automatically sends all unassigned MIDI data to all channels. If I turn it off, then I have to manually remap every CC inside Mainstage, which I don't want to do...

Is there a scripter way to block "UM-ONE" hardware input? I could also ask in Mainstage forum if this that is more appropriate.

No, Scripter cannot do that but MidiPipe can with its MIDI Input "hijack" option:

1924162143_Screenshot2023-02-05at18_47_03.png.0a864b3bc19131a0cbda07fc44c00f38.png

Hope that helps,

J. 

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...