-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7fa0e64
Showing
130 changed files
with
19,957 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vscode | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This documentation is written in Pandoc Markdown and converted to PDF with | ||
|
||
pandoc --toc -o userguide.pdf userguide.md | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2022 Franz M. Heuchel, Technical University of Denmark | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""Computes LORA filters for each room in `Ownaura/Odeon rooms`""" | ||
|
||
import os | ||
from pathlib import Path | ||
from tqdm import tqdm | ||
|
||
# quote escaping | ||
def tostr(path): | ||
return f'"{str(path)}"' | ||
def tostr2(path): | ||
return f"'{str(path)}'" | ||
|
||
|
||
OWNAURA_PATH = Path("..").resolve() # use absolute paths | ||
ROOMS_PATH = OWNAURA_PATH / 'Odeon rooms' | ||
|
||
# all folders in ROOMS_PATH that have a AVIL implementation files subfolder | ||
folders = [x for x in ROOMS_PATH.iterdir() if x.is_dir() and (x / 'AVIL implementation files').is_dir()] | ||
|
||
ignore_direct = 1 # remove the direct sound | ||
trim = 1 # Trim the length of responses that contain only zeros | ||
debug = 0 | ||
|
||
for room in tqdm(folders): | ||
print(room) | ||
# move early relfections by this amount of milliseconds if not Calibration room | ||
move_ER = 22 if room.stem != "Calibration Room" else 0 | ||
|
||
name = room.stem | ||
implementation_folder = room / 'AVIL implementation files' | ||
implementation_file_stem = str(next(implementation_folder.glob("*EarlyReflections.Txt")).name).replace("EarlyReflections.Txt","") | ||
outfile = Path.cwd() / (name + '.wav') | ||
os.system(" ".join(( | ||
'matlab', | ||
f'-sd {tostr(OWNAURA_PATH / "libownaura" / "matlab")}', | ||
f'-batch "compute_avil_ir_from_odeon_exports({tostr2(implementation_folder)}, {tostr2(implementation_file_stem)}, {tostr2(outfile)}, {ignore_direct}, {move_ER}, {debug}, {trim})"' | ||
))) |
Oops, something went wrong.