Set attack phase even if no sequences are active

Otherwise the state phase is never set to attack which prevents releasing the
track note.
Remove unused code
Add comment
Check sustain phase length of sequence

A sustain phases with length 0 would cause an inifinite loop.
Reduce unnecessary sequence loops
Add BK_SAMLE_RANGE attribute

Remove BK_SAMPLE_OFFSET and BK_SAMPLE_END in favour of the new attribute.
Bump version to 0.8