tconfig.py - dmt - source code for the kunsthal art installation
HTML git clone git://parazyd.org/dmt.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tconfig.py (1177B)
---
1 # See LICENSE file for copyright and license details.
2 """
3 HTTP API handler configuration
4 """
5
6 # We are using the following USB sound card:
7 # input: GeneralPlus USB Audio Device as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.3/0003:1B3F:2008.0003/input/input17
8 # hid-generic 0003:1B3F:2008.0003: input,hidraw0: USB HID v2.01 Device [GeneralPlus USB Audio Device] on usb-0000:00:1a.0-1.2/input3
9
10 # Card number (found in ALSA)
11 cardno = '1'
12
13 # Mic capture line (for amixer)
14 #mic_cap = "numid=4,iface=MIXER,name='Mic Playback Volume'" # chinese card
15 #mic_cap = "numid=4,iface=MIXER,name='Mic Playback Volume'" # sennheiser card
16 mic_cap = "numid=6,iface=MIXER,name='Capture Volume'" # thinkpad x201
17
18 # Mic playback line (for amixer)
19 #mic_play = "numid=8,iface=MIXER,name='Mic Capture Volume'" # chinese card
20 #mic_play = "numid=12,iface=MIXER,name='Mic Capture Volume'" # sennheiser card
21 mic_play = "numid=6,iface=MIXER,name='Capture Volume'" # thinkpad x201
22
23 # The device we want to use for MIDI. Found using: mido.get_input_names()
24 #device_name = 'USB MS1x1 MIDI Interface:USB MS1x1 MIDI Interface MIDI 1 24:0'
25
26 import mido
27 device_name = mido.get_input_names()[1]