mirror of
				https://github.com/AquaMorph/dotfiles.git
				synced 2025-11-04 09:13:18 +00:00 
			
		
		
		
	Support for ES-9
This commit is contained in:
		
							
								
								
									
										18
									
								
								scripts/start-es-9.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								scripts/start-es-9.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Script to add another audio interface if available.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DEVICENAME='ES-9'
 | 
				
			||||||
 | 
					DEVICENUM="$(cat /proc/asound/cards | grep -m 1 $DEVICENAME | grep -o '[0-9]' | head -1)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if test -z "$DEVICENUM"
 | 
				
			||||||
 | 
					   then
 | 
				
			||||||
 | 
					       echo $DEVICENAME not connected
 | 
				
			||||||
 | 
					       exit 1
 | 
				
			||||||
 | 
					   else
 | 
				
			||||||
 | 
					       echo $DEVICENAME found at hw:$DEVICENUM
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Start up audio interface
 | 
				
			||||||
 | 
					alsa_in -d hw:$DEVICENUM -j "$DEVICENAME In" &
 | 
				
			||||||
 | 
					alsa_out -d hw:$DEVICENUM -j "$DEVICENAME Out" &
 | 
				
			||||||
@@ -31,6 +31,7 @@ done
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Eurorack audio interface
 | 
					# Eurorack audio interface
 | 
				
			||||||
sh ~/.config/scripts/start-es-8.sh 
 | 
					sh ~/.config/scripts/start-es-8.sh 
 | 
				
			||||||
 | 
					sh ~/.config/scripts/start-es-9.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Start up programs that use audio
 | 
					# Start up programs that use audio
 | 
				
			||||||
if [ -z "$skipi3" ]; then
 | 
					if [ -z "$skipi3" ]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user