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.

I find it interesting that the shape in the function object on the left, which is the only musical motive of the composition, can produce a wide variety of effects when played at different speeds and with different transpositions, yet even with that variety of sounds, the unity of a single generating motive seems to give the music coherency.