Code to generate rhythmic-synchronous features