Skip to Content

why is the layering sized to 16 layers per instrument ?

29 replies [Last post]
darthvim
Offline
Joined: 04/17/2010

i wondered why layers for the instruments are sized to 16 - hydrogen is running so smooth without lags and low cpu usage....

is there an easy way to change this in the code ?
if yes i would play with the code a bit... but if not it would be nice if someone who is into hydrogen-code could do this for me.

thanks in advance

schiavoni
Offline
Joined: 04/17/2010

Hi Guys

Darthvim, I agree with you. Recently I got one drum samples DVD and I started doing some hydrogen drumkits. Unfortunely I can use only 16 layers per instrument. It's good, maybe it's enought but I got more samples and I also want to have more layers.

I guess you are doing something like this too. When I finish doing this I think I will publish the drumkit to Hydrogen comunity. If you are doing drumkits, please, publish yours too.

Att

Flavio Schiavoni

P.S.: As an ex-fruitloops-user I understand that posting about random samples choosing. I still prefer the idea of velocity to pick a layer but this feature could be nice too...

P.S.2: I wish a way to choose a lot of samples and hydrogen do the dirty job: put then into layers and divide the velocity bars. It would help a lot.

darthvim
Offline
Joined: 04/17/2010

i bought a sample dvd,too (from naturalstudio - the ones who made the ns_kit7free for hydrogen) and have the same problem

thanks :) - for sharing the same opinion.

the velocity option is great but it would be even more realistic if the sound for the same velocity would be chosen randomly (at one velocity - i hope it's clear what i mean ... ?)

Magnetic
Offline
Joined: 04/17/2010

Hi guys, Would you not be able to have as many layers as you want in audacity and also be able to apply effects?
Then import the result as one layer into the project?

wolke
wolke's picture
Offline
Joined: 03/30/2010

hiho,
i have create a small patch against hydrogen 0.9.4 svn rev 545.
try 64 layers;-))! the patch is untested. i don't know if it works bugfree.

view the scrollbar:
[img]http://popez.org/~wolke/hydrogen/images/64_layer_scroll.png[/img]

wolke

wolke
wolke's picture
Offline
Joined: 03/30/2010

hiho,
>P.S.2: I wish a way to choose a lot of samples and hydrogen do the dirty job: put then into layers and divide the velocity bars. It would help a lot.
a few weeks ago, i have create a new sample file browser, today i have add a new checkbox to set automatic velocity if a new layer would create. that means, the velocity of each layer will set automatically.
in the next days a multiple file selection to load more than 1 sample will follow.

to get this stuff, check out:
svn co http://hydrogen-music.org/svn/branches/audiofilebrowser filebrowserversion

[img]http://popez.org/~wolke/hydrogen/images/AudioFileBrowser.png[/img]

to get 64 layers, download the patch from my previous post and apply the patch to the file-browser-version.

unzip the patch into the file-browser-version directory, e.g. ~/filebrowserversion and do a
patch -p0 < rev545_64_layer.patch

darthvim
Offline
Joined: 04/17/2010

thanks alot i 'll try it out on friday ... :)
tell you at the weekend how it is :)

bye

darthvim
Offline
Joined: 04/17/2010

your filebrowser looks great but how to compile it ?

wolke
wolke's picture
Offline
Joined: 03/30/2010

i don't know anything about your linux experience, so i make a step by step description to build h2 into a new directory called "~/svn/filebrowserversion".

dependences to build hydrogen:
http://hydrogen-music.org/devel/wiki/development%3Aqt4compile

1. open a console
2. mkdir svn
3. cd svn
4. svn co http://hydrogen-music.org/svn/branches/audiofilebrowser filebrowserversion
5. cd filebrowserversion

(do step 6 + 7 only if you want 64 layers)
6. wget http://popez.org/~wolke/hydrogen/patches/rev545_64_layer.patch
7. patch -p0 < rev545_64_layer.patch
ignore this message (Hunk #1 succeeded at 104 (offset 1 line))
8. scons
9. ./hydrogen &

hope this help :-)
wolke

yervah
Offline
Joined: 04/17/2010

tried it and loving it. only thing is Hydrogen keeps dropping the jack connection no matter witch version of the svn. Also takes about 3-5 times of trying to launch before it stays up.

mauser
Offline
Joined: 03/30/2010

Hi Yervah!

What do you mean with "hydrogen is dropping" the jack conection ?
Can you give us more details? I could open a ticket when i get more informations..

Thorgal
Offline
Joined: 04/17/2010

hey guys,

just passing by. The more layers you create, the more RAM you will fill up. Hydrogen loads the whole kit into RAM, be careful ...
We will need some clever way to balance the load (unload samples from RAM when not in use for a certain time, stuff like that, or do disk-streaming).

wolke
wolke's picture
Offline
Joined: 03/30/2010

@thorgal,
the 64 layers patch is not planned to go into the h2 0.9.4 trunk version. it's only a small add-on or toy which i have write for this forum topic.

