Kill duplicated code and handle 64th and 128th notes.