MarineBioAcousticsRC / Triton

:whale: Scripps Whale Acoustics Lab :earth_americas: Scripps Acoustic Ecology Lab - Triton with remoras in development
Other
37 stars 27 forks source link

Fix bug when zeropadding wav files #105

Open sfregosi opened 6 months ago

sfregosi commented 6 months ago

WAV/FLAC gets read in as column vector, but XWAV gets read in as row vector, so can cause issues with concatenating the zeros. If/else statement checks size of 'data' and concatenates accordingly.

This is a cleaned-up version of #86 (many new additions to Triton made the commits a mess, will close) where this pull request only includes a single file change/commit.

Fixes issue flagged in #85 and related to #83.