diyAudio

diyAudio (https://www.diyaudio.com/forums/index.php)
-   PC Based (https://www.diyaudio.com/forums/pc-based/)
-   -   CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc. (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc.html)

wineds 30th September 2020 07:41 AM

Bingo! All good now. Thanks Henrik!

Fra8123 30th September 2020 06:25 PM

Dear All, I would like to start learning abuot room correction, in fact I would like to buy the mic miniDSP UMIK-1 but before to buy it, I would like to be sure I can apply the room correction file found with REW.



I am using a RPI 4 (2 GB of RAM) with picoreplayer. I would like to use CamillaDSP to apply room correction in real time.



Can I use CamillaDSP with picoreplayer?


I do not how to use linux, could you give me some instruction in order to proceed with the installation?


Thank you so much in advance.

HenrikEnquist 30th September 2020 07:32 PM

Quote:

Originally Posted by Fra8123 (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc-post6359330.html#post6359330)
Dear All, I would like to start learning abuot room correction, in fact I would like to buy the mic miniDSP UMIK-1 but before to buy it, I would like to be sure I can apply the room correction file found with REW.



I am using a RPI 4 (2 GB of RAM) with picoreplayer. I would like to use CamillaDSP to apply room correction in real time.



Can I use CamillaDSP with picoreplayer?


I do not how to use linux, could you give me some instruction in order to proceed with the installation?


Thank you so much in advance.

This is the same setup that Jesper (lykkedk) is using. He made some modifications to squeezelite and scripts for changing sample rate. There is a very nice readme here for setting it all up: GitHub - Lykkedk/SuperPlayer: Hacking software & scripts to play music


The scripts for changing the sample rate have to be slightly modified to work with the latest version of CamillaDSP, see posts 882, 887 and 890!

Fra8123 30th September 2020 07:55 PM

Thank you so much for your quick answer and for the link!


I will try to understand something, cross fingers! You are all genius for me.


Thank you for sharing your project!!

lykkedk 1st October 2020 04:39 PM

1 Attachment(s)
Hi guy's here!

I missed you all :grouphug:...
Well i was away for nearly two months filling my sparetime building a new shed for our garden; turned out pretty well, but took too much time...

I will try to catch up again... and try to make the new version CamillaDSP work with my SuperPlayer.

OFFTOPIC below :)
Btw. : I was writing with the nice guy Alan, who wrote the DRC designer program, and he was kindly creating a version which does not delete the PCM files.
The .PCM files can be renamed to .bin and used directly in CamillaDSP convolver.
The link is here:: http://www.alanjordan.org/DRCDesigne...tup-Jesper.exe


Jesper.

lykkedk 1st October 2020 06:17 PM

Henrik.

I installed the version::
Release v0.4.0 beta 3 * HEnquist/camilladsp * GitHub

I can get the .yml config's to change by modifying the syntax:
Code:

from subprocess import *
import time

from websocket import create_connection
ws = create_connection("ws://127.0.0.1:3011")

ws.send('{"SetConfigName": "/home/tc/DSP_Engine/filters/null_44100.yml"}')
ws.send('"Reload"')

It's working, but wonder if the "debug -v" messages looks right; example here i change samplerate from 44100 to 192000:
Quote:

2020-10-01T18:06:25Z DEBUG camilladsp] Playback thread ready to start
[2020-10-01T18:06:25Z DEBUG camillalib::alsadevice] Starting captureloop
[2020-10-01T18:06:25Z DEBUG camillalib::alsadevice] Starting playback loop
[2020-10-01T18:06:25Z INFO camillalib::alsadevice] Capture device supports rate adjust
[2020-10-01T18:06:25Z INFO camillalib::alsadevice] Starting playback from Prepared state
[2020-10-01T18:06:25Z DEBUG tungstenite::handshake::server] Server handshake done.
[2020-10-01T18:06:25Z DEBUG camillalib::socketserver] parsed command: Ok(SetConfigName("/home/tc/DSP_Engine/filters/null_44100.yml"))
[2020-10-01T18:06:25Z DEBUG camillalib::socketserver] parsed command: Ok(Reload)
[2020-10-01T18:06:25Z WARN camillalib::socketserver] Lost connection: IO error: Connection reset by peer (os error 104)
[2020-10-01T18:06:25Z DEBUG camilladsp] Reloading configuration...
[2020-10-01T18:06:25Z DEBUG camilladsp] Reload using config file
[2020-10-01T18:06:25Z DEBUG camilladsp] No changes in config.
[2020-10-01T18:13:35Z DEBUG tungstenite::handshake::server] Server handshake done.
[2020-10-01T18:13:35Z DEBUG camillalib::socketserver] parsed command: Ok(SetConfigName("/home/tc/DSP_Engine/filters/null_192000.yml"))
[2020-10-01T18:13:35Z DEBUG camillalib::socketserver] parsed command: Ok(Reload)
[2020-10-01T18:13:35Z DEBUG camilladsp] Reloading configuration...
[2020-10-01T18:13:35Z DEBUG camilladsp] Reload using config file
[2020-10-01T18:13:35Z DEBUG camilladsp] Devices changed, restart required.
[2020-10-01T18:13:35Z WARN camillalib::socketserver] Lost connection: IO error: Connection reset by peer (os error 104)
[2020-10-01T18:13:35Z DEBUG camilladsp] Restarting with new config
[2020-10-01T18:13:35Z DEBUG camilladsp] Wait for config
[2020-10-01T18:13:35Z DEBUG camilladsp] Config ready
Jesper.

HenrikEnquist 1st October 2020 06:18 PM

Nice! Of course we all know you didn't actually need a shed, and the real reason is to hide the entrance to your secret underground lab... :)

HenrikEnquist 1st October 2020 06:28 PM

Quote:

Originally Posted by lykkedk (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc-post6360529.html#post6360529)
Henrik.

I installed the version::
Release v0.4.0 beta 3 * HEnquist/camilladsp * GitHub

I can get the .yml config's to change by modifying the syntax:
Code:

from subprocess import *
import time

from websocket import create_connection
ws = create_connection("ws://127.0.0.1:3011")

ws.send('{"SetConfigName": "/home/tc/DSP_Engine/filters/null_44100.yml"}')
ws.send('"Reload"')

It's working, but wonder if the "debug -v" messages looks right; example here i change samplerate from 44100 to 192000:


Jesper.

I think what happens is that you send the Reload command, and then exit the Python program right after. This closes the connection without shutting it down it nicely. Also the websocket server tries to send a reply to both commands. The error probably comes after it tries to reply on a closed connection.
You can add a ws.recv() after each command to get the replies. You can just ignore the replies, or perhaps print them. And add ws.close() at the end to close the connection nicely.

lykkedk 1st October 2020 06:47 PM

Cool... Yes my shed is an secret entrance ofcause... busted :mad:

Well.

I was looking at the nice gui, but i'am in doubt what i need to have running on the Picoreplayer/Tinycore linux dist.

I have this running on the Picoreplayer now:
python3.6
websocket-client
CamillaDSP
Custom-squeezelite



I need to have as little as possible running on the Picoreplayer, so what is the minimum we need to have to connect to CamillaDSP from a laptop or like?
I will then start to create Picoreplayer/TinyCoreLinux .tcz extensions for thoose needed :)

Jesper.

HenrikEnquist 1st October 2020 07:49 PM

Quote:

Originally Posted by lykkedk (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc-post6360555.html#post6360555)

I have this running on the Picoreplayer now:
python3.6
websocket-client
CamillaDSP
Custom-squeezelite



I need to have as little as possible running on the Picoreplayer, so what is the minimum we need to have to connect to CamillaDSP from a laptop or like?

Right now, you would need all of these python packages:
- aiohttp
- pycamilladsp
- pycamilladsp-plot
- numpy
- matplotlib


Both numpy and matplotlib are quite big, maybe not something you want on a tiny system. They are only used to plot filters and pipelines. It would be possible to make these features optional, and let the backend enable them if the libraries are available. Then you would only need to add pycamilladsp and aiohttp.


All times are GMT. The time now is 02:46 AM.


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

Wiki