A JavaScript library for recording and comparing rhythms