an implementation of "Temporal codes and recurrent timing nets for rhythmic expectancy"