DSP System Toolbox
This example shows how to apply weighting filters to measure sound pressure. A user interface (UI) allows the user to control various parameters while the simulation is running.
|On this page…|
In many applications involving acoustic measurements, the final sensor is the human ear. Thus, most acoustic measurements try to represent the ear's subjective perception of a sound. Instrumentation devices are built to provide a linear response, but the ear is a nonlinear sensor. Therefore, special filters known as weighting filters, are used to account for these nonlinearities.
soundPressureMeasurementExampleAppsoundPressureMeasurementExampleApp is the function containing the algorithm's implementation. It instantiates, initializes and steps through the components forming the algorithm.
Execute soundPressureMeasurementExampleAppExecute soundPressureMeasurementExampleApp to run the simulation and plot the results on scopes. Note that the simulation runs for as long as the user does not explicitly stop it.
soundPressureMeasurementExampleApp launches a User Interface (UI) designed to interact with the simulation. The interface allows you to select an audio source and a filter, and the results are reflected in the simulation instantly. For example, selecting a filter changes the RMS pressure. Notice how the corresponding plot in the SpectrumAnalyzer reflects this change. There is also a 'Stop' button on the UI that ends the simulation. The interaction between the interface and the simulation is performed using UDP.