Add random round robin detection in sfz files

master
olivier 2017-02-07 00:54:46 +01:00
rodzic 73f8f397d1
commit 9c22dec072
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -95,6 +95,7 @@ class RenoiseModulationSet(ObjectifiedElement):
class RenoiseInstrument(object):
OVERLAP_CYCLE = "Cycle"
OVERLAP_ALL = "Play All"
OVERLAP_RANDOM = "Random"
LOOP_NONE = "Off"
LOOP_FORWARD = "Forward"

Wyświetl plik

@ -257,6 +257,14 @@ class SfzToXrni(object):
renoise_instrument.root.SampleGenerator.KeyzoneOverlappingMode = RenoiseInstrument.OVERLAP_CYCLE
elif key == 'seq_length':
pass
elif key == 'lorand':
if float(value) > 0:
logging.info("Switch the entire instrument to random sample round robin")
renoise_instrument.root.SampleGenerator.KeyzoneOverlappingMode = RenoiseInstrument.OVERLAP_RANDOM
elif key == 'hirand':
if float(value) < 1:
logging.info("Switch the entire instrument to random sample round robin")
renoise_instrument.root.SampleGenerator.KeyzoneOverlappingMode = RenoiseInstrument.OVERLAP_RANDOM
elif key == 'group':
logging.info("Ignoring mute group info")
elif key == 'off_by':