Line segment function as a musical motive
This example is from my Algorithmic Composition blog, and is explained there.
This patch uses the table object to calculate a probablility distribution to make the short notes occur much more often than the long notes.