1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages audio)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix utils)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix build-system gnu)
35 #:use-module (guix build-system waf)
36 #:use-module (guix build-system trivial)
37 #:use-module (guix build-system cmake)
38 #:use-module (guix build-system python)
39 #:use-module (gnu packages)
40 #:use-module (gnu packages algebra)
41 #:use-module (gnu packages autotools)
42 #:use-module (gnu packages avahi)
43 #:use-module (gnu packages boost)
44 #:use-module (gnu packages backup)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bison)
47 #:use-module (gnu packages check)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages curl)
50 #:use-module (gnu packages databases)
51 #:use-module (gnu packages emacs)
52 #:use-module (gnu packages file)
53 #:use-module (gnu packages flex)
54 #:use-module (gnu packages fltk)
55 #:use-module (gnu packages fontutils)
56 #:use-module (gnu packages gettext)
57 #:use-module (gnu packages glib)
58 #:use-module (gnu packages gtk)
59 #:use-module (gnu packages gnome)
60 #:use-module (gnu packages gnunet) ; libmicrohttpd
61 #:use-module (gnu packages gperf)
62 #:use-module (gnu packages image)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages qt)
65 #:use-module (gnu packages linux)
66 #:use-module (gnu packages llvm)
67 #:use-module (gnu packages mp3) ;taglib
68 #:use-module (gnu packages perl)
69 #:use-module (gnu packages pkg-config)
70 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages rdf)
73 #:use-module (gnu packages readline)
74 #:use-module (gnu packages tls)
75 #:use-module (gnu packages video)
76 #:use-module (gnu packages vim) ;xxd
77 #:use-module (gnu packages webkit)
78 #:use-module (gnu packages wxwidgets)
79 #:use-module (gnu packages xiph)
80 #:use-module (gnu packages xml)
81 #:use-module (gnu packages xorg)
82 #:use-module (srfi srfi-1))
84 (define-public alsa-modular-synth
86 (name "alsa-modular-synth")
90 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
91 "/" version "/ams-" version ".tar.bz2"))
94 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
95 (build-system gnu-build-system)
99 "CXXFLAGS=-std=gnu++11")
101 (modify-phases %standard-phases
102 ;; Insert an extra space between linker flags.
103 (add-before 'configure 'add-missing-space
105 (substitute* "configure"
106 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
107 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
110 `(("alsa-lib" ,alsa-lib)
111 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
112 ;; license incompatibility.
113 ("clalsadrv" ,clalsadrv)
119 ("qttools" ,qttools)))
121 `(("pkg-config" ,pkg-config)))
122 (home-page "http://alsamodular.sourceforge.net/")
123 (synopsis "Realtime modular synthesizer and effect processor")
125 "AlsaModularSynth is a digital implementation of a classical analog
126 modular synthesizer system. It uses virtual control voltages to control the
127 parameters of the modules. The control voltages which control the frequency
128 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
129 Filter) modules follow the convention of 1V / Octave.")
130 (license license:gpl2)))
139 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
142 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
143 (build-system waf-build-system)
145 `(#:tests? #f ; no check target
150 "--enable-samplerate"
151 ;; enable compilation with avcodec once available
156 ("libsndfile" ,libsndfile)
157 ("libsamplerate" ,libsamplerate)
160 `(("pkg-config" ,pkg-config)))
161 (home-page "http://aubio.org/")
162 (synopsis "Library for audio labelling")
164 "aubio is a tool designed for the extraction of annotations from audio
165 signals. Its features include segmenting a sound file before each of its
166 attacks, performing pitch detection, tapping the beat and producing MIDI
167 streams from live audio.")
168 (license license:gpl3+)))
170 (define (ardour-rpath-phase major-version)
171 `(lambda* (#:key outputs #:allow-other-keys)
172 (let ((libdir (string-append (assoc-ref outputs "out")
173 "/lib/ardour" ,major-version)))
174 (substitute* "wscript"
175 (("linker_flags = \\[\\]")
176 (string-append "linker_flags = [\""
179 libdir "/backends" ":"
180 libdir "/engines" ":"
181 libdir "/panners" ":"
182 libdir "/surfaces" ":"
183 libdir "/vamp" "\"]"))))
186 (define-public ardour
193 (url "git://git.ardour.org/ardour/ardour.git")
196 ;; Ardour expects this file to exist at build time. The revision
198 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
199 `(call-with-output-file
200 "libs/ardour/revision.cc"
202 (format port ,(string-append "#include \"ardour/revision.h\"
203 namespace ARDOUR { const char* revision = \"" version "\" ; }")))))
206 "1lcvslrcw6g4kp9w0h1jx46x6ilz4nzz0k2yrw4gd545k1rwx0c1"))
207 (file-name (string-append name "-" version))))
208 (build-system waf-build-system)
210 `(#:configure-flags '("--cxx11" ; required by gtkmm
211 "--no-phone-home" ; don't contact ardour.org
212 "--freedesktop" ; install .desktop file
213 "--test") ; build unit tests
215 (modify-phases %standard-phases
217 'unpack 'set-rpath-in-LDFLAGS
218 ,(ardour-rpath-phase (version-prefix version 1))))
222 `(("alsa-lib" ,alsa-lib)
231 ("libart-lgpl" ,libart-lgpl)
232 ("libgnomecanvasmm" ,libgnomecanvasmm)
235 ("libsndfile" ,libsndfile)
236 ("libsamplerate" ,libsamplerate)
239 ("libvorbis" ,libvorbis)
252 ("readline" ,readline)
254 ("rubberband" ,rubberband)
255 ("libarchive" ,libarchive)
257 ("python-rdflib" ,python-rdflib)))
262 ("gettext" ,gettext-minimal)
263 ("pkg-config" ,pkg-config)))
264 (home-page "http://ardour.org")
265 (synopsis "Digital audio workstation")
267 "Ardour is a multi-channel digital audio workstation, allowing users to
268 record, edit, mix and master audio and MIDI projects. It is targeted at audio
269 engineers, musicians, soundtrack editors and composers.")
270 (license license:gpl2+)))
272 (define-public audacity
279 (uri (string-append "https://github.com/audacity/audacity/archive"
280 "/Audacity-" version ".tar.gz"))
282 (base32 "11mx7gb4dbqrgfp7hm0154x3m76ddnmhf2675q5zkxn7jc5qfc6b"))))
283 (build-system gnu-build-system)
285 ;; TODO: Add portSMF and libwidgetextra once they're packaged. In-tree
286 ;; versions shipping with Audacity are used for now.
287 `(("wxwidgets" ,wxwidgets-gtk2)
289 ("alsa-lib" ,alsa-lib)
295 ("libid3tag" ,libid3tag)
297 ("libsbsms" ,libsbsms)
298 ("libsndfile" ,libsndfile)
299 ("soundtouch" ,soundtouch)
300 ("soxr" ,soxr) ;replaces libsamplerate
303 ("libvorbis" ,libvorbis)
306 ("portaudio" ,portaudio)))
308 `(("autoconf" ,autoconf)
309 ("automake" ,automake)
310 ("gettext" ,gettext-minimal) ;for msgfmt
312 ("pkg-config" ,pkg-config)
317 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
318 (libmad (assoc-ref %build-inputs "libmad")))
320 ;; Loading FFmpeg dynamically is problematic.
321 "--disable-dynamic-loading"
322 ;; libid3tag and libmad provide no .pc files, so pkg-config fails to
323 ;; find them. Force their inclusion.
324 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
325 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
326 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
327 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")))
329 (modify-phases %standard-phases
330 ;; FFmpeg is only detected if autoreconf runs.
331 (add-before 'configure 'autoreconf
333 (zero? (system* "autoreconf" "-vfi")))))
334 ;; The test suite is not "well exercised" according to the developers,
335 ;; and fails with various errors. See
336 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
338 (home-page "http://audacity.sourceforge.net/")
339 (synopsis "Software for recording and editing sounds")
341 "Audacity is a multi-track audio editor designed for recording, playing
342 and editing digital audio. It features digital effects and spectrum analysis
344 (license license:gpl2+)))
352 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
357 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
358 (patches (search-patches "azr3.patch"))))
359 (build-system gnu-build-system)
361 `(#:tests? #f ; no check target
364 "CXXFLAGS=-std=gnu++11"
365 "CFLAGS=-std=gnu++11"
366 (string-append "prefix=" %output)
367 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
374 `(("pkg-config" ,pkg-config)))
375 (home-page "http://ll-plugins.nongnu.org/azr3/")
376 (synopsis "Tonewheel organ synthesizer")
378 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
379 with drawbars, distortion and rotating speakers. The organ has three
380 sections, two polyphonic sections with nine drawbars each and one monophonic
381 bass section with five drawbars. A standalone JACK application and LV2
382 plugins are provided.")
383 (license license:gpl2)))
391 (uri (string-append "http://calf-studio-gear.org/files/calf-"
395 "019fwg00jv217a5r767z7szh7vdrarybac0pr2sk26xp81kibrx9"))))
396 (build-system gnu-build-system)
398 `(("fluidsynth" ,fluidsynth)
409 `(("pkg-config" ,pkg-config)))
411 (list (search-path-specification
412 (variable "LV2_PATH")
413 (files '("lib/lv2")))))
414 (home-page "http://calf.sourceforge.net/")
415 (synopsis "Audio plug-in pack for LV2 and JACK environments")
417 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
418 The suite contains lots of effects (delay, modulation, signal processing,
419 filters, equalizers, dynamics, distortion and mastering effects),
420 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
421 tools (analyzer, mono/stereo tools, crossovers).")
422 ;; calfjackhost is released under GPLv2+
423 ;; The plugins are released under LGPLv2.1+
424 (license (list license:lgpl2.1+ license:gpl2+))))
426 (define-public espeak
432 (uri (string-append "mirror://sourceforge/espeak/espeak/"
433 "espeak-" (version-major+minor version)
434 "/espeak-" version "-source.zip"))
437 "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz"))
438 (modules '((guix build utils)))
440 ;; remove prebuilt binaries
441 '(delete-file-recursively "linux_32bit"))))
442 (build-system gnu-build-system)
444 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
445 (string-append "DATADIR="
446 (assoc-ref %outputs "out")
447 "/share/espeak-data")
448 (string-append "LDFLAGS=-Wl,-rpath="
449 (assoc-ref %outputs "out")
452 #:tests? #f ; no check target
454 (modify-phases %standard-phases
458 ;; We use version 19 of the PortAudio library, so we must copy the
459 ;; corresponding file to be sure that espeak compiles correctly.
460 (copy-file "portaudio19.h" "portaudio.h")
461 (substitute* "Makefile"
465 `(("portaudio" ,portaudio)
466 ("pulseaudio" ,pulseaudio)))
467 (native-inputs `(("unzip" ,unzip)))
468 (home-page "http://espeak.sourceforge.net/")
469 (synopsis "Software speech synthesizer")
470 (description "eSpeak is a software speech synthesizer for English and
471 other languages. eSpeak uses a \"formant synthesis\" method. This allows many
472 languages to be provided in a small size. The speech is clear, and can be used
473 at high speeds, but is not as natural or smooth as larger synthesizers which are
474 based on human speech recordings.")
475 (license license:gpl3+)))
477 (define-public infamous-plugins
479 (name "infamous-plugins")
483 (uri (string-append "https://github.com/ssj71/infamousPlugins/"
484 "archive/v" version ".tar.gz"))
485 (file-name (string-append name "-" version ".tar.gz"))
488 "0qm3ak07vc1l3f5c3c2lq9gkfknlxwn8ks03cysw1pk8hj7dwnv6"))))
489 (build-system cmake-build-system)
491 `(#:tests? #f ; There are no tests
493 (modify-phases %standard-phases
494 (add-after 'unpack 'remove-compiler-flags
496 (substitute* '("src/casynth/CMakeLists.txt"
497 "src/cheapdist/CMakeLists.txt"
498 "src/duffer/CMakeLists.txt"
499 "src/envfollower/CMakeLists.txt"
500 "src/ewham/CMakeLists.txt"
501 "src/hip2b/CMakeLists.txt"
502 "src/lushlife/CMakeLists.txt"
503 "src/powercut/CMakeLists.txt"
504 "src/powerup/CMakeLists.txt"
505 "src/stuck/CMakeLists.txt")
506 (("-msse2 -mfpmath=sse") ""))
513 ("zita-resampler" ,zita-resampler)))
515 `(("pkg-config" ,pkg-config)))
516 (home-page "http://ssj71.github.io/infamousPlugins")
517 (synopsis "LV2 plugins for live use")
519 "The infamous plugins are a collection of LV2 audio plugins for live
520 performances. The plugins include a cellular automaton synthesizer, an
521 envelope follower, distortion effects, tape effects and more.")
522 (license license:gpl2+)))
524 (define-public swh-plugins-lv2
526 (name "swh-plugins-lv2")
530 (uri (string-append "https://github.com/swh/"
531 "lv2/archive/v" version ".tar.gz"))
532 (file-name (string-append name "-" version ".tar.gz"))
535 "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"))))
536 (build-system gnu-build-system)
538 `(#:tests? #f ; no check target
539 #:make-flags (list "CC=gcc"
540 (string-append "PREFIX="
541 (assoc-ref %outputs "out")))
543 (modify-phases %standard-phases
544 ;; no configure script
546 (add-after 'unpack 'patch-makefile-and-enter-directory
547 ;; The default install target doesn't install, but the
548 ;; "install-system" target does.
550 (substitute* "Makefile"
551 (("install:") "install: install-system"))
557 `(("libxslt" ,libxslt)
558 ("pkg-config" ,pkg-config)))
559 (home-page "http://plugin.org.uk")
560 (synopsis "SWH plugins in LV2 format")
562 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
563 classes include: dynamics (compressor, limiter), time (delay, chorus,
564 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
565 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
566 (license license:gpl3+)))
568 (define-public csound
575 "mirror://sourceforge/csound/csound6/Csound"
576 version "/Csound" version ".tar.gz"))
579 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
580 (patches (search-patches "csound-header-ordering.patch"))))
581 (build-system cmake-build-system)
583 ;; Work around this error on x86_64 with libc 2.22+:
584 ;; libmvec.so.1: error adding symbols: DSO missing from command line
585 (if (string-prefix? "x86_64" (or (%current-target-system) (%current-system)))
586 '(#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-lmvec"))
589 `(("alsa-lib" ,alsa-lib)
591 ("pulseaudio" ,pulseaudio)
592 ("libsndfile" ,libsndfile)
596 ("gettext" ,gettext-minimal)))
601 (home-page "http://csound.github.io/")
602 (synopsis "Sound and music computing system")
604 "Csound is a user-programmable and user-extensible sound processing
605 language and software synthesizer.")
606 (license license:lgpl2.1+)))
608 (define-public clalsadrv
615 "http://kokkinizita.linuxaudio.org"
616 "/linuxaudio/downloads/clalsadrv-"
620 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
621 (build-system gnu-build-system)
623 `(#:tests? #f ; no "check" target
624 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
627 'unpack 'patch-makefile-and-enter-directory
629 (substitute* "libs/Makefile"
630 (("/sbin/ldconfig") "true")
631 (("^LIBDIR =.*") "LIBDIR = lib\n"))
638 (symlink "libclalsadrv.so"
639 (string-append (assoc-ref %outputs "out")
640 "/lib/libclalsadrv.so.2")))
641 ;; no configure script
642 (alist-delete 'configure %standard-phases)))))
644 `(("alsa-lib" ,alsa-lib)
646 (home-page "http://kokkinizita.linuxaudio.org")
647 (synopsis "C++ wrapper around the ALSA API")
649 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
651 (license license:gpl2+)))
653 (define-public amb-plugins
660 "http://kokkinizita.linuxaudio.org"
661 "/linuxaudio/downloads/AMB-plugins-"
665 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
666 (build-system gnu-build-system)
668 `(#:tests? #f ; no "check" target
670 (modify-phases %standard-phases
671 ;; no configure script
673 (add-before 'install 'prepare-target-directory
674 (lambda* (#:key outputs #:allow-other-keys)
675 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
677 (add-after 'unpack 'override-target-directory-and-tool-paths
678 (lambda* (#:key outputs #:allow-other-keys)
679 (substitute* "Makefile"
681 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
682 (("/usr/bin/install") (which "install"))
685 (home-page "http://kokkinizita.linuxaudio.org")
686 (synopsis "LADSPA ambisonics plugins")
688 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
689 used within Ardour. Features include: mono and stereo to B-format panning,
690 horizontal rotator, square, hexagon and cube decoders.")
691 (license license:gpl2+)))
693 (define-public mcp-plugins
700 "http://kokkinizita.linuxaudio.org"
701 "/linuxaudio/downloads/MCP-plugins-"
705 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
706 (build-system gnu-build-system)
708 `(#:tests? #f ; no "check" target
710 (modify-phases %standard-phases
711 ;; no configure script
713 (add-before 'install 'prepare-target-directory
714 (lambda* (#:key outputs #:allow-other-keys)
715 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
717 (add-after 'unpack 'override-target-directory
718 (lambda* (#:key outputs #:allow-other-keys)
719 (substitute* "Makefile"
720 (("/usr") (assoc-ref outputs "out")))
722 (home-page "http://kokkinizita.linuxaudio.org")
723 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
725 "This package provides various LADSPA plugins. @code{cs_chorus} and
726 @code{cs_phaser} provide chorus and phaser effects, respectively;
727 @code{mvclpf24} provides four implementations of the low-pass filter used in
728 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
729 high-pass filter by Robert Moog. The filters attempt to accurately emulate
730 the non-linear circuit elements of their original analog counterparts.")
731 (license license:gpl2+)))
733 (define-public rev-plugins
740 "http://kokkinizita.linuxaudio.org"
741 "/linuxaudio/downloads/REV-plugins-"
745 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
746 (build-system gnu-build-system)
748 `(#:tests? #f ; no "check" target
750 (modify-phases %standard-phases
751 ;; no configure script
753 (add-before 'install 'prepare-target-directory
754 (lambda* (#:key outputs #:allow-other-keys)
755 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
757 (add-after 'unpack 'override-target-directory
758 (lambda* (#:key outputs #:allow-other-keys)
759 (substitute* "Makefile"
760 (("/usr") (assoc-ref outputs "out")))
762 (home-page "http://kokkinizita.linuxaudio.org")
763 (synopsis "LADSPA reverb plugin")
765 "This package provides a stereo reverb LADSPA plugin based on the
766 well-known greverb.")
767 (license license:gpl2+)))
769 (define-public fil-plugins
776 "http://kokkinizita.linuxaudio.org"
777 "/linuxaudio/downloads/FIL-plugins-"
781 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
782 (build-system gnu-build-system)
784 `(#:tests? #f ; no "check" target
786 (modify-phases %standard-phases
787 ;; no configure script
789 (add-before 'install 'prepare-target-directory
790 (lambda* (#:key outputs #:allow-other-keys)
791 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
793 (add-after 'unpack 'override-target-directory
794 (lambda* (#:key outputs #:allow-other-keys)
795 (substitute* "Makefile"
796 (("/usr") (assoc-ref outputs "out")))
798 (home-page "http://kokkinizita.linuxaudio.org")
799 (synopsis "LADSPA four-band parametric equalizer plugin")
801 "This package provides a LADSPA plugin for a four-band parametric
802 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
803 gain controls. There is also a global bypass switch and gain control.
805 The 2nd order resonant filters are implemented using a Mitra-Regalia style
806 lattice filter, which is stable even while parameters are being changed.
808 All switches and controls are internally smoothed, so they can be used 'live'
809 without any clicks or zipper noises. This makes this plugin suitable for use
810 in systems that allow automation of plugin control ports, such as Ardour, or
812 (license license:gpl2+)))
814 (define-public ste-plugins
821 "http://kokkinizita.linuxaudio.org"
822 "/linuxaudio/downloads/STE-plugins-"
826 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
827 (build-system gnu-build-system)
829 `(#:tests? #f ; no "check" target
831 (modify-phases %standard-phases
832 ;; no configure script
834 (add-before 'install 'prepare-target-directory
835 (lambda* (#:key outputs #:allow-other-keys)
836 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
838 (add-after 'unpack 'override-target-directory
839 (lambda* (#:key outputs #:allow-other-keys)
840 (substitute* "Makefile"
841 (("/usr") (assoc-ref outputs "out")))
843 (home-page "http://kokkinizita.linuxaudio.org")
844 (synopsis "LADSPA stereo width plugin")
846 "This package provides a LADSPA plugin to manipulate the stereo width of
848 (license license:gpl2+)))
850 (define-public vco-plugins
857 "http://kokkinizita.linuxaudio.org"
858 "/linuxaudio/downloads/VCO-plugins-"
862 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
863 (build-system gnu-build-system)
865 `(#:tests? #f ; no "check" target
867 (modify-phases %standard-phases
868 ;; no configure script
870 (add-before 'install 'prepare-target-directory
871 (lambda* (#:key outputs #:allow-other-keys)
872 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
874 (add-after 'unpack 'override-target-directory
875 (lambda* (#:key outputs #:allow-other-keys)
876 (substitute* "Makefile"
877 (("/usr") (assoc-ref outputs "out"))
878 (("/bin/cp") (which "cp")))
880 (home-page "http://kokkinizita.linuxaudio.org")
881 (synopsis "LADSPA plugin for synthesizer oscillators")
883 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
886 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
887 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
888 @item Rec-VCO, a square / rectange oscillator
891 All oscillators are low-pass filtered to provide waveforms similar to the
892 output of analog synthesizers such as the Moog Voyager.")
893 (license license:gpl2+)))
895 (define-public wah-plugins
902 "http://kokkinizita.linuxaudio.org"
903 "/linuxaudio/downloads/WAH-plugins-"
907 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
908 (build-system gnu-build-system)
910 `(#:tests? #f ; no "check" target
912 (modify-phases %standard-phases
913 ;; no configure script
915 (add-before 'install 'prepare-target-directory
916 (lambda* (#:key outputs #:allow-other-keys)
917 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
919 (add-after 'unpack 'override-target-directory
920 (lambda* (#:key outputs #:allow-other-keys)
921 (substitute* "Makefile"
922 (("/usr") (assoc-ref outputs "out")))
924 (home-page "http://kokkinizita.linuxaudio.org")
925 (synopsis "LADSPA Autowah effect plugin")
927 "This package provides a LADSPA plugin for a Wah effect with envelope
929 (license license:gpl2+)))
931 (define-public g2reverb
938 "http://kokkinizita.linuxaudio.org"
939 "/linuxaudio/downloads/g2reverb-"
943 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
944 (build-system gnu-build-system)
946 `(#:tests? #f ; no "check" target
948 (modify-phases %standard-phases
949 ;; no configure script
951 (add-before 'install 'prepare-target-directory
952 (lambda* (#:key outputs #:allow-other-keys)
953 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
955 (add-after 'unpack 'override-target-directory
956 (lambda* (#:key outputs #:allow-other-keys)
957 (substitute* "Makefile"
958 (("/usr") (assoc-ref outputs "out")))
960 (home-page "http://kokkinizita.linuxaudio.org")
961 (synopsis "LADSPA stereo reverb plugin")
963 "This package provides a LADSPA plugin for a stereo reverb effect.")
964 (license license:gpl2+)))
966 (define-public fluidsynth
973 "mirror://sourceforge/fluidsynth/fluidsynth-"
974 version "/fluidsynth-" version ".tar.gz"))
977 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
978 (build-system gnu-build-system)
983 'remove-broken-symlinks
984 (lambda _ (delete-file-recursively "m4") #t)
987 `(("libsndfile" ,libsndfile)
988 ("alsa-lib" ,alsa-lib)
992 ("readline" ,readline)
995 `(("pkg-config" ,pkg-config)))
996 (home-page "http://www.fluidsynth.org/")
997 (synopsis "SoundFont synthesizer")
999 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1000 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1001 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1002 also play midifiles using a Soundfont.")
1003 (license license:gpl2+)))
1005 (define-public faad2
1011 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1012 version "/faad2-" version ".zip"))
1015 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1016 (build-system gnu-build-system)
1018 `(("autoconf" ,autoconf)
1019 ("automake" ,automake)
1020 ("libtool" ,libtool)
1027 (substitute* "bootstrap" (("\r\n") "\n"))
1028 (zero? (system* "sh" "bootstrap")))
1030 (home-page "http://www.audiocoding.com/faad2.html")
1031 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1033 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1035 (license license:gpl2)))
1037 (define-public faust
1044 "mirror://sourceforge/faudiostream/faust-" version ".zip"))
1047 "068vl9536zn0j4pknwfcchzi90rx5pk64wbcbd67z32w0csx8xm1"))
1049 ;; Remove prebuilt library
1050 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
1051 (build-system gnu-build-system)
1053 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1056 (modify-phases %standard-phases
1057 ;; no "configure" script
1058 (delete 'configure))))
1060 `(("unzip" ,unzip)))
1061 (home-page "http://faust.grame.fr/")
1062 (synopsis "Signal processing language")
1064 "Faust is a programming language for realtime audio signal processing.")
1065 (license license:gpl2+)))
1067 (define-public faust-2
1074 "mirror://sourceforge/faudiostream/faust-" version ".tgz"))
1077 "1yryjqfqmxs7lxy95hjgmrncvl9kig3rcsmg0v49ghzz7vs7haxf"))))
1078 (build-system gnu-build-system)
1080 (substitute-keyword-arguments (package-arguments faust)
1081 ((#:make-flags flags)
1082 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1085 `(("llvm" ,llvm-with-rtti)
1088 ("ctags" ,emacs-minimal) ; for ctags
1089 ("pkg-config" ,pkg-config)))
1091 `(("libsndfile" ,libsndfile)
1092 ("libmicrohttpd" ,libmicrohttpd)
1093 ("ncurses" ,ncurses)
1094 ("openssl" ,openssl)
1097 (define-public freepats
1100 (version "20060219")
1103 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1104 version ".tar.bz2"))
1107 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1108 (build-system trivial-build-system)
1110 `(#:modules ((guix build utils))
1112 (use-modules (guix build utils))
1113 (let ((out (string-append %output "/share/freepats")))
1114 (setenv "PATH" (string-append
1115 (assoc-ref %build-inputs "bzip2") "/bin:"
1116 (assoc-ref %build-inputs "tar") "/bin"))
1117 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
1119 ;; Use absolute pattern references
1120 (substitute* "freepats.cfg"
1121 (("Tone_000") (string-append out "/Tone_000"))
1122 (("Drum_000") (string-append out "/Drum_000")))
1124 (copy-recursively "." out)))))
1128 (home-page "http://freepats.zenvoid.org")
1129 (synopsis "GUS compatible patches for MIDI players")
1131 "FreePats is a project to create a free and open set of GUS compatible
1132 patches that can be used with softsynths such as Timidity and WildMidi.")
1133 ;; GPLv2+ with exception for compositions using these patches.
1134 (license license:gpl2+)))
1136 (define-public guitarix
1143 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1147 "00pfb6qa3jfa6qaql7isnb8srfdfmk362ygslh7y0qkm36qasmh4"))))
1148 (build-system waf-build-system)
1150 `(#:tests? #f ; no "check" target
1154 ;; Add the output lib directory to the RUNPATH.
1155 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1156 "--cxxflags=-std=c++11")))
1158 `(("libsndfile" ,libsndfile)
1170 ("zita-resampler" ,zita-resampler)
1171 ("zita-convolver" ,zita-convolver)))
1175 ("intltool" ,intltool)
1176 ("gettext" ,gettext-minimal)
1177 ("pkg-config" ,pkg-config)))
1178 (native-search-paths
1179 (list (search-path-specification
1180 (variable "LV2_PATH")
1181 (files '("lib/lv2")))))
1182 (home-page "http://guitarix.org/")
1183 (synopsis "Virtual guitar amplifier")
1184 (description "Guitarix is a virtual guitar amplifier running JACK.
1185 Guitarix takes the signal from your guitar as a mono-signal from your sound
1186 card. The input is processed by a main amp and a rack-section. Both can be
1187 routed separately and deliver a processed stereo-signal via JACK. You may
1188 fill the rack with effects from more than 25 built-in modules including stuff
1189 from a simple noise gate to modulation effects like flanger, phaser or
1191 (license license:gpl2+)))
1193 (define-public guitarix-lv2
1194 (package (inherit guitarix)
1195 (name "guitarix-lv2")
1197 (substitute-keyword-arguments (package-arguments guitarix)
1198 ((#:configure-flags flags)
1199 `(cons "--lv2-only" ,flags))))))
1201 (define-public rakarrack
1207 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1208 "rakarrack-" version "/rakarrack-"
1209 version ".tar.bz2"))
1212 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1213 (modules '((guix build utils)))
1216 (substitute* '("src/process.C"
1218 (("#include <Fl/") "#include <FL/"))
1220 (build-system gnu-build-system)
1222 `(("alsa-utils" ,alsa-utils)
1225 ("libxext" ,libxext)
1226 ("libxfixes" ,libxfixes)
1228 ("libxrender" ,libxrender)
1230 ("fontconfig" ,fontconfig)
1231 ("freetype" ,freetype)
1233 ("alsa-lib" ,alsa-lib)
1234 ("libsndfile" ,libsndfile)
1235 ("libsamplerate" ,libsamplerate)
1237 (home-page "http://rakarrack.sourceforge.net/")
1238 (synopsis "Audio effects processor")
1240 "Rakarrack is a richly featured multi-effects processor emulating a
1241 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1242 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1243 distortion modules and many more. Most of the effects engine is built from
1244 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1245 user interface are optimized for guitar, but Rakarrack processes signals in
1246 stereo while it does not apply internal band-limiting filtering, and thus is
1247 well suited to all musical instruments and vocals.")
1248 ;; The code is explicitly licensed under the GPL version 2 only.
1249 (license license:gpl2)))
1257 ;; The original home-page is gone. Download the tarball from an
1258 ;; archive mirror instead.
1259 (uri (list (string-append
1260 "https://web.archive.org/web/20150803095032/"
1261 "http://factorial.hu/system/files/ir.lv2-"
1264 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1265 version ".tar.gz")))
1268 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1269 (build-system gnu-build-system)
1271 `(#:tests? #f ; no tests
1272 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1273 #:phases (modify-phases %standard-phases
1274 (delete 'configure)))) ; no configure script
1276 `(("libsndfile" ,libsndfile)
1277 ("libsamplerate" ,libsamplerate)
1281 ("zita-convolver" ,zita-convolver)))
1283 `(("pkg-config" ,pkg-config)))
1284 (native-search-paths
1285 (list (search-path-specification
1286 (variable "LV2_PATH")
1287 (files '("lib/lv2")))))
1288 ;; Link to an archived copy of the home-page since the original is gone.
1289 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1290 "http://factorial.hu/plugins/lv2/ir"))
1291 (synopsis "LV2 convolution reverb")
1293 "IR is a low-latency, real-time, high performance signal convolver
1294 especially for creating reverb effects. It supports impulse responses with 1,
1295 2 or 4 channels, in any soundfile format supported by libsndfile.")
1296 (license license:gpl2+)))
1298 (define-public jack-1
1305 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1310 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1311 (build-system gnu-build-system)
1313 `(("alsa-lib" ,alsa-lib)
1314 ("readline" ,readline)))
1315 ;; uuid.h is included in the JACK type headers
1316 ;; db.h is included in the libjack metadata headers
1318 `(("libuuid" ,util-linux)
1321 `(("pkg-config" ,pkg-config)))
1322 (home-page "http://jackaudio.org/")
1323 (synopsis "JACK audio connection kit")
1325 "JACK is a low-latency audio server. It can connect a number of
1326 different applications to an audio device, as well as allowing them to share
1327 audio between themselves. JACK is different from other audio server efforts
1328 in that it has been designed from the ground up to be suitable for
1329 professional audio work. This means that it focuses on two key areas:
1330 synchronous execution of all clients, and low latency operation.")
1331 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1332 ;; licensed under the LGPL in order to allow for proprietary usage.
1333 (license (list license:gpl2+ license:lgpl2.1+))))
1335 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1336 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1337 ;; program for users who might benefit from the D-BUS features.
1338 (define-public jack-2
1339 (package (inherit jack-1)
1345 "https://github.com/jackaudio/jack2/archive/v"
1348 (file-name (string-append name "-" version ".tar.gz"))
1351 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
1352 (build-system waf-build-system)
1354 `(#:python ,python-2
1355 #:tests? #f ; no check target
1356 #:configure-flags '("--dbus"
1359 (modify-phases %standard-phases
1360 (add-after 'unpack 'patch-fast_rand
1362 (substitute* "common/memops.c"
1363 ;; Fixed in upstream commit d3c8e2d8d78899fba40a3e677ed4dbe388d82269
1364 (("^inline unsigned int fast_rand" line)
1365 (string-append "static " line))
1366 ;; Fixed in upstream commit 0279a2d65a36d1378f5bab56d95bf9e99cc8cefb
1367 ((" 96314165") " 196314165"))
1370 'configure 'set-linkflags
1372 ;; Add $libdir to the RUNPATH of all the binaries.
1373 (substitute* "wscript"
1374 ((".*CFLAGS.*-Wall.*" m)
1376 " conf.env.append_unique('LINKFLAGS',"
1377 "'-Wl,-rpath=" %output "/lib')\n")))))
1378 (add-after 'install 'wrap-python-scripts
1379 (lambda* (#:key inputs outputs #:allow-other-keys)
1380 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1381 (let* ((out (assoc-ref outputs "out"))
1382 (path (getenv "PYTHONPATH")))
1383 (wrap-program (string-append out "/bin/jack_control")
1384 `("PYTHONPATH" ":" prefix (,path))))
1387 `(("alsa-lib" ,alsa-lib)
1390 ("libsamplerate" ,libsamplerate)
1392 ("python2-dbus" ,python2-dbus)
1393 ("readline" ,readline)))
1395 `(("pkg-config" ,pkg-config)))
1396 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1397 (license (list license:gpl2+ license:lgpl2.1+))))
1405 (uri (string-append "http://download.drobilla.net/jalv-"
1406 version ".tar.bz2"))
1409 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
1410 (build-system waf-build-system)
1412 `(#:tests? #f ; no check target
1414 (modify-phases %standard-phases
1416 'configure 'set-flags
1418 ;; Compile with C++11, required by gtkmm.
1419 (setenv "CXXFLAGS" "-std=c++11")
1429 `(("pkg-config" ,pkg-config)))
1430 (home-page "http://drobilla.net/software/jalv/")
1431 (synopsis "Simple LV2 host for JACK")
1433 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1434 plugins and exposes their ports as JACK ports, essentially making any LV2
1435 plugin function as a JACK application.")
1436 (license license:isc)))
1438 (define-public ladspa
1445 ;; Since the official link is dead,
1446 ;; we download the tarball from Debian or Internet Archive.
1447 (uri (list (string-append "http://http.debian.net"
1448 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1449 version ".orig.tar.gz")
1450 (string-append "https://web.archive.org/web/20140717172251/"
1451 "http://www.ladspa.org/download/ladspa_sdk_"
1455 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1456 (build-system gnu-build-system)
1458 `(#:tests? #f ; the "test" target is a listening test only
1462 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1464 (let ((out (assoc-ref outputs "out")))
1465 (substitute* "makefile"
1466 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1467 (("/usr/include/") (string-append out "/include/"))
1468 (("/usr/bin/") (string-append out "/bin/"))
1469 (("-mkdirhier") "mkdir -p")
1470 (("^CC.*") "CC = gcc\n")
1471 (("^CPP.*") "CPP = g++\n"))))
1472 (alist-delete 'build %standard-phases))))
1473 ;; Since the home page is gone, we provide a link to the archived version.
1475 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1476 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1478 "LADSPA is a standard that allows software audio processors and effects
1479 to be plugged into a wide range of audio synthesis and recording packages.")
1480 (license license:lgpl2.1+)))
1485 (version "0.6.0-rc2")
1488 ;; The tilde is not permitted in the builder name, but is used
1491 "mirror://savannah/lash/lash-"
1492 (string-join (string-split version #\-) "~")
1494 (file-name (string-append name "-" version ".tar.bz2"))
1497 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1498 (build-system gnu-build-system)
1503 ("readline" ,readline)
1504 ("python" ,python-2)))
1505 ;; According to pkg-config, packages depending on lash also need to have
1506 ;; at least the following packages declared as inputs.
1508 `(("alsa-lib" ,alsa-lib)
1510 ("libxml2" ,libxml2)))
1512 `(("pkg-config" ,pkg-config)))
1513 (home-page "http://www.nongnu.org/lash/")
1514 (synopsis "Audio application session manager")
1516 "LASH is a session management system for audio applications. It allows
1517 you to save and restore audio sessions consisting of multiple interconneced
1518 applications, restoring program state (i.e. loaded patches) and the
1519 connections between them.")
1520 (license license:gpl2+)))
1522 (define-public libbs2b
1528 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1529 "/libbs2b-" version ".tar.lzma"))
1532 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1533 (build-system gnu-build-system)
1534 (native-inputs `(("pkg-config" ,pkg-config)))
1535 (inputs `(("libsndfile" ,libsndfile)))
1536 (home-page "https://sourceforge.net/projects/bs2b/")
1537 (synopsis "Bauer stereophonic-to-binaural DSP")
1539 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1540 designed to improve headphone listening of stereo audio records. Recommended
1541 for headphone prolonged listening to disable superstereo fatigue without
1542 essential distortions.")
1543 (license license:expat)))
1545 (define-public liblo
1551 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1552 "/liblo-" version ".tar.gz"))
1555 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1556 (build-system gnu-build-system)
1558 `(;; liblo test FAILED
1559 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1561 (home-page "http://liblo.sourceforge.net")
1562 (synopsis "Implementation of the Open Sound Control protocol")
1564 "liblo is a lightweight library that provides an easy to use
1565 implementation of the Open Sound Control (OSC) protocol.")
1566 (license license:lgpl2.1+)))
1568 (define-public python-pyliblo
1570 (name "python-pyliblo")
1574 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1578 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1579 (build-system python-build-system)
1580 (arguments `(#:tests? #f)) ;no tests
1582 `(("python-cython" ,python-cython)))
1584 `(("liblo" ,liblo)))
1585 (home-page "http://das.nasophon.de/pyliblo/")
1586 (synopsis "Python bindings for liblo")
1588 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1589 library. It supports almost the complete functionality of liblo, allowing you
1590 to send and receive OSC messages using a nice and simple Python API. Also
1591 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1592 (license license:lgpl2.1+)))
1594 (define-public python2-pyliblo
1595 (package-with-python2 python-pyliblo))
1603 (uri (string-append "http://download.drobilla.net/lilv-"
1604 version ".tar.bz2"))
1607 "08m5a372pr1l7aii9s3pic5nm68gynx1n1bc7bnlswziq6qnbv7p"))))
1608 (build-system waf-build-system)
1610 `(#:tests? #f ; no check target
1612 (modify-phases %standard-phases
1614 'configure 'set-ldflags
1615 (lambda* (#:key outputs #:allow-other-keys)
1617 (string-append "-Wl,-rpath="
1618 (assoc-ref outputs "out") "/lib")))))))
1619 ;; required by lilv-0.pc
1623 ("sratom" ,sratom)))
1627 `(("pkg-config" ,pkg-config)))
1628 (home-page "http://drobilla.net/software/lilv/")
1629 (synopsis "Library to simplify use of LV2 plugins in applications")
1631 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1632 for applications. Lilv is the successor to SLV2, rewritten to be
1633 significantly faster and have minimal dependencies.")
1634 (license license:isc)))
1642 (uri (string-append "http://lv2plug.in/spec/lv2-"
1643 version ".tar.bz2"))
1646 "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"))))
1647 (build-system waf-build-system)
1649 `(#:tests? #f ; no check target
1650 #:configure-flags '("--no-plugins")))
1652 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1653 `(("libsndfile" ,libsndfile)))
1655 `(("pkg-config" ,pkg-config)))
1656 (home-page "http://lv2plug.in/")
1657 (synopsis "LV2 audio plugin specification")
1659 "LV2 is an open specification for audio plugins and host applications.
1660 At its core, LV2 is a simple stable interface, accompanied by extensions which
1661 add functionality to support the needs of increasingly powerful audio
1663 (license license:isc)))
1665 (define-public lv2-mda-piano
1667 (name "lv2-mda-piano")
1672 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1676 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1677 (build-system gnu-build-system)
1679 `(#:make-flags (list
1681 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1682 #:tests? #f ; no check target
1683 #:phases (alist-delete 'configure %standard-phases)))
1688 `(("pkg-config" ,pkg-config)))
1689 (native-search-paths
1690 (list (search-path-specification
1691 (variable "LV2_PATH")
1692 (files '("lib/lv2")))))
1693 (home-page "http://elephly.net/lv2/mdapiano.html")
1694 (synopsis "LV2 port of the mda Piano plugin")
1695 (description "An LV2 port of the mda Piano VSTi.")
1696 (license license:gpl3+)))
1698 (define-public lv2-mda-epiano
1699 (package (inherit lv2-mda-piano)
1700 (name "lv2-mda-epiano")
1702 `(#:make-flags (list
1704 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1705 #:tests? #f ; no check target
1706 #:phases (alist-delete 'configure %standard-phases)))
1707 (home-page "http://elephly.net/lv2/mdaepiano.html")
1708 (synopsis "LV2 port of the mda EPiano plugin")
1709 (description "An LV2 port of the mda EPiano VSTi.")))
1717 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1720 (file-name (string-append name "-" version ".tar.gz"))
1723 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1724 (build-system waf-build-system)
1726 `(#:tests? #f ; no check target
1729 (list (string-append "--boost-includes="
1730 (assoc-ref %build-inputs "boost")
1732 #:phases (modify-phases %standard-phases
1734 'configure 'set-flags
1735 (lambda* (#:key inputs #:allow-other-keys)
1736 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1739 "-L" (assoc-ref inputs "boost") "/lib "
1742 (substitute* '("src/wscript_build"
1743 "examples/wscript_build")
1744 (("cxxflags.*= \\[" line)
1745 (string-append line "\"-std=c++11\", ")))
1752 `(("pkg-config" ,pkg-config)))
1753 (home-page "https://github.com/lvtk/lvtk")
1754 (synopsis "C++ libraries for LV2 plugins")
1756 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1757 extensions into easy to use C++ classes. It is the successor of
1759 (license license:gpl3+)))
1761 (define-public openal
1768 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1769 version ".tar.bz2"))
1772 "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3"))))
1773 (build-system cmake-build-system)
1775 `(#:tests? #f ; no check target
1777 (modify-phases %standard-phases
1779 'unpack 'use-full-library-paths
1780 (lambda* (#:key inputs #:allow-other-keys)
1781 (substitute* "Alc/backends/pulseaudio.c"
1782 (("#define PALIB \"libpulse\\.so\\.0\"")
1783 (string-append "#define PALIB \""
1784 (assoc-ref inputs "pulseaudio")
1785 "/lib/libpulse.so.0"
1787 (substitute* "Alc/backends/alsa.c"
1788 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1789 (string-append "LoadLib(\""
1790 (assoc-ref inputs "alsa-lib")
1791 "/lib/libasound.so.2"
1795 `(("alsa-lib" ,alsa-lib)
1796 ("pulseaudio" ,pulseaudio)))
1797 (synopsis "3D audio API")
1799 "OpenAL provides capabilities for playing audio in a virtual 3D
1800 environment. Distance attenuation, doppler shift, and directional sound
1801 emitters are among the features handled by the API. More advanced effects,
1802 including air absorption, occlusion, and environmental reverb, are available
1803 through the EFX extension. It also facilitates streaming audio, multi-channel
1804 buffers, and audio capture.")
1805 (home-page "http://kcat.strangesoft.net/openal.html")
1806 (license license:lgpl2.0+)))
1808 (define-public freealut
1814 ;; Upstream url is unclear, many systems use Fedora, there is also
1815 ;; https://github.com/vancegroup/freealut though the status of it
1816 ;; (official? unofficial?) is not clear.
1818 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
1819 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
1820 "-" version ".tar.gz"))
1823 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
1824 (build-system cmake-build-system)
1826 `(#:tests? #f)) ; no check target
1828 `(("openal" ,openal)))
1829 (synopsis "Free implementation of OpenAL's ALUT standard")
1830 (description "freealut is the OpenAL Utility Toolkit.")
1831 (home-page "http://kcat.strangesoft.net/openal.html")
1832 (license license:lgpl2.0)))
1834 (define-public patchage
1840 (uri (string-append "http://download.drobilla.net/patchage-"
1845 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1846 (build-system waf-build-system)
1847 (arguments `(#:tests? #f)) ; no check target
1849 `(("alsa-lib" ,alsa-lib)
1855 ("dbus-glib" ,dbus-glib)))
1857 `(("pkg-config" ,pkg-config)))
1858 (home-page "http://drobilla.net/software/patchage/")
1859 (synopsis "Modular patch bay for audio and MIDI systems")
1861 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1863 (license license:gpl3+)))
1865 (define-public qjackctl
1871 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
1872 version "/qjackctl-" version ".tar.gz"))
1875 "1dsavjfzz5bpzc80mvfs940w9f9f47cf4r9cqxnaqrl4xilsa3f5"))))
1876 (build-system gnu-build-system)
1878 '(#:tests? #f)) ; no check target
1882 ("qtx11extras" ,qtx11extras)))
1884 `(("pkg-config" ,pkg-config)
1885 ("qttools" ,qttools)))
1886 (home-page "https://qjackctl.sourceforge.io/")
1887 (synopsis "Jack server control application")
1888 (description "Control a Jack server. Allows you to plug various sources
1889 into various outputs and to start, stop and configure jackd")
1890 (license license:gpl2+)))
1899 (uri (string-append "http://download.drobilla.net/raul-"
1900 version ".tar.bz2"))
1903 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
1904 (build-system waf-build-system)
1906 `(#:python ,python-2
1907 #:tests? #f)) ; no check target
1912 `(("pkg-config" ,pkg-config)))
1913 (home-page "http://drobilla.net/software/raul/")
1914 (synopsis "Real-time audio utility library")
1916 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
1917 aimed at audio/musical applications.")
1918 (license license:gpl2+)))
1920 (define-public raul-devel
1921 (let ((commit "f8bf77d3c3b77830aedafb9ebb5cdadfea7ed07a")
1923 (package (inherit raul)
1925 (version (string-append "0.8.4-" revision "."
1926 (string-take commit 9)))
1930 (url "http://git.drobilla.net/raul.git")
1932 (file-name (string-append name "-" version "-checkout"))
1935 "1lby508fb0n8ks6iz959sh18fc37br39d6pbapwvbcw5nckdrxwj")))))))
1937 (define-public rubberband
1944 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
1949 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
1950 (build-system gnu-build-system)
1951 (arguments `(#:tests? #f)) ; no check target
1953 `(("ladspa" ,ladspa)
1954 ("libsamplerate" ,libsamplerate)
1957 `(("pkg-config" ,pkg-config)))
1958 (home-page "http://breakfastquay.com/rubberband/")
1959 (synopsis "Audio time-stretching and pitch-shifting library")
1961 "Rubber Band is a library and utility program that permits changing the
1962 tempo and pitch of an audio recording independently of one another.")
1963 (license license:gpl2+)))
1965 (define-public rtmidi
1972 (string-append "https://github.com/powertab/rtmidi/archive/"
1974 (file-name (string-append name "-" version ".tar.gz"))
1977 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
1978 (build-system gnu-build-system)
1980 `(#:tests? #f ;no "check" target
1981 #:phases (modify-phases %standard-phases
1983 'configure 'autoconf
1984 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
1986 'build 'fix-makefile
1988 (substitute* "Makefile"
1990 (("RtMidi.h RtError.h") "RtMidi.h"))
1993 'install 'make-target-dirs
1995 (let ((out (assoc-ref %outputs "out")))
1996 (mkdir-p (string-append out "/bin"))
1997 (mkdir (string-append out "/lib"))
1998 (mkdir (string-append out "/include")))
2002 ("alsa-lib" ,alsa-lib)))
2004 `(("autoconf" ,autoconf)
2005 ("automake" ,automake)
2006 ("libtool" ,libtool)
2007 ("pkg-config" ,pkg-config)))
2008 (home-page "https://github.com/powertab/rtmidi")
2009 (synopsis "Cross-platform MIDI library for C++")
2011 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2012 classes) that provide a common cross-platform API for realtime MIDI
2014 (license license:expat)))
2016 (define-public sratom
2022 (uri (string-append "http://download.drobilla.net/sratom-"
2023 version ".tar.bz2"))
2026 "0hrxd9i66s06bpn6i3s9ka95134g3sm8yscmif7qgdzhyjqw42j4"))))
2027 (build-system waf-build-system)
2028 (arguments `(#:tests? #f)) ; no check target
2034 `(("pkg-config" ,pkg-config)))
2035 (home-page "http://drobilla.net/software/sratom/")
2036 (synopsis "Library for serialising LV2 atoms to/from RDF")
2038 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2039 the Turtle syntax.")
2040 (license license:isc)))
2048 (uri (string-append "http://download.drobilla.net/suil-"
2049 version ".tar.bz2"))
2052 "1kji3lhha26qr6xm9j8ic5c40zbrrb5qnwm2qxzmsfxgmrz29wkf"))))
2053 (build-system waf-build-system)
2055 `(#:tests? #f ; no check target
2057 '("CXXFLAGS=-std=gnu++11")))
2063 `(("pkg-config" ,pkg-config)))
2064 (home-page "http://drobilla.net/software/suil/")
2065 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2067 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2069 Suil makes it possible to load a UI of a toolkit in a host using another
2070 toolkit. The API is designed such that hosts do not need to explicitly
2071 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2072 that toolkit will work in all hosts that use Suil automatically.
2074 Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
2075 (license license:isc)))
2077 (define-public timidity++
2083 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2084 "/TiMidity++-" version
2085 "/TiMidity++-" version ".tar.bz2"))
2088 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2089 (build-system gnu-build-system)
2092 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2096 (string-append "--with-default-path="
2097 (assoc-ref %outputs "out") "/etc/timidity"))
2100 'install 'install-config
2102 (let ((out (string-append (assoc-ref %outputs "out")
2105 (call-with-output-file
2106 (string-append out "/timidity.cfg")
2108 (format port (string-append "source "
2109 (assoc-ref %build-inputs "freepats")
2110 "/share/freepats/freepats.cfg"))))))
2113 `(("alsa-lib" ,alsa-lib)
2119 ("ncurses" ,ncurses)
2120 ("freepats" ,freepats)))
2122 `(("pkg-config" ,pkg-config)))
2123 (home-page "http://timidity.sourceforge.net/")
2124 (synopsis "Software synthesizer for playing MIDI files")
2126 "TiMidity++ is a software synthesizer. It can play MIDI files by
2127 converting them into PCM waveform data; give it a MIDI data along with digital
2128 instrument data files, then it synthesizes them in real-time, and plays. It
2129 can not only play sounds, but also can save the generated waveforms into hard
2130 disks as various audio file formats.")
2131 (license license:gpl2+)))
2140 "https://code.soundsoftware.ac.uk"
2141 "/attachments/download/1520/vamp-plugin-sdk-"
2145 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2146 (build-system gnu-build-system)
2148 `(#:tests? #f ; no check target
2151 'install 'remove-libvamp-hostsdk.la
2152 (lambda* (#:key outputs #:allow-other-keys)
2153 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2154 (for-each delete-file
2155 (let ((out (assoc-ref outputs "out")))
2156 (list (string-append out "/lib/libvamp-sdk.la")
2157 (string-append out "/lib/libvamp-hostsdk.la"))))
2161 `(("libsndfile" ,libsndfile)))
2163 `(("pkg-config" ,pkg-config)))
2164 (home-page "http://vamp-plugins.org")
2165 (synopsis "Modular and extensible audio processing system")
2167 "Vamp is an audio processing plugin system for plugins that extract
2168 descriptive information from audio data — typically referred to as audio
2169 analysis plugins or audio feature extraction plugins.")
2172 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2174 (define-public libsbsms
2181 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2182 "/libsbsms-" version ".tar.gz"))
2184 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2185 (build-system gnu-build-system)
2186 (native-inputs `(("automake" ,automake)))
2189 ;; Disable the use of SSE unless on x86_64.
2190 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2191 (%current-system))))
2195 (modify-phases %standard-phases
2197 'unpack 'fix-ar-lib-path
2198 (lambda* (#:key inputs #:allow-other-keys)
2199 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2200 (delete-file "ar-lib")
2202 (string-append (assoc-ref inputs "automake") "/share/automake-"
2203 ,(package-version automake) "/ar-lib")
2205 (home-page "http://sbsms.sourceforge.net/")
2206 (synopsis "Library for time stretching and pitch scaling of audio")
2208 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2209 stretching and pitch scaling of audio. This package contains the library.")
2210 ;; There is no explicit declaration of a license, but a COPYING file
2212 (license license:gpl2)))
2214 (define-public wavpack
2220 (uri (string-append "http://www.wavpack.com/"
2221 name "-" version ".tar.bz2"))
2224 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2225 (build-system gnu-build-system)
2226 (home-page "http://www.wavpack.com/")
2227 (synopsis "Hybrid lossless audio codec")
2229 "WavPack is an audio compression format with lossless, lossy and hybrid
2230 compression modes. This package contains command-line programs and library to
2231 encode and decode wavpack files.")
2232 (license license:bsd-3)))
2234 (define-public libmodplug
2241 "mirror://sourceforge/modplug-xmms/"
2242 name "/" version "/" name "-" version ".tar.gz"))
2245 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
2246 (build-system gnu-build-system)
2247 (home-page "http://modplug-xmms.sourceforge.net/")
2248 (synopsis "Mod file playing library")
2250 "Libmodplug renders mod music files as raw audio data, for playing or
2251 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2252 supported. Optional features include high-quality resampling, bass expansion,
2253 surround and reverb.")
2254 (license license:public-domain)))
2256 (define-public libxmp
2262 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2263 name "-" version ".tar.gz"))
2266 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2267 (build-system gnu-build-system)
2268 (home-page "http://xmp.sourceforge.net/")
2269 (synopsis "Module player library")
2271 "Libxmp is a library that renders module files to PCM data. It supports
2272 over 90 mainstream and obscure module formats including Protracker (MOD),
2273 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2274 (license license:lgpl2.1+)))
2282 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2283 name "-" version ".tar.gz"))
2286 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2287 (build-system gnu-build-system)
2289 `(("pkg-config" ,pkg-config)))
2291 `(("libxmp" ,libxmp)
2292 ("pulseaudio" ,pulseaudio)))
2293 (home-page "http://xmp.sourceforge.net/")
2294 (synopsis "Extended module player")
2296 "Xmp is a portable module player that plays over 90 mainstream and
2297 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2298 Tracker 3 S3M and Impulse Tracker IT files.")
2299 (license license:gpl2+)))
2301 (define-public soundtouch
2310 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
2312 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
2313 (build-system gnu-build-system)
2315 `(("autoconf" ,autoconf)
2316 ("automake" ,automake)
2317 ("libtool" ,libtool)
2324 (zero? (system* "sh" "bootstrap")))
2326 (home-page "http://www.surina.net/soundtouch/")
2328 "Audio processing library for changing tempo, pitch and playback rate")
2330 "SoundTouch is an audio processing library for changing the tempo, pitch
2331 and playback rates of audio streams or audio files. It is intended for
2332 application developers writing sound processing tools that require tempo/pitch
2333 control functionality, or just for playing around with the sound effects.")
2334 (license license:lgpl2.1+)))
2342 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2343 name "-" version ".tar.bz2"))
2346 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2347 (build-system gnu-build-system)
2350 ;; The upstream asks to identify the distribution to diagnose SoX
2352 '("--with-distro=Guix System Distribution")))
2354 `(("pkg-config" ,pkg-config)))
2356 `(("alsa-lib" ,alsa-lib)
2360 ("libid3tag" ,libid3tag)
2361 ("libltdl" ,libltdl)
2364 ("libvorbis" ,libvorbis)
2365 ("pulseaudio" ,pulseaudio)))
2366 (home-page "http://sox.sourceforge.net")
2367 (synopsis "Sound processing utility")
2369 "SoX (Sound eXchange) is a command line utility that can convert
2370 various formats of computer audio files to other formats. It can also
2371 apply various effects to these sound files, and, as an added bonus, SoX
2372 can play and record audio files.")
2373 ;; sox.c is distributed under GPL, while the files that make up
2374 ;; libsox are licensed under LGPL.
2375 (license (list license:gpl2+ license:lgpl2.1+))))
2385 (string-append "mirror://sourceforge/soxr/soxr-" version
2388 (base32 "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl"))))
2389 (build-system cmake-build-system)
2390 (arguments '(#:tests? #f)) ;no 'check' target
2391 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2392 (synopsis "One-dimensional sample-rate conversion library")
2394 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2395 conversion. It may be used, for example, to resample PCM-encoded audio.")
2396 (license license:lgpl2.1+)))
2398 (define-public twolame
2405 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2406 "/twolame-" version ".tar.gz"))
2408 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2409 (modules '((guix build utils)))
2410 ;; The tests break with Perl 5.24:
2411 ;; https://github.com/njh/twolame/issues/21
2412 ;; TODO: Remove this snippet when upgrading twolame.
2415 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2417 (build-system gnu-build-system)
2419 `(("libsndfile" ,libsndfile)))
2422 ("which" ,which))) ;used in tests/test.pl
2423 (home-page "http://www.twolame.org/")
2424 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2426 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2427 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2429 (license license:lgpl2.1+)))
2431 (define-public portaudio
2434 (version "190600.20161030")
2439 "http://www.portaudio.com/archives/pa_stable_v"
2440 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2443 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2444 (patches (search-patches "portaudio-audacity-compat.patch"))))
2445 (build-system gnu-build-system)
2447 ;; TODO: Add ASIHPI.
2448 `(("alsa-lib" ,alsa-lib)
2451 `(("autoconf" ,autoconf)
2452 ("automake" ,automake)
2453 ("libtool" ,libtool)
2454 ("pkg-config" ,pkg-config)))
2457 ;; Autoreconf is necessary because the audacity-compat patch modifies
2462 (zero? (system* "autoreconf" "-vif")))
2464 #:tests? #f)) ;no 'check' target
2465 (home-page "http://www.portaudio.com/")
2466 (synopsis "Audio I/O library")
2468 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2469 to record and/or play sound using a callback function or a blocking read/write
2471 (license license:expat)))
2473 (define-public qsynth
2480 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2481 "/qsynth-" version ".tar.gz"))
2484 "0qhfnikx3xcllkvs60kj6vcf2rwwzh31y41qkk6kwfhzgd219y8f"))))
2485 (build-system gnu-build-system)
2487 `(#:tests? #f ; no "check" phase
2489 '("CXXFLAGS=-std=gnu++11")))
2491 `(("qttools" ,qttools)
2492 ("pkg-config" ,pkg-config)))
2494 `(("fluidsynth" ,fluidsynth)
2496 ("qtx11extras" ,qtx11extras)))
2497 (home-page "http://qsynth.sourceforge.net")
2498 (synopsis "Graphical user interface for FluidSynth")
2500 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2501 synthesizer written in C++.")
2502 (license license:gpl2+)))
2504 (define-public rsound
2511 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2513 (file-name (string-append name "-" version))
2515 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2516 (build-system gnu-build-system)
2518 `(("alsa-lib" ,alsa-lib)
2521 ("libsamplerate" ,libsamplerate)
2523 ("portaudio" ,portaudio)
2524 ("pulseaudio" ,pulseaudio)))
2529 (lambda* (#:key outputs #:allow-other-keys)
2532 (system* "./configure"
2533 (string-append "--prefix=" (assoc-ref outputs "out")))))
2535 ;; No 'check' target.
2537 (home-page "http://themaister.net/rsound.html")
2538 (synopsis "Networked audio system")
2540 "RSound allows you to send audio from an application and transfer it
2541 directly to a different computer on your LAN network. It is an audio daemon
2542 with a much different focus than most other audio daemons.")
2543 (license license:gpl3+)))
2545 (define-public xjackfreak
2552 "https://github.com/johnhldavis/xjackfreak/archive/v"
2554 (file-name (string-append name "-" version ".tar.gz"))
2557 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2558 (build-system gnu-build-system)
2561 (list (string-append "docdir=" (assoc-ref %outputs "out")
2562 "/share/doc/xjackfreak"))))
2567 ("libxext" ,libxext)))
2569 `(("pkg-config" ,pkg-config)))
2570 (home-page "https://github.com/johnhldavis/xjackfreak")
2571 (synopsis "JACK audio frequency analyzer and display")
2573 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2574 Connection Kit. It can display the FFT of any input, modify it and output the
2576 (license license:gpl3+)))
2578 (define-public zita-convolver
2580 (name "zita-convolver")
2585 "http://kokkinizita.linuxaudio.org"
2586 "/linuxaudio/downloads/zita-convolver-"
2587 version ".tar.bz2"))
2589 ;; Don't optimize for a specific processor architecture.
2590 '(substitute* "libs/Makefile"
2591 (("^CXXFLAGS \\+= -march=native") "")))
2592 (modules '((guix build utils)))
2595 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2596 (build-system gnu-build-system)
2598 `(#:tests? #f ; no "check" target
2599 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2602 'unpack 'patch-makefile-and-enter-directory
2604 (substitute* "libs/Makefile"
2605 (("ldconfig") "true")
2606 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2612 (symlink "libzita-convolver.so"
2613 (string-append (assoc-ref %outputs "out")
2614 "/lib/libzita-convolver.so.3")))
2615 ;; no configure script
2616 (alist-delete 'configure %standard-phases)))))
2617 (inputs `(("fftwf" ,fftwf)))
2618 (home-page "http://kokkinizita.linuxaudio.org")
2619 (synopsis "Fast, partitioned convolution engine library")
2621 "Zita convolver is a C++ library providing a real-time convolution
2623 (license license:gpl3+)))
2625 (define-public zita-resampler
2627 (name "zita-resampler")
2632 "http://kokkinizita.linuxaudio.org"
2633 "/linuxaudio/downloads/zita-resampler-"
2634 version ".tar.bz2"))
2636 ;; Don't optimize for a specific processor architecture.
2637 '(substitute* '("apps/Makefile" "libs/Makefile")
2638 (("^CXXFLAGS \\+= -march=native") "")))
2639 (modules '((guix build utils)))
2642 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2643 (build-system gnu-build-system)
2645 `(#:tests? #f ; no "check" target
2646 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2648 (modify-phases %standard-phases
2650 'unpack 'patch-makefile-and-enter-directory
2652 (substitute* "libs/Makefile"
2653 (("ldconfig") "true")
2654 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2658 'install 'install-symlink
2660 (symlink "libzita-resampler.so"
2661 (string-append (assoc-ref %outputs "out")
2662 "/lib/libzita-resampler.so.1"))))
2663 ;; no configure script
2664 (delete 'configure))))
2665 (home-page "http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2666 (synopsis "C++ library for resampling audio signals")
2668 "Libzita-resampler is a C++ library for resampling audio signals. It is
2669 designed to be used within a real-time processing context, to be fast, and to
2670 provide high-quality sample rate conversion.")
2671 (license license:gpl3+)))
2673 (define-public zita-alsa-pcmi
2675 (name "zita-alsa-pcmi")
2680 "http://kokkinizita.linuxaudio.org"
2681 "/linuxaudio/downloads/zita-alsa-pcmi-"
2682 version ".tar.bz2"))
2685 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
2686 (build-system gnu-build-system)
2688 `(#:tests? #f ; no "check" target
2689 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2692 'unpack 'patch-makefile-and-enter-directory
2694 (substitute* "libs/Makefile"
2695 (("ldconfig") "true")
2696 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2703 (symlink "libzita-alsa-pcmi.so"
2704 (string-append (assoc-ref %outputs "out")
2705 "/lib/libzita-alsa-pcmi.so.0")))
2706 ;; no configure script
2707 (alist-delete 'configure %standard-phases)))))
2709 `(("alsa-lib" ,alsa-lib)
2711 (home-page "http://kokkinizita.linuxaudio.org")
2712 (synopsis "C++ wrapper around the ALSA API")
2714 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2715 access to ALSA PCM devices, taking care of the many functions required to
2716 open, initialise and use a hw: device in mmap mode, and providing floating
2718 (license license:gpl3+)))
2720 (define-public cuetools
2726 (uri (string-append "https://github.com/svend/cuetools/archive/"
2728 (file-name (string-append name "-" version ".tar.gz"))
2731 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2732 (build-system gnu-build-system)
2733 ;; The source tarball is not bootstrapped.
2736 (modify-phases %standard-phases
2737 (add-after 'unpack 'bootstrap
2738 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2739 ;; Bootstrapping tools
2741 `(("autoconf" ,autoconf)
2742 ("automake" ,automake)
2745 (synopsis "Cue and toc file parsers and utilities")
2746 (description "Cuetools is a set of programs that are useful for manipulating
2747 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2748 files are a way to represent the layout of a data or audio CD in a
2749 machine-readable ASCII format.")
2750 (home-page "https://github.com/svend/cuetools")
2751 (license license:gpl2+)))
2753 (define-public shntool
2759 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2760 "shntool-" version ".tar.gz"))
2763 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2764 (build-system gnu-build-system)
2765 (synopsis "WAVE audio data processing tool")
2766 (description "shntool is a multi-purpose WAVE data processing and reporting
2767 utility. File formats are abstracted from its core, so it can process any file
2768 that contains WAVE data, compressed or not---provided there exists a format
2769 module to handle that particular file type. It can also generate CUE files, and
2770 use them split WAVE data into multiple files.")
2771 (home-page "http://etree.org/shnutils/shntool/")
2772 ;; 'install-sh' bears the x11 license
2773 (license (list license:gpl2+ license:x11))))
2775 (define-public dcadec
2781 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2783 (file-name (string-append name "-" version ".tar.gz"))
2786 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2787 (build-system gnu-build-system)
2789 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2793 ;; Build shared library.
2795 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2796 ;; Set proper runpath.
2797 (string-append "LDFLAGS=-Wl,-rpath="
2798 (assoc-ref %outputs "out")
2801 (modify-phases %standard-phases
2802 ;; No configure script, just a hand-written Makefile.
2803 (delete 'configure))))
2804 (synopsis "DTS Coherent Acoustics decoder")
2805 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2806 with support for HD extensions.")
2807 (home-page "https://github.com/foo86/dcadec")
2808 (license license:lgpl2.1+)))
2810 (define-public bs1770gain
2817 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2818 version "/bs1770gain-" version ".tar.gz"))
2821 "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a"))))
2822 (build-system gnu-build-system)
2823 (inputs `(("ffmpeg" ,ffmpeg)
2825 (home-page "http://bs1770gain.sourceforge.net/")
2826 (synopsis "Tool to adjust loudness of media files")
2828 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2829 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2830 loudness of audio and video files to the same level.")
2831 (license license:gpl2+)))
2833 (define-public filteraudio
2834 (let ((revision "1")
2835 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
2837 (name "filteraudio")
2838 (version (string-append "0.0.0-" revision "."
2839 (string-take commit 7)))
2844 (url "https://github.com/irungentoo/filter_audio.git")
2846 (file-name (string-append name "-" version "-checkout"))
2849 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
2850 (build-system gnu-build-system)
2852 '(#:make-flags (list (string-append "PREFIX=" %output)
2854 #:tests? #f ; No tests
2856 (modify-phases %standard-phases
2857 ;; No configure script
2858 (delete 'configure))))
2859 (synopsis "Lightweight audio filtering library")
2860 (description "An easy to use audio filtering library made from webrtc
2861 code, used in @code{libtoxcore}.")
2862 (home-page "https://github.com/irungentoo/filter_audio")
2863 (license license:bsd-3))))
2873 (string-append "http://www.quut.com/" name "/" name
2874 "-" version ".tar.gz"))
2877 "0b1mx69jq88wva3wk0hi6fcl5a52qhnq2f9p3f3jdh5k61ma252q"))))
2878 (build-system gnu-build-system)
2880 `(#:test-target "tst"
2882 (modify-phases %standard-phases
2883 (add-before 'install 'pre-install
2885 (let ((out (assoc-ref %outputs "out")))
2886 (substitute* "Makefile"
2887 (("INSTALL_ROOT\t=")
2888 (string-append "INSTALL_ROOT\t=\t" out)))
2889 (mkdir-p (string-append out "/inc"))
2890 (mkdir-p (string-append out "/man"))
2891 (mkdir-p (string-append out "/man/man1"))
2892 (mkdir-p (string-append out "/man/man3"))
2893 (mkdir-p (string-append out "/bin"))
2894 (mkdir-p (string-append out "/lib")))))
2895 (add-after 'install 'post-install
2897 (let ((out (assoc-ref %outputs "out")))
2898 (rename-file (string-append out "/inc")
2899 (string-append out "/include"))
2900 (mkdir-p (string-append out "/include/gsm"))
2901 (copy-recursively "inc"
2902 (string-append out "/include/gsm")))))
2903 (delete 'configure))))
2904 (synopsis "GSM 06.10 lossy speech compression library")
2905 (description "This C library provides an encoder and a decoder for the GSM
2906 06.10 RPE-LTP lossy speech compression algorithm.")
2907 (home-page "http://quut.com/gsm/")
2908 (license (license:non-copyleft "file://COPYRIGHT"))))