RUNE Audio and Brutefir (Convolver for Roomcorrection)

Build/modify/repair equipment and improve systems performance by yourself

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby theSuede » 19 May 2015, 15:33

jonas18z wrote:Do you know any good simple tutorial for BruteFIR to make a Roomcorrection?


Maybe start with an overview here:
http://www.minidsp.com/applications/dig ... correction
-Those are mostly walkthroughs on a higher level, but it gives you an understanding of the steps involved at least.

Align2 is one common free solution, unless you want to get into DRC (http://drc-fir.sourceforge.net/) and setup all parameters for the correction for yourself.
Retreiving the initial measurements (used to create the correction signal(s) is often done with REW or with HolmImpulse.
To shape individual channels (to use the convolution as a crossover network) you need much more involved information, since individual phase and magnitude responses need to be matched and time-aligned - and also well chosen for the speaker elements used! - to give you good results - for now that's maybe too much. Read up on loudspeaker construction theory and acoustic theory first... :)
theSuede
 
Posts: 2
Joined: 18 May 2015, 01:01

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby tux » 05 Jun 2015, 21:05

I keep trying and trying following the instructions above with no luck. mpd log shows:

Code: Select all
Jun 05 23:04 : errno: "pipe-brutefir-4416" [pipe] failed to play: Write error on pipe: Broken pipe
Jun 05 23:04 : output: Failed to open audio output


Any suggestions?
User avatar
tux
 
Posts: 34
Joined: 22 Jan 2014, 23:39
Location: Greece

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby Da Alchemist » 12 Dec 2015, 17:49

Sorry for being absent a long time :oops: . Fact is I do not use Runeaudio any more because i did not understand how to compile things by myself on Arch. :oops:
I gave some tips on the other forum, but the steps in Rune are basically the same. I do not use the other "Player" either, but I do use MPD. At the moment i use the pi as player DSP (Room Correction) and Crossover sending multichannel PCM via HDMI to an AVR. This deserves some Kernel modification.

https://volumio.org/forum/volumio-with- ... t3635.html


Regards
Da Alchemist
 
Posts: 13
Joined: 06 Mar 2015, 09:16

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby danhilu » 16 Dec 2015, 22:05

Hi Da Alchemist,
Thank you for posting, this his helpfull.
You mention "i use the pi as player DSP (Room Correction) and Crossover sending multichannel PCM via HDMI to an AVR".
With multichannel do you mean 2 (right / left) or 4 or 6 (i.e. left right combined with low / med / high) ?
In case you managed to output 4 or 6 channel to PCM via HDMI on the Raspbery Pi I would be very gratefull to have details (and I would not be alone see http://rtaylor.sites.tru.ca/2013/06/25/ ... are-howto/ no solution yet on the Pi).
Danke im voraus fuer deinen Feedback
Daniel.
danhilu
 
Posts: 1
Joined: 16 Dec 2015, 21:46

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby cmsgarb » 17 Dec 2015, 06:31

hi Da Alchemist,

regarding regarding brutefir on Runeaudio I have one question. how did you manage to edit mpd.conf permanently. I also tried brutefir on Runaudio but observed thar after reboot I get the original mpd.conf


Best Regards

Christian


Gesendet von iPad mit Tapatalk
cmsgarb
 
Posts: 2
Joined: 17 Dec 2015, 06:22

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby Da Alchemist » 20 Dec 2015, 13:56

I remember i had the same Problem with the mpd.conf. But i do not know anymore how i solved it ..... :oops: I think i always changed the mpd.conf via nano, after that do not change anything via gui.

Sound via HDMI is always working with two channels e.g. left, right , if you would like to use more than two channels,
you have to compile your own kernel.
The settings from the sound/arm/bcm2835-pcm.c have to be changed in the kernel source.

Code: Select all
.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
        .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
        .rate_min = 8000,
        .rate_max = 48000,
        .channels_min = 1,
        .channels_max = 8,


You do not need to change the rate to values above 48000 Hz, you will run in to trouble, as you can see in this thread. https://github.com/raspberrypi/linux/issues/1000.

Even on a singlecore Pi i am able to run MPD, Brutefir with four Channels and 8192 Taps per Channel.

Regards
Da Alchemist
 
Posts: 13
Joined: 06 Mar 2015, 09:16

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby cmsgarb » 20 Dec 2015, 23:29

thanks.....


Gesendet von iPad mit Tapatalk
cmsgarb
 
Posts: 2
Joined: 17 Dec 2015, 06:22

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby Da Alchemist » 23 Dec 2015, 08:19

@danhilu

I gave some advice to the multichannel thing here: http://www.diy-hifi-forum.eu/forum/show ... stcount=87

Regards
Da Alchemist
 
Posts: 13
Joined: 06 Mar 2015, 09:16

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby jrubins » 15 Feb 2016, 05:08

Da Alchemist wrote:@danhilu

I gave some advice to the multichannel thing here: http://www.diy-hifi-forum.eu/forum/show ... stcount=87

Regards


@Da Alchemist do you happen to have a translation of your instructions?
From what I gather, you need to have an updated kernel?
I ran the update script as described here: https://github.com/raspberrypi/linux/pull/1257 , but I still only get two channels.
Are you using runeaudio for this? I suspect not, since you're instructions reference apt-get.
I don't think this can be done in Rune audio's distro, can it? I switched to raspbian to use richard taylor's instructions: http://rtaylor.sites.tru.ca/2013/06/25/ ... ware-howto

The problem is that Alsa seems to only output 2 channels. Does brutefir avoid that problem?

I want to make a 3 channel crossover and dsp.

Thanks,
James
jrubins
 
Posts: 7
Joined: 11 Feb 2016, 18:09

Re: RUNE Audio and Brutefir (Convolver for Roomcorrection)

Postby AlleyCat » 27 Feb 2016, 22:44

Hi there,
I have been setting up filets with MiniDSP for a while and am familiar with measuring acoustics. I am specifically interested to run the filters on the RuneAudio. I followed the tutorials provided by Da Alchemist and info posted at https://volumio.org/forum/volumio-with- ... t3635.html. Thank you all!

I am getting no sound to the DAC. Can you please review where my configuration may fail?

Hardware is Pi2B with HiFiBerryDAC+.

RuneAudio is 0.3beta with GUI update.
MPD is 0.19.6-1

play -l
[root@rune2 home]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Output section of /etc/mpd.conf
audio_output {
type "pipe"
name "brutefir pipe"
command "/usr/local/bin/brutefir -nodefault /home/.brutefir.conf 2>/dev/null"
format "44100:32:2"
}

.brutefir.config

sampling_rate: 44100;
filter_length: 32768,16;
overflow_warnings: true;
float_bits: 64;

input "left", "right" {
device: "file" {path: "/dev/stdin";};
sample: "FLOAT64_LE"; # sample format
channels: 2; # number of open channels / which to use
delay: 0,0; # delay in samples for each channel
maxdelay: -1; # max delay for variable delays
mute: false,false; # mute active on startup for each channel
};

output "left", "right" {
# device: "file" {path: "/dev/stdout";};
device: "alsa" { device: "hw:0,0"; };
sample: "S16_LE"; # sample format
channels: 2; # number of open channels / which to use
delay: 0,0; # delay in samples for each channel
maxdelay: 100; # max delay for variable delays
mute: false,false; # mute active on startup for each channel
dither: false; # no dither for 32 bit output
};

# factor 0.4 to avoid clipping
filter "M direct" {
from_inputs: "left"//0.4, "right"//0.4;
to_filters: "left direct", "right direct";
coeff: -1;
crossfade: false;
};

# here 0.8 instead of 0.4 because the filter "in average" multiplies with 0.5
# (one could make 0.8 a bit larger/smaller to obtain a wider/narrower
# stereo image, but better use RACE for this)
filter "S filter" {
from_inputs: "left"//0.8, "right"//-0.8;
to_filters: "left direct", "right direct";
#coeff: "S channel";
coeff: -1;
crossfade: false;
};

filter "left direct" {
from_filters: "M direct"//1.0, "S filter"//1.0;
to_outputs: "left"/0.0;
#coeff: "left_default";
coeff: -1;
crossfade: false;
};

filter "right direct" {
from_filters: "M direct"//1.0, "S filter"//-1.0;
to_outputs: "right"/0.0;
#coeff: "right_default";
coeff: -1;
crossfade: false;
};


Thank you

AlleyCat
AlleyCat
 
Posts: 13
Joined: 26 Feb 2016, 01:50

support RuneAudio Donate with PayPal

PreviousNext

Return to DIY and tweaks

Who is online

Users browsing this forum: No registered users and 1 guest