The maths behind a delay time
A delay time synced to the song starts from one number: the quarter note in milliseconds, found by dividing 60000 by the BPM. At 120 BPM that is 60000 / 120 = 500 ms. Every other note value is a simple fraction or multiple of that quarter note: an eighth note is half of it, a sixteenth is a quarter of it, and a whole note is four times it, so at 120 BPM the eighth note is 250 ms and the whole note is 2000 ms.
Dotted and triplet feels adjust that base value by a fixed ratio. A dotted note is one and a half times its plain length, because a dot adds half the note's value again, so a dotted eighth at 120 BPM is 250 × 1.5 = 375 ms, a classic rhythmic delay time. A triplet note is two thirds of its plain length, so a triplet eighth at 120 BPM is 250 × 2/3 ≈ 167 ms.