diff options
Diffstat (limited to 'python/examples')
| -rw-r--r-- | python/examples/kaitai/fasttracker_xm_module.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/kaitai/fasttracker_xm_module.py b/python/examples/kaitai/fasttracker_xm_module.py index cca84ab0..9dacb370 100644 --- a/python/examples/kaitai/fasttracker_xm_module.py +++ b/python/examples/kaitai/fasttracker_xm_module.py @@ -459,11 +459,11 @@ class FasttrackerXmModule(KaitaiStruct): class SamplesData(KaitaiStruct): """The saved data uses simple delta-encoding to achieve better compression ratios (when compressed with pkzip, etc.) Pseudocode for converting the delta-coded data to normal data, - old = 0; + old = 0 for i in range(data_len): - new = sample[i] + old; - sample[i] = new; - old = new; + new = sample[i] + old + sample[i] = new + old = new """ SEQ_FIELDS = ["data"] def __init__(self, header, _io, _parent=None, _root=None): |
