Implement BK_SAMPLE_RANGE attribute

Remove previous BK_SAMPLE_OFFSET "do" and BK_SAMPLE_END "de" commands in favour
of new command "dn".
Rename sample pitch command from "p" to "pt"

Now this is the same name as for the notation commands.
Cleanup code