Go Back   Home > Forums > >

PC Based Computer music servers, crossovers, and equalization

CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.
CamillaDSP - Cross-platform 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
Old 28th July 2020, 03:42 PM   #631
TNT is offline TNT  Sweden
diyAudio Member
 
Join Date: Apr 2003
Location: Sweden
CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.
Thanks - is there also a command in the Terminal?

//
__________________
More distortion to the people! Timing . . . . is paramount.
  Reply With Quote
Old 28th July 2020, 03:57 PM   #632
flangaman is offline flangaman  Italy
diyAudio Member
 
Join Date: Sep 2014
Location: Treviso - ITALY
Quote:
..Then most likely you are just hearing sound from pulseaudio directly, without camilladsp
No, it's all ok.
I can ear the filters effect:
no bass frequencies on right channel and no high frequencies on the left (or the other way around).
The sound is clean.

Now I don't have time to continue, but then I go back there.

Thank you jiiteepee.
The problem was really "type: Conv".
  Reply With Quote
Old 28th July 2020, 06:15 PM   #633
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Quote:
Originally Posted by TNT View Post
Thanks - is there also a command in the Terminal?

//
No it's only meant as an example to show how to use cpal. It just happens to be useful as a stand alone tool

Quote:
Originally Posted by flangaman View Post
No, it's all ok.
I can ear the filters effect:
no bass frequencies on right channel and no high frequencies on the left (or the other way around).
The sound is clean.

Now I don't have time to continue, but then I go back there.

Thank you jiiteepee.
The problem was really "type: Conv".
So camilladsp is definitely running then! Was it perhaps started by systemd?
  Reply With Quote
Old 28th July 2020, 07:35 PM   #634
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Quote:
Originally Posted by HenrikEnquist View Post
The error message should be a lot more detailed. Instead of "invalid string literal" it shoud say something like "Can't read number on line 123 of file somefile.txt" I'll fix that in the next version!
This is the improved error message from what will become release 0.3.2:
Quote:
[2020-07-28T19:32:46Z ERROR camilladsp] Can't parse value on line 18 of file 'filter_broken.txt', error: invalid float literal
  Reply With Quote
Old 28th July 2020, 07:52 PM   #635
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Quote:
Originally Posted by TNT View Post
Q is really very common - I vote to incorporate Q - also.

Well, if not for that e.g. REWs EQ function outputs F, Q and Gain. I'd go so far that I think it would be nice if Camilla could import the files that function exports - i.e. a text list of biquads. See attachment... Slope is also good :-)

Filter Settings file

Room EQ V5.19
Dated: Jul 28, 2020 10:48:56 AM

Notes:G2 filts

Equaliser: rePhase
Jul 25 23:18:01
Filter 1: ON PK Fc 297 Hz Gain -5.9 dB Q 2.580
Filter 2: ON PK Fc 406 Hz Gain 2.5 dB Q 2.610


//
Ok I'll add a way to specify shelves also with Q.
The REW syntax for defining filters is IMHO horrible to work with.. To handle all the possible different filter types with their different parameters, you need a gigantic tree of ifs, else-ifs and elses. No thanks!


Quote:
Originally Posted by fluid View Post
Rephase uses constant Q by default and that is what REW uses when in that mode. The generic equalizer is different again. Matching the Q of any equaliser is quite a difficult task unless the method is disclosed. I have done it a few times and it is a real time waster.

Proportional Q looks much like constant at low boost but is completely different with high boost.

Biquads avoid this problem as they specify the coefficients directly.
Constant Q is the only one I plan to support at the moment. I have only seen descriptions of proportinal Q solutions, no formulas. But I haven't spent any time searching.
  Reply With Quote
Old 28th July 2020, 08:14 PM   #636
TNT is offline TNT  Sweden
diyAudio Member
 
Join Date: Apr 2003
Location: Sweden
CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.
OK!

Currently I use this to create BQs: .xls

Is there a brute 5 coefficient biquad input possibility in Camilla now? I live in the notion that if one can enter this way, one can enter any filter really, even Linqwitz transforms...?

//
__________________
More distortion to the people! Timing . . . . is paramount.
  Reply With Quote
Old 28th July 2020, 08:29 PM   #637
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Quote:
Originally Posted by TNT View Post
OK!

Currently I use this to create BQs: .xls

Is there a brute 5 coefficient biquad input possibility in Camilla now? I live in the notion that if one can enter this way, one can enter any filter really, even Linqwitz transforms...?

//
Yes there is "Free" Biquad where you just give the coefficients. There is one thing to watch out for: MiniDSP uses the opposite sign of a1 and a2 compared to pretty much everyone else. To use coefficients meant for a MiniDSP, just flip the sign of a1 and a2.


Linkwitz transform is already built in!
Quote:
LinkwitzTransform
  • A Linkwitz transform to change a speaker with resonance frequency freq_act and Q-value q_act, to a new resonance frequency freq_target and Q-value q_target.
  Reply With Quote
Old 29th July 2020, 04:16 PM   #638
flangaman is offline flangaman  Italy
diyAudio Member
 
Join Date: Sep 2014
Location: Treviso - ITALY
Hi Henrik.
I had made the mistake of defining a biquad filter as a * .txt file, writing:
"type: Conv" (convolution?)
but this definition is reserved for FIR filters.
And it seemed very natural to me that it was possible.
I invite you to consider changing "Conv" to "FIR", then
"type: FIR",
to inaugurate the new type:
"type: IIR".
This would make it easier to write filters from an editor application, since the position of the definition lines would be fixed.
I am quite skilled (bravo) with Execel sheets.
It is easy to have a graphic response of each set of filters and the resulting sum of all.
It is easy to import and superimpose reference curves and frequency responses.
Conversion factors for shelf filters can be introduced to transform the slope into Q and Q into other Q.
An Execell sheet can be friendly if it's well done.
I want do it
It is a great commitment for me and I would be happy to share its development and verification.
I'm sure many of you are more skilled than I am.
  Reply With Quote
Old 29th July 2020, 07:27 PM   #639
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Hi,
Yes Conv means Convolution, I shortened it because I thought the word was a bit long in the config.
I don't understand where you want to change to FIR, could you write an example of how you want it to look?

There are several types of IIR filters, they are Biquad, BiquadGroup and DiffEq. If I rename to IIR I would need to add another level to specify which type of IIR.

I want to keep the configuration in one file as much as possible. The fir coefficients are the necessary exception, but the rest should really be in one file. Splitting into several files causes a lot of trouble for example when sending configs via the websocket. It also makes it difficult when using python to manage the config. In python you can easily load a config into a python object, modify values, add or remove filters etc, and then export it as a new yaml file.

Is it possible to handle yaml in Excel? Perhaps you could make something that generates a text block for a filter, ready to be copy pasted into thd yaml.
  Reply With Quote
Old 29th July 2020, 07:55 PM   #640
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
I have been playing around a bit more on the Mac, and have had some trouble with the BlackHole virtual sound card. Sometimes it doesn't work to capture audio from it. It happens both with CamillaDSP and the record_wav example from Cpal.
I don't know if the bug that causes this is in BlackHole or Cpal, but using Soundflower instead of BlackHole seems to make the problem go away.
Did anyone else have problems with BlackHole?
  Reply With Quote

Reply


CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.Hide this!Advertise here!
Thread Tools

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
Writing a Cross-Platform, Free Software Modeling Tool and TS-Parameter DB justinzane Software Tools 6 31st December 2013 06:55 AM
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 06:03 AM.


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