Think of it as a linear alternator. In a typical alternator, the coil spins around, whipping its electromagnetic field through the stator windings. The shaking motion you refer to would be the same way of getting windings to pass through an electromagnetic flux field.
__________________
-Terry
|