1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages audio)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix git-download)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix build-system waf)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages algebra)
28 #:use-module (gnu packages boost)
29 #:use-module (gnu packages curl)
30 #:use-module (gnu packages databases)
31 #:use-module (gnu packages glib)
32 #:use-module (gnu packages gtk)
33 #:use-module (gnu packages gnome)
34 #:use-module (gnu packages qt)
35 #:use-module (gnu packages linux)
36 #:use-module (gnu packages mp3) ;taglib
37 #:use-module (gnu packages perl)
38 #:use-module (gnu packages pkg-config)
39 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
40 #:use-module (gnu packages python)
41 #:use-module (gnu packages rdf)
42 #:use-module (gnu packages readline)
43 #:use-module (gnu packages xiph)
44 #:use-module (gnu packages xml)
45 #:use-module (srfi srfi-1))
54 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
57 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
58 (build-system waf-build-system)
60 `(#:tests? #f ; no check target
66 ;; enable compilation with avcodec once available
71 ("libsndfile" ,libsndfile)
72 ("libsamplerate" ,libsamplerate)
75 `(("pkg-config" ,pkg-config)))
76 (home-page "http://aubio.org/")
77 (synopsis "A library for audio labelling")
79 "aubio is a tool designed for the extraction of annotations from audio
80 signals. Its features include segmenting a sound file before each of its
81 attacks, performing pitch detection, tapping the beat and producing MIDI
82 streams from live audio.")
83 (license license:gpl3+)))
90 ;; The project only provides tarballs upon individual request
91 ;; (or after payment) so we take the code from git.
94 (url "git://git.ardour.org/ardour/ardour.git")
97 '(call-with-output-file
98 "libs/ardour/revision.cc"
100 (format port "#include \"ardour/revision.h\"
101 namespace ARDOUR { const char* revision = \"3.5-403-gec2cb31\" ; }"))))
104 "01b0wxh0wlxjfz5j8gcwwqhxc6q2kn4njz2fcmzv9fr3xaya5dbp"))
105 (file-name (string-append name "-" version))))
106 (build-system waf-build-system)
108 `(#:tests? #f ; no check target
111 `(("alsa-lib" ,alsa-lib)
119 ("libart-lgpl" ,libart-lgpl)
120 ("libgnomecanvasmm" ,libgnomecanvasmm)
123 ("libsndfile" ,libsndfile)
124 ("libsamplerate" ,libsamplerate)
127 ("libvorbis" ,libvorbis)
143 ("rubberband" ,rubberband)
145 ("python-rdflib" ,python-rdflib)))
148 ("pkg-config" ,pkg-config)))
149 (home-page "http://ardour.org")
150 (synopsis "Digital audio workstation")
152 "Ardour is a multi-channel digital audio workstation, allowing users to
153 record, edit, mix and master audio and MIDI projects. It is targeted at audio
154 engineers, musicians, soundtrack editors and composers.")
155 (license license:gpl2+)))
163 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
168 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))))
169 (build-system gnu-build-system)
171 `(#:tests? #f ; no check target
174 (string-append "prefix=" %output)
175 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
182 `(("pkg-config" ,pkg-config)))
183 (home-page "http://ll-plugins.nongnu.org/azr3/")
184 (synopsis "Tonewheel organ synthesizer")
186 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
187 with drawbars, distortion and rotating speakers. The organ has three
188 sections, two polyphonic sections with nine drawbars each and one monophonic
189 bass section with five drawbars. A standalone JACK application and LV2
190 plugins are provided.")
191 (license license:gpl2)))
193 (define-public jack-1
200 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
205 "1mk1wnx33anp6haxfjjkfhwbaknfblsvj35nxvz0hvspcmhdyhpb"))))
206 (build-system gnu-build-system)
208 `(("alsa-lib" ,alsa-lib)
210 ("readline" ,readline)))
211 ;; uuid.h is included in the JACK type headers
213 `(("libuuid" ,util-linux)))
215 `(("pkg-config" ,pkg-config)))
216 (home-page "http://jackaudio.org/")
217 (synopsis "JACK audio connection kit")
219 "JACK is a low-latency audio server. It can connect a number of
220 different applications to an audio device, as well as allowing them to share
221 audio between themselves. JACK is different from other audio server efforts
222 in that it has been designed from the ground up to be suitable for
223 professional audio work. This means that it focuses on two key areas:
224 synchronous execution of all clients, and low latency operation.")
225 ;; Most files are licensed under the GPL. However, the libjack/ tree is
226 ;; licensed under the LGPL in order to allow for proprietary usage.
227 (license (list license:gpl2+ license:lgpl2.1+))))
229 (define-public jack-2
230 (package (inherit jack-1)
236 "https://github.com/jackaudio/jack2/archive/v"
241 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
242 (build-system waf-build-system)
244 `(#:tests? #f ; no check target
245 #:configure-flags '("--dbus"
248 `(("alsa-lib" ,alsa-lib)
251 ("libsamplerate" ,libsamplerate)
253 ("readline" ,readline)))
255 `(("pkg-config" ,pkg-config)))
256 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
257 (license (list license:gpl2+ license:lgpl2.1+))))
265 (uri (string-append "http://download.drobilla.net/jalv-"
269 "1f1hcq74n3ziw8bk97mn5a1vgw028dxikv3fchaxd430pbbhqgl9"))))
270 (build-system waf-build-system)
271 (arguments `(#:tests? #f)) ; no check target
281 `(("pkg-config" ,pkg-config)))
282 (home-page "http://drobilla.net/software/jalv/")
283 (synopsis "Simple LV2 host for JACK")
285 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
286 plugins and exposes their ports as JACK ports, essentially making any LV2
287 plugin function as a JACK application.")
288 (license license:isc)))
290 (define-public ladspa
297 "http://www.ladspa.org/download/ladspa_sdk_"
302 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
303 (build-system gnu-build-system)
305 `(#:tests? #f ; the "test" target is a listening test only
309 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
311 (let ((out (assoc-ref outputs "out")))
312 (substitute* "makefile"
313 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
314 (("/usr/include/") (string-append out "/include/"))
315 (("/usr/bin/") (string-append out "/bin/"))
316 (("-mkdirhier") "mkdir -p")
317 (("^CC.*") "CC = gcc\n")
318 (("^CPP.*") "CPP = g++\n"))))
319 (alist-delete 'build %standard-phases))))
320 (home-page "http://ladspa.org")
321 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
323 "LADSPA is a standard that allows software audio processors and effects
324 to be plugged into a wide range of audio synthesis and recording packages.")
325 (license license:lgpl2.1+)))
330 (version "0.6.0-rc2")
333 ;; The tilde is not permitted in the builder name, but is used
336 "mirror://savannah/lash/lash-"
337 (string-join (string-split version #\-) "~")
339 (file-name (string-append name "-" version ".tar.bz2"))
342 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
343 (build-system gnu-build-system)
348 ("readline" ,readline)
349 ("python" ,python-2)))
350 ;; According to pkg-config, packages depending on lash also need to have
351 ;; at least the following packages declared as inputs.
353 `(("alsa-lib" ,alsa-lib)
355 ("libxml2" ,libxml2)))
357 `(("pkg-config" ,pkg-config)))
358 (home-page "http://www.nongnu.org/lash/")
359 (synopsis "Audio application session manager")
361 "LASH is a session management system for audio applications. It allows
362 you to save and restore audio sessions consisting of multiple interconneced
363 applications, restoring program state (i.e. loaded patches) and the
364 connections between them.")
365 (license license:gpl2+)))
374 "mirror://sourceforge/liblo/liblo-"
379 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
380 (build-system gnu-build-system)
382 `(;; liblo test FAILED
383 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
385 (home-page "http://liblo.sourceforge.net")
386 (synopsis "Implementation of the Open Sound Control protocol")
388 "liblo is a lightweight library that provides an easy to use
389 implementation of the Open Sound Control (OSC) protocol.")
390 (license license:lgpl2.1+)))
398 (uri (string-append "http://download.drobilla.net/lilv-"
403 "0aj2plkx56iar8vzjbq2l7hi7sp0ml99m0h44rgwai2x4vqkk2j2"))))
404 (build-system waf-build-system)
405 (arguments `(#:tests? #f)) ; no check target
406 ;; required by lilv-0.pc
414 `(("pkg-config" ,pkg-config)))
415 (home-page "http://drobilla.net/software/lilv/")
416 (synopsis "Library to simplify use of LV2 plugins in applications")
418 "Lilv is a C library to make the use of LV2 plugins as simple as possible
419 for applications. Lilv is the successor to SLV2, rewritten to be
420 significantly faster and have minimal dependencies.")
421 (license license:isc)))
429 (uri (string-append "http://lv2plug.in/spec/lv2-"
434 "1md41x9snrp4mcfyli7lyfpvcfa78nfy6xkdy84kppnl8m5qw378"))))
435 (build-system waf-build-system)
437 `(#:tests? #f ; no check target
438 #:configure-flags '("--lv2-system")))
440 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
441 `(("libsndfile" ,libsndfile)))
443 `(("pkg-config" ,pkg-config)))
444 (home-page "http://lv2plug.in/")
445 (synopsis "LV2 audio plugin specification")
447 "LV2 is an open specification for audio plugins and host applications.
448 At its core, LV2 is a simple stable interface, accompanied by extensions which
449 add functionality to support the needs of increasingly powerful audio
451 (license license:isc)))
459 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
464 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
465 (build-system waf-build-system)
467 `(#:tests? #f ; no check target
470 (list (string-append "--boost-includes="
471 (assoc-ref %build-inputs "boost")
477 `(("pkg-config" ,pkg-config)))
478 (home-page "https://github.com/lvtk/lvtk")
479 (synopsis "C++ libraries for LV2 plugins")
481 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
482 extensions into easy to use C++ classes. It is the successor of
484 (license license:gpl3+)))
486 (define-public patchage
492 (uri (string-append "http://download.drobilla.net/patchage-"
497 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
498 (build-system waf-build-system)
499 (arguments `(#:tests? #f)) ; no check target
501 `(("alsa-lib" ,alsa-lib)
509 ("dbus-glib" ,dbus-glib)))
511 `(("pkg-config" ,pkg-config)))
512 (home-page "http://drobilla.net/software/patchage/")
513 (synopsis "Modular patch bay for audio and MIDI systems")
515 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
517 (license license:gpl3+)))
519 (define-public rubberband
526 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
531 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
532 (build-system gnu-build-system)
533 (arguments `(#:tests? #f)) ; no check target
536 ("libsamplerate" ,libsamplerate)
539 `(("pkg-config" ,pkg-config)))
540 (home-page "http://breakfastquay.com/rubberband/")
541 (synopsis "Audio time-stretching and pitch-shifting library")
543 "Rubber Band is a library and utility program that permits changing the
544 tempo and pitch of an audio recording independently of one another.")
545 (license license:gpl2+)))
547 (define-public sratom
553 (uri (string-append "http://download.drobilla.net/sratom-"
558 "080jjiyxjnj7hf25844hd9rb01grvzz1rk8mxcdnakywmspbxfd4"))))
559 (build-system waf-build-system)
560 (arguments `(#:tests? #f)) ; no check target
566 `(("pkg-config" ,pkg-config)))
567 (home-page "http://drobilla.net/software/sratom/")
568 (synopsis "Library for serialising LV2 atoms to/from RDF")
570 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
572 (license license:isc)))
580 (uri (string-append "http://download.drobilla.net/suil-"
585 "1s3adyiw7sa5gfvm5wasa61qa23629kprxyv6w8hbxdiwp0hhxkq"))))
586 (build-system waf-build-system)
587 (arguments `(#:tests? #f)) ; no check target
593 `(("pkg-config" ,pkg-config)))
594 (home-page "http://drobilla.net/software/suil/")
595 (synopsis "Library for loading and wrapping LV2 plugin UIs")
597 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
599 Suil makes it possible to load a UI of a toolkit in a host using another
600 toolkit. The API is designed such that hosts do not need to explicitly
601 support specific toolkits – if Suil supports a particular toolkit, then UIs in
602 that toolkit will work in all hosts that use Suil automatically.
604 Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
605 (license license:isc)))
614 "https://code.soundsoftware.ac.uk"
615 "/attachments/download/690/vamp-plugin-sdk-"
620 "178kfgq08cmgdzv7g8dwyjp4adwx8q04riimncq4nqkm8ng9ywbv"))))
621 (build-system gnu-build-system)
623 `(#:tests? #f ; no check target
626 'install 'remove-libvamp-hostsdk.la
627 (lambda* (#:key outputs #:allow-other-keys)
628 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
629 (for-each delete-file
630 (let ((out (assoc-ref outputs "out")))
631 (list (string-append out "/lib/libvamp-sdk.la")
632 (string-append out "/lib/libvamp-hostsdk.la"))))
636 `(("libsndfile" ,libsndfile)))
638 `(("pkg-config" ,pkg-config)))
639 (home-page "http://vamp-plugins.org")
640 (synopsis "Modular and extensible audio processing system")
642 "Vamp is an audio processing plugin system for plugins that extract
643 descriptive information from audio data — typically referred to as audio
644 analysis plugins or audio feature extraction plugins.")
647 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))