Skip to Content

Audio export failure in 0.9.4 stable !

20 replies [Last post]
tungee
Offline
Joined: 04/17/2010

I have an export problem in Hydrogen.
When i export an single pattern as a wav file , the exported file is shorter than the pattern was in hydrogen!
this means: when i import my exported loop in a sequencer , i realize that the exported track is shorter than in the hydrogen pattern. Therefore the loops are not seamless.
Why does hydrogen produces shorter wav files?
I cant use hydrogen for production, its sad.

joostjodel
Offline
Joined: 04/17/2010

I think I had the same problem as you describe. An easy solution is to create a song from e.g. four bars of a single pattern, and export this song. You can then easily crop this wav file into a single loop.

tungee
Offline
Joined: 04/17/2010

I know that but its very uncomfortable!
On linux and win they dont have this problem!
but thanx to your reply;
Would it be so hard for the develeopers to kill this ugly bug?

mauser
Offline
Joined: 03/30/2010

Hi,

this bug exists on all platforms. We don't have a solution for this at the moment.
- Sebastian

yvangkwheng
Offline
Joined: 04/17/2010

i should its almost impossible to get rid of this bug. coz no thing is perfect tho, the system is no exception.

http://www.elinksoflondon.co.uk/
http://www.ugg-mall.com/

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

svn rev 1466 improve the h2 export functions.
also it solve the sample length problem.
of course the export samplerate settings must be the same than the samplerate you use in your composite application.

joostjodel
Offline
Joined: 04/17/2010

Thanks wolke!!
Works well here, although the problem described here - H2 cropping off the last part of a pattern - isn't solved.
What would be nice though if H2 would remember your last settings as the default setting. Now it defaults to 44.100 Hz/ 16bit.
==
New binary with wolke's audio export feature (osx 10.6 64bit ):

http://web.inter.nl.net/users/chef/Hydrogen-svn1466.dmg (ca. 19 MB)
==edit==
binary removed, go to this section of the forum for latest binary:
http://hydrogen-music.org/forum/index.php?action=show_thread&thread=1166&fid=7&page=1

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

hiho,
fast... 30 minuts to create a new binary :).
ok, did you test the new rubberband feature under osx.
you have to install the rubberband-cli you find here.
http://www.breakfastquay.com/rubberband/
i am interested if it works under osx.
just now i create a h2-rubberband demo video. maybe tomorrow its ready.

i generally solved an other length problem.
this was the problem that the timing from your exports wasn't right. this happens because hardware dependent samplerate settings. now h2 use fixed rates to export.

i found the problem now. think i can fix it.

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

now this end of export gap problem is fixed.
checkout rev 1467.
greetings wolke

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

up to rev 1472 i have add some improvements. (format templates)

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

rev 1472 also solve some bugs. imo this is a good point to test all export functions.

here a summary of changes i made:
1. use fixed hardware independent samplerates
2. allow more export formats (wav, aiff, flac and ogg)
3. allow format dependent settings for samplerate and sample depth
4. give some format templates
5. fix two general bugs
* end of export gap
* exact export output sample length.

joostjodel
Offline
Joined: 04/17/2010

Hey, nice work wolke!

I think you solved this export issue. The exported wav file loops perfectly now! Great job.

New DL:
http://web.inter.nl.net/users/chef/Hydrogen-svn1474.dmg (ca. 19 MB)

I also installed rubberband and will check out how that works too under macosx.
==edit==
binary removed, go to this section of the forum for latest binary:
http://hydrogen-music.org/forum/index.php?action=show_thread&thread=1166&fid=7&page=1

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

i have no mac. general under linux h2 found the rubberband cli in environment.
if you have an other path to your rubberband cli you can edit the path to your binary into the preferences dialog first tab.

e.g
/home/yourhome/bin/rubberband

if hydrogen found the rb cli in env. you can find some combo boxes into sample-editor which can control the rubberband cli.

what ever i have no luck with kdenlive to create an nice video. since my last apt-get update kdenlive is broken. ahhhhhrg :(.
so i only make a small record to show how rubberband works.

into the video you can see where you find the configuration and also how i cut an drum sample to a 8 beats long surf beat.
after i will fit this to the current running bpm. sample length is in dependences from bpm. h2 now can calculate the right length using rubberband. so the sample fit to the pattern.
also you can see how you can make transient settings.

at least you see what happens if you enable a small rubber button on the left side from bpm widget. after activating h2 recalculate automatically all samples which use rubberband every time you change bpm.

the video
http://popez.org/~wolke/hydrogen/video//h2-video-2.ogv

tungee
Offline
Joined: 04/17/2010

joostjodel and wolke, great news you both made.

joostjodel , do you have an build for Leo osx?
The last one you made had crashed......

Yuhuuuuuuu!

joostjodel
Offline
Joined: 04/17/2010

@tungee Sorry, I am on Snow Leopard and I've set everything up for this system, so the resulting binary does not work for Leopard (and frankly I am too lazy to reinstall everything..)

But I'll update the wiki with more detailed instructions how to build Hydrogen on the mac os platform. There are quite a number of steps involved but it isn't difficult anymore - esp. since mauser is on osx too..:).

