Hace un par de años estuve intentando hacer funcionar un FIRtro con raspberry y con mucho esfuerzo conseguí casi hacerlo funcionar del todo...
El caso es que sigo interesado en hacer DRC en un sistema 5.1 y he visto que FIRtro se ha hecho adulto y ahora es pe.audio.sys. Llevo unos días tratando de hacerlo andar pero tengo un par de problemas:
Código: Seleccionar todo
(start.py) (i) .state.yml copied to .state.yml.BAK
--------------------- (start.py) killing running before me ---------------------
2807 969 python3 pe.audio.sys/start.py all
--------------------------------------------------------------------------------
(start.py) killing old 'start.py' processes: 969
(start.py) will stop the script 'sound_cards_prepare.py' ...
(start.py) will stop the script 'loudness_monitor.py' ...
(start.py) stopping SERVICE: 'preamp'
(start.py) stopping SERVICE: 'players'
(start.py) STOPPING BRUTEFIR
(start.py) STOPPING JACK LOOPS
(start.py) STOPPING JACKD
(start.py) stopping SERVICE: 'peaudiosys'
(start.py) starting SERVICE: 'peaudiosys'
(start.py) processing drc sets to web/images in background
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio2
creating alsa driver ... hw:CODEC|hw:CODEC|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
(start.py) JACKD STARTED
(jack_loop) running pre_in_loop
(jack_loop) running alsa_loop
(start.py) JACK LOOPS STARTED
(start.py) will start the script 'sound_cards_prepare.py' ...
(start.py) will start the script 'loudness_monitor.py' ...
BruteFIR v1.0m (November 2013) (c) Anders Torger
Internal resolution is 32 bit floating point.
Creating 4 FFTW plans of size 32768...finished.
Loading 7 coefficient sets...finished.
JACK I/O: Warning: JACK is not running with SCHED_FIFO or SCHED_RR (realtime).
Realtime priorities are min = 4, usermax = 3, mid = 5 and max = 6.
Warning: no support for clock cycle counter on this platform.
Timers for benchmarking may be unreliable.
Filters in process 0: 0 2 4 6
Filters in process 1: 1 3 5 7
Realtime priority 5 set for callback process (pid 1451)
Realtime priority 3 set for cli process (pid 1459)
Creating inverse inplace FFTW plan of size 16384 using wisdom...(loudness_monitor) spawn PortAudio ports in JACK
finished
Realtime priority 6 set for filter process (pid 1458)
Realtime priority 6 set for filter process (pid 1457)
Audio processing starts now
(core) 3 threads:
0 MainThread
1 waits for convolver OFF
2 waits for convolver ON
Traceback (most recent call last):
File "pe.audio.sys/start.py", line 446, in <module>
core.init_audio_settings()
File "/home/pi/pe.audio.sys/share/services/preamp_mod/core.py", line 716, in init_audio_settings
preamp.set_level ( preamp.state["level"] )
File "/home/pi/pe.audio.sys/share/services/preamp_mod/core.py", line 1007, in set_level
return self._validate( candidate )
File "/home/pi/pe.audio.sys/share/services/preamp_mod/core.py", line 971, in _validate
eq_mag, eq_pha = calc_eq( candidate )
File "/home/pi/pe.audio.sys/share/services/preamp_mod/core.py", line 199, in calc_eq
+ bass_mag + treb_mag
ValueError: operands could not be broadcast together with shapes (67,) (63,)

Luego trato de arrancar el servidor web:
Código: Seleccionar todo
node pe.audio.sys/share/www/peasys_node.js
Node.js v10.21.0
Server running at http://localhost:8080/
(node) httpServer TX: application/javascript (/home/pi/pe.audio.sys/share/www/clientside.js)
(node) httpServer TX: text/html (/home/pi/pe.audio.sys/share/www/index.html)
Pero aunque se ve la web, en la barra superior indica que no esta conectado.
Alguna sugerencia?
Muchas gracias!