i am trying to run m8c on patchbox. What i try is to add a USB soundcard (in this case a teensy 4.1 with the m8c firmware) so that the audio from this soundcard gets outputted on my main soundcard (also USB).
####################
Start JACK server and route audio
jackd -d alsa -d hw:M8 -r44100 -p512 &
####################
create a virtual port:
alsa_out -j m8out -d hw:3 -r 44100 &
#####################
After the virtual port has been created, we need to connect it to the M8 USB Audio capture device.
jack_connect system:capture_1 m8out:playback_1
jack_connect system:capture_2 m8out:playback_2
######################
On a clean raspian this works, but how can i recreate this on patchbox?
Dirk
hi there trying this today but getting these errors
patch@patchbox:~ $
jackd -d alsa -d hw:M8 -r 44100 -p256 &
alsa_out -j m8out -d hw:0 -r 44100 &
jack_connect system:capture_1 m8out:playback_1
jack_connect system:capture_2 m8out:playback_2
[1] 2802
[2] 2803
jackdmp 1.9.17
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2021 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
ERROR m8out:playback_1 not a valid port
Capture open error: Device or resource busy
JACK server starting in realtime mode with priority 10
self-connect-mode is “Don’t restrict self connect requests”
ERROR m8out:playback_2 not a valid port
[2]+ Exit 20 alsa_out -j m8out -d hw:0 -r 44100
patch@patchbox:~ $ Allocate: can’t check in named futex name = jack_sem.default_ system err = Permission denied
Cannot allocate synchro
Cannot allocate internal client for driver
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server
any ideas would be greatfully received. works on a stock raspiOs
Use jack_lsp -A to see the available ports and names.
Also make sure that the audio devices involved are not in use by any other application. Jack wants to get exclusive access to hardware, and share it with other processes through its own interfaces.
I run m8c with Patchbox. It works very well, but you cannot use the audio config from m8c because Patchbox expects the main audio output to be already connected and JACK starts on boot.
I think the touch screen is an exclusive feature of the hardware. But with this setup you can connect any midi device, which will basically do the same and much more.
Yes. There are 2 audio ins: one from the audio interface, which is the default audio input and can be routed to the headless M8; the other audio in comes from the MC-101 and it’s USB audio, since the MC is class compliant. The USB audio cannot be routed to the headless M8, otherwise would create a feedback loop. The USB audio is synced with the other audio sources with the help of Alsa. You can see how everything is routed in this script: https://github.com/RowdyVoyeur/m8c-rpi4/blob/main/m8c.sh