Zephyr Scientific Library (zscilib)
Functions
sound.h File Reference

API header file for sound in zscilib. More...

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

int zsl_phy_sound_press_amp (zsl_real_t b, zsl_real_t k, zsl_real_t a, zsl_real_t *p)
 Calculates the mamimum acoustic pressure of a sound wave in pascals. More...
 
int zsl_phy_sound_level (zsl_real_t i, zsl_real_t i0, zsl_real_t *b)
 Calculates the sound intensity level in decibels based on the input intensity and a reference intensity. More...
 
int zsl_phy_sound_intensity (zsl_real_t b, zsl_real_t d, zsl_real_t p, zsl_real_t *i)
 Calculates the sound intensity in watts per meter squared based on the Bulk Modulus (b) and density (d) of the medium and the maximum pressure (p). More...
 
int zsl_phy_sound_shock_wave_angle (zsl_real_t v, zsl_real_t vs, zsl_real_t *theta)
 Calculates the angle of the mach wave created by a moving sound source of velocity 'vs'. More...
 
int zsl_phy_sound_dop_effect (zsl_real_t v, zsl_real_t vs, zsl_real_t vl, zsl_real_t fs, zsl_real_t *fl)
 Calculates the frequency measured by a moving receptor while a sound emiting source moves towards it. More...
 
int zsl_phy_sound_beat (zsl_real_t fa, zsl_real_t fb, zsl_real_t *f)
 Calculates the frequency of the beats created by the interference of two waves with different frequency. More...
 

Detailed Description

API header file for sound in zscilib.

This file contains the zscilib sound APIs

Definition in file sound.h.