wolke

darthvim
Offline
Joined: 04/17/2010

:) that's what i worte in this post ...
http://hydrogen-music.org/forum/?action=show_thread&thread=898&fid=2&page=1

nevertheless are more than 16 layers needed...
maybe 32 ...

in these days many pcs have got about 1 gb so ... it'll be ok if not the hole 64 lyers will be used - what is your opinion about it ?

darthvim
Offline
Joined: 04/17/2010

thanks worked very well :).
mutiple file selection would be great - but never the less a great browser :)
also using many layers is great ! :) - althout it costs a lot of ram ... ;)
thanks a lot

schiavoni
Offline
Joined: 04/17/2010

Wow!

Thanks, Thanks, Thanks a lot!
I didn't tried yet but it's a dream!

I'll try it.

P.S.: Can't the maxLayer be a "Preference" or something like this?

yervah
Offline
Joined: 04/17/2010

the filebrowserversion of hydrogen, is it in the regular svn version?
I miss being able to sample a sound before loading it to find out it's not the sound I'm looking for. 9.3 had that option but haven't found it in 9.4 except this version.
also, the auto velocity, it that in the regular 9.4 or just the filebrowser version.
Those along with the muting were the most important things I like about the 9.4.
I'm asking as I can't update the filebrowser version anymore but I don't wanna loose the goodies especially the browser and auto velocity.
svn: URL 'http://hydrogen-music.org/svn/branches/audiofilebrowser' doesn't exist

mauser, the issue with jack seems to have fixed itself with the filebrowser version.
I really hope that the filebrowser and auto velocity are in the svn 9.4. This is what I was looking for as I like to mix samples...

mauser
Offline
Joined: 03/30/2010

>the filebrowserversion of hydrogen, is it in the regular svn version?

Yes, since yesterday. It's the dialog which opens after clicking "load sample".

>svn: URL 'http://hydrogen-music.org/svn/branches/audiofilebrowser' doesn't exist

That's right, it was deleted after the features went into our main branch.

I don't know about "auto velocity", we have to wait for wolke to answer this :)

yervah
Offline
Joined: 04/17/2010

thanx mauser and please wolke, add auto velocity. that was one of the best features yet. safes so much time.

wolke
wolke's picture
Offline
Joined: 03/30/2010

hiho,
it's all into trunk since yesterday.
also the auto velocity function.
but for the moment no more than 16 layers are planed.
for all people who want more layers they can use the small patch i have written a few days ago.

mauser
Offline
Joined: 03/30/2010

Hi,

i've implemented a function to select multiple samples at one in the audiofilebrowser. Just hold down "ctrl" when you select the files..

yervah
Offline
Joined: 04/17/2010

and it works amazingly...

darthvim
Offline
Joined: 04/17/2010

it works so sweet... thanks :)
will the 64-layer-patch still work with the latest version ?

couldn't there be an option for at least 32 layers ? or will this somehow affect performance ?

wolke
wolke's picture
Offline
Joined: 03/30/2010

hiho,
>will the 64-layer-patch still work with the latest version ?
i dont know,but think the line numbers don't fit anymore, maybe you have to edit the code by hand :-).
it's easy :-). only the line numbers don't fit. the content from the patch works anymore.

>couldn't there be an option for at least 32 layers ? or will this somehow affect performance ?

hmm, not for the moment, many people have smaller computers, so we have to find out some better technicals to save memory to get an optimal performance.
but / and... in the moment it is not my preferred thing :-) to get more layers, sorry.
i work on an new instrument fx section and some new instrument things like loop, reverse, ping pong and so on.

darthvim
Offline
Joined: 04/17/2010

hi,
i was very satisfied with your filebrowser :)
bus today i tried to compile hydrogen on my laptop and test out some new layers but your awesome filebrowser is gone .... muhahhahahaha :(

mauser
Offline
Joined: 03/30/2010

It is not gone, it is in trunk. Are you sure you're checked out the right revison?

darthvim
Offline
Joined: 04/17/2010

that one :

http://prdownloads.sf.net/hydrogen/hydrogen-0.9.4-beta2.tar.gz?download

if it's not could you post the link please ?

mauser
Offline
Joined: 03/30/2010

Hi,

the version you're referring was released *before* we integrated the browser. You have to fetch the recent svn version from our repository.
( svn co http://hydrogen-music.org/svn/trunk hydrogen )
Hope that helps,
-Sebastian

schiavoni
Offline
Joined: 04/17/2010

Just Passing by.

I made some drumkits with 16 samplers and I use Hydrogen with RoseGarden Midi and wave tracks. I got a problem. The 3GB of memory wasn't enought. Maybe the idea of be clever is really really clever. Now I believe that 16 samples is enought.

Schiavoni

darthvim
Offline
Joined: 04/17/2010

me too ;) i've tried to make a big drumkit with 16 layers and 3gb wasn't enough, too ...

but with diskstreaming it would be ok :)