Commits

Anonymous committed f61f1f9

Fixed a inversed condition bug

Comments (0)

Files changed (1)

             staff_lines = None
             num_bars, num_notes = 0, 0
         if object_type == 'StaffProperties':
-            if staff_style is not None:
+            if staff_style is None:
                 staff_style = data.get('Style', 'Standard')
-            if staff_layered is not None:
+            if staff_layered is None:
                 staff_layered = data.get('Layer', False)
-            if staff_endingbar is not None:
+            if staff_endingbar is None:
                 staff_endingbar = data.get('EndingBar', 'MasterClose')
-            if staff_muted is not None:
+            if staff_muted is None:
                 staff_muted = data.get('Muted', False)
-            if staff_midi_channel is not None:
+            if staff_midi_channel is None:
                 staff_midi_channel = data.get('Channel', 1)  # TODO: support percussions?
         if object_type == 'StaffInstrument':
             pass