Fixes some bugs in the transposer logic

specially when handling tones with accidents (b, #)