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

Raspberry Pi with Piano2.1 DAC DSP and Volumio2
Raspberry Pi with Piano2.1 DAC DSP and Volumio2
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 20th July 2017, 12:04 AM   #11
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Default Trying BruteFir2

I tried the latest 0.42 BruteFir2 from volumio-plugins/plugins/miscellanea at master * balbuze/volumio-plugins * GitHub

It's not quite ready for my config yet, many things broke (no sound, no NAS, etc). In fairness its pre-release, but I thought I give it a shot anyways.


Does anyone know of a working convolution engine for RPI, Volumio, and Piano2.1 ???

Last edited by DonVK; 20th July 2017 at 12:26 AM. Reason: forgot to add Volumio
  Reply With Quote
Old 20th July 2017, 11:59 PM   #12
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Default Succeeded with BruteFir2 plugin - Equalizer

After reading some other posts on this plugin I'm sure [Balbuze] will succeed in cleaning up these known issues.

What worked for me : 1) set the Piano in 2.0 mode, upload & install BruteFir2, clear play queue and reboot. 2) enable the BruteFir2 plugin and reboot 3) do not change the new playback options which appear to be wrong but actually work [I2S off, BruteFir output].

It seems I was trying to "correct" things by enabling the I2S and reselecting Piano2.1 output which will cause no output and loose the NAS connection.

If you want to return to original setting : disable BruteFir plugin, reselect I2S and Piano2.1 , clear the playlist queue and reboot

I get good sound out, the rest of Volumio works, and the BruteFir2 equalizer works although its only 1 octave, 10 band.

Next item : importing REW filters and trying the BruteFir convolution engine.

Last edited by DonVK; 21st July 2017 at 12:03 AM. Reason: typo
  Reply With Quote
Old 24th July 2017, 02:09 AM   #13
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Default CPU load, so far

I have all the components [Volumio, DAC DSP, BruteFir, Equalizer] so how does the loading look. The test music is an mp3@256kbps sampled at 44.1KHz from a NAS over wifi. Utilization was observed from the terminal interface using "top".

1) Volumio2 only : mpd uses CPU@4% avg (cycles from 1% to 7%)
2) Volumio2 , resample to 48KHz : mpd uses CPU@33% avg
3) Volumio2 , BruteFir2 64K taps uses CPU@36%, mpd uses CPU@4%
3) Volumio2 , BruteFir2 128K taps uses CPU@40%, mpd uses CPU@4%

The 10band equallizer uses 1% CPU when active and is part of BruteFir plugin. Volumio (soxr ?) resampling does not seem to work with BruteFir plugin. Only Piano2.0 mode works with the Brutefir plugin, there is no output when Piano2.1 or 2.2 are used.
  Reply With Quote
Old 24th July 2017, 02:25 AM   #14
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Default BruteFir2 convolution based EQ

I used REW to generate a filter to smooth out the FR response of a speaker. The filter's impulse response was 128K sample output (16b and 32b versions) to a wav file for BruteFir.

I should add, that this filter wav file was tested on a PC using EqualizerAPO. So I have a PC based source and a RPI source using the same music, same amp, same filter, and same speakers. The only difference is the convolution implementations. I also have a 30band equalizer set in the PC EqualizerAPO that I compare to the PC convolution based filter. They are very similar in sound quality with the convolution having a minor advantage in quality.

The RPI and Piano2.0 (no DAC DSP) sound very good on their own. The BruteFir convolution works but it's sound is not as good as the PC's EqualizerAPO. It sounds duller with less detail and I proved that by boosting the 2-5Khz range. I've tried many BruteFir settings but don't understand why. It sounds like compression (only a guess). I'm sure something (setting, format, etc) is wrong.
  Reply With Quote
Old 24th July 2017, 02:43 AM   #15
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Quote:
Originally Posted by DonVK View Post
2) Volumio2 , resample to 48KHz : mpd uses CPU@33% avg
CPU utilization seem high... Can you post your mpd.conf setting for the resampling.

I faintly recall that when I tried resampling in mpd there was one appropach that was much ore CPU intensive (both were resampling to 48kHz, just the resampling lib changed). I seem to recall that using Soxr resampling under mpd was best, but I would have to check my own mpd.conf file to confirm.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins

Last edited by CharlieLaub; 24th July 2017 at 02:45 AM.
  Reply With Quote
Old 24th July 2017, 03:50 AM   #16
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
No problem, help is always welcome.

It looks like Volumio2 is modifying "/etc/mpd.conf" so I'll post key parts for resample 48KHz (33% cpu avg) and 192KHz (55% cpu avg)

===== 48KHz =======
# Audio Output

resampler {
plugin "soxr"
quality "high"
threads "0"
}

