chris-hld / spaudiopy

Spatial Audio Python Package
https://spaudiopy.readthedocs.io/
MIT License
138 stars 13 forks source link

Add Energy-Preserving Ambisonics Decoder (EPAD) and Mode-Matching Ambisonics Decoder (MAD) #12

Closed chris-hld closed 4 years ago

chris-hld commented 4 years ago

Tested with

import numpy as np
import matplotlib.pyplot as plt

import spaudiopy as spa

plt.close('all')
ls_layout = spa.IO.load_layout('../data/ls_layouts/MCC_subset_C.json')

ls_layout.show()

spa.plots.decoder_performance(ls_layout, 'VBAP')

spa.plots.decoder_performance(ls_layout, 'ALLRAD')
spa.plots.decoder_performance(ls_layout, 'ALLRAD', N_sph=3)

spa.plots.decoder_performance(ls_layout, 'ALLRAD2')
spa.plots.decoder_performance(ls_layout, 'ALLRAD2', N_sph=3)

spa.plots.decoder_performance(ls_layout, 'EPAD')
spa.plots.decoder_performance(ls_layout, 'EPAD', N_sph=3)

plt.show()
chris-hld commented 4 years ago

Figure_7

chris-hld commented 4 years ago

with

ls_layout = spa.IO.load_layout('../data/ls_layouts/Graz.json')
spa.plots.decoder_performance(ls_layout, 'EPAD', N_sph=3)

Figure_7

chris-hld commented 4 years ago

with

ls_layout = spa.IO.load_layout('../data/ls_layouts/Graz.json')
spa.plots.decoder_performance(ls_layout, 'MAD', N_sph=3, title="N=3")
spa.plots.decoder_performance(ls_layout, 'EPAD', N_sph=3, title="N=3")

Figure_9 Figure_13