Skip to Content

Hydrogen 0.9.4 beta 2

36 replies [Last post]
Comix
Offline
Joined: 04/17/2010

It's beta 2 time! This time is also available a binary package for Ubuntu users.

Main changes:
* config option 'jack transport buffer offset' for ardour bug
* fix broken lead / lag
* several fixes into soundlibrary import
* download class now supports http redirect correctly
* config option 'adjust beatcounter offset' to get exact results with different hardware
* new statusbar message to display longer messages than 30 chars

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

Ubuntu Hardy Heron package:
http://downloads.sourceforge.net/hydrogen/hydrogen_0.9.4beta2_i386.deb

--
comix http://comix.hydrogen-music.org

Apple_jack
Offline
Joined: 04/17/2010

hope there will be a simple installer for everybody using Windows..

Comix
Offline
Joined: 04/17/2010

Unfortunately windows user have to wait for 0.9.5 version.

--
comix http://comix.hydrogen-music.org

Comix
Offline
Joined: 04/17/2010

Slackware 12.x and Debian Etch users can find the binary packages in the download page.

Ciao

--
comix http://comix.hydrogen-music.org

2Late
Offline
Joined: 04/17/2010

Does anybody had a success even compiling windows version with scons? I had a fully working system with qmake, but now scons gives errors for missing zlib.h (even filemon shows that scons/cl.exe finds it)

Comix
Offline
Joined: 04/17/2010

I'll try it after the release.

However, even if Hyd compiles on win, the windows audio driver have to be replaced with a real one.

--
comix http://comix.hydrogen-music.org

mauser
Offline
Joined: 03/30/2010

Hi,

the Debian lenny package is available at sourceforge since some minutes..

Comix
Offline
Joined: 04/17/2010

Thanks Mauser, it's also in the download page now :-D

--
comix http://comix.hydrogen-music.org

nhexima
Offline
Joined: 04/17/2010

Don't forget us Mac OS X users, please!

2Late
Offline
Joined: 04/17/2010

Getting forward with this (compiling on windows)... But why there are 'and' and 'or' used instead of && and ||?

mauser
Offline
Joined: 03/30/2010

Where?

2Late
Offline
Joined: 04/17/2010

PatternEditorInstrumentList.cpp, line 560,
SongEditor.cpp line 1275
SoundLIbraryRepositoryDialog.cpp line 77
MidiTable.cpp lines 58 and 60

For starters :-)

Also about_dialog.ui contains too long string for MSVC, how about moving that into resource file?

mauser
Offline
Joined: 03/30/2010

Hi..

I think those are better readable then "&&". And you make less errors then using "&&", because you don't have to mess around with forgetting an "&" and mistakingly typing "&" instead of "&&".
Why are you asking? Are there any problems with that on windows?

2Late
Offline
Joined: 04/17/2010

Yes, compile errors :-). This is actually the first time in ~15 years of C/C++ coding I see use of and and or instead of && and ||.. And the readability of them... IMO coders can see && or || more easily than and and or... (This is funny to write and and or or all the time :-)

BTW, where those and's and or's are defined?

mauser
Offline
Joined: 03/30/2010

Hi,

i suppose this happenend because i've a strong python-background ( and using "and" in python is pretty normal)..

Look here for more infos:

http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
( last paragraph ). But it's no problem to replace them with "&&" and "||" if the MS compilers don't like the synonyms..

2Late
Offline
Joined: 04/17/2010

Thanks for the link. You learn every day something new.

I found a header file (iso646.h) where those synonyms are defined. But still, I prefer to use && and || :-)

Last night I got compiling to point, where moc chokes on too many input files (if I remember correctly, currently at work). I hopefully can steal some time at weekend to figure out what's wrong.

2Late
Offline
Joined: 04/17/2010

I got bit further with win32 builds. Moc fails with error 'Too many input files specified'. One problem was with Sconstruct line 'includes.append( 'windows\timeFix' )'. \t becomes as tab, and IMO moc doesn't like spaces (or tabs) in filenames and another is that win32 moc uses /I instead of -I as include dir specifier.

I don't basically nothing about scons and with a fast peek into qt4.py and sconstruct, I didn't find the place, where command line is created. Any help on that?

schiavoni
Offline
Joined: 04/17/2010

Hi there

The Layer Pitch does not work.

This is part of a drumkit.xml edited in vim:

050-track40_01.wav
0
0.0625
1
10

The Pitch is not being loaded by Hydrogen.

I'm using Ubuntu Studio and the 0.9.4 beta 2 Hydrogen (from .deb package).

schiavoni
Offline
Joined: 04/17/2010

Hi Hydrogen guys

The new release is so good. It seems to be impossible but Hydrogen is still better. Some features and doubts about Hydrogen:

- How can I know the current Drumkit? The older version didn't have it easy and the new haven't too. It's very nice the new sounf library window but, maybe, It can have a hint about the current one.

