|
36 | 36 | coords_min = ["cartesian", "spherical"] |
37 | 37 | coords_full = coords_min + ["spherical harmonics"] |
38 | 38 |
|
39 | | -# definition of units acordings to AES69-2020 Table 7 |
| 39 | +# definition of units acordings to AES69 Table 7 |
40 | 40 | units_min = ["metre", "degree, degree, metre"] |
41 | 41 | units_full = units_min + [units_min[1]] |
42 | 42 |
|
43 | 43 | # allowed alternative versions of units |
44 | 44 | # NOTE: AES69 allows multi-unit strings to be separated by comma, comma plus |
45 | | -# space and space (AES69-2020 Section 4.7.8). This means that the unit |
| 45 | +# space and space (AES69 Section 4.7.8). This means that the unit |
46 | 46 | # "cubic metre" will be tested as a multi unit string and is thus also |
47 | 47 | # split in the aliases. A separate test for verifying that "cubic" is |
48 | 48 | # followed be "metre" must be performed. |
|
59 | 59 | } |
60 | 60 | # possible values for restricted dimensions in the API |
61 | 61 | # Dimensions for spherical harmonics (considering orders up to 100) according |
62 | | -# to AES69-2020 Eq. (5) and (6) |
| 62 | +# to AES69 Eq. (5) and (6) |
63 | 63 | sh_dimension = ([(N+1)**2 for N in range(100)], |
64 | 64 | "(N+1)**2 where N is the spherical harmonics order") |
65 | | -# Dimensions for SOS (considering up to 100 sections) according to AES69-2020 |
66 | | -# Appenx C.5.2 |
| 65 | +# Dimensions for SOS (considering up to 100 sections) according to AES69 |
| 66 | +# Appendix C.5.2 |
67 | 67 | sos_dimension = ([6 * (N + 1) for N in range(100)], |
68 | 68 | "an integer multiple of 6 greater 0") |
69 | 69 |
|
70 | 70 | # verification rules |
71 | 71 | rules = { |
72 | 72 | # Global -------------------------------------------------------------- |
73 | | - # Check value of GLOBAL_DataType (AES69-2020 Annex C) |
| 73 | + # Check value of GLOBAL_DataType (AES69 Annex C) |
74 | 74 | # (FIRE and TFE are legacy data types from SOFA version 1.0) |
75 | 75 | "GLOBAL:DataType": { |
76 | 76 | "value": ["Audio", "FIR", "FIR-E", "FIRE", "TF", "TF-E", "SOS"], |
|
120 | 120 | "value": sos_dimension[0], |
121 | 121 | "value_str": sos_dimension[1]} |
122 | 122 | }}}}, |
123 | | - # Specified in AES69-2020 SEction 4.7.7 and Table 6 |
| 123 | + # Specified in AES69 Section 4.7.7 and Table 6 |
124 | 124 | "GLOBAL:RoomType": { |
125 | 125 | "value": ["free field", "reverberant", "shoebox", "dae"], |
126 | 126 | "specific": { |
|
131 | 131 | "RoomCornerB": None}, |
132 | 132 | "dae": { |
133 | 133 | "GLOBAL:RoomGeometry": None}}}, |
134 | | - # Specified in AES69-2020 Annex D |
| 134 | + # Specified in AES69 Annex D |
135 | 135 | "GLOBAL:SOFAConventions": { |
136 | 136 | "value": _get_conventions(return_type="name"), |
137 | 137 | "specific": { |
|
185 | 185 | "GLOBAL:DataType": ["FIR-E"]}, |
186 | 186 | "FreeFieldDirectivityTF": { |
187 | 187 | "GLOBAL:DataType": ["TF"]}}}, |
188 | | - # check NLongName (AES69-2020 Tables C.3 and C.4) |
| 188 | + # check NLongName (AES69 Tables C.3 and C.4) |
189 | 189 | "N:LongName": { |
190 | 190 | "value": ["frequency"]}, |
191 | 191 | # Listener ------------------------------------------------------------ |
192 | 192 | # Possible values and dependencies are specified in |
193 | | - # AES69-2020 Section 4.7.3 |
| 193 | + # AES69 Section 4.7.3 |
194 | 194 | # --------------------------------------------------------------------- |
195 | 195 | # Check values and consistency of if ListenerPosition Type and Unit |
196 | 196 | "ListenerPosition:Type": { |
|
220 | 220 | "general": ["ListenerView"]}, |
221 | 221 | # Receiver ------------------------------------------------------------ |
222 | 222 | # Possible values and dependencies are specified in |
223 | | - # AES69-2020 Section 4.7.4 |
| 223 | + # AES69 Section 4.7.4 |
224 | 224 | # --------------------------------------------------------------------- |
225 | 225 | # Check values and consistency of if ReceiverPosition Type and Unit |
226 | 226 | "ReceiverPosition:Type": { |
|
258 | 258 | "general": ["ReceiverView"]}, |
259 | 259 | # Source -------------------------------------------------------------- |
260 | 260 | # Possible values and dependencies are specified in |
261 | | - # AES69-2020 Section 4.7.5 |
| 261 | + # AES69 Section 4.7.5 |
262 | 262 | # --------------------------------------------------------------------- |
263 | 263 | # Check values and consistency of if SourcePosition Type and Unit |
264 | 264 | "SourcePosition:Type": { |
|
288 | 288 | "general": ["SourceView"]}, |
289 | 289 | # Emitter ------------------------------------------------------------- |
290 | 290 | # Possible values and dependencies are specified in |
291 | | - # AES69-2020 Section 4.7.6 |
| 291 | + # AES69 Section 4.7.6 |
292 | 292 | # --------------------------------------------------------------------- |
293 | 293 | # Check values and consistency of if EmitterPosition Type and Unit |
294 | 294 | "EmitterPosition:Type": { |
|
331 | 331 | "general": ["GLOBAL:EmitterDescription"]}, |
332 | 332 | # Room ---------------------------------------------------------------- |
333 | 333 | # Possible values and dependencies are specified in |
334 | | - # AES69-2020 Section 4.7.7 |
| 334 | + # AES69 Section 4.7.7 |
335 | 335 | # --------------------------------------------------------------------- |
336 | 336 | "RoomVolume": { |
337 | 337 | "value": None, |
|
0 commit comments