Modified duration computation to take division type into account, and fixed bug of pitch computation.