Skip to Content

Thijs's drumkit conversion script failing

No replies
Peregrino69
Offline
Joined: 11/28/2014

Hi all

I just installed sox and Thijs's conversion script http://audio-and-linux.blogspot.com/2012/10/hydrogen-drumkit-creator-script-v5-is.html. Downloaded Soniccouture's free Brush kit, and trying to convert it with:

~/scripts/createH2kit_V5.1.py -c flac -v -i Samples/

 

Conversion keeps failing with different samples:

filename : HatBrushClD1.WAV
Traceback (most recent call last):
  File "/home/pgrino69/scripts/createH2kit_V5.1.py", line 795, in <module>
    RetValue = main()
  File "/home/pgrino69/scripts/createH2kit_V5.1.py", line 279, in main
    return CreateDrumkit(Input)
  File "/home/pgrino69/scripts/createH2kit_V5.1.py", line 648, in CreateDrumkit
    SampleArray.append(ConvertName(SampleFile))
  File "/home/pgrino69/scripts/createH2kit_V5.1.py", line 146, in ConvertName
    InstrNr=int(FullRef.split('-')[0])
ValueError: invalid literal for int() with base 10: 'HatBrushClD1'

I've been moving the failing files out of the directory but after 15 moves it's starting to get a tad tedious :) There's still >160 samples left, and I've no clue whether this method will work at all...

Debian Jessie updated half an hour ago, python 2.7.9. Anyone have an idea what's going break and how to fix it?

 

Thanks

PG