Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an elegant way to slave to capture samplerate automagically? #306

Open
alex-vyverman opened this issue Nov 6, 2023 · 1 comment

Comments

@alex-vyverman
Copy link

Hi,

Absolutely love the project!

My setup is a DAW Mac with Thunderbolt interface AES3 --> RME HDSPe AES3 in on another Linux machine to perform DSP (bass management, room EQ + volume control).
Since I work at different samplerates, I can slave the HDSPe to the DAW interface so the clock of the HDSPe always follows whats happening in the DAW computer.
What I'm unable to figure out without much scripting with the websocket/pycamilladsp is to have the capture samplerate parameter follow whatever the internal clock of the HDSPe is (which in my case slaves to the DAW).

What would be a good way to achieve this? Could this possibly be an optimisation of the project to allow camilladsp to follow the hw clock of the capture device? Or am I missing something obvious?

Many thanks!
Alex

@HEnquist
Copy link
Owner

HEnquist commented Nov 6, 2023

Nearly every system has different needs when switching samplerate. For example, interfaces with ADAT usually present a different number of channels depending on the chosen rate. For others the supported sample formats change, with some of the formats not being available at high rates.
This means there is no easy one-size-fits-all solution for handling sample rate changed. And I don't want to build something into camilladsp that only works sometimes.
My idea is to provide a Python script that monitors the sample rate of the capture device, and modifies and reloads the configuration when a change happens. The actually modifications will have to be adapted to the individual system.
I started a little on that here: https://github.com/HEnquist/camilladsp-controller/tree/main
It's quite far from finished, but I hope to pick it up again after I'm done with the 2.0 release.

You can also ask in the thread at diyaudio. I know some people have written various scripts for their systems. Maybe someone has something ready you can use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants