fixed issue#3 octave
fixed duration issue
Merge pull request #20 from asfink/master

fixed issue#3 octave