Yes, I will do that. But first I need to make a few things more robust.
Only tested under Ableton.
The BPM detection is not yet working properly –
I derive the BPM from the ‘ticks’ sent by the DAW. If you activate MIDI ports 1 & 2 = ‘double number of ticks’. If you only have MIDI port 1 or 2 = ‘normal number of ticks’.
So it’s more of a proof of concept than a really good preset. Hopefully someone with the right LUA knowledge will pick up on this
I assume you use the Transport in E1? If so, you are intercepting each MIDI tick coming from a DAW (or any other MIDI clock source) via the onClock callback:
transport.onClock(midiInput)
As you see the onClock provides you a table called midiInput. And in this table there should be a member indicating from which port the tick was read. You can use that port info to disregard any ticks coming from the ports you do not want to listen to.
midiInput = {
interface = MIDI_IO, -- a name of the IO interface where the messages was received
port = PORT_1 -- a numeric port identifier
}
This are the possible Identifiers of the hardware MIDI ports.