change get_note_attrs "duration" output to int