Skip to Content

[OK]Create a drumkit for hydrogen-windows-installer-20060309

1 reply [Last post]
cbassti1
Offline
Joined: 04/17/2010

Hello
I use hydrogen-windows-installer-20060309 on windows but I make the drumkit with Linux
I want to do a drumkit, but I have a probleme whit the last version.

I have a directory with 130 .flac files
For that I make a linux script for generate the drumkit.xlm

the script
#! /bin/sh
KIT_NAME="drumkit_name"
AUTEUR="Bass"
COUNT=0

cat << FIN

$KIT_NAME
$AUTEUR

FIN
for i in *.flac ; do
# i=${i##*/}
cat << FIN1

$COUNT
${i%.*}
1
false
false
1
1
0
1
false
1
0
0
0
1
1000
-1
$i

FIN1
COUNT=$((COUNT + 1))
done

cat << FIN2

FIN2

I run this script

cd /my/directory/flacfile/
myscipt > drumkit.xml

I copy the directory in my home windows/.hydrogen/data
I see the drumkit in Hydrogen
I charge the drumkit,
I see sounds, but I can not listen the sound and I don't see the graph in Instruments/layer

I test too with only One and 15 sounds is the same.
Need Hydrogen an other files for see my drumkit ?

Thank's

I'm sorry Is good. The name of my drumkit hasn't the same of the directory.
Now is good.
You can use the script, but don't forget the name of directory need to be the same of the drumkit name

vonnetube
Offline
Joined: 04/17/2010

I liked the script but it had some problems; changed the drumkit name so it matches folder, made creation of the "drumkit.xml" included, made moving of the folder included, you must change the folder path to your folder path to */.hydrogen/data, (or whatever you path is). Also since i am working with wav's i changed the .flac to .wav

save it to your usr/bin and then anytime you want to create a kit, make a folder with .wav's in it, cd to the folder, and type "sh nameofscript":

#! /bin/sh
STRING=`pwd`
KIT_NAME=`basename $STRING`
AUTEUR="J"
COUNT=0
cat >drumkit.xml << FIN

$KIT_NAME
$AUTEUR

FIN
for i in *.wav ; do
# i=${i##*/}
cat >>drumkit.xml << FIN1

$COUNT
${i%.*}
1
false
false
1
1
0
1
false
1
0
0
0
1
1000
-1
$i

FIN1
COUNT=$((COUNT + 1))
done

cat >>drumkit.xml << FIN2

FIN2

mv `pwd` yourpath/.hydrogen/data

thats it...