DavidDiazGuerra / gpuRIR

Python library for Room Impulse Response (RIR) simulation with GPU acceleration
GNU Affero General Public License v3.0
488 stars 94 forks source link

The value range about input source. #57

Closed fromprimary closed 7 months ago

fromprimary commented 7 months ago

When I ran simulate_trajectory.py using wavfile.read , which read the data as int16, I convolved the int16 data with the rir calculated by gpurir and then I used wavfile.write to write the output data. And I found that datas are all overflowed. When I normalize the value of input to [-1,1], the output was small . My microphone distance is 2.5cm, source to microphone distance is 10cm.

Do I need to normalize the input to [-1,1] before convolve with rir?