Skip to Content

how to load specific sound library on startup

5 replies [Last post]
nickleus
Offline
Joined: 04/17/2010

i am starting hydrogen from a script (along with some other programs) and would like it to startup up with the EasternHop-1 sound library loaded.

does hydrogen have any arguments in bash that would let me specify a particular sound library that i would like loaded on startup? how would i do this?

---
check out my free http://nickleus.com
help me improve my http://worldphrasebook.net of world languages

mauser
Offline
Joined: 03/30/2010

Hey ho!

Yes, that's possible.. i've implemented this some time ago, but i'm not sure if its in 0.9.4 or trunk(0.9.5). You can check if your version supports it by calling "hydrogen --help", look for the parameter "-k". Here's an example how to use it:

./hydrogen -k ./data/drumkits/TR808EmulationKit/

HTH,
Sebastian

nickleus
Offline
Joined: 04/17/2010

it wasnt in 0.9.4 so ill have to compile 0.9.5 i guess =)

---
check out my free http://nickleus.com
help me improve my http://worldphrasebook.net of world languages

nickleus
Offline
Joined: 04/17/2010

$ hydrogen --kit /usr/share/hydrogen/data/drumkits/EasternHop-1
hydrogen: unrecognized option '--kit'

i've also tried with "-k"
the flag is in the list when you run --help
but it doesnt get recognized...

---
check out my free http://nickleus.com
help me improve my http://worldphrasebook.net of world languages

nickleus
Offline
Joined: 04/17/2010

dont worry, i'm creating a patch for this...

---
check out my free http://nickleus.com
help me improve my http://worldphrasebook.net of world languages

nickleus
Offline
Joined: 04/17/2010

here's how i patched the main.cpp file on ubuntu 10.4, fyi:
1. first of all i changed the source code in main.cpp
2. then i create a patch file for this to send to the developers team:
cd /usr/src/hydrogen
svn diff > main_cpp.diff

3. then i need to test this on a clean svn repo:
cd /usr/src/
sudo mkdir hydrogentest
sudo chmod 777 hydrogentest
svn co http://svn.assembla.com/svn/hydrogen/trunk hydrogentest
cp /usr/src/hydrogen/main_cpp.diff /usr/src/hydrogentest/
cd /usr/src/hydrogentest
patch -p0 < main_cpp.diff

---
check out my free http://nickleus.com
help me improve my http://worldphrasebook.net of world languages