audio_output {
type "alsa"
name "alsa"
device "hw:1,0"
dop "no"
format "48000:*:2"

===== 192KHz ===========
# Audio Output

resampler {
plugin "soxr"
quality "high"
threads "0"
}

audio_output {
type "alsa"
name "alsa"
device "hw:1,0"
dop "no"
format "192000:*:2"

=======================
  Reply With Quote
Old 24th July 2017, 04:07 AM   #17
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Default Correction : "top" default is %core not %total CPU

Correction.

It occurred to me that there are 4 cores and I don't know how "top" treats them. Turns out, the default for "top" is %core and not %total. You can shift to %total using [shift][i] while "top" is running. So take all those previous numbers and divide /4 for %total cpu. That is much better.

Correction for Raspberry Pi with Piano2.1 DAC DSP and Volumio2

1) Volumio2 only : mpd uses CPU@1% avg (cycles from 0.25% to 2%)
2) Volumio2 , resample to 48KHz : mpd uses CPU@8% avg
3) Volumio2 , BruteFir2 64K taps uses CPU@9%, mpd uses CPU@1%
3) Volumio2 , BruteFir2 128K taps uses CPU@10%, mpd uses CPU@1%

Correction for Raspberry Pi with Piano2.1 DAC DSP and Volumio2

1) resample 48KHz (8% cpu avg) and 192KHz (14% cpu avg)
  Reply With Quote
Old 7th August 2017, 03:57 AM   #18
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Default more BruteFir

Another trial, and getting a little closer.

I found Brutefir will work with the Piano DAC in 2.1 mode. For some reason there is a delay of nearly 30sec to resume operation when enabling the brutefir plugin when the 2.1 mode with sub is enabled. I can only assume processes are being restarted. It's only a one time event, on mode switches, and I was too impatient before.

This time I used a 16K tap with 32b LPCM from RePhase. It sounds OK but there are some issues. When I select a 16K tap I get a short delay echo, however when I select 8K tap it works fine. The volume seems to be down 6db or so and I still think some HF is missing. The good news is that the shorter tap only takes 14% of a core per side, so overall 7% of the CPU.

Looks like I need to dig through "conf" files now.
  Reply With Quote
Old 12th August 2017, 03:23 PM   #19
balbuze is offline balbuze
diyAudio Member
 
Join Date: Oct 2014
Default hi here !

I'm balbuze. I wrote the plugin brutefir for volumio2.
I'm happy to see I'm not the only user of it ! Just to say that if you think/need more/other settings/features for the plugin, let me know. If possible, I'll add them.
I'm not a specialist of brutefir but I did the plugin to make as easy as possible the installation and settings. So maybe I missed something.
Reading the thread I made change in the plugin.
I uploaded a new version in wich the output device appears clearly (example : "Iqaudio DAC plus through brutefir") instead of "brutefir plugin" . The i2s dac still appears as desactivated, but it is not! Don't worry about that and don't try to correct it or the plugin won't work.
Let me know.
  Reply With Quote
Old 27th August 2017, 12:11 PM   #20
DonVK is offline DonVK  Canada
diyAudio Member
 
DonVK's Avatar
 
Join Date: Jan 2017
Location: Ottawa
Quote:
Originally Posted by balbuze View Post
I'm balbuze. I wrote the plugin brutefir for volumio2.
I'm happy to see I'm not the only user of it ! Just to say that if you think/need more/other settings/features for the plugin, let me know. If possible, I'll add them.
I'm not a specialist of brutefir but I did the plugin to make as easy as possible the installation and settings. So maybe I missed something.
Reading the thread I made change in the plugin.
I uploaded a new version in wich the output device appears clearly (example : "Iqaudio DAC plus through brutefir") instead of "brutefir plugin" . The i2s dac still appears as desactivated, but it is not! Don't worry about that and don't try to correct it or the plugin won't work.
Let me know.
Thanks Balbuze, I have loaded the new version and the relabeling does make it clearer. For some reason, I was not notified when you posted this so my response is a bit late. I have read a number of other posts ( balbuze/volumio-plugins - Gitter ) that have helped and I appreciate the effort that you put into the plugin. I'm currently occupied with my other project OmniDirectional - work in progress that will eventually use the RPI. There is still a difference in sound (using same filter) between Brutefir and EQ-APO that I think is related to settings. I'll let you know what I find.
  Reply With Quote

Reply


Raspberry Pi with Piano2.1 DAC DSP and Volumio2Hide 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
DAC for Raspberry Pi LaxAnErde Digital Line Level 24 26th April 2018 05:58 AM
Tutorial: Raspberry Pi as Music Server, DSP, and Crossover jrubins PC Based 75 6th January 2017 04:28 AM
DSP for the Raspberry Pi usul27 Digital Line Level 39 30th August 2016 07:29 AM
Which DAC for Raspberry Pi? Miller-8 PC Based 14 10th August 2016 03:18 AM
Raspberry Pi DAC Help! pamantea Digital Source 26 8th November 2015 07:50 PM


New To Site? Need Help?

All times are GMT. The time now is 08:09 AM.


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