CamillaDSP for Room Correction
#1
https://github.com/HEnquist/camilladsp

The purpose of CamillaDSP is to enable audio processing with combinations of FIR (convolution) and IIR (parametric EQ, crossovers) filters. Instead of implementing BruteFIR for convolution and another for IIR, CamillaDSP could become the DSP engine for SnakeOil, and maybe a way to increase the marketing awareness of SnakeOil. According to ConvoProxy (ConvoFS) author, CamillaDSP may sound better than BruteFIR? 

It appears to be well written.  There is an ALSA plugin,which in theory can be used by all the players (?)
https://github.com/scripple/alsa_cdsp

and a Web Gui.
https://github.com/HEnquist/camillagui-backend

The out of the box build includes Pulse Audio, but there are detailed instructions for a custom build
https://github.com/HEnquist/camilladsp#customized-build

There are instructions for install (which I will try, but will be slow process for me with my limited Linux knowledge)
https://github.com/HEnquist/camilladsp-config

@agent_kith, please have a look and put it on your Todo list.  Would love to see this happening quickly, but I do understand that fine tuning 1.2 is the next priority.
Reply

#2
Created a ticket to track it (https://git.snakeoil-os.net/snakeoil/sna...issues/201). Not sure when I'll get to this as I'm only like <5% complete on the new UI.. Been meaning to post something about this but as usual shit kept happening (Microwave died so had to spend a weekend looking for one, and also had a weird issue with my dev machine's network suddenly not working any more so I had to add a different network card, and set everything up).
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • Snoopy8
Reply

#3
This is how moOde does it
https://www.bitlab.nl/page_id=665
Reply

#4
(17-May-2021, 02:34 PM)agent_kith Wrote: Created a ticket to track it (https://git.snakeoil-os.net/snakeoil/sna...issues/201). Not sure when I'll get to this as I'm only like <5% complete on the new UI.. Been meaning to post something about this but as usual shit kept happening (Microwave died so had to spend a weekend looking for one, and also had a weird issue with my dev machine's network suddenly not working any more so I had to add a different network card, and set everything up).

Wow...given all your devices that have died, crashed, or 'gone-wonky' recently I would be checking the mains supply and possibly even getting the provider to install a temporary logging device.

(17-May-2021, 12:55 PM)Snoopy8 Wrote: There are instructions for install (which I will try, but will be slow process for me with my limited Linux knowledge)
https://github.com/HEnquist/camilladsp-config

I tried adding this to Snakeoil using the pre-built Binary for Ubuntu (Reasoning that as the underlying O/S is Ubuntu it might have the best chance of success.. Smile )
Install went fine but when calling CamillaDSP it fails and crashes MyMPD.   Both use websocket to connect so this appears to be a conflict as the MyMPD error was 'websocket disconnected' when I started CamillaDSP.
I have yet to investigate further...my Linux skills being frugal too Big Grin
On the plus side the install seems to not have produced any detriment to Snakeoil.

Cheers,
Bob.
Reply

#5
(18-May-2021, 09:06 AM)Bromf Wrote: Wow...given all your devices that have died, crashed, or 'gone-wonky' recently I would be checking the mains supply and possibly even getting the provider to install a temporary logging device.
Except for the Yamaha Power amp, everything that has died about > 5 years old. Most more than 15. My microwave (may it RIP) is probably over 20 years old now. Mains supply should be better than before, just have my power board fixed to code. There is a surge protector, and mains is constant at around 230 V. Mains should be fine, it's just old age.

Would have wished my Microwave to go another 30 years though. It has fed me well for almost half my life.

(18-May-2021, 09:06 AM)Bromf Wrote: I tried adding this to Snakeoil using the pre-built Binary for Ubuntu (Reasoning that as the underlying O/S is Ubuntu it might have the best chance of success.. Smile )
Install went fine but when calling CamillaDSP it fails and crashes MyMPD.   Both use websocket to connect so this appears to be a conflict as the MyMPD error was 'websocket disconnected' when I started CamillaDSP.
I have yet to investigate further...my Linux skills being frugal too Big Grin
On the plus side the install seems to not have produced any detriment to Snakeoil.
Hopefully I can power my way with the GUI and get that out. Then I can probably work on the kernel and this at the same time. This DSP and the way it integrates with ALSA Is certainly interesting. Given the right situation, it will certainly be interesting to see somebody use SnakeoilOS as an active crossover to a 4-way setup. Just the thought of designing a UI just for that makes me drool.. Big Grin
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • Snoopy8
Reply

#6
(18-May-2021, 09:06 AM)Bromf Wrote: I tried adding this to Snakeoil using the pre-built Binary for Ubuntu (Reasoning that as the underlying O/S is Ubuntu it might have the best chance of success.. Smile )
Install went fine but when calling CamillaDSP it fails and crashes MyMPD.   Both use websocket to connect so this appears to be a conflict as the MyMPD error was 'websocket disconnected' when I started CamillaDSP.
I managed to finally get something going. Yes, am using the pre-built Ubuntu binary. I started the service manually, without websockets. Am playing to Loopback device in SnakeOil using mpd 0.22.3.  Also works with LMS, upmpdcli and Tidal.  Thumbs Up

[Image: Initial-camilladsp.jpg]

Using it for convolution room correction, currently running with only 16/44.1 files. Now looking to extend it to cover different sample rates.
https://github.com/scripple/alsa_cdsp
[-] The following 2 users Like Snoopy8's post:
  • Bromf, agent_kith
Reply

#7
Ooooh Nice!   Cool
I will try again and if not working will beg your config ... Big Grin
[-] The following 1 user Likes Bromf's post:
  • Snoopy8
Reply

#8
(19-May-2021, 02:09 PM)Bromf Wrote: Ooooh Nice!   Cool
I will try again and if not working will beg your config ... Big Grin

Check every file, easy to make a mistake or a typo. I spent a few days chasing why it was not working.  Also, remember to use Sudo on every command...
Reply

#9
CamiilaDSP works by intercepting the audio signal played to a "Loopback" device, applying DSP and then sending to an Alsa hardware port e.g. hw:1,0.

[Image: Initial-camilladsp.jpg]

The CamiilaDSP documentation is excellent and extensive but it does take a while to go through. Not sure how many people want to install CamillaDSP but here are some tips.
  1. Download the pre-built Linux versions, either amd64 or armv7 (for pi)
  2. Use WinSCP to transfer files to the SnakeOil home folder and use its editor to modify files; the home folder is a useful location to store all the files
  3. Use either a monitor attached to SnakeOil machine or PuTTY to execute commands; remember to use sudo
  4. The steps to configure are largely correct. Follow the commands in each step, using the information in the following steps.
  5. Pre-built Linux version needs a PulseAudio library (sudo apt-get install -y libpulse0)
  6. Load loopback driver using aloop.conf
  7. Edit asound.conf format and sampling rate; if possible, use playback device values
  8. Use this simple config.yaml as a start
    Code:
    devices:
      samplerate: 44100
      chunksize: 1024
      enable_rate_adjust: true
      capture_samplerate: 44100
      capture:
        type: Alsa
        channels: 2
        device: "hw:Loopback,1"
        format: S16LE
      playback:
        type: Alsa
        channels: 2
        device: "hw:Control,0"
        format: S16LE
  9. If you do not know the details of devices, use this.  Remember to use sudo with aplay.
  10. Check config file formatting by running command: camilladsp -c config.yaml
  11. Run CamillaDSP without the "-c" and play music to the first "Loopback" device in SnakeOil.  It may take time to get a working config.yaml (easy to make typo errors!). But if music plays through first "Loopback" device, you have CamillaDSP running. You can then add filters etc.
  12. To setup a service use this camilladsp.service file.  Please remember to change "/path/to" in file.
    Code:
    [Unit]
    Description=CamillaDSP Daemon
    After=syslog.target
    StartLimitIntervalSec=10
    StartLimitBurst=10

    [Service]
    Type=simple
    ExecStart=/usr/local/bin/camilladsp /path/to/config.yaml
    Restart=always
    RestartSec=1
    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=camilladsp
    User=root
    Group=root
    CPUSchedulingPolicy=fifo
    CPUSchedulingPriority=10

    [Install]
    WantedBy=multi-user.target
Please note that this install works with 20.04/1.2.0.  It does not work with 16.04/1.1.x because the kernel does not include Snd-aloop module; the kernel needs to be rebuilt with that module.
[-] The following 2 users Like Snoopy8's post:
  • hkphantomgtr, agent_kith
Reply

#10
@Bromf, did you manage to install and run CamillaDsp?
Reply



Bookmarks



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Installation of SnakeOil OS 1.3.0 on RPi...
Last Post: agent_kith
Today 07:27 AM
» Replies: 13
» Views: 587
Dropping Measurements, Hello High-End.
Last Post: uglymusic
18-Dec-2024 12:02 AM
» Replies: 20
» Views: 709
CA Server issues
Last Post: Peter_F
16-Dec-2024 06:36 PM
» Replies: 13
» Views: 217
install Snakeoil on Audio Alchemy DMP-1 ...
Last Post: uglymusic
08-Dec-2024 08:48 PM
» Replies: 2
» Views: 214
Announcing Snakeoil Measurements 1.3.0
Last Post: hkphantomgtr
03-Dec-2024 09:55 PM
» Replies: 105
» Views: 12023
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5999
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1804
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 188
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 179
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 512

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.