How can I use the Processing Sound Library to visualise rhythm?

Hi!

I am working on a live sound visualiser that involves image processing. So far, I have only manage to find amplitude related coding examples in the Processing Sound Library, but little to none for rhythm – can anyone help me with this? I would like to be able to visualise the rhythm of the live sound input.