x42 / scarlett-mixer

Quickly hacked scarlett-mixer GUI for Linux/ALSA
GNU General Public License v2.0
121 stars 23 forks source link

Support to macOS #33

Open adhenrique opened 2 years ago

adhenrique commented 2 years ago

I'm looking for some software like scarlett-mixer, but with macOS support.

Actually my need is simple: I have an 8i6 but I want to find a way to access the internal API to modify the gain of line inputs in rear panel.

Can anybody help me?

tabowling commented 2 years ago

Why not use the Focusrite Control app that comes with the product? https://downloads.focusrite.com/focusrite/scarlett-3rd-gen/scarlett-8i6-3rd-gen

I don't want to speak for the developers of this project, but it seems to be tightly coupled to the Linux kernel and solving the need that Focusrite is not providing for the Linux platform.

adhenrique commented 2 years ago

@tabowling yes I know it's coupled to Linux. Helped me do some tests on the platform.

However, Focusrite Control does not provide any way to adjust the gain of rear inputs. I figured that asking here, someone could help me in some way.

x42 commented 2 years ago

While reverse engineering the protocol. I used a python script that directly sends raw USB data.

https://github.com/x42/scarlettmixer/blob/master/scarlettmixer.py

This will work on any platform, however it is 10 year old python2 and will likely need an update to pyusb3. The raw USB commands are for the 1st gen scarlett-18i6, but the overall communication protocol is still identical.

regarding python3/pyusb: this recent script to save settings into the firmware may help https://gist.github.com/401538ab97d2b6dbe151579c5de37bb3

adhenrique commented 2 years ago

@x42 thanks for the links...

Now, I'm getting a permission error: Access Denied (insufficient permissions).

My env Os: macOs Monterey Python: v3.10.6

Am I doing something wrong?