hydrogen2drumkv1.py - Hydrogen to drumkv1 drumkit conversion tool

Forums

I just wrote a conversion script that allows drumkv1 to use Hydrogen drumkits. I thought some of you might find it useful :)

You can find it here: https://github.com/TuriSc/hydrogen2drumkv1.py/

The two samplers have a lot of different features and not everything translates well, but most parameters will work just fine.
I figured out all the conversion scales (pitch, panning, and so on), but I might have missed something so please let me know if you see any ways this script could be improved.

Permalink

Hi,

this is magic: I was about to do same and it fits exactly to what I am doing currently!

Since today (!) my build for Raspi contains all the hydrogen presets downloadable from hydrogen's GUI by default after build. So currently I am adding your script to my build to create drumkv1 presets from those. Doing so two questions come up:

* does drumkv1 support full-paths for samples - Rui?
* if yes: Could you add an optional third parameter that adds a path before sample file name?

Two times yes would save me from creating soft-links - in my environment hydrogen drumkits are at different location than drumkv1 presets

Permalink

* just tested: drumkv1 works perfectly fine with full paths - so what do you think of adding an optional parameter e.g. samplepath that prefixes sample file names?
* can't find it currently but I think you wrote somewhere that you use most quiet sample in case hydrogen offers more than one sample file per sound element. Is there a certain reason for this way round (e.g loud samples distorted or some dynamic feature)? From sample quality aspect I would choose loud sample files of better signal/noise ratio due finer resolution.

About the argument to specify the sample path: it's a good idea, I'll implement it as soon as we figure out what else should be available as an optional argument (any suggestions?)

Because drumkv1 does not have anything like multilayered samples, I had to take a decision. It was either exporting each layer as its own instrument, or picking just one layer. The way Python iterates through nodes by default makes it pick the first layer it finds - I agree that it would be a better idea to choose the last one instead.

Permalink

Just getting busy with this awesome script and drumkv1. I just have to ask though, any plans for drumkv1 to support multilayered samples?

Thanks in advance

... any plans for drumkv1 to support multilayered samples?

nope. not in the short term though, sorry.

the vee-one suite aren't getting anymore complex than that already are.

maybe that's for the vee-two? who knows? ;)
cheers

Permalink

Hi,

I downloaded the hydrogen2drumkv1.py. Then extracted the py file to /home/user/bin (what is part of my PATH) and chmod'ed the file to make it executable.
As stated in the help file I then executed the following command:

hydrogen2drumkv1.py /usr/share/hydrogen/data/drumkits/Techno-1/ /home/user/drumkv1/test/

but nothing happens. No output, not even an error message. And no new file(s) in the destination folder. I also tried it with several other drumkits that came with hydrogen.
Is there something that I am missing? I have python installed.

The file formats in the drumkit dirs of hydrogen differ from flac over wav to aiff. I tried it all, but to no avail.
Does the conversion tool expect any special file format or some sort of compressed file?

Can anyone help?

Add new comment

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.
CAPTCHA
Enter the characters shown in the image.