Difference between revisions of "Audio Through USB"

From MOD Wiki
Jump to navigation Jump to search
(Created page with "== Using JACK2 net == first connect the mod via usb cable to the PC. note down the IP assigned to your PC by the MOD. on linux this can be done by using: <source lang="bash"...")
 
Line 2: Line 2:
  
 
first connect the mod via usb cable to the PC.
 
first connect the mod via usb cable to the PC.
 +
start JACK2 on your PC.
  
 
note down the IP assigned to your PC by the MOD.
 
note down the IP assigned to your PC by the MOD.
Line 7: Line 8:
 
<source lang="bash">
 
<source lang="bash">
 
ifconfig usb0 | awk 'sub("addr:","")' | awk '{print $2}'
 
ifconfig usb0 | awk 'sub("addr:","")' | awk '{print $2}'
 +
</source>
 +
 +
note this value, we'll be referencing it as 'XYZ'.
 +
 +
make sure to open port 19000 on your linux firewall. if you have ufw you can use:
 +
<source lang="bash">
 +
sudo ufw allow 19000
 +
</source>
 +
 +
With that setup, load jack2 netmanager client, by running on your PC:
 +
<source lang="bash">
 +
jack_load netmanager -i "-a 192.168.51.XYZ"
 
</source>
 
</source>
  
Line 12: Line 25:
 
<source lang="bash">
 
<source lang="bash">
 
systemctl stop jack2 mod-host mod-peakmeter ttymidi mod-ui
 
systemctl stop jack2 mod-host mod-peakmeter ttymidi mod-ui
 +
jackd -R -P 80 -d net -a 192.168.51.XYZ -C 2 -P 2 -i 1 -o 1 -l 9 -n mod-duo
 +
</source>
 +
 +
open another ssh window, and run:
 +
<source lang="bash">
 +
jack_load mod-host
 +
jack_load mod-peakmeter
 +
jack_load ttymidi -i "/dev/ttyS2"
 +
mod-ui.run
 
</source>
 
</source>

Revision as of 11:46, 10 November 2016

Using JACK2 net

first connect the mod via usb cable to the PC. start JACK2 on your PC.

note down the IP assigned to your PC by the MOD. on linux this can be done by using:

ifconfig usb0 | awk 'sub("addr:","")' | awk '{print $2}'

note this value, we'll be referencing it as 'XYZ'.

make sure to open port 19000 on your linux firewall. if you have ufw you can use:

sudo ufw allow 19000

With that setup, load jack2 netmanager client, by running on your PC:

jack_load netmanager -i "-a 192.168.51.XYZ"

then ssh into the mod, and run:

systemctl stop jack2 mod-host mod-peakmeter ttymidi mod-ui
jackd -R -P 80 -d net -a 192.168.51.XYZ -C 2 -P 2 -i 1 -o 1 -l 9 -n mod-duo

open another ssh window, and run:

jack_load mod-host
jack_load mod-peakmeter
jack_load ttymidi -i "/dev/ttyS2"
mod-ui.run