Categories on Mechanics of Melody