You are not logged in.

#1 2004-05-27 01:40:03

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

[multimedia: sound&audio] hydrogen

Hydrogen is a drum loop editor.  I disabled JACK support since it's not part of the distribution yet.  Here's the PKGBUILD:

# Contributor: K. Piche <kpiche@rogers.com>
pkgname=hydrogen
pkgver=0.8.2
pkgrel=1
pkgdesc="Hydrogen is an advanced drum machine for GNU/Linux"
url=(http://hydrogen.sourceforge.net/)
depends=('alsa-lib' 'audiofile' 'liblrdf' 'qt')
source=(http://dl.sourceforge.net/sourceforge/hydrogen/$pkgname-$pkgver.tar.gz
hydrogen-0.8.2.patch)
md5sums=('65e16cabfaa414dabdd0039cad5eee94' 'd2de6e8147eb99f7899f2f1d0b5e674f')
 
build() {
  cd $startdir/src/$pkgname-$pkgver
  #  correct compile errors.
  patch -Np0 -i ../hydrogen-0.8.2.patch
  ./configure --prefix=/usr --disable-jack-support
  make || return 1
  make DESTDIR=$startdir/pkg install
}

And the hydrogen-0.8.2.patch:

--- lib/Hydrogen.cpp.orig       2004-05-26 16:52:15.000000000 -0400
+++ lib/Hydrogen.cpp    2004-05-26 16:56:10.000000000 -0400
@@ -2502,7 +2502,7 @@
  
        float fBPM = 60000.0 / fInterval;
  
-       if ( abs(fOldBpm1 - fBPM) > 20 ) {      // troppa differenza, niente media
+       if ( fabs(fOldBpm1 - fBPM) > 20 ) {     // troppa differenza, niente media
                fOldBpm1 = fBPM;
                fOldBpm2 = fBPM;
                fOldBpm3 = fBPM;
--- hydrogen_gui/AudioEngineInfoForm_UI.h.orig  2004-05-26 17:06:29.000000000 -0400
+++ hydrogen_gui/AudioEngineInfoForm_UI.h       2004-05-26 17:14:11.000000000 -0400
@@ -12,6 +12,7 @@
  
 #include <qvariant.h>
 #include <qwidget.h>
+#include <qlayout.h>
  
 class QVBoxLayout;
 class QHBoxLayout;
@@ -56,6 +57,8 @@
     QLabel* currentPatternLbl;
     QLabel* TextLabel1_2_2;
     QLabel* m_pSongPositionLbl;
+    QSpacerItem* Spacer1;
+    QSpacerItem* Spacer2;
  
 protected:
     QHBoxLayout* Layout2;
--- hydrogen_gui/LadspaFXSelector_UI.h.orig     2004-05-26 17:24:11.000000000 -0400
+++ hydrogen_gui/LadspaFXSelector_UI.h  2004-05-26 17:24:48.000000000 -0400
@@ -12,6 +12,7 @@
  
 #include <qvariant.h>
 #include <qdialog.h>
+#include <qlayout.h>
  
 class QVBoxLayout;
 class QHBoxLayout;
@@ -51,6 +52,8 @@
     QLabel* m_pMakerLbl;
     QLabel* textLabel5;
     QLabel* m_pCopyrightLbl;
+    QSpacerItem* Spacer1;
+    QSpacerItem* Spacer2;
  
 public slots:
     virtual void pluginSelected();
--- hydrogen_gui/PreferencesDialog_UI.h.orig    2004-05-26 17:29:30.000000000 -0400
+++ hydrogen_gui/PreferencesDialog_UI.h 2004-05-26 17:36:13.000000000 -0400
@@ -12,6 +12,7 @@
  
 #include <qvariant.h>
 #include <qdialog.h>
+#include <qlayout.h>
  
 class QVBoxLayout;
 class QHBoxLayout;
@@ -83,6 +84,8 @@
     QLabel* mixerFontLbl;
     QLabel* textLabel1;
     QLabel* textLabel3;
+    QSpacerItem* Spacer1;
+    QSpacerItem* Spacer2;
  
 public slots:
     virtual void cancelBtnClicked() = 0;

These two files are also tarred up in incoming.

Offline

#2 2004-05-27 01:48:36

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [multimedia: sound&audio] hydrogen

Wow!  Thanks a lot!  I've been trying to get this to work for a long time!  I ended up getting the cvs snapshot to work, but boy!  That was buggy as heck!  I'd love to see this package in the official respitories!


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#3 2004-05-27 01:53:25

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [multimedia: sound&audio] hydrogen

That was a quick reply!  No problem...

Offline

#4 2004-05-27 01:55:57

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [multimedia: sound&audio] hydrogen

You just need to fix your md5sums for the patch, and it makepkgs fine.

[edit] I spoke too soon... I'm getting comile errors :-  I'll post them in a second...


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#5 2004-05-27 02:09:56

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [multimedia: sound&audio] hydrogen

g++ -DHAVE_CONFIG_H -I. -I. -I..   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O3  -c -o Hydrogen.o `test -f 'Hydrogen.cpp' || echo './'`Hydrogen.cpp
Hydrogen.cpp: In member function `void Hydrogen::setTapTempo(float)':
Hydrogen.cpp:2505: error: call of overloaded `abs(float)' is ambiguous
/usr/include/stdlib.h:740: note: candidates are: int abs(int)
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/cstdlib:153: note:                 long long int __gnu_cxx::abs(long long int)
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/cstdlib:123: note:                 long int std::abs(long int)
make[2]: *** [Hydrogen.o] Error 1
make[2]: Leaving directory `/home/punkrockguy318/hydro/src/hydrogen-0.8.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/punkrockguy318/hydro/src/hydrogen-0.8.2'
make: *** [all] Error 2

Those are  my errors...


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#6 2004-05-27 02:15:56

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [multimedia: sound&audio] hydrogen

Hmm... I downloaded the version from incoming, and it works fine so far...  the compile is looking good.  Recopy and paste your PKGBUILD and patch on the forum post, I think the ones on the forum are invalid


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#7 2004-05-27 03:07:34

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [multimedia: sound&audio] hydrogen

The problem is how the tabs from the original patch were converted to spaces by the forum software.  I'm not sure how to get around this.

Offline

#8 2004-05-27 20:49:26

shadowplay
Member
From: Gotheburg, Sweden
Registered: 2004-05-26
Posts: 13

Re: [multimedia: sound&audio] hydrogen

ok, great! i've got 0.8.2 running with jack! it's with jack that hydrogen becomes really interesting, so i hope to se it as a official package soon(0.9.4.0 is in incoming). Then if rosegarden and ardour comes in, arch will be an attractive choice for the music studio!

Offline

#9 2004-05-27 21:40:51

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: [multimedia: sound&audio] hydrogen

I second the motion for ardour ...when it finally becomes stable.

http://ardour.org/news.html

It's getting to be very frustrating to use while all these big changes are going on.

Back on the thread subject, nice PKGBUILD!  I wouldn't mind if jack were included by default either.  Arch's minimalist POV provides an excellent platform for running audio apps.

Offline

#10 2004-05-27 21:49:04

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [multimedia: sound&audio] hydrogen

Arch (with hydrogen) has everything I need for recording.

1) GTick
2) Audacity
3) ALSA
4) Hydrogen
5) K3B
6) LAME

For now I have win98 on the machine I use for recording - but I guess now that there's a stable hydrogen pkg, I might as well put Arch down there!  Does Arch have any tools of the 0.6 disk that can resize FAT32?  Or will I have to use System Rescue Disk (Gentoo live cd)?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#11 2004-05-27 23:19:15

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [multimedia: sound&audio] hydrogen

The AIR shows that ardour and rosegarden are available in incoming.

Offline

#12 2004-05-28 12:29:35

shadowplay
Member
From: Gotheburg, Sweden
Registered: 2004-05-26
Posts: 13

Re: [multimedia: sound&audio] hydrogen

punkrockguy318 wrote:

Arch (with hydrogen) has everything I need for recording.

1) GTick
2) Audacity
3) ALSA
4) Hydrogen
5) K3B
6) LAME

For now I have win98 on the machine I use for recording - but I guess now that there's a stable hydrogen pkg, I might as well put Arch down there!  Does Arch have any tools of the 0.6 disk that can resize FAT32?  Or will I have to use System Rescue Disk (Gentoo live cd)?


For the most importent things for recordning is rather something like this

* ALSA (ok)
* JACK
* LADSPA-plugins (ok)
* Ardour
* Audacity (ok)
* Hydrogen (ok!)
* Rosegarden-4

then there's a lot more...

Offline

#13 2004-05-28 12:46:39

shadowplay
Member
From: Gotheburg, Sweden
Registered: 2004-05-26
Posts: 13

Re: [multimedia: sound&audio] hydrogen

I've created another thread for discussion audio/music with arch
http://bbs.archlinux.org/viewtopic.php?t=4790

Join it!

Offline

#14 2004-06-09 19:10:20

atif63
Member
Registered: 2004-04-08
Posts: 11

Re: [multimedia: sound&audio] hydrogen

Building hydrogen i get an error
makepkg
==> Making package: hydrogen  (Wed Jun  9 15:02:43 EDT 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found hydrogen-0.8.2.tar.gz in build dir
==>     Found hydrogen-0.8.2.patch in build dir
==> Validating source files with MD5sums
    hydrogen-0.8.2.tar.gz ... Passed
    hydrogen-0.8.2.patch ... FAILED
==> ERROR: One or more files did not pass the validity check!


Does this have to do with MDSUM, if so how do i fix. ??
Whereis 'incoming" so i can get the original file.

Thanks
:shock:


HeTePu

Offline

#15 2004-06-10 11:35:23

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [multimedia: sound&audio] hydrogen

See my comment about this about 8 posts up.  The patch got mangled by cut and pasting.  Download the tar file from Arch incoming for a correct version of the patch.

Offline

#16 2004-06-10 16:57:56

atif63
Member
Registered: 2004-04-08
Posts: 11

Re: [multimedia: sound&audio] hydrogen

Did read post previously, but was not clear how to find 'incoming'.
Eventually found incoming, got the patch and the program built.
So far i've got jack and hdrogen installed.
Trying to understand how jack works or how to use it.. I usually get a graphical interface on ccrma.
Will qjackctl be available for arch, wil try to build.
Next up are rosegarden, ladspa and rezound, snd 'if available.'

Thanks a lot.


HeTePu

Offline

#17 2004-06-10 17:20:52

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [multimedia: sound&audio] hydrogen

Ah.

LADSPA and snd are already available via pacman.  I tried building rezound but had too many C++/gcc 3.4 issues.  Rosegarden is in incoming but may not build anymore with gcc 3.4.

Offline

#18 2004-06-10 18:54:03

atif63
Member
Registered: 2004-04-08
Posts: 11

Re: [multimedia: sound&audio] hydrogen

Thanks

Didn't notice qjackctl or qjackconnect in incoming.

Tried to build qjackctl, but can't find qt3-devel.
MYPKGBUILD
--------------------------------------------------------------
pkgname=qjackctl
pkgver=0.2.8
pkgrel=1
pkgdesc="A simple Qt app to control the JACK sound server daemon"
url="http://qjackctl.sourceforge.net/"
depends=('alsa-driver' 'jack-audio-connection-kit')
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://prdownloads.sourceforge.net/sourceforge/qjackctl/$pkgname-$pkgver.tar.gz)
md5sums=()

build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr/local
make || return 1
make DESTDIR=$startdir/pkg install
}
-------------------------------------------------
ERROR
checking for Qt library version >= 3.1.1... yes
checking for qmake... no
configure: error: qmake not found in current PATH. Maybe QT development environment isn't available (qt3-devel).
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...

I do have qmake installed
Can't find qt3-devel arch package, found rpm package on rpmfind.

Any help appreciated
Thanks


:shock:


HeTePu

Offline

#19 2004-06-10 22:34:42

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [multimedia: sound&audio] hydrogen

/opt/qt/bin/qmake is provided by the qt package.  You probably just need to set your PATH or provide the path to ./configure.  You should make your package depend on qt as well.

Offline

#20 2004-07-20 23:49:26

jsutnoni
Member
Registered: 2004-02-07
Posts: 105

Re: [multimedia: sound&audio] hydrogen

This app looks awsome and i would love to get it working. When i try running it i get this error.

[jsutnoni@Otis jsutnoni]$ hydrogen
hydrogen: error while loading shared libraries: libcurl.so.2: cannot open shared object file: No such file or directory

Iv got curl installed and updatedb && locate lubcurl.so.2 pulls nothing. Any suggestions?


-=JsutNoni=-

Offline

#21 2004-07-21 00:22:43

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [multimedia: sound&audio] hydrogen

Offline

#22 2004-07-21 00:53:29

jsutnoni
Member
Registered: 2004-02-07
Posts: 105

Re: [multimedia: sound&audio] hydrogen

sweet that worked! slocate libcurl.so found /usr/lib/libcurl.so.3 so i jsut simlinked it to /usr/lib/libcurl.so.2 and everything works jsut fine now. Thanks!


-=JsutNoni=-

Offline

#23 2004-07-21 20:39:37

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [multimedia: sound&audio] hydrogen

hehe, no problem. big_smile

/me hails www.google.com/linux

Offline

#24 2004-07-21 22:56:50

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: [multimedia: sound&audio] hydrogen

jsutnoni wrote:

sweet that worked! slocate libcurl.so found /usr/lib/libcurl.so.3 so i jsut simlinked it to /usr/lib/libcurl.so.2 and everything works jsut fine now. Thanks!

Hm folks, good if you can help your self but won't help me as maintainer.
Strange thing is that I didn't build it against an old libcurl it might be another
lib called by hydrogen.
Seems that it can be an heritage from raptor. I just checked on my build
box, the one I built official hydrogen on, that the apps all call libcurl.so.3.

So please make sure all things are uptodate.

-neri

Offline

#25 2004-07-22 02:55:09

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [multimedia: sound&audio] hydrogen

neri wrote:
jsutnoni wrote:

sweet that worked! slocate libcurl.so found /usr/lib/libcurl.so.3 so i jsut simlinked it to /usr/lib/libcurl.so.2 and everything works jsut fine now. Thanks!

Hm folks, good if you can help your self but won't help me as maintainer.
Strange thing is that I didn't build it against an old libcurl it might be another
lib called by hydrogen.
Seems that it can be an heritage from raptor. I just checked on my build
box, the one I built official hydrogen on, that the apps all call libcurl.so.3.

So please make sure all things are uptodate.

-neri


neri:  hydrogen just needs a rebuild, then it'll be fine.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

Board footer

Powered by FluxBB