Commit f9be08b4 authored by emerit's avatar emerit
Browse files

update readme and run.py

parent 7a88077a
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -34,8 +34,10 @@
- MATLAB >= R2020b
- Signal Processing Toolbox
- Python 3.9.* with pip
- ./scripts/pyaudio3dtools packages
- Numpy (pip install numpy)
- Netcdf4 (pip install netcdf4)
- Scipy (pip install scipy) for ./scripts/pyaudio3dtools packages
- C/C++ compiler 
   - linux (ubuntu) :
      - sudo apt-get update
@@ -54,7 +56,8 @@
   - cd .. 
   - generate_crend_ivas_tables executable shall be in this folder
   - SofaReader.py file must be in the same folder as the executable generate_crend_ivas_tables
   - run py run.py -> no error message shall appear
   - run python3 run.py -> no error message shall appear
      - using pip and PYTHONPATH. Add pip packages folder (ex : C:\Users\username\AppData\Local\Programs\Python\Python311\Lib\site-packages) to environment variable PYTHONPATH. It can be necessary also to add to PYTHONPATH ./scripts/pyaudio3dtools folder.  
   - for more details on generate_crend_ivas_tables see mixer_conv_sofa_to_rom_table_converter_readme.txt

### Build tables_format_converter in release or relWithDebugInfo. debug configuration do not work calling numpy
+3 −2
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ import SofaReader as sr
import numpy as np

filename = "./HRIRs_sofa/HRIR_128_Meth5_IRC_53_Q10_symL_Itrp1_48000.sofa"
# filename = "./HRIRs_sofa/HRIR_128_48000_dolby_SBA3.sofa"

[
    baseName,
@@ -54,8 +53,10 @@ filename = "./HRIRs_sofa/HRIR_128_Meth5_IRC_53_Q10_symL_Itrp1_48000.sofa"
    srcPos,
    srcPosCart,
] = sr.load(filename)

ind = sr.find_pos_spheric(srcPosCart, [30.0, 0.0, 2.0])

print(ind)
print("indice of direction [30.0, 0.0, 2.0] : " + str(ind))
print("No error in reading " + filename)

exit