Toggle MIDI port

New to Bome MTP and before purchasing, seeing if it can do this one function.

My lighting console is controlled by an APC Mini MK2 and also via another App via the Internal MAC IAC port.

I’m looking for a way to toggle the INPUT of the IAC port OFF and ON to the Lighting console via a button press on the APC MIDI. Watched the tutorials and tried a few things but not getting there.

Thanks!

Hi and welcome to the Bome community!

Yes, please find the attached. I have set up alias as as follows.

You can learn more about aliases from this tutorial.

There are 4 translators all triggered by the same MIDI event, the shift key on the APC-MINI MK2.

The first one toggles the state of g0 and depending on it’s state enables or disables paths.

The first one Enable APC-MINI
The second Disables IAC port
The third Enables IAC port
The forth Disables APC-MINI

The paths were pre-created when I built the project.

Switch-Ports.bmtp (2.3 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks Steve!
I loaded it and wasn’t sure about below window at first in relation to my set up. Watched the Alias Video and now get it. I don’t need to toggle the APC so I unchecked those Translators. Hitting the shift key did not disable the IAC input. Not sure if how I responded to initial alias set up was the reason. I re-downloaded it but don’t get that window any more. I set Inputs to be my APC and on Outgoing tried Route source to be APC Mini and Route destination as IAC Virtual driver. No go, so I switched them and still no go. Hitting the shift key sends ON/OFF button commands from APC and IAC ports regardless of shift press.

Thanks, I’m using DasLight/MyDMX for lighting, unfortunately there is no way to map the port selection in settings, thus giving this a try. I might also try an Apple script via the Mac MIDI studio.

Wayne Hagan

Right if you turn the translators off, the shift key will not do anything. That is what the translator is for. With the translator disabled, the note will go through the currently enabled MIDI path.

MIDI Menu selects your aliases. You are only prompted if you haven’t set them.

If you don’t want them to switch ports and keep them both enabled all of the time, then remove the translators. Then delete and re-create the translators in the MIDI router.

See this tutorial on creating MIDI merge.

You can learn more about aliases from this tutorial.
Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks,
Yes, I only unchecked the the translator for toggling the APC port, As I just want to toggle the IAC port.

  • Wayne Hagan
    (via phone)

Only 1 (the first one) translator had a toggle rule. The others did not so you may have to move that rule to another translator.

// toggle g0 between 0 and 1 and back
g0=g0^1

Ok, Sorry but my scripting knowledge is enough to get me in trouble. I inserted the g0=g0^1 into the first Translator and got it to toggle the enable/disable function of the output in the event monitor screne.

However, in the Daslight MIDI monitor window I get IAC input regardless of toggle.
Seems to be a problem with the routing definition. I think I’m misunderstanding a fundamental principal. The Routing screen shows Inputs on left and outputs on right (drag L>R from input to output) My mind wants to drag from output to input. The connection I’m trying to toggle is incoming IAC MIDI from my DAW to my lighting console, I.E. DAW output to lighting console input. The way this file is set up it looks like DAW in on L to console out on right, opposite of what I want to do.

Also, I need this translator to only effect IAC virtual MIDI input into Daslight console but not system wide, possible?

Thanks so much for your patience.

Before I look at this again, let me make sure I am clear.

  1. You always want MIDI messages from your APC MINI MK2 port to get through to Daslight
  2. You only want to toggle on and off the ability to send from your iAC port.

Is this correct?

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Before I look at this again, let me make sure I am clear.

  1. You always want MIDI messages from your APC MINI MK2 port to get through to Daslight

Yes

  1. You only want to toggle on and off the ability to send from your iAC port.

Specifically, toggle receive from the IAC input in Daslight.

I can make this happen of course by going to the settings window in Daslight and uncheck IAC Input. Ideally I want to do this via a pad press on the APC. Unfortunately the settings window in Daslight cannot be MIDI mapped.

Thanks!

OK, this should do it.

  • The first translator makes sure the shift key never gets through the MIDI through path from your APC-MINI MK2 to your DAW. Its outgoing action is NONE
  • The second on toggles g0 and turns off the other path.
  • The third translator turns on the other path.

Enable-Disable-Other.bmtp (1.7 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Bummer, no luck. The shift is getting to the DAW (VDJ in my case) but that’s OK. IAC still coming in to Daslight.

The Lighting console alias is configured as Output, but I’m trying to block IAC Input to console, does that matter?

Show me

  1. Your alias assignments
  2. Snapshot of your Daslight MIDI configuration.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Here is the settings window in Daslight, I’m trying to check and uncheck the IAC MIDI input box via a APC button.

Here is how the routing looks of the file you sent me on my side, Lighting Console is configured as Output, Other Control is listed as Input


You need to define your output in bome to something like ‘BMT 1’ or ‘Bome MIDI Translator Virtual 1’ and not access the APC-MINI MK3 directly.

Also you are accessing your IAC port directly which means anything coming from that will always get through. You are bypassing Bome MIDI Translator Pro .

In Summary Daslight needs to receive from BMT 1 only and Bome MIDI Translator Pro needs to have your alias for Lighting Console also be BMT 1.

I assume when you are switching off the iAC port you are meaning to switch of the MIDI clock signals from that port.

See the picture below

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

This is excellent! Pictures help me. I’ll dig in and let you know.
Thanks.

Ok, Got it to work! The APC messaging is still selected for input and output in Daslight but the IAC signals go though BMT and switched via outputting virtual port. Then I created a translator to turn on and off the indicator light in the shift key but soon realized the reason it wasn’t working is that’s it’s the only light in the APC Mini MK2 that doesn’t have one! Anyway, switched to a different button and all works great. Got a Bome Lic. and now thinking of another application. I think this should be possible:
Daslight only outputs DMX and the velocity data to light the LED’s in the buttons. I was wondering if I could convert the velocity data to an outgoing MIDI message that would record a cue in my DAW. I was able to record the velocity data as an input trigger in a translator, but now I need the data to appear as a MIDI command FROM the APC Mini. It shows up in the system as a midi command TO the APC but is not received by the DAW as a MIDI command FROM the APC. I have a custom script in the DAW that only recieves FROM the APC Mini.
Any ideas?
Thanks!

Hi,

I recommend you change Ableton to Sent and Receive to and from BMT 2 and Daslight to and from BMT 1.

Then you can use translators or MIDI routers in Bome MIDI Translator Pro to direct the MIDI to the desired port.

The dashed lines here represent the routing.

APC MINI to MTPro to both BMT 2 (Daslight) and BMT 1 (Ableton).
BMT 2 (Daslight) to MT Pro to both APC MINI and to BMT1 (Ableton).

iAC to MT Pro to BMT2 (Daslight Switched)

The path from Daslight through MT Pro to Ableton Live might have a translator rather than using MIDI routing.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks, I was thinking along those lines, the diagram helps a lot. When I say DAW, actually what I’m using is Virtual DJ with a custom virtual definition file and some custom scripting that allows me to embed lighting cues into audio tracks. My challenge is I will have to change some coding to listen on BMT virtual port instead of the APC. Was hoping there was a way simulate the APC on the Bome end but looks like I’ll have to dig in and try to re-config the VDJ side.
Thank you!

Yes just substitute Virtual DJ where it says Ableton Live.
My guess is that the translators need to cover the path from Daslight back to Virtual DJ. You could send the native signal back from Daslight to the APC for LED feedback and convert to whatever you want to do with translators from Daslight back to BMT 1 (Virtual DJ).

Virtual DJ would need to be set up to read and write from BMT 1 with your current definitions.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

That’s what I suspected, unfortunately having a hard time changing the incoming connection virtual definition file in VDJ to recognize BMT 1. I’ll keep at it.
Thanks!