forked from s-e-a-m/faust-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseam.hrtf.lib
54 lines (46 loc) · 1.75 KB
/
seam.hrtf.lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
shr = library("seam.hrtf.lib");
// https://en.wikipedia.org/wiki/Sound_localization#Lateral_information_.28left.2C_ahead.2C_right.29
eardistance = 0.18; // metri
headradius = 0.09; // metri
iid(f,rad) = 1.0+pow((f/1000),0.8)*sin(rad);
itd(rad) = headradius*((rad+sin(rad)))/speedofsound;
//https://en.wikipedia.org/wiki/Group_delay_and_phase_delay
//In physics, and in particular in optics, the term group delay has the following meanings:
//The rate of change of the total phase shift with respect to angular frequency,
tph(d,rad,f) = -(d*rad/2*ma.PI*f);
//through a device or transmission medium, where \phi \ is the total phase shift in radians, and
// \omega \ is the angular frequency in radians per unit time, equal to 2πf
// 2\pi f\ , where f \ is the frequency (hertz if group delay is measured in seconds).
aa = library("aanl.lib");
sf = library("all.lib");
an = library("analyzers.lib");
ba = library("basics.lib");
co = library("compressors.lib");
de = library("delays.lib");
dm = library("demos.lib");
dx = library("dx7.lib");
en = library("envelopes.lib");
fd = library("fds.lib");
fi = library("filters.lib");
ho = library("hoa.lib");
it = library("interpolators.lib");
ma = library("maths.lib");
mi = library("mi.lib");
ef = library("misceffects.lib");
os = library("oscillators.lib");
no = library("noises.lib");
pf = library("phaflangers.lib");
pl = library("platform.lib");
pm = library("physmodels.lib");
qu = library("quantizers.lib");
rm = library("reducemaps.lib");
re = library("reverbs.lib");
ro = library("routes.lib");
sp = library("spats.lib");
si = library("signals.lib");
so = library("soundfiles.lib");
sy = library("synths.lib");
ve = library("vaeffects.lib");
vl = library("version.lib");
wa = library("webaudio.lib");
wd = library("wdmodels.lib");