Developing software is my life career. It is not that complicated to slow down a song.
There is a clock ticks in any computer based device (tablets, cell phones, PC, laptops, even digital watches).
For example, is the built in clock is 10MHz (10,000,000 ticks per seconds)
And based on the tempo...