Difference between revisions of "Audio Through USB"

From MOD Wiki
Jump to navigation Jump to search
Line 43: Line 43:
 
|-
 
|-
 
| --opus
 
| --opus
| Use Opus compression, optional as it is not needed, the USB connection should be able to handle raw data.
+
| Use Opus compression, optional as it is not needed, the USB connection should be able to handle raw data. It is recommended to use compression though to decrease the risks of getting x-runs as much as possible.
 
|-
 
|-
 
| -C
 
| -C
Line 59: Line 59:
 
| -l
 
| -l
 
| Number of cycles, determines the network latency.
 
| Number of cycles, determines the network latency.
 +
|-
 +
| -s
 +
| Setting this option makes the JACK slave memorize the ports that are connected to the JACK master. In case the master disappears and reappears the JACK slave will try to reconnect those ports automatically.
 
|}
 
|}
  
 
[[Category:netJACK]]
 
[[Category:netJACK]]
 
[[Category:Networking]]
 
[[Category:Networking]]

Revision as of 10:24, 29 May 2017

Using netJACK2

NOTE: This requires v1.4 or later.

First, connect the MOD Duo to your PC via usb cable.
Make sure to open port 19000 on your firewall. If you use Linux with ufw, you can use:

sudo ufw allow 19000


Then, ssh into the Duo, and run:

touch /data/enable-netmanager
systemctl start jack-netmanager

NOTE: You only need to run this command once.
The next the Duo boots, jack-netmanager will be loaded by default.
Delete the '/data/enable-netmanager' file inside the Duo to remove this auto-start feature.


Now run jackd on your own computer (connected to the Duo via USB), like this:

jackd -R -P 80 -d net -a 192.168.51.1 --opus -C 2 -P 2 -i 1 -o 1 -l 4 -n mod-slave -s

Adjust the parameters as needed, but keep the client name as 'mod-slave'.

Parameters explained

-R Use realtime scheduling, enabled by default.
-P Set the realtime scheduling priority, in this case 80.
-d JACK backend, in this case the "net" driver.
-a Multicast address, in this case the IP address of the MOD Duo.
--opus Use Opus compression, optional as it is not needed, the USB connection should be able to handle raw data. It is recommended to use compression though to decrease the risks of getting x-runs as much as possible.
-C Number of audio input ports on the slave. This determines the number of audio output ports on the MOD Duo, marked as "Hardware Audio To Slave" ports in the web interface.
-P Number of audio output ports on the slave. This determines the number of audio input ports on the MOD Duo, marked as "Hardware Audio From Slave" ports in the web interface.
-i Number of MIDI input ports on the slave. This determines the number of MIDI output ports on the MOD Duo, marked as "Hardware Midi To Slave" ports in the web interface.
-o Number of MIDI output ports on the slave. This determines the number of MIDI input ports on the MOD Duo, marked as "Hardware Midi From Slave" ports in the web interface.
-l Number of cycles, determines the network latency.
-s Setting this option makes the JACK slave memorize the ports that are connected to the JACK master. In case the master disappears and reappears the JACK slave will try to reconnect those ports automatically.