forked from patricksebastien/mtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ambiDistance7~-help.pd
66 lines (66 loc) · 2.08 KB
/
ambiDistance7~-help.pd
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
55
56
57
58
59
60
61
62
63
64
65
66
#N canvas 256 351 807 489 10;
#X obj 64 137 noise~;
#X floatatom 410 164 5 0 0 0 - - -;
#X obj 413 143 hsl 200 15 0 6 0 0 empty empty empty -2 -8 0 10 -260097
-1 -1 3317 1;
#X obj 64 381 dac~ 1 2;
#X msg 410 184 distance \$1;
#X msg 409 118 1;
#X obj 407 95 loadbang;
#X text 3 -43 Description: Changes the perceptual distance of a 3rd
order horizontal Ambisonic sound source.;
#X text 3 2 Alters only the amplitude of the w versus xyuvpq channels.
;
#X text 5 18 1 represents the unit circle \, which is the actual distance
of the speakers circle around the listener.;
#X text 2 80 At a distance of 18 \, there is no more sound.;
#X text 3 64 Every step of 1 makes the sound -6dB quieter. (half as
loud);
#X obj 470 287 vu 15 120 empty empty -1 -8 0 10 -66577 -1 1 0;
#X obj 676 288 vu 15 120 empty empty -1 -8 0 10 -66577 -1 1 0;
#X obj 469 247 expr (1-$f1)*6 \; if ($f1<1 \, (1-$f1)*-100 \, (1-$f1)*6)
;
#X text 458 122 Distance (1 is the unit circle);
#X text 6 45 0 represents the center of the circle.;
#X text 480 207 Here is the algorythm:;
#X text 481 222 Is is slightly simplified.;
#X text 660 416 Other channels;
#X text 465 414 Amplitude of W;
#X text 4 95 It can be used with other Ambisonic orders that use 7
channels or less.;
#X text 3 -19 tags: ambisonic;
#X obj 64 263 mtl/ambiDistance7~ distance 6;
#X obj 64 351 mtl/ambiWxyuvpqToMono~ angle 90;
#X obj 63 175 mtl/ambiMonoToWxyuvpq~ angle 90;
#X obj 264 351 mtl/ambiWxyuvpqToMono~ angle 270;
#X connect 0 0 25 0;
#X connect 1 0 4 0;
#X connect 1 0 14 0;
#X connect 2 0 1 0;
#X connect 5 0 2 0;
#X connect 6 0 5 0;
#X connect 14 0 12 0;
#X connect 14 1 13 0;
#X connect 23 0 24 0;
#X connect 23 0 26 0;
#X connect 23 1 24 1;
#X connect 23 1 26 1;
#X connect 23 2 24 2;
#X connect 23 2 26 2;
#X connect 23 3 24 3;
#X connect 23 3 26 3;
#X connect 23 4 24 4;
#X connect 23 4 26 4;
#X connect 23 5 24 5;
#X connect 23 5 26 5;
#X connect 23 6 24 6;
#X connect 23 6 26 6;
#X connect 24 0 3 0;
#X connect 25 0 23 0;
#X connect 25 1 23 1;
#X connect 25 2 23 2;
#X connect 25 3 23 3;
#X connect 25 4 23 4;
#X connect 25 5 23 5;
#X connect 25 6 23 6;
#X connect 26 0 3 1;