sforkowany z mirror/rnsutils
1
0
Forkuj 0

Fix default path handling when starting with separator

master
olivier 2017-02-03 23:32:45 +01:00
rodzic 17fc4d3614
commit 2b193c44c1
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -4,6 +4,8 @@
- added support for midi key influence to pitch = 0% to enable drum kit like sf2 converts
- added keymap expansion when converting sf2 (to fill all key range)
- added instrument selection via index when converting sf2
- added support for sfz not height as midi number
- added support for default_path directive
## [0.8.0] - 2016-02-02
### Added

Wyświetl plik

@ -261,6 +261,11 @@ class SfzToXrni(object):
logging.info("Ignoring mute group info")
elif key == 'default_path':
self.sfz_default_path = re.sub(r'\\+', r'/', value)
# remove first char if file separator
if self.sfz_default_path[0] in (r'/', r'\\'):
self.sfz_default_path = self.sfz_default_path[1:]
else:
unused_keys.append(key)