spectrogram -X gives a truncated spectrogram #614
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
spectrogram -X sometimes gives a truncated spectrogram
Description
gives a spectrogram from time 0 to just under 0.92 seconds
and
-X3999looks the right length but is missing the 1000ms label;-X4000works right.The same thing happens when
-d 1(only show the first second) is also given.Analysis
The rising curve in the graph ends at about 8250Hz,
so it's not incorrect axis labelling of a correct graph.
sox_ng -V -Voutput for the above contains:of which the
input: output bufferis OK (-ngenerates samples forever)but the
-X4000working example doesn't get thePNG truncatedinfo.The spectrographic area of the graph is, in fact, 4001 pixels wide,
so there is something screwy about how it determines
where to sample the audio for a particular column,
probably the effect of cumulative truncation error when stepping forwards for successive DFT frames.
May be related to #617
Spectrogram of
sox_ng -n -n synth 1 sine 1k-10k spectrogram -X4001output.The graphic area is 4001 pixels wide but it only goes as far as 0.91X seconds
so its number of pixel columns per second is incorrect.