If no midi signal play backup file

After reading through some other posts I have a general idea of how to accomplish this but what I am attempting is the following:

I have an ESP32 device sending generative midi signal through USB, if this thing isn’t sending a signal for a set period of time (eg 10 sec), I’d like for it to stream from a file backup created.

Is the best way to accomplish this through a chop to dat and chop execute based on channel output?

Thank you.

Or a Timer CHOP that gets restarted every MIDI event, and a switch CHOP that switches on Timer’s “done” channel.