Logic Pro X MIDI s/w inst not recording when Audio Channel selected


New Member
Hi All, I have an issue where I cannot record a midi instrument (toontrack superior drummer 3) while recording Audio at the same time.
It DOES work if I have the MIDI inst channel selected but here’s my main problem. I have a midi pedal controller switching various smart controls (pedal board) on the Audio track and it doesn’t work unless I have the Audio channel selected.
So I’m kinda stuck, I would like to record the drums and be able to control the pedals

Ideally there is a solution to being able to use the midi learn assignments on the track without having to have the track selected.
Any ideas?