Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
Paolo Bolzoni wrote: I guess I can split the six channels in three limiters using the multi plugin, but how I can join them back? pcm_slave.slave123456 { pcm hw:0 channels 6 rate 48000 buffer_size 8192 # make these sizes smaller for lower latency period_size 2048 } pcm.ch12 { type dshare ipc_key 20131014 # random, but must be the same for all three slave slave123456 bindings [ 0 1 ] } pcm.ch34 { type dshare ipc_key 20131014 slave slave123456 bindings [ 2 3 ] } pcm.ch56 { type dshare ipc_key 20131014 slave slave123456 bindings [ 4 5 ] } To allow multiple clients per device, replace dshare with dmix. Regards, Clemens -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
I guess I can split the six channels in three limiters using the multi plugin, but how I can join them back? In the ladspa are other limiters, but they do not have the gain control so they do not actually increase the volume. Just adding plain 20db of amplification distorts the sound... Maybe there is an limited amplifier or something? I am trying to set-up a chain of plugins to always get the max volume... On Sun, Oct 13, 2013 at 12:58 AM, Uwe upu...@googlemail.com wrote: the problem with the configuration, I think, is: the plugins can handle a maximum of 2 channels. unfortunately, I cannot tell you exactly how, but it *should* be possible to route 3 pairs of channels to separate instances of the plugins. such a setup might also make sense musically. it might be a good idea to setup separate plugins for center and bass because the signal in the channels differs significantly from the left/right channels in frequency range and level. have fun, Uwe 2013/10/12 Paolo Bolzoni paolo.bolzoni.br...@gmail.com Dear list, This is my .asoundrc, and the pair compressor + limiter works fine for stereo input: --- 8 pcm.ladcomp_compressor { type ladspa slave.pcm ladcomp_limiter; path /usr/lib/ladspa; plugins [{ label dysonCompress input { #peak limit, release time, fast ratio, ratio controls [0 1 0.5 0.99] } }] } pcm.ladcomp_limiter { type ladspa slave.pcm plughw:Audigy2; path /usr/lib/ladspa; plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Unfortunately, it does not work for 6 channels. I.e., this one works fine (I setup my system to use a certain PCM via environment variable): $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 2 -t wav -l 5 This one does not and you hear only the left and right channels. $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 6 -t wav -l 5 Of course the hardware is wired correctly and this one works as expected: $ ALSAPCM='pcm.surround51' speaker-test -c 6 -t wav -l 5 Since normally you have to select surround51 manually I thought that the problem could be in the output pcm, and I rewrote like this. But it is the same: --- 8 #[...] analogous 51 compressor omitted pcm.plug51 { type plug slave.pcm surround51 slave.channels 6 } pcm.ladcomp_limiter51 { type ladspa slave.pcm plug51 path /usr/lib/ladspa plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Is there a way? Any insight? Yours faithfully, Paolo -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- 這只是警告訊息。 -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
I probably don't know any answers, but would like to make sure I at least understand the question. Are you trying do AGC on a pair-wise basis? Or, is it something else you're trying to do? Thanks, Robert Riches Date: Sun, 13 Oct 2013 15:02:42 +0200 From: Paolo Bolzoni paolo.bolzoni.br...@gmail.com To: Uwe upu...@googlemail.com Cc: alsa-user@lists.sourceforge.net I guess I can split the six channels in three limiters using the multi plugin, but how I can join them back? In the ladspa are other limiters, but they do not have the gain control so they do not actually increase the volume. Just adding plain 20db of amplification distorts the sound... Maybe there is an limited amplifier or something? I am trying to set-up a chain of plugins to always get the max volume... On Sun, Oct 13, 2013 at 12:58 AM, Uwe upu...@googlemail.com wrote: the problem with the configuration, I think, is: the plugins can handle a maximum of 2 channels. unfortunately, I cannot tell you exactly how, but it *should* be possible to route 3 pairs of channels to separate instances of the plugins. such a setup might also make sense musically. it might be a good idea to setup separate plugins for center and bass because the signal in the channels differs significantly from the left/right channels in frequency range and level. have fun, Uwe 2013/10/12 Paolo Bolzoni paolo.bolzoni.br...@gmail.com Dear list, This is my .asoundrc, and the pair compressor + limiter works fine for stereo input: --- 8 pcm.ladcomp_compressor { type ladspa slave.pcm ladcomp_limiter; path /usr/lib/ladspa; plugins [{ label dysonCompress input { #peak limit, release time, fast ratio, ratio controls [0 1 0.5 0.99] } }] } pcm.ladcomp_limiter { type ladspa slave.pcm plughw:Audigy2; path /usr/lib/ladspa; plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Unfortunately, it does not work for 6 channels. I.e., this one works fine (I setup my system to use a certain PCM via environment variable): $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 2 -t wav -l 5 This one does not and you hear only the left and right channels. $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 6 -t wav -l 5 Of course the hardware is wired correctly and this one works as expected: $ ALSAPCM='pcm.surround51' speaker-test -c 6 -t wav -l 5 Since normally you have to select surround51 manually I thought that the problem could be in the output pcm, and I rewrote like this. But it is the same: --- 8 #[...] analogous 51 compressor omitted pcm.plug51 { type plug slave.pcm surround51 slave.channels 6 } pcm.ladcomp_limiter51 { type ladspa slave.pcm plug51 path /usr/lib/ladspa plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Is there a way? Any insight? Yours faithfully, Paolo -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register
Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
Sorry, I am not much in this stuff... But I am reading now that AGC is Automatic gain control and it seems what I would like to do. I am trying to have a more or less constant volume of the speaker output. The configuration I posted in the first email works in this sense for stereo; it does not work for 5.1 audio. On Sun, Oct 13, 2013 at 11:03 PM, Robert M. Riches Jr. rm.ric...@jacob21819.net wrote: I probably don't know any answers, but would like to make sure I at least understand the question. Are you trying do AGC on a pair-wise basis? Or, is it something else you're trying to do? Thanks, Robert Riches Date: Sun, 13 Oct 2013 15:02:42 +0200 From: Paolo Bolzoni paolo.bolzoni.br...@gmail.com To: Uwe upu...@googlemail.com Cc: alsa-user@lists.sourceforge.net I guess I can split the six channels in three limiters using the multi plugin, but how I can join them back? In the ladspa are other limiters, but they do not have the gain control so they do not actually increase the volume. Just adding plain 20db of amplification distorts the sound... Maybe there is an limited amplifier or something? I am trying to set-up a chain of plugins to always get the max volume... On Sun, Oct 13, 2013 at 12:58 AM, Uwe upu...@googlemail.com wrote: the problem with the configuration, I think, is: the plugins can handle a maximum of 2 channels. unfortunately, I cannot tell you exactly how, but it *should* be possible to route 3 pairs of channels to separate instances of the plugins. such a setup might also make sense musically. it might be a good idea to setup separate plugins for center and bass because the signal in the channels differs significantly from the left/right channels in frequency range and level. have fun, Uwe 2013/10/12 Paolo Bolzoni paolo.bolzoni.br...@gmail.com Dear list, This is my .asoundrc, and the pair compressor + limiter works fine for stereo input: --- 8 pcm.ladcomp_compressor { type ladspa slave.pcm ladcomp_limiter; path /usr/lib/ladspa; plugins [{ label dysonCompress input { #peak limit, release time, fast ratio, ratio controls [0 1 0.5 0.99] } }] } pcm.ladcomp_limiter { type ladspa slave.pcm plughw:Audigy2; path /usr/lib/ladspa; plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Unfortunately, it does not work for 6 channels. I.e., this one works fine (I setup my system to use a certain PCM via environment variable): $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 2 -t wav -l 5 This one does not and you hear only the left and right channels. $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 6 -t wav -l 5 Of course the hardware is wired correctly and this one works as expected: $ ALSAPCM='pcm.surround51' speaker-test -c 6 -t wav -l 5 Since normally you have to select surround51 manually I thought that the problem could be in the output pcm, and I rewrote like this. But it is the same: --- 8 #[...] analogous 51 compressor omitted pcm.plug51 { type plug slave.pcm surround51 slave.channels 6 } pcm.ladcomp_limiter51 { type ladspa slave.pcm plug51 path /usr/lib/ladspa plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Is there a way? Any insight? Yours faithfully, Paolo -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net
Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
On Mon, 2013-10-14 at 00:25 +0200, Paolo Bolzoni wrote: On Sun, Oct 13, 2013 at 11:03 PM, Robert M. Riches Jr. rm.ric...@jacob21819.net wrote: I probably don't know any answers, but would like to make sure I at least understand the question. Are you trying do AGC on a pair-wise basis? Or, is it something else you're trying to do? I am trying to have a more or less constant volume of the speaker output. The configuration I posted in the first email works in this sense for stereo; it does not work for 5.1 audio. IIUC Robert want's to know if you want channel pairs synced to each other, or if all channels should compress independent or if all channels should be synced to each other. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
Ideally they should be all synced. On Mon, Oct 14, 2013 at 12:39 AM, Ralf Mardorf ralf.mard...@alice-dsl.net wrote: On Mon, 2013-10-14 at 00:25 +0200, Paolo Bolzoni wrote: On Sun, Oct 13, 2013 at 11:03 PM, Robert M. Riches Jr. rm.ric...@jacob21819.net wrote: I probably don't know any answers, but would like to make sure I at least understand the question. Are you trying do AGC on a pair-wise basis? Or, is it something else you're trying to do? I am trying to have a more or less constant volume of the speaker output. The configuration I posted in the first email works in this sense for stereo; it does not work for 5.1 audio. IIUC Robert want's to know if you want channel pairs synced to each other, or if all channels should compress independent or if all channels should be synced to each other. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] Using compressor + limiter with 6 channel sounds
Dear list, This is my .asoundrc, and the pair compressor + limiter works fine for stereo input: --- 8 pcm.ladcomp_compressor { type ladspa slave.pcm ladcomp_limiter; path /usr/lib/ladspa; plugins [{ label dysonCompress input { #peak limit, release time, fast ratio, ratio controls [0 1 0.5 0.99] } }] } pcm.ladcomp_limiter { type ladspa slave.pcm plughw:Audigy2; path /usr/lib/ladspa; plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Unfortunately, it does not work for 6 channels. I.e., this one works fine (I setup my system to use a certain PCM via environment variable): $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 2 -t wav -l 5 This one does not and you hear only the left and right channels. $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 6 -t wav -l 5 Of course the hardware is wired correctly and this one works as expected: $ ALSAPCM='pcm.surround51' speaker-test -c 6 -t wav -l 5 Since normally you have to select surround51 manually I thought that the problem could be in the output pcm, and I rewrote like this. But it is the same: --- 8 #[...] analogous 51 compressor omitted pcm.plug51 { type plug slave.pcm surround51 slave.channels 6 } pcm.ladcomp_limiter51 { type ladspa slave.pcm plug51 path /usr/lib/ladspa plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Is there a way? Any insight? Yours faithfully, Paolo -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Using compressor + limiter with 6 channel sounds
the problem with the configuration, I think, is: the plugins can handle a maximum of 2 channels. unfortunately, I cannot tell you exactly how, but it *should* be possible to route 3 pairs of channels to separate instances of the plugins. such a setup might also make sense musically. it might be a good idea to setup separate plugins for center and bass because the signal in the channels differs significantly from the left/right channels in frequency range and level. have fun, Uwe 2013/10/12 Paolo Bolzoni paolo.bolzoni.br...@gmail.com Dear list, This is my .asoundrc, and the pair compressor + limiter works fine for stereo input: --- 8 pcm.ladcomp_compressor { type ladspa slave.pcm ladcomp_limiter; path /usr/lib/ladspa; plugins [{ label dysonCompress input { #peak limit, release time, fast ratio, ratio controls [0 1 0.5 0.99] } }] } pcm.ladcomp_limiter { type ladspa slave.pcm plughw:Audigy2; path /usr/lib/ladspa; plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Unfortunately, it does not work for 6 channels. I.e., this one works fine (I setup my system to use a certain PCM via environment variable): $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 2 -t wav -l 5 This one does not and you hear only the left and right channels. $ ALSAPCM='pcm.ladcomp_compressor' speaker-test -c 6 -t wav -l 5 Of course the hardware is wired correctly and this one works as expected: $ ALSAPCM='pcm.surround51' speaker-test -c 6 -t wav -l 5 Since normally you have to select surround51 manually I thought that the problem could be in the output pcm, and I rewrote like this. But it is the same: --- 8 #[...] analogous 51 compressor omitted pcm.plug51 { type plug slave.pcm surround51 slave.channels 6 } pcm.ladcomp_limiter51 { type ladspa slave.pcm plug51 path /usr/lib/ladspa plugins [{ label fastLookaheadLimiter input { #InputGain(Db) -20 - +20 ; Limit (db) -20 - 0 ; Release time (s) 0.01 - 2 controls [ 20 -1 0.8 ] } }] } 8 --- Is there a way? Any insight? Yours faithfully, Paolo -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- 這只是警告訊息。 -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user