Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fhchl committed Sep 2, 2022
0 parents commit 7fa0e64
Show file tree
Hide file tree
Showing 130 changed files with 19,957 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
*.tar.gz
4 changes: 4 additions & 0 deletions Documentation/README.md
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

Binary file added Documentation/pics/DSPbutton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/MAXpatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/arm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/biampChan8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/biampClick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/cables.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/hierarchy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/hirarchy.png
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.
Binary file added Documentation/pics/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/robot_eyes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation/pics/room_setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
801 changes: 801 additions & 0 deletions Documentation/userguide.md

Large diffs are not rendered by default.

Binary file added Documentation/userguide.pdf
Binary file not shown.
19 changes: 19 additions & 0 deletions LICENSE
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.
37 changes: 37 additions & 0 deletions Lora filters/odeon_to_lora_filters.py
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})"'
)))
Loading

0 comments on commit 7fa0e64

Please sign in to comment.