developmentseed / bioacoustics-frontend

Frontend code for the Google Bioacoustics project that's used by A2O Search
https://search.acousticobservatory.org/
MIT License
1 stars 0 forks source link

fix: Set minPxPerSecond for spectrogram #159

Closed oliverroick closed 11 months ago

oliverroick commented 11 months ago

Sets minPxPerSec for spectrogram, so long audio uploads are fully rendered.

minPxPerSec defines the minimum number of pixels to render one second in the spectrogram. So long audio files might not fit into the space allocated for the spectrogram on the page. The clipper always assumes, that the whole spectrogram is rendered, so the seconds shown in the labels and in the clipped part sometimes don't match for long audio files.