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

CamillaDSP - a flexible linux IIR and FIR engine for crossovers, room correction etc.
CamillaDSP - a flexible linux IIR and FIR engine for crossovers, room correction etc.
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 23rd May 2020, 05:18 AM   #431
3ll3d00d is offline 3ll3d00d  United Kingdom
diyAudio Member
 
3ll3d00d's Avatar
 
Join Date: Jan 2014
Quote:
Originally Posted by fluid View Post
Jriver has it in it's convolution engine and it allows to not be concerned over the level of the impulse filter being too low or too high, so it actually prevents clipping in their implementation.

Jrivers use is targeted at speaker tuning not reverb. I find it very useful
This is just a -6dB level adjustment
  Reply With Quote
Old 23rd May 2020, 06:41 AM   #432
fluid is offline fluid  Australia
diyAudio Member
 
Join Date: Jan 2009
According to the Jriver wiki you are right, that is not what I thought it did at all
  Reply With Quote
Old 24th May 2020, 07:09 AM   #433
lykkedk is offline lykkedk  Denmark
diyAudio Member
 
lykkedk's Avatar
 
Join Date: Dec 2002
Location: Denmark, Fredericia
Quote:
Originally Posted by fluid View Post
According to the Jriver wiki you are right, that is not what I thought it did at all
Seem's to cure my "problem"

Quote:
With none gain corrected filter :

2020-05-24T06:57:07Z WARN camilladsp::conversions] Clipping detected, 100 samples clipped, peak 136.72538361247942%
[2020-05-24T06:57:07Z DEBUG camilladsp::alsadevice] Current buffer level 2018, set capture rate to 99.993744%
[2020-05-24T06:57:07Z DEBUG camilladsp] SetSpeed message reveiced
[2020-05-24T06:57:07Z WARN camilladsp::conversions] Clipping detected, 32 samples clipped, peak 122.46925747955886%
[2020-05-24T06:57:07Z WARN camilladsp::conversions] Clipping detected, 1 samples clipped, peak 100.63506757672964%
[2020-05-24T06:57:08Z WARN camilladsp::conversions] Clipping detected, 13 samples clipped, peak 114.16722247695161%

Adding this to pipeline cured the clipping :

clipgain_L:
type: Gain
parameters:
gain: -6.0
inverted: false

clipgain_R:
type: Gain
parameters:
gain: -6.0
inverted: false

No clipping anymore :

2020-05-24T06:59:32Z DEBUG camilladsp::alsadevice] Current buffer level 2034, set capture rate to 99.997086%
[2020-05-24T06:59:32Z DEBUG camilladsp] SetSpeed message reveiced
[2020-05-24T06:59:37Z DEBUG camilladsp::alsadevice] Current buffer level 2047, set capture rate to 99.999794%
[2020-05-24T06:59:37Z DEBUG camilladsp] SetSpeed message reveiced
[2020-05-24T06:59:42Z DEBUG camilladsp::alsadevice] Current buffer level 2026, set capture rate to 99.995415%
Jesper.
__________________
DCG3 Dual DCSTB, AK4490 Dual SuperDAC
AlephJ Mimi! http://www.diyaudio.com/forums/pass-...mimi-mini.html
  Reply With Quote
Old 27th May 2020, 08:13 PM   #434
lykkedk is offline lykkedk  Denmark
diyAudio Member
 
lykkedk's Avatar
 
Join Date: Dec 2002
Location: Denmark, Fredericia
Hello..

