You are not logged in.

#1 2004-11-14 16:08:53

cereal
Member
From: Switzerland
Registered: 2004-08-29
Posts: 29
Website

[multimedia:sound synthesis] ams -> fftw2,clalsadrv+vkeyb

I tried to get Alsa Modular Synth working this weekend. Well... it runs now, but has a few dependencies, that need to be built first. Those are FFTW 2.1.5 (this is the older Version of the fftw-Package, which is incompatible to the new one) and clalsadrv, a C++ wrapper to alsa-lib.

Additionally I built vkeybd, a MIDI-Keyboard-Emulator for your PC-Keyboard big_smile

clalsadrv updated!

clalsadrv PKGBUILD:

pkgver=1.0.1
pkgrel=1
pkgdesc="ALSA driver C++ access library"
url="http://users.skynet.be/solaris/linuxaudio/"
license="GPL"
depends=('alsa-lib')
source=("http://users.skynet.be/solaris/linuxaudio/downloads/$pkgname-$pkgver.tar.bz2")
md5sums=('878c062ef1cd2d2d6f84babec5f6d58d')

build() {
  cd $startdir/src/$pkgname-$pkgver
  cat Makefile | sed -e 's/$(CLALSADRV_INCDIR)/$(prefix)&/' 
    -e 's/$(CLALSADRV_LIBDIR)/$(prefix)&/' 
    > Makefile.new
  mv Makefile.new Makefile
  make || return 1

  mkdir -p $startdir/pkg/usr/include 
    $startdir/pkg/usr/lib
  make prefix=$startdir/pkg install
}

fftw2 PKGBUILD:

pkgname=fftw2
pkgver=2.1.5
pkgrel=1
pkgdesc="FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of both real and complex data, and of arbitrary input size."
url="http://www.fftw.org/"
depends=('glibc')
source=(http://www.fftw.org/fftw-$pkgver.tar.gz)
md5sums=('8d16a84f3ca02a785ef9eb36249ba433')

build() {
  cd $startdir/src/fftw-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

ams PKGBUILD:

pkgname=ams
pkgver=1.8.7
pkgrel=1
pkgdesc="AlsaModularSynth is a MIDI controlled realtime modular synthesizer and effect processor with support for LADSPA and JACK."
url="http://alsamodular.sf.net"
license="GPL"
depends=('jack-audio-connection-kit' 'qt' 'ladspa' 'clalsadrv')
source=("http://dl.sourceforge.net/sourceforge/alsamodular/$pkgname-$pkgver.tar.bz2")
md5sums=('d9b81d611f9e116ab07d15cb533f5f6b')

build() {
  cd $startdir/src/$pkgname-$pkgver
  cat Makefile | sed -e 's/-lsrfftw -lsfftw/-lrfftw -lfftw/' > Makefile.new
  mv Makefile.new Makefile
  make 'QT_BASE_DIR=/opt/qt' || return 1

  mkdir -p $startdir/pkg/usr/bin 
    $startdir/pkg/usr/share/$pkgname

  cp -r tutorial instruments demos $startdir/pkg/usr/share/$pkgname
  cp ams $startdir/pkg/usr/bin
}

and finally, the vkeybd PKGBUILD:

pkgname=vkeybd
pkgver=0.1.17
pkgrel=1
pkgdesc="Virtual Keyboard"
url="http://www.alsa-project.org/~iwai/alsa.html"
depends=('alsa-lib' 'tk')
source=("http://www.alsa-project.org/~iwai/$pkgname-$pkgver.tar.gz")
md5sums=('3be348329a5aac3cdc21f89458d9369a')

build() {
  cd $startdir/src/$pkgname
  make PREFIX=/usr || return 1
  make PREFIX=$startdir/pkg/usr install install-man
}

I must admit, that I haven't tested the above packages heavily and I'm not very sure, wether the dependencies are all correct.

BTW: Since many of the Patchfiles, AMS comes with, use a few LADSPA-Plugins that are not yet packaged, I'm probably gonna write a PKGBUILD that will provide these plugins, soon.

I hope someone has a use for it...


"I watched a snail crawl along the edge of a straight razor. That's my dream. That's my nightmare." - (Kurtz, Apocalypse Now)

A few PKGBUILDs

Offline

#2 2004-11-20 13:52:24

cereal
Member
From: Switzerland
Registered: 2004-08-29
Posts: 29
Website

Re: [multimedia:sound synthesis] ams -> fftw2,clalsadrv+vkeyb

So... I finally came to build the MCP-plugins for LADSPA, which are required for many of the example patches, that come with alsa modular synth. More information on the MCP-Plugins is available on the Website. Well then again... I'm not 100% sure wether the depends are correct...

pkgname=mcpplugins
pkgver=0.3.0
pkgrel=1
pkgdesc="This plugin contains four versions of a digital implementation of the voltage controlled lowpass filter designed by Robert A. Moog."
url="http://users.skynet.be/solaris/linuxaudio/"
license="GPL"
depends=('ladspa' 'clalsadrv')
source=("http://users.skynet.be/solaris/linuxaudio/downloads/MCP-plugins-$pkgver.tar.bz2")
md5sums=('47a4edef1d6062803c35de7dd81ebbd6')

build() {
  cd $startdir/src/MCP-plugins-$pkgver
  cat Makefile | sed 
    's//usr/lib/ladspa/$(startdir)/pkg&/' 
    > Makefile.new
  mv Makefile.new Makefile

  make startdir=$startdir || return 1

  mkdir -p $startdir/pkg/usr/lib/ladspa
  make startdir=$startdir install
}

btw: anyone knows how to easily escape slashes in a variable? I used a... dirty "hack" to use the $startdir in make install...


"I watched a snail crawl along the edge of a straight razor. That's my dream. That's my nightmare." - (Kurtz, Apocalypse Now)

A few PKGBUILDs

Offline

Board footer

Powered by FluxBB