Skip to content

Commit

Permalink
Update m8c.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
RowdyVoyeur authored Jun 1, 2024
1 parent d939f36 commit e64a72e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions m8c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ else
echo "MC101 detected, connecting."

# Open audio interface between the Instrument Out and System In
# alsa_in options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality
# alsa_in options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality, -c is Channels
alsa_in -j "MC101_in" -d hw:CARD=MC101,DEV=0 -r 44100 -p 64 -n 4 &

# Open audio interface between System Out and Instrument In
# alsa_out options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality
# alsa_out options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality, -c is Channels
# Important: If using MC-101 in Vendor driver mode, then comment the following line
alsa_out -j "MC101_out" -d hw:CARD=MC101,DEV=0 -r 44100 -p 64 -n 4 &

sleep 2
Expand All @@ -22,6 +23,7 @@ jack_connect MC101_in:capture_1 system:playback_1
jack_connect MC101_in:capture_2 system:playback_2

# Connect audio of USB Card Microphone or Audio Card In to MC101 In (This allows to record audio onto the additional Instrument)
# Important: If using MC-101 in Vendor driver mode, then comment the following lines
jack_connect system:capture_1 MC101_out:playback_1
# Comment the following line and uncomment the next one, if your USB Card or Audio Card In has a mono ADC
jack_connect system:capture_2 MC101_out:playback_2
Expand All @@ -33,11 +35,11 @@ jack_connect system:capture_2 MC101_out:playback_2
fi

# Open audio interface between M8 Out and System In
# alsa_in options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality
# alsa_in options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality, -c is Channels
alsa_in -j "M8_in" -d hw:CARD=M8,DEV=0 -r 44100 -p 64 -n 4 &

# Open audio interface between System Out and M8 In
# alsa_out options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality
# alsa_out options: -r is Sample Rate, -p is Period or Buffer Size, -n is Period, -q is Quality, -c is Channels
alsa_out -j "M8_out" -d hw:CARD=M8,DEV=0 -r 44100 -p 64 -n 4 &

sleep 2
Expand Down

0 comments on commit e64a72e

Please sign in to comment.