mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
Fix single shot samples: only first half of them was getting played.
This commit is contained in:
parent
8956f524c9
commit
200937aa50
@ -18,7 +18,7 @@ def read_chunk(file,indent=0):
|
||||
datablock = next((x[1] for x in data if x[0] == b"data"))
|
||||
wsmp = next((x[1] for x in data if x[0] == b"wsmp"), None)
|
||||
if "loopstart" not in wsmp:
|
||||
loopstart,looplength = datablock["length"]/2-1,1 # For samples without loop, keep on repeating the last sample
|
||||
loopstart,looplength = datablock["length"]-1,1 # For samples without loop, keep on repeating the last sample
|
||||
else:
|
||||
loopstart,looplength = wsmp["loopstart"],wsmp["looplength"]
|
||||
INFO = next((x[1] for x in data if x[0] == b"INFO"), None)
|
||||
|
Loading…
Reference in New Issue
Block a user