Skip to content

Commit

Permalink
Fix layer lock being inverted on file parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentroen committed Dec 7, 2020
1 parent 4dbbeb3 commit 2f3f74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def parse_notes(self, version):
def parse_layers(self, layers_count, version):
for i in range(layers_count):
name = self.read_string()
lock = self.read_numeric(BYTE) == 0 if version >= 4 else False
lock = self.read_numeric(BYTE) == 1 if version >= 4 else False
volume = self.read_numeric(BYTE)
panning = self.read_numeric(BYTE) - 100 if version >= 2 else 0
yield Layer(i, name, lock, volume, panning)
Expand Down

0 comments on commit 2f3f74f

Please sign in to comment.