I'am running CamillaDSP 0.0.13 on my laptop for some test's now.
(Same issues on my RPI's)

I recently discovered that when i run .bin files in my pipeline the filter are working.
(generated in rePhase)
Quote:
L_prefir:
type: Conv
parameters:
type: File
filename: /home/lykke/home/Pre_filter/44100/L_red_RP_44100.bin
format: FLOAT32LE

R_prefir:
type: Conv
parameters:
type: File
filename: /home/lykke/home/Pre_filter/44100/R_red_RP_44100.bin
format: FLOAT32LE
But when i run the same files, but in .wav (also generated in rePhase) i got this error:
Code:
lykke@Lykkedk:~/home$ camilladsp -v /home/lykke/home/test_Red_44100.yml
[2020-05-27T19:36:43Z DEBUG camilladsp] Read config file Some("/home/lykke/home/test_Red_44100.yml")
[2020-05-27T19:36:43Z DEBUG camilladsp::filters] Read file: /home/lykke/home/Pre_filter/44100/L_red_RP_44100.wav, number of coeffs: 16433
[2020-05-27T19:36:43Z DEBUG camilladsp::filters] Read file: /home/lykke/home/Pre_filter/44100/R_red_RP_44100.wav, number of coeffs: 16433
[2020-05-27T19:36:43Z DEBUG camilladsp] Config is valid
[2020-05-27T19:36:43Z DEBUG camilladsp] Wait for config
[2020-05-27T19:36:43Z DEBUG camilladsp] Config ready
[2020-05-27T19:36:43Z DEBUG camilladsp::filters] Build new pipeline
[2020-05-27T19:36:43Z DEBUG camilladsp::filters] Build from config
[2020-05-27T19:36:43Z DEBUG camilladsp::filters] Read file: /home/lykke/home/Pre_filter/44100/L_red_RP_44100.wav, number of coeffs: 16433
[2020-05-27T19:36:43Z DEBUG camilladsp::alsadevice] Opened audio output "camilla_in" with parameters: HwParams { channels: Ok(2), rate: "Ok(44100) Hz", format: Ok(S16LE), access: Ok(RWInterleaved), period_size: "Ok(512) frames", buffer_size: "Ok(8192) frames" }, SwParams(avail_min: Ok(512) frames, start_threshold: Ok(3584) frames, stop_threshold: Ok(8192) frames)
[2020-05-27T19:36:43Z DEBUG camilladsp] Capture thread ready to start
[2020-05-27T19:36:43Z DEBUG camilladsp::alsadevice] Opened audio output "sound_out" with parameters: HwParams { channels: Ok(2), rate: "Ok(44100) Hz", format: Ok(S16LE), access: Ok(RWInterleaved), period_size: "Ok(512) frames", buffer_size: "Ok(8192) frames" }, SwParams(avail_min: Ok(512) frames, start_threshold: Ok(3584) frames, stop_threshold: Ok(8192) frames)
[2020-05-27T19:36:43Z DEBUG camilladsp] Playback thread ready to start
[2020-05-27T19:36:44Z DEBUG camilladsp::fftconv_fftw] Conv L_prefir is using 5 segments
[2020-05-27T19:36:44Z DEBUG camilladsp::filters] Build from config
[2020-05-27T19:36:44Z DEBUG camilladsp::filters] Read file: /home/lykke/home/Pre_filter/44100/R_red_RP_44100.wav, number of coeffs: 16433
[2020-05-27T19:36:44Z DEBUG camilladsp::fftconv_fftw] Conv R_prefir is using 5 segments
[2020-05-27T19:36:44Z DEBUG camilladsp::filters] Build from config
[2020-05-27T19:36:44Z DEBUG camilladsp::filters] Build from config
[2020-05-27T19:36:44Z DEBUG camilladsp::processing] build filters, waiting to start processing loop
[2020-05-27T19:36:44Z DEBUG camilladsp::alsadevice] Starting playback loop
[2020-05-27T19:36:44Z DEBUG camilladsp::alsadevice] Starting captureloop
[2020-05-27T19:36:44Z INFO  camilladsp::alsadevice] Capture device supports rate adjust
[2020-05-27T19:36:44Z DEBUG camilladsp::conversions] bad float NaN
[2020-05-27T19:36:44Z DEBUG camilladsp::conversions] bad float NaN
[2020-05-27T19:36:44Z DEBUG camilladsp::conversions] bad float NaN
[2020-05-27T19:36:44Z DEBUG camilladsp::conversions] bad float NaN
[2020-05-27T19:36:44Z DEBUG camilladsp::conversions] bad float NaN
Strangewavs

I have no clue what's wrong with the .wav's ?
I tried everything with no luck, i think i am doing something wrong?

Does anyone care to look at them .wav's ?

Jesper.
__________________
DCG3 Dual DCSTB, AK4490 Dual SuperDAC
AlephJ Mimi! http://www.diyaudio.com/forums/pass-...mimi-mini.html
  Reply With Quote
Old 27th May 2020, 08:50 PM   #435
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Wav format is not supported for filter coefficents! Use raw format (.bin or .dbl) instead. There is most likely nothing wrong with the wav files themselves, but it's not supposed to work .


I have been thinking about adding support for wav, but I'm leaning towards not doing it. To make it work reliably I need to parse the header properly. The data can be in many different formats, and there is often more tags with metadata after the fixed 44-byte header. Just skipping the first 44 bytes will only work sometimes.
  Reply With Quote
Old 28th May 2020, 12:49 PM   #436
lykkedk is offline lykkedk  Denmark
diyAudio Member
 
lykkedk's Avatar
 
Join Date: Dec 2002
Location: Denmark, Fredericia
Quote:
Originally Posted by HenrikEnquist View Post
Wav format is not supported for filter coefficents! Use raw format (.bin or .dbl) instead. There is most likely nothing wrong with the wav files themselves, but it's not supposed to work .


I have been thinking about adding support for wav, but I'm leaning towards not doing it. To make it work reliably I need to parse the header properly. The data can be in many different formats, and there is often more tags with metadata after the fixed 44-byte header. Just skipping the first 44 bytes will only work sometimes.
Yep... ... I got it Henrik!
I learned a lot about converting stuff with this "issue"
It's like that when one invents it's own problems

Jesper.
__________________
DCG3 Dual DCSTB, AK4490 Dual SuperDAC
AlephJ Mimi! http://www.diyaudio.com/forums/pass-...mimi-mini.html
  Reply With Quote

Reply


CamillaDSP - a flexible linux IIR and FIR engine for crossovers, room correction etc.Hide 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
The room correction or speaker correction? What can we do with dsp power now availabl Raimonds Full Range 233 28th January 2017 07:51 AM
Introducing OpenDRC, Open Digital Room Correction engine minidsp miniDSP 20 20th January 2016 05:37 PM
What the difference between dsp room correction eq and software correction erez1012 PC Based 0 10th March 2014 07:07 PM
AirPlay + room correction on Linux choongng PC Based 12 30th November 2012 02:50 PM
FS: DAC, room-correction, active crossovers, amp, speakers! taloyd Swap Meet 4 14th April 2009 03:16 PM


New To Site? Need Help?

All times are GMT. The time now is 05:53 AM.


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