Open GarageBand
Open Loopback
On the Sources column of Loopback, click the + symbol to add a new source. Select GarageBand

You now have an audio device on your Mac called “Loopback Audio.” If you use this as an input device, that input will be the output of GarageBand. In addition to using this as input, we want to “monitor” the device output.

I don’t quite remember what the output device should be, but I think it’s the scarlett. You might have to play with this option



You should now have your MIDI device connected to Garageband, and looped into QuickTime. Pressing record should include all audio from the MIDI device.