Statistics for Generation and control of automatic rhythmic performances in Max/MSP