This one uses the scene and sound modules to create a very simple drum sequencer, using the built-in sound effects. Currently, it only works on the iPad (though it would be relatively easy to adjust the size to the iPhone screen).
It overrides the scene's stop method to save the current pattern to a file and restore it the next time the scene is run. Enjoy!