Re: implementing loudspeaker crossovers using Sox + LADSPA plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric, thanks so much for your attention to this.  Good catch on the type of
quote!  I changed them to single quotes and also took out the '\' separaters
because greater-thans (>) crept in.  And...  sound happened!

But we're not quite there on collecting the separate streams.  The ALSA plug
listed for output (pcm.testout4) contains 4 channels but I only get sound on
two of them and it seems to be the whole signal.  I must let this rest until
tonight, but wanted to a) report the progress and, b) show you the screen
log.

Hopefully we're close.  Once a 2-way crossover works, then I want to expand
to a 3-way.  ...eventually...

Cheers!

Frank

terminal log:

root@beaglebone:/# export
LADSPA_PATH=$LADSPA_PATH:/usr/local/lib/ladspa:/usr/lib/ladspa

root@beaglebone:/# chrt -f 45 sox -V3 -M '| sox -t alsa dsnoop:1,0 -p remix
1v1 ladspa ACDf 21 1 0 240 0.707 0 0 ladspa ACDf 21 1 0 240 0.707 0 0' '|
sox -t alsa dsnoop:1,0 -p remix 1v1 ladspa ACDf 22 1 0 240 0.707 0 0 ladspa
ACDf 22 1 0 240 0.707 0 0'  '| sox -t alsa dsnoop:1,0 -p remix 2v1 ladspa
ACDf 21 1 0 240 0.707 0 0 ladspa ACDf 21 1 0 240 0.707 0 0'  '| sox -t alsa
dsnoop:1,0 -p remix 2v1 ladspa ACDf 22 1 0 240 0.707 0 0 ladspa ACDf 22 1 0
240 0.707 0 0' -t alsa plug:testout4 remix -m 1,2 3,4
sox:      SoX v14.4.1

Input File     : 'dsnoop:1,0' (alsa)
Channels       : 2
Sample Rate    : 48000
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

In:0.00% 00:00:00.09 [00:00:00.00] Out:0     [      |      ]        Clip:1   
sox INFO formats: detected file format type `sox'

Input File     : 'dsnoop:1,0' (alsa)
Channels       : 2
Sample Rate    : 48000
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

In:0.00% 00:00:00.09 [00:00:00.00] Out:0     [      |      ]        Clip:0   
sox INFO formats: detected file format type `sox'

Input File     : 'dsnoop:1,0' (alsa)
Channels       : 2
Sample Rate    : 48000
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

In:0.00% 00:00:00.09 [00:00:00.00] Out:0     [      |      ]        Clip:0   
sox INFO formats: detected file format type `sox'

Input File     : 'dsnoop:1,0' (alsa)
Channels       : 2
Sample Rate    : 48000
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

In:0.00% 00:00:00.09 [00:00:00.00] Out:0     [      |      ]        Clip:0   
sox INFO formats: detected file format type `sox'

Input File     : '| sox -t alsa dsnoop:1,0 -p remix 1v1 ladspa ACDf 21 1 0
240 0.707 0 0 ladspa ACDf 21 1 0 240 0.707 0 0' (sox)
Channels       : 1
Sample Rate    : 48000
Precision      : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'


Input File     : '| sox -t alsa dsnoop:1,0 -p remix 1v1 ladspa ACDf 22 1 0
240 0.707 0 0 ladspa ACDf 22 1 0 240 0.707 0 0' (sox)
Channels       : 1
Sample Rate    : 48000
Precision      : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'


Input File     : '| sox -t alsa dsnoop:1,0 -p remix 2v1 ladspa ACDf 21 1 0
240 0.707 0 0 ladspa ACDf 21 1 0 240 0.707 0 0' (sox)
Channels       : 1
Sample Rate    : 48000
Precision      : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'


Input File     : '| sox -t alsa dsnoop:1,0 -p remix 2v1 ladspa ACDf 22 1 0
240 0.707 0 0 ladspa ACDf 22 1 0 240 0.707 0 0' (sox)
Channels       : 1
Sample Rate    : 48000
Precision      : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'


Output File    : 'plug:testout4' (alsa)
Channels       : 2
Sample Rate    : 48000
Precision      : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

sox INFO sox: effects chain: input        48000Hz  4 channels
sox INFO sox: effects chain: remix        48000Hz  2 channels
sox INFO sox: effects chain: output       48000Hz  2 channels
In:0.00% 00:00:00.26 [00:00:00.00] Out:10.2k [-=====|=====-] Hd:0.0 Clip:2   
sox WARN alsa: under-run
In:0.00% 00:00:00.60 [00:00:00.00] Out:28.7k [======|======] Hd:0.0 Clip:1   
sox WARN alsa: over-run
In:0.00% 00:03:23.78 [00:00:00.00] Out:9.78M [ =====|===== ] Hd:4.0 Clip:52 

[system ran happily from here - then ^C issued]
  
sox WARN ladspa: ladspa clipped 11 samples; decrease volume?
sox WARN ladspa: ladspa clipped 41 samples; decrease volume?
Aborted.
In:0.00% 00:03:23.78 [00:00:00.00] Out:9.78M [ =====|===== ] Hd:0.0 Clip:60   
sox WARN ladspa: ladspa clipped 12 samples; decrease volume?
sox WARN ladspa: ladspa clipped 48 samples; decrease volume?
Aborted.
In:0.00% 00:03:23.61 [00:00:00.00] Out:9.77M [      |      ] Hd:3.7 Clip:0    
Aborted.
In:0.00% 00:03:23.52 [00:00:00.00] Out:9.77M [ -====|====  ] Hd:0.3 Clip:878  
sox WARN remix: remix clipped 878 samples; decrease volume?
Aborted.
In:0.00% 00:03:23.86 [00:00:00.00] Out:9.79M [      |      ] Hd:3.8 Clip:0    
Aborted.
root@beaglebone:/# 




--
View this message in context: http://sox.10957.n7.nabble.com/implementing-loudspeaker-crossovers-using-Sox-LADSPA-plugins-tp5464p5720.html
Sent from the SoX mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux