Basic implementation of playback timebase

I implemented the elementary parts of the playback timebase, organized the code a little, and added skeletons for note preview functionality (needed for the prototype).