Help with coding a (simple) array

What the code I have written creates is a visualization of a heartbeat (the "lubb-dubb" sound made by the heart as it beats) by fading a LED twice, one shortly after the other.
What the delay per loop does is alter the frequency of the heartbeat, let's say from 60BPM to 120BPM. This is now done by a potmeter which I want to see replaced by a piece of code that changes this delay in what I program it to be in 24 intervals of 5 minutes.