sforkowany z mirror/rnsutils
Fix default path handling when starting with separator
rodzic
17fc4d3614
commit
2b193c44c1
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue