Difference between revisions of "Audio Through USB"

From MOD Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Using JACK2 net ==
 
== Using JACK2 net ==
  
NOTE: This requires v1.4 or later.
+
'''NOTE: This requires v1.4 or later.'''
  
first connect the mod via usb cable to the PC.
+
First, connect the MOD Duo to your PC via usb cable.<br/>
start JACK2 on your PC.
+
Make sure to open port 19000 on your firewall. If you use Linux with ufw, you can use:
 
 
make sure to open port 19000 on your linux firewall. if you have ufw you can use:
 
 
<source lang="bash">
 
<source lang="bash">
 
sudo ufw allow 19000
 
sudo ufw allow 19000
 
</source>
 
</source>
  
ssh into the mod, and run:
+
Then, ssh into the Duo, and run:
 
<source lang="bash">
 
<source lang="bash">
 
touch /data/enable-netmanager
 
touch /data/enable-netmanager
 
systemctl start jack-netmanager
 
systemctl start jack-netmanager
 
</source>
 
</source>
NOTE: You only need to run this command once.
+
NOTE: You only need to run this command once.<br/>
The next the Duo boots, netmanager will be loaded by default.
+
The next the Duo boots, jack-netmanager will be loaded by default.<br/>
 
Delete the '/data/enable-netmanager' file inside the Duo to remove this auto-start feature.
 
Delete the '/data/enable-netmanager' file inside the Duo to remove this auto-start feature.
  
open another ssh window, and run:
+
Now run jackd on your own computer (connected to the Duo via USB), like this:
 
<source lang="bash">
 
<source lang="bash">
jack_load mod-host
+
jackd -R -P 80 -d net -a 192.168.51.1 -O -C 2 -P 2 -i 1 -o 1 -l 4 -n slave -s
jack_load mod-peakmeter
 
jack_load ttymidi -i "/dev/ttyS2"
 
mod-ui.run
 
 
</source>
 
</source>
 +
Adjust the parameters as needed, but keep the client name as 'slave'.

Revision as of 08:13, 10 April 2017

Using JACK2 net

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 -O -C 2 -P 2 -i 1 -o 1 -l 4 -n slave -s

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