Patternview: improve note drawing code, fix bugs (fixes #419)
AutomationPattern: fix a bug I accidentally introduced in length()
Song editor: fix jittery tracks bug (issue #286)
Fix previous
Merge pull request #421 from diizy/stable-0.4

More bug fixes: #419, #286