Is it possible to record auditory input, paired with an auditory stimulus, to a stereo track?

Hi was wondering if you have figured it out? I’m also trying to create a rhythm experiment using a drum pad but I’m quite naive with python and MIDI.