starenka/battery — pull request #3 by rajcze (2012-11-21 12:27:35+00:00)
Title: Code Polishing & Loops support

I made few changes to the code structure, "de-obfuscated" some parts of it, and added the support for loop recording/replay.

= Loops =

Press 'r' to signal "start of recording", the recording starts with first sample played.
Press 'r' once again, at the moment when you want the loop to start playing. I.E. the time between the last sample & "start playing" is also incorporated in the loop, but the loop itself starts playing with the second press of the 'r' key.

Multiple loops are supported, the loops can be deleted by pressing the 'p' key - removes the 'last' loop playing.