@_conversion('<STR_LIT>', '<STR_LIT>')<EOL>def pitch_hz_to_contour(annotation):
annotation.namespace = '<STR_LIT>'<EOL>data = annotation.pop_data()<EOL>for obs in data:<EOL><INDENT>annotation.append(time=obs.time, duration=obs.duration,<EOL>confidence=obs.confidence,<EOL>value=dict(index=<NUM_LIT:0>,<EOL>frequency=np.abs(obs.value),<EOL>voiced=obs.value > <NUM_LIT:0>))<EOL><DEDENT>return annotation<EOL>
Convert a pitch_hz annotation to a contour