sforkowany z mirror/rnsutils
Add a comment in generated xrni
rodzic
47bb4ccad7
commit
ee0362f3bc
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue