http://vector.tutsplus.com/tutorials/tools-tips/quick-tip-create-a-piano-keyboard-ribbon-using-3d-effects/

In this Quick Tip you will learn a handy way to map artwork to a 3D stroke to make a flowing piano keyboard. Let’s begin!