Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

asoundrc and ladspa
asoundrc and ladspa
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 7th February 2018, 04:49 PM   #1
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
Default asoundrc and ladspa

Has anyone been able to prove that a LADSPA series such as that below actually does the processing in order, and not just the last one? After measuring and creating the Eq. I cannot persuade REW to play through the default, which includes the asoundrc Eq.

Code:
pcm.Eikona_Eq { type ladspa
                slave.pcm Monacor_Eq
                path "/usr/local/lib/ladspa"
                channels 4
                plugins {
#
# Eikona Eq 
#
# 
0 { label ACDf
    policy none
    input.bindings.0 "Input"
    output.bindings.0 "Output"
    input { controls [ 26 1 -10 90 20 1 1 ] } # PK gain Freq Q
  }
1 { label ACDf
    policy none
    input.bindings.0 "Input"
    output.bindings.0 "Output"
    input { controls [ 22 1 1 150 0.71 1 1 ] } # HP gain Freq Q
  }
  Reply With Quote
Old 7th February 2018, 05:32 PM   #2
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Is this just a portion of your asoundrc file? It seems to be missing some "close curly braces"...

I think user fracolargo and jrubins have been using ACDf within ALSA successfully. Hopefully they will chime in here.

In this long tutorial, check out "Step 8a: Understanding the .asoundrc File"
Raspberry Pi Music Server With Built-in Crossover and DSP: 12 Steps (with Pictures)
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 7th February 2018, 10:24 PM   #3
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Great link, thanks Charlie.
  Reply With Quote
Old 8th February 2018, 08:31 AM   #4
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
Charlie,
only a portion, there are 8 eq. for the full range driver and 3 for the bass, and the crossovers.

The work of both francolargo and jrubins has informed this project. Perhaps you could give the parameters for an all-pass instance, in case I need it? I guessed at 7 zeroes, but I'm not sure that's right.

Thanks for the work you've put in.

Andy
  Reply With Quote
Old 9th February 2018, 09:00 AM   #5
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
...... so to prove it:

create a test track - see attachment
plus
Code:
0 { label ACDf; policy none;
    input.bindings.0 "Input"; output.bindings.0 "Output";
    input { controls [ 26 1 -40 100 10 1 1 ] } # notch 100
  }
and
Code:
0 { label ACDf; policy none;
    input.bindings.0 "Input"; output.bindings.0 "Output";
    input { controls [ 26 1 -40 3000 10 1 1 ] } # notch 3000
  }
Tested each one separately two hear two tones; added one into a slave of the other and heard one tone ; put them both into one LADSPA instance and heard one tone.

Conclusion is that ALSA code does what we all hope it will do -
Such excellent coding, pity about the User Manual.
Attached Files
File Type: zip 3_tone _test_track.mp3.zip (22.9 KB, 3 views)
  Reply With Quote
Old 9th February 2018, 11:54 AM   #6
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
The working equalisation (for the my non-existent audience) is attached.

The sound is excellent.
Attached Files
File Type: txt asoundrc_CL_v3.txt (1.7 KB, 10 views)
  Reply With Quote
Old 9th February 2018, 12:58 PM   #7
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Thanks for posting the solution. I'm trying to work my way through Linux Audio now. So seeing the attempts, debug, and solutions helps.
  Reply With Quote
Old 9th February 2018, 08:25 PM   #8
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
Oops!!!!
Attached Files
File Type: txt asoundrc_Both_CL.txt (6.1 KB, 13 views)
  Reply With Quote
Old 18th March 2018, 01:03 PM   #9
RAndyB is offline RAndyB  United Kingdom
diyAudio Member
 
Join Date: May 2005
Location: Herefordshire
Default Another two problems solved

Problem the first:
Initially the Pi/ALSA had a very long latency, so was useless for TV sound. This was using:
arecord .... | aplay ..... (piping output to input).

Then I discovered alsaloop, and everything changed!
Code:
/home/rab/Public/Reset_paths.sh
/home/rab/Public/Record_from_SPDIF.sh
alsaloop -d -C plughw:CARD=RPiCirrus -P default -t 50000
The first two lines set the Cirrus Logic card, and the third line loops from the Cirrus Logic through alsa to output. The output "default" is the pcm of the asound.conf file shown earlier. A 50ms latency seems to cure problems of buffer underruns.

If anyone has experience of alsaloop and can shed light on the various options, I should be grateful.

Second problem:
Whenever the Pi is rebooted, something overwrites the .asoundrc in home directory.
A workaround - which will fail at a major software upgrade, probably - is to comment out the line in /usr/share/alsa/alsa.conf that includes the .asoundrc in home directory, and move the carefully crafted file to /etc/asound.conf.

Hope I am excused from bumping an elderly thread.

Andy
  Reply With Quote

Reply


asoundrc and ladspaHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA .asoundrc and asound.conf - configurations that have worked. Jerms PC Based 20 8th August 2018 02:06 PM
LADSPA filters for digital crossovers on the BBB francolargo Twisted Pear 294 29th December 2017 06:55 PM
Different measurements LADSPA / stm32 JMF11 PC Based 3 14th December 2016 06:58 PM
LADSPA help, please! Deafuser PC Based 10 17th February 2016 08:31 PM
the Active Crossover Designer for ecasound/LADSPA (ACD-L) CharlieLaub Software Tools 0 7th October 2015 05:54 PM


New To Site? Need Help?

All times are GMT. The time now is 10:24 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki