Coder Social home page Coder Social logo

Comments (3)

fakufaku avatar fakufaku commented on August 23, 2024 1

Thanks for the input. It makes a lot of sense. I think the reason I originally did that is that several modules/objects need the parameter (Room, Beamformer, DOA, etc) and that rather than passing c around I have created a global variable.

That being said, the actual physical parameter and the value used in the processing algorithm does not need to be the same. It might actually need to be different when evaluating the impact of model mismatch for example. So I might get around to pushing c in room at some point.

from pyroomacoustics.

fakufaku avatar fakufaku commented on August 23, 2024

Hi François, physical constants are currently set package wide. It is possible to change their values like this.

import pyroomacoustics as pra
pra.constants.set('c', 350)

You can also get the current value.

c = pra.constants.get('c')
print('The speed of sound is:', c)

Do you think there would be a need to set the speed of sound for individual rooms ?

from pyroomacoustics.

FrancoisGrondin avatar FrancoisGrondin commented on August 23, 2024

Thank you for the precision! In this case I think this is sufficient :) The way I see it is that the room object holds all physical properties of the room (dimensions, absorption, etc.) and thus to my view it was logical to also include speed of sound as it depends on physical properties such as temperature, humidity and pressure. That being said, I feel this can be easily done with the method you just showed me.

Thanks!

from pyroomacoustics.

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.