- If I change a drumkit and don't save, I loose it. If I save the song but don't save the drumkit I can loose my work too. How can I save changes to the current drumkit? I found a way to save it with another name but I don't want to save it with another name, just save changes.

- The new directory (.hydrogen/data/drumkit) allow having 2 drumkits with the same name. One in the new directory and one on the old one.

- I got this error message:
hydrogen: gui/src/SoundLibrary/SoundLibraryPanel.cpp:599: void SoundLibraryPanel::on_drumkitPropertiesAction(): Assertion `preDrumkitInfo' failed.

That's it. Good job. Hope I can help.

Schiavoni

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

>- If I change a drumkit and don't save, I loose it. If I save the song but don't save the drumkit I can loose my work too. How can I save changes to the current drumkit? I found a way to save it with another name but I don't want to save it with another name, just save changes.

into the sondlibrary property's dialog activate the check box at the lower left.
'save changes made....'
than things like new instruments or all changes on instruments will save into the current loaded library. this function only work for the current loaded library.

>- The new directory (.hydrogen/data/drumkit) allow having 2 drumkits with the same name. One in the new directory and one on the old one.

hmm, thats true, but this is no feature. it only helps to be backward compatible for the old directory structure. think, this can make some problems, but imo every user can fix this problems really easy. he only have to clean up the data directory.

>- How can I know the current Drumkit? The older version didn't have it easy and the new haven't too. It's very nice the new sound library window but, maybe, It can have a hint about the current one.

jep, thats not good. but is no problem to install this feature. thinking only for a good place to display the info.

hope thats help
wolke

small patch against svn 507 to get a Drumkit-Name-Info
-------8<----------------------------------------------------------------------

Index: gui/src/PatternEditor/PatternEditorPanel.cpp
===================================================================
--- gui/src/PatternEditor/PatternEditorPanel.cpp (Revision 507)
+++ gui/src/PatternEditor/PatternEditorPanel.cpp (Arbeitskopie)
@@ -60,6 +60,9 @@

Preferences *pPref = Preferences::getInstance();

+ QTimer *timer = new QTimer( this );
+ connect(timer, SIGNAL(timeout() ), this, SLOT( updateSLnameLabel() ) );
+ timer->start( 1000 );

// Editor TOP
PixmapWidget *editor_top = new PixmapWidget(0);
@@ -80,7 +83,15 @@
editor_top_hbox_2->setMargin(0);
editor_top_hbox_2->setAlignment(Qt::AlignLeft);

+//soundlibrary name
+ pSLlabel = new QLabel( NULL );
+ pSLlabel->setText( Hydrogen::get_instance()->m_currentDrumkit );
+ pSLlabel->setFixedSize( 170, 20 );
+ pSLlabel->move( 10, 3 );
+ pSLlabel->setToolTip( trUtf8("Loaded Soundlibrary") );
+ editor_top_hbox->addWidget( pSLlabel );

+
//wolke some background images back_size_res
PixmapWidget *pSizeResol = new PixmapWidget( NULL );
pSizeResol->setFixedSize( 200, 20 );
@@ -211,7 +222,7 @@
connect( zoom_out_btn, SIGNAL(clicked(Button*)), this, SLOT( zoomOutBtnClicked(Button*) ) );
//editor_top_hbox_2->addWidget(zoom_out_btn);

-
+/*
// show drum editor btn
__show_drum_btn = new ToggleButton(
NULL,
@@ -245,8 +256,8 @@
editor_top_hbox->addWidget(__show_piano_btn);
__show_piano_btn->hide();
// End Editor TOP
+*/

-
// RULER____________________________________

// Ruler ScrollView
@@ -525,6 +536,7 @@
selectedPatternChangedEvent(); // force an update

pPropertiesCombo->set_text( trUtf8("Velocity"));
+
}

@@ -993,3 +1005,13 @@
ERRORLOG( "Unknown text: " + text );
}
}
+
+
+
+void PatternEditorPanel::updateSLnameLabel()
+{
+ QFont font;
+ font.setBold( true );
+ pSLlabel->setFont( font );
+ pSLlabel->setText( Hydrogen::get_instance()->m_currentDrumkit );
+}
Index: gui/src/PatternEditor/PatternEditorPanel.h
===================================================================
--- gui/src/PatternEditor/PatternEditorPanel.h (Revision 507)
+++ gui/src/PatternEditor/PatternEditorPanel.h (Arbeitskopie)
@@ -93,10 +93,13 @@
void moveDownBtnClicked(Button *);
void moveUpBtnClicked(Button *);

+ void updateSLnameLabel();
+
private:
H2Core::Pattern *m_pPattern;
QPixmap m_backgroundPixmap;

+ QLabel *pSLlabel;

// Editor top
LCDCombo *__pattern_size_combo;
@@ -163,6 +166,7 @@

virtual void resizeEvent(QResizeEvent *ev);
virtual void showEvent(QShowEvent *ev);
+
};

----------8<-----------------------------------------------------------------------------------------

schiavoni
Offline
Joined: 04/17/2010

I think I fixed this bug.

In instrument.cpp, lines 140 we have this:

InstrumentLayer *pLayer = new InstrumentLayer( pSample );
pLayer->set_start_velocity( pNewLayer->get_start_velocity() );
pLayer->set_end_velocity( pNewLayer->get_end_velocity() );
pLayer->set_gain( pNewLayer->get_gain() );

And I think we have to add this

pLayer->set_pitch(pNewLayer->get_pitch());

Is the problem solved?

Flávio Schiavoni

mauser
Offline
Joined: 03/30/2010

hi Flavio,

thanks for reporting this issue !! The bug is solved in rev. 508. There is another small annoyance: you have to click somtimes at another layer after loading the kit to trigger a refresh of the gui. I'll have a look at this issue tomorrow..

schiavoni
Offline
Joined: 04/17/2010

Hi Guys

I'm doing a drumkit to Hydrogen and I have a high tom and a floor tom sample. That's why I want that pitch shifter button working. Pitch shifting then I can get 2 more drum parts. But I have more than 16 samples of each one. To adjust every one of the 16 samples is not that bad but one general adjust could be better.

So I want to know if it is too hard to do a "master pitch" or a "general pitch" to the instrument window besides the "random pitch" button.

Thanks

Schiavoni

2Late
Offline
Joined: 04/17/2010

I got it to compile and it works but no sound at all...

But, Comix said earlier (However, even if Hyd compiles on win, the windows audio driver have to be replaced with a real one.), what's wrong with portaudio driver?

mauser
Offline
Joined: 03/30/2010

Hi!

Wow, that sounds great! Can we get in contact via mail to discuss some building-questions ? I want to document the build process on windows, but i got stuck building the libraries some week ago. My mail address is mauser@smoors.de .

Is "portaudio" enabled in the "drivers" dialog? Do you see any error messages ? I'm also a little bit confused by comix's statement :)

2Late
Offline
Joined: 04/17/2010

Portaudio is enabled in drivers dialog and no visible error messages. I just ran Hydrogen, put some 'notes' and cliked play -> it even does not start to play...? And you got mail

Magnetic
Offline
Joined: 04/17/2010

Hi guys, How far away does a 1.0 release look?

I do like the way this app is progressing and the new features are great.
I am finding this release very buggy and unstable however.

Do you think a 1.0 release will be production ready?
And I don't mean in the kde4 way either.

I'd love to be able to use this app more when it becomes reliable.

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

hi magnetic,
>I am finding this release very buggy and unstable however.

if you find some more bugs as reported into h2 track ticket system, http://hydrogen-music.org/devel/report/1
than- please make a small bug description and post into this forum or to the devel-mailinglist.
this will help us to make this release candidate [u]-0.9.4-[/u] more stable and bugfree.

AdamW
Offline
Joined: 04/17/2010

Hi, there. I am packaging this release for Mandriva. However, I see a few problems with the new scons buildsystem (hope none of them are operator error):

1. It doesn't use a 'scons configure' stage, which is kinda traditional for doing the library checks, setting destinations and so on.

2. It uses 'destdir' rather than the more usual (for scons) DESTDIR. Our scons build macros are set up to set DESTDIR, not destdir.

3. Most importantly, files are built during the 'scons install' stage:

+ /usr/bin/scons install DESTDIR=/home/adamw/rpm/tmp/hydrogen-buildroot prefix=/usr destdir=/home/adamw/rpm/tmp/hydrogen-buildroot

...

Install file: "data/DefaultSong.h2song" as "/home/adamw/rpm/tmp/hydrogen-buildroot/usr/share/hydrogen/data/DefaultSong.h2song"
g++ -o gui/src/Mixer/Mixer.o -c -pthread -O3 -fomit-frame-pointer -funroll-loops -DALSA_SUPPORT -DJACK_SUPPORT -DLRDF_SUPPORT -DFLAC_SUPPORT -DLADSPA_SUPPORT -DOSS_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SHARED -I/usr/lib/lash-1.0 -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -Igui/src/UI -I/usr/include/lash-1.0 -I/usr/lib/qt4/include -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtXml gui/src/Mixer/Mixer.cpp

All source should be built before the install stage happens. The install stage should *only* install built files.

AdamW
Offline
Joined: 04/17/2010

Oh, and the .desktop file does not get installed on Linux.

mauser
Offline
Joined: 03/30/2010

1. I'm not sure what you mean with a seperata "stage", but scons checks if all required libraries are installed before it starts building..

2.I've changed that now, thanks for the hint!!

3.Thats a definitely bug. I'm writing a ticket now and try to fix it later!

mauser
Offline
Joined: 03/30/2010

Is there a standard location for the ".desktop"-file ?