Library/ideas for loading a sequence of commands from a file

Hi,

I am looking for similar libraries or ideas on how to code something that load a sequence of commands from a file and execute them based on the time in seconds in the commands...

This should be similar to loading a midi files into Arduino for execution ....

e.g. sequence file on sdcard

first argument is when in seconds to execute, 2 argument is the function()

10 ledON()
60 buzzerON()
120 ledOFF()
500 buzzerOFF()

I searched on github but only find something similar like this https://github.com/kworkx/KScheduler.

Any ideas on what keywords to search for ?

Thanks