Coder Social home page Coder Social logo

scarlett_yaml's People

Contributors

tseaver avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scarlett_yaml's Issues

problem with python3 and scarlett 18i20

Helo I am using python3, and a scarlet 18i20. I got an error in extract_controls().
I have add to print to check the problem
def _extract_controls():
dump = subprocess.check_output(
["amixer", "-cUSB", "controls"])
#print(dump)
for line in dump.splitlines():
print("line : ",line)
num_id, _, name = line.split(b",")
_, num_id = num_id.split(b"=")
num_id = int(num_id.decode('ascii'))
_, name = name.split(b"=")
name = name.decode('ascii').strip("'")
print("name = ",name,"num_id =", num_id)
yield name, num_id

it ends with :
line : b"numid=9,iface=MIXER,name='Master Playback Volume'"
name = Master Playback Volume num_id = 9
line : b"numid=1,iface=MIXER,name='Extension Unit Switch'"
name = Extension Unit Switch num_id = 1
line : b"numid=6,iface=MIXER,name='Extension Unit Switch',index=1"
Traceback (most recent call last):
File "/home/didier/Musique/scarlett-yaml/scarlett_yaml/scarlett_yaml.py", line 478, in
main()
File "/home/didier/Musique/scarlett-yaml/scarlett_yaml/scarlett_yaml.py", line 468, in main
mixer.load_controls() # prepopulates enums, even for loading.
File "/home/didier/Musique/scarlett-yaml/scarlett_yaml/scarlett_yaml.py", line 169, in load_controls
for name, num_id in sorted(self._extract_controls()):
File "/home/didier/Musique/scarlett-yaml/scarlett_yaml/scarlett_yaml.py", line 405, in _extract_controls
num_id, _, name = line.split(b",")
ValueError: too many values to unpack (expected 3)

Not find a solution yet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.