question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List index out of range in csdgen.py

See original GitHub issue
list index out of range

-----------
  File "/home/muranyia/.local/lib/python3.8/site-packages/pch2csd/app.py", line 164, in main
    convert_pch2(args.arg)
  File "/home/muranyia/.local/lib/python3.8/site-packages/pch2csd/app.py", line 98, in convert_pch2
    udos = zak.connect_patch(p)
  File "/home/muranyia/.local/lib/python3.8/site-packages/pch2csd/csdgen.py", line 115, in connect_patch
    udos = deepcopy({m.id: Udo(p, m) for m in p.modules})
  File "/home/muranyia/.local/lib/python3.8/site-packages/pch2csd/csdgen.py", line 115, in <dictcomp>
    udos = deepcopy({m.id: Udo(p, m) for m in p.modules})
  File "/home/muranyia/.local/lib/python3.8/site-packages/pch2csd/csdgen.py", line 30, in __init__
    self.udo_variant = self._choose_udo_variant(len(ins))
  File "/home/muranyia/.local/lib/python3.8/site-packages/pch2csd/csdgen.py", line 61, in _choose_udo_variant
    tpl_v1_ins = self.tpl.ins[1].types

This happens with every patch that has no invalid UDOs.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gleb812commented, Dec 22, 2021

Guys, I will fix this issues soon. I guess in a couple days or something. Stay cool

1reaction
muranyiacommented, Dec 22, 2021

Thanks again and in advance too!

As I have barely any CS knowledge, what I can contribute is the frequency distribution of problem UDOs among all the stock NORD patches. This might help you with setting priorities.

       Name (num) Freq
----------------------
     EnvADSR (20)  134
   Operator (180)   63
     FltNord (51)   30
   OscString (13)   17
    OscShpA (163)   16
      EnvADR (84)   15
       Name (126)   13
    FltMulti (49)    6
    FltVoice (45)    6
      Glide (158)    6
       LfoB (190)    6
     LfoShpA (25)    5
    OscPerc (196)    5
   Overdrive (62)    5
    MetNoise (29)    4
    stChorus (94)    4
      Device (30)    3
      Mux81X (60)    3
   EnvADDSR (119)    2
   KeyQuant (152)    2
     ModAHD (169)    2
   PartQuant (22)    2
 PitchTrack (198)    2
      Reverb (12)    2
      shpExp (34)    2
     status (197)    2
    Vocoder (108)    2
   Compress (150)    1
      EnvAHD (46)    1
    EnvMulti (52)    1
   FltPhase (102)    1
     ModADSR (23)    1
          sH (53)    1
Read more comments on GitHub >

github_iconTop Results From Across the Web

List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >
list[-1] yields "list index out of range" error in python program
I'm trying to build a markov generator that takes an arbitrary length for the chain of words as a programming exercise, but I've...
Read more >
Python IndexError: List Index Out of Range [Easy Fix]
The error “list index out of range” arises if you access invalid indices in your Python list. For example, if you try to...
Read more >
Indexerror: list Index Out of Range in Python
“List index out of range” error occurs in Python when we try to access an undefined element from the list. The only way...
Read more >
Python IndexError: List Index Out of Range Error Explained
Learn how to resolve the Python IndexError, list index out of range, why it occurs in for loops, while loops, and how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found