Coder Social home page Coder Social logo

Comments (2)

DavidDiazGuerra avatar DavidDiazGuerra commented on May 22, 2024

Hi,

gpuRIR doesn't implement any kind of low frequency filtering. Instead, it uses negative reflection coefficients to get a symmetric RIR (you can find more information about it in the section 2.2.2 of the paper). The library doesn't include an option to turn off this feature.

If you really need a RIR with all its reflections positive, you should be able to get by it cloning the repository, deleting the minus signs in lines 272-277 of gpuRIR_cuda.cu, and compiling and installing the library using python setup.py install. I've never tried it, but I think it should work.

gpuRIR/src/gpuRIR_cuda.cu

Lines 272 to 277 in e66215d

beta[0] = - beta_x1;
beta[1] = - beta_x2;
beta[2] = - beta_y1;
beta[3] = - beta_y2;
beta[4] = - beta_z1;
beta[5] = - beta_z2;

from gpurir.

DavidDiazGuerra avatar DavidDiazGuerra commented on May 22, 2024

You could also try to install the library as it is and just call simulateRIR using negative reflection coefficients so they become positive inside the CUDA implementation. I don't know if there is any part of the code that could crash or generate incorrect results doing so.

from gpurir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.