pyroomacoustics.parameters module

This file defines the main physical constants of the system

class pyroomacoustics.parameters.Constants

A class to provide easy access package wide to user settable constants.

Be careful of not using this in tight loops since it uses exceptions.

get(name)
set(name, val)
pyroomacoustics.parameters.calculate_speed_of_sound(t, h, p)

Compute the speed of sound as a function of temperature, humidity and pressure

Parameters:
  • t – temperature [Celsius]
  • h – relative humidity [%]
  • p – atmospheric pressure [kpa]
Returns:

Return type:

Speed of sound in [m/s]