Hello, Below is a method I use a lot in generating rhythms in my compositions. It generates a list of pulses of n units, where the pulses are assigned to prime indexes only. I hope you find it useful. All the best, Jawher Matmati ;;; ==================================================== (defun gen-prime-pulses (nb &key (unit 's)) "Return a list of Nb OMN lengths: index i is UNIT if i is prime, otherwise the corresponding rest (-UNIT). Example: (gen-prime-pulses 10 :unit 's)