BackgroundMusic icon indicating copy to clipboard operation
BackgroundMusic copied to clipboard

Connect to an arduino to build a hardware mixer

Open mydudechris opened this issue 3 years ago • 4 comments

Is it possible to use this in combination with an Arduino to build a hardware mixer? Something like this:

https://www.thingiverse.com/thing:4627779

I'm imagining it's something like connect the arduino to midi devices then have them picked up by BGMusic?

I'm looking for something similar to Deej, hoping this is might work. Thanks for your hard work!

mydudechris avatar Jun 12 '21 15:06 mydudechris

@marcuswu recently added some properties to the AppleScript interface that you should be able to use for that.

Have a look at https://github.com/kyleneideck/BackgroundMusic/pull/457 and https://github.com/omriharel/deej/issues/7.

kyleneideck avatar Jun 13 '21 05:06 kyleneideck

The owner of the deej project stated he wouldn't merge my branch because it has external dependencies. You can find my branch with mac support at https://github.com/marcuswu/deej/tree/macSupport

marcuswu avatar Jun 13 '21 06:06 marcuswu

Oh, one note about that branch -- I also added "event" support. It's basically just binary event passing as opposed to the analog data deej normally works on for volume control. This is helpful for other controls such as buttons. The config.yaml in that branch has an example event_mapping field which maps events to commands. Events are passed through the serial connection the same way as the volumes for deej are. All events are appended to the volume data following the same pattern of separating fields by the '|' character.

In my case I connected a button to both a USB switch and to the arduino. The button triggers the USB switch directly, but the arduino can also sense it which sends the event along to deej. When deej sees that button has been pressed, it executes a command to switch my monitor input source (via DDC). This in effect gives me a cheap KVM switch. I also built a simple audio mixer for my headphones with two input sources (two computers) into it.

marcuswu avatar Jun 14 '21 14:06 marcuswu

@marcuswu, does your Mac version of deej communicate with MIDI control surfaces or is it Arduino-only? I already have a Behringer X-Touch Mini that I would prefer to use rather than build new hardware.

BeansIsFat avatar Jul 07 '21 14:07 BeansIsFat