Coder Social home page Coder Social logo

Source Directivity about gpurir HOT 5 CLOSED

daviddiazguerra avatar daviddiazguerra commented on May 22, 2024
Source Directivity

from gpurir.

Comments (5)

schmiph2 avatar schmiph2 commented on May 22, 2024 1

Hi David

Thank you for your answer an the hints for the implementing the source directivity and sorry for my late reply. I will check if I can find some time for the implementation. I will let you know if we start the implementation.

from gpurir.

DavidDiazGuerra avatar DavidDiazGuerra commented on May 22, 2024

Hi schmiph2,

Including non omnidirectional sources in the library is a great idea, but I'm afraid I don't have time time to implement it in the near future. Nevertheless, if anyone wants to try to do it, it should be possible and, actually, not too difficult.

The directivity of the receiver is included in:

amp *= mic_directivity(vec, &sh_orV_rcv[m_rcv], mic_pattern);

through the function mic_directivity:
__device__ __forceinline__ float mic_directivity(float doaVec[3], float orVec[3], micPattern pattern) {

This function first computes the angle between the steering vector of the microphone and the vector with the direction of arrival (DOA) of the image source and then apply the desired directivity pattern.

The directivity of the sources could be implemented in a similar way, but computing the angle bwtween the steering vector of the source (which should be added as a new parameter of the simulateRIR function) and the normal vector of the first reflection wall.

I'll try to implement it in the future if nobody does it before, but I don't know when I'll have time to do it.

from gpurir.

catherine-qian avatar catherine-qian commented on May 22, 2024

Hi all
Thanks for the discussion on this issue. just wondered whether there is an existing RIR generator that can simulate speaking head orientation?

from gpurir.

DavidDiazGuerra avatar DavidDiazGuerra commented on May 22, 2024

Hi Catherine,

Pyroomacoustics is one of the most comprehensive acoustic simulation libraries for Python, but I don't know if it includes that feature.

from gpurir.

catherine-qian avatar catherine-qian commented on May 22, 2024

thanks for your reply!

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.