Skip to content

Commit

Permalink
Remove pre-compiled libs and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed Sep 23, 2024
1 parent 8d776ef commit ea21974
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Binary file removed hoac.cpython-311-darwin.so
Binary file not shown.
Binary file removed hoac.cpython-311-x86_64-linux-gnu.so
Binary file not shown.
2 changes: 1 addition & 1 deletion hoac_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Prepare
N_sph_out = conf['N_sph_in']
num_sh_out = (N_sph_out+1)**2
r_smooth = 0.75
r_smooth = 0.9

x_tc = np.sqrt(4*np.pi)*sig_tc.get_signals()
fs = sig_tc.fs
Expand Down
15 changes: 8 additions & 7 deletions hoac_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import hoac


profile = 'med' # 'low', 'med', 'high'
profile = 'high' # 'low', 'med', 'high'

PEAK_NORM = True
PLOT = False
Expand Down Expand Up @@ -47,7 +47,7 @@


# defaults
user_pars = {'bitrate': 48 if profile != 'low' else 32,
user_pars = {'bitrateTC': 48 if profile != 'low' else 32,
'numTC': 6 if profile == 'low' else 9 if profile == 'med' else 12,
'metaDecimateFreqLim': 8 if profile == 'low' else
4 if profile == 'med' else 0,
Expand Down Expand Up @@ -77,7 +77,7 @@
num_secs = len(sec_dirs[0])
[A_nm, B_nm] = spa.sph.design_sph_filterbank(
N_sph_tcs, sec_dirs[0], sec_dirs[1],
spa.sph.maxre_modal_weights(N_sph_tcs), 'real', 'perfect')
spa.sph.maxre_modal_weights(N_sph_tcs), 'perfect')
beta = (w / w.sum() * len(w)) * spa.sph.sph_filterbank_reconstruction_factor(
A_nm[0, :], num_secs, mode='amplitude')
N_sph_pars = N_sph_tcs + 1
Expand Down Expand Up @@ -152,12 +152,13 @@

pars_status = {
'N_sph_in': N_sph_in,
'blocksize': blocksize,
'fs': fs,
'hopsize': hopsize,
'numTCs': num_secs,
'bitrateTC': user_pars['bitrateTC'],
'numTC': num_secs,
'metaDecimate': user_pars['metaDecimate'],
'metaDecimateFreqLim': user_pars['metaDecimateFreqLim'],
'blocksize': blocksize,
'hopsize': hopsize,
'numFreqs': num_fgroups,
'qgrid': qgrid,
'qdifbins': qdifbins,
Expand All @@ -168,7 +169,7 @@


hoac.write_hoac(pars_status, doa_idx_stream, dif_q_stream,
x_transport, user_pars, hoac_file)
x_transport, hoac_file)

print('Writing output: ', time.time()-start_time, 'seconds.')
print(f'Filesize: {hoac_file.stat().st_size/10e5} MB')
Expand Down

0 comments on commit ea21974

Please sign in to comment.