wahjam/wahjam — pull request #28 by stefanha (2012-02-12 18:27:20+00:00)
Title: Metronome bar

This patch series adds a metronome bar to the bottom of the Wahjam main window. This makes it easy to visually follow beats in the current interval and augments the metronome audio.

To implement the metronome bar a really simple custom widget is used. This is because the standard QProgressBar cannot easily show beats as separate rectangles.

I have dropped the beat-bar pull request, which used a QProgressBar, and created this new one instead. The code is cleaner because MainWindow can hook up the currentBeatChanged() signal to the setCurrentBeat() slot, thereby getting out of the way and decoupling the code a bit :).