http://trac.assembla.com/hydrogen/wiki/development%3AcompileOSX

joostjodel
Offline
Joined: 04/17/2010

@tungee

Sorry man but I just do not understand how to compile H2 under Snow Leopard so that it it also runs on Leopard. I've tried setting things in the Sconstruct file like

cppflags += ['-O3', '-host=i386', '-isysroot /Developer/SDKs/MacOSX10.5.sdk', '-mmacosx-version-min=10.5', '-fomit-frame-pointer', '-funroll-loops']

in various combinations..
But if it would compile at all, none of the resulting binaries would run on my girlfriend's Leopard machine :(

Anyway, I also pulled my old Powerbook from the closet, and H2 builds perfectly on it. You can run this PPC binary on Leopard (through the Rosetta emulation layer, this is installed by default under Leopard). It will be a bit slower but at least you can run it now..!

Intel Snow Leopard x86_64 http://web.inter.nl.net/users/chef/Hydrogen-svn1485-x86_64.dmg (ca. 28 MB)

PowerPC Leopard ppc http://web.inter.nl.net/users/chef/Hydrogen-svn1482-ppc.dmg (ca. 20 MB)

mauser
Offline
Joined: 03/30/2010

Dual-Builds ( for x64 and i386) are not easy. You have to build *all* libraries for both architechtures ( if i'm not completely mistaken ).
That's a lot of work. Another approach would be to setup a second pure-32bit system in a virtual machine (maybe parallels?). But even that is a lot of effort just for packaging.

I think we should check first if we could improve the documentation about the build process *for users*. The current documentation is more written for people who want to build packages.

I'm going to rebuild hydrogen here (with the steps from the manual) next week and see if something is wrong with the documentation and jack..

joostjodel
Offline
Joined: 04/17/2010

Hi,

If I am not mistaken it's even more complex, since we're actually dealing with two more or less separate things:

1. Building for multiple platforms: Leopard (10.5), Snow Leopard (10.6) - I think we have to forget about Tiger (10.4) since it's so old now.
2. Building for multiple architectures: i386 and x86_64 - and the old PPC which is also becoming more and more obsolete.

If I am not wrong you can actually run x86_64 binaries under both Snow Leopard (10.6) and Leopard (10.5), except on older Intel Mac hardware. Technically it should therefore be possible to build both i386 and x86_64 "universal" binaries, which run on both 10.5 and 10.6, if you have the SDKs for both 10.5 and 10.6 installed.

But yeah it's quite hard to do.. I did build *all* necessary libraries through Macports with the +universal option. Macports made so-called 'fat binaries' which run on both i386 and x86_64. This can be checked by the command

$ lipo -info

So far so good. But then compiling Hydrogen itself gives a x86_64 binary which only runs on 10.6, no matter what options I try to feed to g++.

Your idea of a virtual machine is a good one, but indeed a lot of trouble just for packaging..

About the manual: I've updated it a few days ago. Building is now much much easier. If you could please follow these steps, and suggest improvements/things you run into??
The jack thing has me puzzled too.. Maybe it's because I linked to the jack build by Macports?

tungee
Offline
Joined: 04/17/2010

I tried your PPC build but it crashes immediatly....
I dont know why!
Who made the latest "final" version. This was leo compatible.
Nevertheless lot of thanx for your both efforts.

joostjodel
Offline
Joined: 04/17/2010

@tungee: can you please post the error log? Either the crash log, or by running H2 in the terminal:

$ /Applications/Hydrogen.app/Contents/MacOS/Hydrogen-bin (if you have H2 under /Applications)

The last 'official' build (0.94) was made under Leopard, so that explains.

BTW have you tried following the steps described in the http://trac.assembla.com/hydrogen/wiki/development%3AcompileOSX?

shirleyyang
Offline
Joined: 04/17/2010

http://www.audioconverterformac.com/audio-file-converter.html is a professionsl audio conversion software which can help you convert various audio formats like MP3, M4A, WAV, WMA, MP2, OGG, AAC without linitation. Moreover, Audio File Converter provides batches conversion to save time.It can also help you convert video from AVI, MPEG, WMV, MP4, FLV, MKV, MPEG-4, DivX, XviD, MOV, RM, RMVB, M4V, VOB, etc to any audio you want. You can also merge video clips into one folder, trim videos, crop videos, etc. Besides, Audio File Converter allows you to customize videos settings such as Bitrate, Bandwidth, Channels, according to your devices. Once owning this Audio File Converter, intuitive interface and best conversion make audio conversion much easier and faster. Just a few minutes later, ,you can enjoy the converted audio files on your various portable music devices like iPhone,PSP, iPod at any time and place. Come to try this great Audio File Converter.