Add a comment in generated xrni

master
Olivier Jolly 2016-02-01 18:00:03 +01:00
rodzic 47bb4ccad7
commit ee0362f3bc
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -127,6 +127,9 @@ class Sf2ToXrni(object):
def convert_instrument(self, sf2_instrument, renoise_instrument):
# convert instrument meta data
renoise_instrument.name = sf2_instrument.name
renoise_instrument.root.Comments = "Converted from instrument {} with sf2toxrni " \
"( https://gitlab.com/zeograd/rnsutils )" \
"\n---\n{}".format(sf2_instrument.name, sf2_instrument.parent.info)
# load global properties if any
renoise_global_sample = deepcopy(renoise_instrument.sample_template)

Wyświetl plik

@ -97,6 +97,9 @@ class SfzToXrni(object):
renoise_instrument.root.find('GlobalProperties/*[Name="SF2 chorus"]').Value = 0
renoise_instrument.root.SampleGenerator.KeyzoneOverlappingMode = RenoiseInstrument.OVERLAP_ALL
renoise_instrument.root.Comments = "Converted from SFZ {} with sfztoxrni " \
"( https://gitlab.com/zeograd/rnsutils )".format(sfz_filename)
with open(sfz_filename, 'rt') as sfz_file:
# convert instrument meta data
renoise_instrument.name = os.path.basename(sfz_filename)