Skip to Content

latency

13 replies [Last post]
rsteele
Offline
Joined: 04/17/2010

I have a midi drum kit driving hydrogen in xubuntu and it works great. I tried the same thing in xp with the 9.6 snapshot 1 install and latency is really bad.any help?

mauser
Offline
Joined: 03/30/2010

Hey!

Are you using the asio4all driver? If not, try it :)

rsteele
Offline
Joined: 04/17/2010

I installed the asio4all driver but jack doesen't have it as an option in driver selection.

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

yes, you have to set it manually.

something like this:
jackd.exe -S -R -d portaudio -d ASIO:ASIO4ALL v2 -r 48000 -p 512

rsteele
Offline
Joined: 04/17/2010

what?how/where do I set it manually?

Joey Driven
Offline
Joined: 04/17/2010

hi Wolk, I've downloaded version 2.10 of asio4all and installed it. 1. There is no application icon other than the uninstall icon.
2. The no asio4all button appears to the right bottom of my screen.
3. my Hydrogen DOS window does not let me enter code at a C:/ prompt.
4. please give us step by step instructions on how to install/activate asio4all in the Hydrogen application.

Thank you for your work. I hope I can make it up to you.

Joey Driven

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

you need no asio button or so on

step by step:
1. install jack1.9.5 hydrogen only work with thi version
you can find it into your hydrogen installation directory. for example C:\Programme\Hydrogen\jack_installer

skip the first step if you already have installed jack1.9.5

2. start "jack control" e.g. programs->jack v1.9.5->jack control
3. open the setup window by clicking on setup.
there are some interface/device drop downs (interface,input device and output device). important is interface. here you have to write which interface and driver you will use. to find a list of available interfaces there are a arrow behind the drop-down. the problem here its not active:(. but you can use the arrow behind the input or output/device drop-downs. by pushing this arrow you get an list of possible interfaces and drivers. maybe also external soundcards and their coresponding drivers. if you have installed asio4all you also find an entry like this ASIO::ASIO4ALL v2. copy this from your inpot or output device dropdown into the interface dropdown and select "default" into your input/output device dropdowns.
other important settings are:
serverpath: jackd -S
Driver: portaudio

save this settings close the window and start jack.
4. start hydrogen and activate jack into the audio settings tab.
press ok and restart hydrogen.
now hydrogen is connected via jack to your asio4all driver.
easy.

rsteele
Offline
Joined: 04/17/2010

Sorry dude, that didn't work.Latency is still bad.

rsteele
Offline
Joined: 04/17/2010

Hello!? I followed the instructions again and I now have BSOD.Any help?

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

sorry, don't know what's going wrong on your system :(. but what means BSOD?? :)

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

did you mean BSoD? sorry, maybe it's better to use linux.

rsteele
Offline
Joined: 04/17/2010

Yes.Sorry I meant blue screen of death.Just tried it on another pc and its ok.Stupid windows.C++,service packs,directX have to be just right.Linux is better.I wanted to see if I could get the same performance out of windows because I saw some netbooks on eBay for about $75(US) that would make a great portable system for my drums.Oh well I'll go back to my hardware hacking.Soon I will have my Frankenstein drum project finnished and I will post it on here.Thanks!!

Jimbob
Offline
Joined: 04/17/2010

Hi all,

I had a problem with latency and this page helped out loads, thanks to all who contributed!

But I still have a little bit of latency left.

I'm trying to get the old Rock Band kit working on windows. Coming from a real kit, latency is pretty unsettling, but I really like Hydrogen and I think that with Jack and ASIO it's probably the best solution to get a Rock Band kit working on a computer.

So I've set up Jack as recommended here and I've got my Frames/Period down to 16, the lowest it'll go. Jack tells me that latency is 1ms. I guess that on Windows a lot of Jack's settings don't make a difference but I tried playing with them anyway.

In ASIO4ALL:

Buffer size: 512
Latency compensation in: 32
Latency compensation out: 32
Hardware buffer unticked

There is still some lag between hitting the drum and hearing the sound. I'd guess it's about 100ms. So finally here's my question:

What other things cause latency with this setup and how can they be improved?

I'd like to know where it's coming from so I know whether to just accept it or whether an upgrade to PC/soundcard would help.

Thanks very much!