pvgetframefreqs

Retrieve the frequency bin values for a given frame in the current PVOC data file


Synopsis

pchvals = pvgetframefreqs(frame_number)


Description

pvgetframefreqs will retrieve a list (array) of frequency (hertz) values for a specific frame in a PVOC analysis file, as created by the MiXViews program. There will be half as many frequency values as there are points in the PVOC analysis.


Arguments

Examples

total_frames = pvinput("some/pvocfile.pv");  // open a PVOC file
frame_to_read = total_frames / 2;		// exactly halfway
pitcharray = pvgetframefreqs(frame_to_read)
for (i = 0; i < len(pitcharray); ++i) {
	printf("PVOC Pitch[%d] is %f CPS\n", i, pitcharray[i]);
}

See Also

pvinput, pvgetframeamps, pvgetframerate, PVOC