The Swinger

Code that makes a song swing by taking each beat and time-stretching the first half of each beat while time-shrinking the second half.