bobgonzalez / spEdit404

spEdit is a tool for modifying and creating binary pattern files for the Roland SP-404SX.
GNU General Public License v3.0
17 stars 3 forks source link

AttributeError: 'list' object has no attribute 'start_tick' #6

Closed michaelkostal closed 4 years ago

michaelkostal commented 4 years ago

I got the following error when trying to save a pattern

>w
enter bank > a
enter pad > 1
Traceback (most recent call last):
  File "spEdit.py", line 104, in <module>
    pattern = action_map[menu_choice](pattern)
  File "spEdit.py", line 62, in write_pattern_to_file
    write_binary(pattern, bank, pad)
  File "/spEdit404/binary_utilities.py", line 13, in write_binary
    notes = get_sorted_notes(pattern)
  File "/spEdit404/binary_utilities.py", line 21, in get_sorted_notes
    notes = sorted(notes, key=lambda n: n.start_tick)
  File "/spEdit404/binary_utilities.py", line 21, in <lambda>
    notes = sorted(notes, key=lambda n: n.start_tick)
AttributeError: 'list' object has no attribute 'start_tick'
bobgonzalez commented 4 years ago

Gotcha. I know what this is and will fix it this evening.

bobgonzalez commented 4 years ago

Resolved sorry about that!

bobgonzalez commented 4 years ago

Need to put some test around this function and some others to prevent breaking changes.

michaelkostal commented 4 years ago

Cool, thanks!