1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 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>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages audio)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix git-download)
27 #:use-module (guix utils)
28 #:use-module ((guix licenses) #:prefix license:)
29 #:use-module (guix build-system gnu)
30 #:use-module (guix build-system waf)
31 #:use-module (guix build-system trivial)
32 #:use-module (guix build-system cmake)
33 #:use-module (guix build-system python)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages algebra)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages avahi)
38 #:use-module (gnu packages boost)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages bison)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages curl)
43 #:use-module (gnu packages databases)
44 #:use-module (gnu packages file)
45 #:use-module (gnu packages flex)
46 #:use-module (gnu packages fltk)
47 #:use-module (gnu packages fontutils)
48 #:use-module (gnu packages gettext)
49 #:use-module (gnu packages glib)
50 #:use-module (gnu packages gtk)
51 #:use-module (gnu packages gnome)
52 #:use-module (gnu packages gperf)
53 #:use-module (gnu packages image)
54 #:use-module (gnu packages ncurses)
55 #:use-module (gnu packages qt)
56 #:use-module (gnu packages linux)
57 #:use-module (gnu packages mp3) ;taglib
58 #:use-module (gnu packages perl)
59 #:use-module (gnu packages pkg-config)
60 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages rdf)
63 #:use-module (gnu packages readline)
64 #:use-module (gnu packages webkit)
65 #:use-module (gnu packages xiph)
66 #:use-module (gnu packages xml)
67 #:use-module (gnu packages xorg)
68 #:use-module (gnu packages zip)
69 #:use-module (srfi srfi-1))
71 (define-public alsa-modular-synth
73 (name "alsa-modular-synth")
77 (uri (string-append "mirror://sourceforge/alsamodular/ams-"
81 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
82 (build-system gnu-build-system)
84 `(#:configure-flags '("--enable-qt5")
86 (modify-phases %standard-phases
87 ;; Insert an extra space between linker flags.
88 (add-before 'configure 'add-missing-space
90 (substitute* "configure"
91 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
92 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
95 `(("alsa-lib" ,alsa-lib)
96 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
97 ;; license incompatibility.
98 ("clalsadrv" ,clalsadrv)
105 `(("pkg-config" ,pkg-config)))
106 (home-page "http://alsamodular.sourceforge.net/")
107 (synopsis "Realtime modular synthesizer and effect processor")
109 "AlsaModularSynth is a digital implementation of a classical analog
110 modular synthesizer system. It uses virtual control voltages to control the
111 parameters of the modules. The control voltages which control the frequency
112 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
113 Filter) modules follow the convention of 1V / Octave.")
114 (license license:gpl2)))
123 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
126 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
127 (build-system waf-build-system)
129 `(#:tests? #f ; no check target
134 "--enable-samplerate"
135 ;; enable compilation with avcodec once available
140 ("libsndfile" ,libsndfile)
141 ("libsamplerate" ,libsamplerate)
144 `(("pkg-config" ,pkg-config)))
145 (home-page "http://aubio.org/")
146 (synopsis "Library for audio labelling")
148 "aubio is a tool designed for the extraction of annotations from audio
149 signals. Its features include segmenting a sound file before each of its
150 attacks, performing pitch detection, tapping the beat and producing MIDI
151 streams from live audio.")
152 (license license:gpl3+)))
154 (define (ardour-rpath-phase major-version)
155 `(lambda* (#:key outputs #:allow-other-keys)
156 (let ((libdir (string-append (assoc-ref outputs "out")
157 "/lib/ardour" ,major-version)))
158 (substitute* "wscript"
159 (("linker_flags = \\[\\]")
160 (string-append "linker_flags = [\""
163 libdir "/backends" ":"
164 libdir "/engines" ":"
165 libdir "/panners" ":"
166 libdir "/surfaces" ":"
167 libdir "/vamp" "\"]"))))
170 (define-public ardour
177 (url "git://git.ardour.org/ardour/ardour.git")
180 ;; Ardour expects this file to exist at build time. The revision
182 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
183 '(call-with-output-file
184 "libs/ardour/revision.cc"
186 (format port "#include \"ardour/revision.h\"
187 namespace ARDOUR { const char* revision = \"4.7-219-g0e36f8e\" ; }"))))
190 "149gswphz77m3pkzsn2nqbm6yvcfa3fva560bcvjzlgb73f64q5l"))
191 (file-name (string-append name "-" version))))
192 (build-system waf-build-system)
194 `(#:configure-flags '("--cxx11") ; required by gtkmm
196 (modify-phases %standard-phases
198 'unpack 'set-rpath-in-LDFLAGS
199 ,(ardour-rpath-phase (version-prefix version 1))))
200 #:tests? #f ; no check target
203 `(("alsa-lib" ,alsa-lib)
211 ("libart-lgpl" ,libart-lgpl)
212 ("libgnomecanvasmm" ,libgnomecanvasmm)
215 ("libsndfile" ,libsndfile)
216 ("libsamplerate" ,libsamplerate)
219 ("libvorbis" ,libvorbis)
233 ("rubberband" ,rubberband)
235 ("python-rdflib" ,python-rdflib)))
238 ("pkg-config" ,pkg-config)))
239 (home-page "http://ardour.org")
240 (synopsis "Digital audio workstation")
242 "Ardour is a multi-channel digital audio workstation, allowing users to
243 record, edit, mix and master audio and MIDI projects. It is targeted at audio
244 engineers, musicians, soundtrack editors and composers.")
245 (license license:gpl2+)))
253 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
258 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))))
259 (build-system gnu-build-system)
261 `(#:tests? #f ; no check target
264 (string-append "prefix=" %output)
265 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
272 `(("pkg-config" ,pkg-config)))
273 (home-page "http://ll-plugins.nongnu.org/azr3/")
274 (synopsis "Tonewheel organ synthesizer")
276 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
277 with drawbars, distortion and rotating speakers. The organ has three
278 sections, two polyphonic sections with nine drawbars each and one monophonic
279 bass section with five drawbars. A standalone JACK application and LV2
280 plugins are provided.")
281 (license license:gpl2)))
289 (uri (string-append "http://calf-studio-gear.org/files/calf-"
293 "019fwg00jv217a5r767z7szh7vdrarybac0pr2sk26xp81kibrx9"))))
294 (build-system gnu-build-system)
296 `(("fluidsynth" ,fluidsynth)
307 `(("pkg-config" ,pkg-config)))
309 (list (search-path-specification
310 (variable "LV2_PATH")
311 (files '("lib/lv2")))))
312 (home-page "http://calf.sourceforge.net/")
313 (synopsis "Audio plug-in pack for LV2 and JACK environments")
315 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
316 The suite contains lots of effects (delay, modulation, signal processing,
317 filters, equalizers, dynamics, distortion and mastering effects),
318 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
319 tools (analyzer, mono/stereo tools, crossovers).")
320 ;; calfjackhost is released under GPLv2+
321 ;; The plugins are released under LGPLv2.1+
322 (license (list license:lgpl2.1+ license:gpl2+))))
324 (define-public csound
331 "mirror://sourceforge/csound/csound6/Csound"
332 version "/Csound" version ".tar.gz"))
335 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
336 (patches (list (search-patch "csound-header-ordering.patch")))))
337 (build-system cmake-build-system)
339 ;; Work around this error on x86_64 with libc 2.22+:
340 ;; libmvec.so.1: error adding symbols: DSO missing from command line
341 (if (string-prefix? "x86_64" (or (%current-target-system) (%current-system)))
342 '(#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-lmvec"))
345 `(("alsa-lib" ,alsa-lib)
347 ("pulseaudio" ,pulseaudio)
348 ("libsndfile" ,libsndfile)
352 ("gettext" ,gnu-gettext)))
357 (home-page "http://csound.github.io/")
358 (synopsis "Sound and music computing system")
360 "Csound is a user-programmable and user-extensible sound processing
361 language and software synthesizer.")
362 (license license:lgpl2.1+)))
364 (define-public clalsadrv
371 "http://kokkinizita.linuxaudio.org"
372 "/linuxaudio/downloads/clalsadrv-"
376 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
377 (build-system gnu-build-system)
379 `(#:tests? #f ; no "check" target
380 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
383 'unpack 'patch-makefile-and-enter-directory
385 (substitute* "libs/Makefile"
386 (("/sbin/ldconfig") "true")
387 (("^LIBDIR =.*") "LIBDIR = lib\n"))
394 (symlink "libclalsadrv.so"
395 (string-append (assoc-ref %outputs "out")
396 "/lib/libclalsadrv.so.2")))
397 ;; no configure script
398 (alist-delete 'configure %standard-phases)))))
400 `(("alsa-lib" ,alsa-lib)
402 (home-page "http://kokkinizita.linuxaudio.org")
403 (synopsis "C++ wrapper around the ALSA API")
405 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
407 (license license:gpl2+)))
409 (define-public fluidsynth
416 "mirror://sourceforge/fluidsynth/fluidsynth-"
417 version "/fluidsynth-" version ".tar.gz"))
420 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
421 (build-system gnu-build-system)
426 'remove-broken-symlinks
427 (lambda _ (delete-file-recursively "m4") #t)
430 `(("libsndfile" ,libsndfile)
431 ("alsa-lib" ,alsa-lib)
435 ("readline" ,readline)
438 `(("pkg-config" ,pkg-config)))
439 (home-page "http://www.fluidsynth.org/")
440 (synopsis "SoundFont synthesizer")
442 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
443 specifications. FluidSynth reads and handles MIDI events from the MIDI input
444 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
445 also play midifiles using a Soundfont.")
446 (license license:gpl2+)))
455 "mirror://sourceforge/faac/faad2-" version ".zip"))
458 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
459 (build-system gnu-build-system)
461 `(("autoconf" ,autoconf)
462 ("automake" ,automake)
470 (substitute* "bootstrap" (("\r\n") "\n"))
471 (zero? (system* "sh" "bootstrap")))
473 (home-page "http://www.audiocoding.com/faad2.html")
474 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
476 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
478 (license license:gpl2)))
487 "mirror://sourceforge/faudiostream/faust-" version ".zip"))
490 "068vl9536zn0j4pknwfcchzi90rx5pk64wbcbd67z32w0csx8xm1"))
492 ;; Remove prebuilt library
493 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
494 (build-system gnu-build-system)
496 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
499 (modify-phases %standard-phases
500 ;; no "configure" script
501 (delete 'configure))))
504 (home-page "http://faust.grame.fr/")
505 (synopsis "Signal processing language")
507 "Faust is a programming language for realtime audio signal processing.")
508 (license license:gpl2+)))
510 (define-public freepats
516 (uri (string-append "http://freepats.zenvoid.org/freepats-"
520 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
521 (build-system trivial-build-system)
523 `(#:modules ((guix build utils))
525 (use-modules (guix build utils))
526 (let ((out (string-append %output "/share/freepats")))
527 (setenv "PATH" (string-append
528 (assoc-ref %build-inputs "bzip2") "/bin:"
529 (assoc-ref %build-inputs "tar") "/bin"))
530 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
532 ;; Use absolute pattern references
533 (substitute* "freepats.cfg"
534 (("Tone_000") (string-append out "/Tone_000"))
535 (("Drum_000") (string-append out "/Drum_000")))
537 (copy-recursively "." out)))))
541 (home-page "http://freepats.zenvoid.org")
542 (synopsis "GUS compatible patches for MIDI players")
544 "FreePats is a project to create a free and open set of GUS compatible
545 patches that can be used with softsynths such as Timidity and WildMidi.")
546 ;; GPLv2+ with exception for compositions using these patches.
547 (license license:gpl2+)))
549 (define-public guitarix
556 "mirror://sourceforge/guitarix/guitarix2-"
560 "0pamaq8iybsaglq6y1m1rlmz4wgbs2r6m24bj7x4fwg4grjvzjl8"))))
561 (build-system waf-build-system)
563 `(#:tests? #f ; no "check" target
567 ;; Add the output lib directory to the RUNPATH.
568 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
569 "--cxxflags=-std=c++11")))
571 `(("libsndfile" ,libsndfile)
581 ("webkitgtk/gtk+-2" ,webkitgtk/gtk+-2)
584 ("zita-resampler" ,zita-resampler)
585 ("zita-convolver" ,zita-convolver)))
589 ("intltool" ,intltool)
590 ("gettext" ,gnu-gettext)
591 ("pkg-config" ,pkg-config)))
593 (list (search-path-specification
594 (variable "LV2_PATH")
595 (files '("lib/lv2")))))
596 (home-page "http://guitarix.org/")
597 (synopsis "Virtual guitar amplifier")
598 (description "Guitarix is a virtual guitar amplifier running JACK.
599 Guitarix takes the signal from your guitar as a mono-signal from your sound
600 card. The input is processed by a main amp and a rack-section. Both can be
601 routed separately and deliver a processed stereo-signal via JACK. You may
602 fill the rack with effects from more than 25 built-in modules including stuff
603 from a simple noise gate to modulation effects like flanger, phaser or
605 (license license:gpl2+)))
607 (define-public rakarrack
613 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
614 "rakarrack-" version "/rakarrack-"
618 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
619 (modules '((guix build utils)))
622 (substitute* '("src/process.C"
624 (("#include <Fl/") "#include <FL/"))
626 (build-system gnu-build-system)
628 `(("alsa-utils" ,alsa-utils)
632 ("libxfixes" ,libxfixes)
634 ("libxrender" ,libxrender)
636 ("fontconfig" ,fontconfig)
637 ("freetype" ,freetype)
639 ("alsa-lib" ,alsa-lib)
640 ("libsndfile" ,libsndfile)
641 ("libsamplerate" ,libsamplerate)
643 (home-page "http://rakarrack.sourceforge.net/")
644 (synopsis "Audio effects processor")
646 "Rakarrack is a richly featured multi-effects processor emulating a
647 guitar effects pedalboard. Effects include compressor, expander, noise gate,
648 equalizers, exciter, flangers, chorus, various delay and reverb effects,
649 distortion modules and many more. Most of the effects engine is built from
650 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
651 user interface are optimized for guitar, but Rakarrack processes signals in
652 stereo while it does not apply internal band-limiting filtering, and thus is
653 well suited to all musical instruments and vocals.")
654 ;; The code is explicitly licensed under the GPL version 2 only.
655 (license license:gpl2)))
664 "http://factorial.hu/system/files/ir.lv2-"
668 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
669 (build-system gnu-build-system)
671 `(#:tests? #f ;no "check" target
672 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
674 ;; no configure script
675 (alist-delete 'configure %standard-phases)))
677 `(("libsndfile" ,libsndfile)
678 ("libsamplerate" ,libsamplerate)
682 ("zita-convolver" ,zita-convolver)))
684 `(("pkg-config" ,pkg-config)))
686 (list (search-path-specification
687 (variable "LV2_PATH")
688 (files '("lib/lv2")))))
689 (home-page "http://factorial.hu/plugins/lv2/ir")
690 (synopsis "LV2 convolution reverb")
692 "IR is a low-latency, real-time, high performance signal convolver
693 especially for creating reverb effects. It supports impulse responses with 1,
694 2 or 4 channels, in any soundfile format supported by libsndfile.")
695 (license license:gpl2+)))
697 (define-public jack-1
704 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
709 "1mk1wnx33anp6haxfjjkfhwbaknfblsvj35nxvz0hvspcmhdyhpb"))))
710 (build-system gnu-build-system)
712 `(("alsa-lib" ,alsa-lib)
713 ("readline" ,readline)))
714 ;; uuid.h is included in the JACK type headers
715 ;; db.h is included in the libjack metadata headers
717 `(("libuuid" ,util-linux)
720 `(("pkg-config" ,pkg-config)))
721 (home-page "http://jackaudio.org/")
722 (synopsis "JACK audio connection kit")
724 "JACK is a low-latency audio server. It can connect a number of
725 different applications to an audio device, as well as allowing them to share
726 audio between themselves. JACK is different from other audio server efforts
727 in that it has been designed from the ground up to be suitable for
728 professional audio work. This means that it focuses on two key areas:
729 synchronous execution of all clients, and low latency operation.")
730 ;; Most files are licensed under the GPL. However, the libjack/ tree is
731 ;; licensed under the LGPL in order to allow for proprietary usage.
732 (license (list license:gpl2+ license:lgpl2.1+))))
734 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
735 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
736 ;; program for users who might benefit from the D-BUS features.
737 (define-public jack-2
738 (package (inherit jack-1)
744 "https://github.com/jackaudio/jack2/archive/v"
747 (file-name (string-append name "-" version ".tar.gz"))
750 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
751 (build-system waf-build-system)
754 #:tests? #f ; no check target
755 #:configure-flags '("--dbus"
758 (modify-phases %standard-phases
760 'configure 'set-linkflags
762 ;; Add $libdir to the RUNPATH of all the binaries.
763 (substitute* "wscript"
764 ((".*CFLAGS.*-Wall.*" m)
766 " conf.env.append_unique('LINKFLAGS',"
767 "'-Wl,-rpath=" %output "/lib')\n")))))
768 (add-after 'install 'wrap-python-scripts
769 (lambda* (#:key inputs outputs #:allow-other-keys)
770 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
771 (let* ((out (assoc-ref outputs "out"))
772 (path (getenv "PYTHONPATH")))
773 (wrap-program (string-append out "/bin/jack_control")
774 `("PYTHONPATH" ":" prefix (,path))))
777 `(("alsa-lib" ,alsa-lib)
780 ("libsamplerate" ,libsamplerate)
782 ("python2-dbus" ,python2-dbus)
783 ("readline" ,readline)))
785 `(("pkg-config" ,pkg-config)))
786 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
787 (license (list license:gpl2+ license:lgpl2.1+))))
795 (uri (string-append "http://download.drobilla.net/jalv-"
799 "1f1hcq74n3ziw8bk97mn5a1vgw028dxikv3fchaxd430pbbhqgl9"))))
800 (build-system waf-build-system)
802 `(#:tests? #f ; no check target
804 (modify-phases %standard-phases
806 'configure 'set-flags
808 ;; Compile with C++11, required by gtkmm.
809 (setenv "CXXFLAGS" "-std=c++11")
819 `(("pkg-config" ,pkg-config)))
820 (home-page "http://drobilla.net/software/jalv/")
821 (synopsis "Simple LV2 host for JACK")
823 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
824 plugins and exposes their ports as JACK ports, essentially making any LV2
825 plugin function as a JACK application.")
826 (license license:isc)))
828 (define-public ladspa
835 ;; Since the official link is dead,
836 ;; we download the tarball from Debian or Internet Archive.
837 (uri (list (string-append "http://http.debian.net"
838 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
839 version ".orig.tar.gz")
840 (string-append "https://web.archive.org/web/20140717172251/"
841 "http://www.ladspa.org/download/ladspa_sdk_"
845 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
846 (build-system gnu-build-system)
848 `(#:tests? #f ; the "test" target is a listening test only
852 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
854 (let ((out (assoc-ref outputs "out")))
855 (substitute* "makefile"
856 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
857 (("/usr/include/") (string-append out "/include/"))
858 (("/usr/bin/") (string-append out "/bin/"))
859 (("-mkdirhier") "mkdir -p")
860 (("^CC.*") "CC = gcc\n")
861 (("^CPP.*") "CPP = g++\n"))))
862 (alist-delete 'build %standard-phases))))
863 ;; Since the home page is gone, we provide a link to the archived version.
865 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
866 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
868 "LADSPA is a standard that allows software audio processors and effects
869 to be plugged into a wide range of audio synthesis and recording packages.")
870 (license license:lgpl2.1+)))
875 (version "0.6.0-rc2")
878 ;; The tilde is not permitted in the builder name, but is used
881 "mirror://savannah/lash/lash-"
882 (string-join (string-split version #\-) "~")
884 (file-name (string-append name "-" version ".tar.bz2"))
887 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
888 (build-system gnu-build-system)
893 ("readline" ,readline)
894 ("python" ,python-2)))
895 ;; According to pkg-config, packages depending on lash also need to have
896 ;; at least the following packages declared as inputs.
898 `(("alsa-lib" ,alsa-lib)
900 ("libxml2" ,libxml2)))
902 `(("pkg-config" ,pkg-config)))
903 (home-page "http://www.nongnu.org/lash/")
904 (synopsis "Audio application session manager")
906 "LASH is a session management system for audio applications. It allows
907 you to save and restore audio sessions consisting of multiple interconneced
908 applications, restoring program state (i.e. loaded patches) and the
909 connections between them.")
910 (license license:gpl2+)))
912 (define-public libbs2b
919 "mirror://sourceforge/bs2b/libbs2b-" version ".tar.lzma"))
922 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
923 (build-system gnu-build-system)
924 (native-inputs `(("pkg-config" ,pkg-config)))
925 (inputs `(("libsndfile" ,libsndfile)))
926 (home-page "http://sourceforge.net/projects/bs2b/")
927 (synopsis "Bauer stereophonic-to-binaural DSP")
929 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
930 designed to improve headphone listening of stereo audio records. Recommended
931 for headphone prolonged listening to disable superstereo fatigue without
932 essential distortions.")
933 (license license:expat)))
942 "mirror://sourceforge/liblo/liblo-"
947 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
948 (build-system gnu-build-system)
950 `(;; liblo test FAILED
951 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
953 (home-page "http://liblo.sourceforge.net")
954 (synopsis "Implementation of the Open Sound Control protocol")
956 "liblo is a lightweight library that provides an easy to use
957 implementation of the Open Sound Control (OSC) protocol.")
958 (license license:lgpl2.1+)))
960 (define-public python-pyliblo
962 (name "python-pyliblo")
966 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
970 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
971 (build-system python-build-system)
972 (arguments `(#:tests? #f)) ;no tests
974 `(("python-cython" ,python-cython)
976 (home-page "http://das.nasophon.de/pyliblo/")
977 (synopsis "Python bindings for liblo")
979 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
980 library. It supports almost the complete functionality of liblo, allowing you
981 to send and receive OSC messages using a nice and simple Python API. Also
982 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
983 (license license:lgpl2.1+)))
985 (define-public python2-pyliblo
986 (package-with-python2 python-pyliblo))
994 (uri (string-append "http://download.drobilla.net/lilv-"
999 "0aj2plkx56iar8vzjbq2l7hi7sp0ml99m0h44rgwai2x4vqkk2j2"))))
1000 (build-system waf-build-system)
1002 `(#:tests? #f ; no check target
1004 (modify-phases %standard-phases
1006 'configure 'set-ldflags
1007 (lambda* (#:key outputs #:allow-other-keys)
1009 (string-append "-Wl,-rpath="
1010 (assoc-ref outputs "out") "/lib")))))))
1011 ;; required by lilv-0.pc
1015 ("sratom" ,sratom)))
1019 `(("pkg-config" ,pkg-config)))
1020 (home-page "http://drobilla.net/software/lilv/")
1021 (synopsis "Library to simplify use of LV2 plugins in applications")
1023 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1024 for applications. Lilv is the successor to SLV2, rewritten to be
1025 significantly faster and have minimal dependencies.")
1026 (license license:isc)))
1034 (uri (string-append "http://lv2plug.in/spec/lv2-"
1039 "1saq0vwqy5zjdkgc5ahs8kcabxfmff2mmg68fiqrkv8hiw9m6jks"))))
1040 (build-system waf-build-system)
1042 `(#:tests? #f ; no check target
1043 #:configure-flags '("--no-plugins")))
1045 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1046 `(("libsndfile" ,libsndfile)))
1048 `(("pkg-config" ,pkg-config)))
1049 (home-page "http://lv2plug.in/")
1050 (synopsis "LV2 audio plugin specification")
1052 "LV2 is an open specification for audio plugins and host applications.
1053 At its core, LV2 is a simple stable interface, accompanied by extensions which
1054 add functionality to support the needs of increasingly powerful audio
1056 (license license:isc)))
1058 (define-public lv2-mda-piano
1060 (name "lv2-mda-piano")
1065 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1069 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1070 (build-system gnu-build-system)
1072 `(#:make-flags (list
1074 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1075 #:tests? #f ; no check target
1076 #:phases (alist-delete 'configure %standard-phases)))
1081 `(("pkg-config" ,pkg-config)))
1082 (native-search-paths
1083 (list (search-path-specification
1084 (variable "LV2_PATH")
1085 (files '("lib/lv2")))))
1086 (home-page "http://elephly.net/lv2/mdapiano.html")
1087 (synopsis "LV2 port of the mda Piano plugin")
1088 (description "An LV2 port of the mda Piano VSTi.")
1089 (license license:gpl3+)))
1091 (define-public lv2-mda-epiano
1092 (package (inherit lv2-mda-piano)
1093 (name "lv2-mda-epiano")
1095 `(#:make-flags (list
1097 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1098 #:tests? #f ; no check target
1099 #:phases (alist-delete 'configure %standard-phases)))
1100 (home-page "http://elephly.net/lv2/mdaepiano.html")
1101 (synopsis "LV2 port of the mda EPiano plugin")
1102 (description "An LV2 port of the mda EPiano VSTi.")))
1110 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1113 (file-name (string-append name "-" version ".tar.gz"))
1116 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1117 (build-system waf-build-system)
1119 `(#:tests? #f ; no check target
1122 (list (string-append "--boost-includes="
1123 (assoc-ref %build-inputs "boost")
1125 #:phases (modify-phases %standard-phases
1127 'configure 'set-flags
1128 (lambda* (#:key inputs #:allow-other-keys)
1129 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1132 "-L" (assoc-ref inputs "boost") "/lib "
1133 "-lboost_system")))))))
1138 `(("pkg-config" ,pkg-config)))
1139 (home-page "https://github.com/lvtk/lvtk")
1140 (synopsis "C++ libraries for LV2 plugins")
1142 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1143 extensions into easy to use C++ classes. It is the successor of
1145 (license license:gpl3+)))
1147 (define-public openal
1154 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1155 version ".tar.bz2"))
1158 "0mmhdqiyb3c9dzvxspm8h2v8jibhi8pfjxnf6m0wn744y1ia2a8f"))))
1159 (build-system cmake-build-system)
1161 `(#:tests? #f ; no check target
1163 (modify-phases %standard-phases
1165 'unpack 'use-full-library-paths
1166 (lambda* (#:key inputs #:allow-other-keys)
1167 (substitute* "Alc/backends/pulseaudio.c"
1168 (("#define PALIB \"libpulse\\.so\\.0\"")
1169 (string-append "#define PALIB \""
1170 (assoc-ref inputs "pulseaudio")
1171 "/lib/libpulse.so.0"
1173 (substitute* "Alc/backends/alsa.c"
1174 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1175 (string-append "LoadLib(\""
1176 (assoc-ref inputs "alsa-lib")
1177 "/lib/libasound.so.2"
1181 `(("alsa-lib" ,alsa-lib)
1182 ("pulseaudio" ,pulseaudio)))
1183 (synopsis "3D audio API")
1185 "OpenAL provides capabilities for playing audio in a virtual 3D
1186 environment. Distance attenuation, doppler shift, and directional sound
1187 emitters are among the features handled by the API. More advanced effects,
1188 including air absorption, occlusion, and environmental reverb, are available
1189 through the EFX extension. It also facilitates streaming audio, multi-channel
1190 buffers, and audio capture.")
1191 (home-page "http://kcat.strangesoft.net/openal.html")
1192 (license license:lgpl2.0+)))
1194 (define-public patchage
1200 (uri (string-append "http://download.drobilla.net/patchage-"
1205 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1206 (build-system waf-build-system)
1207 (arguments `(#:tests? #f)) ; no check target
1209 `(("alsa-lib" ,alsa-lib)
1215 ("dbus-glib" ,dbus-glib)))
1217 `(("pkg-config" ,pkg-config)))
1218 (home-page "http://drobilla.net/software/patchage/")
1219 (synopsis "Modular patch bay for audio and MIDI systems")
1221 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1223 (license license:gpl3+)))
1231 (uri (string-append "http://download.drobilla.net/raul-"
1232 version ".tar.bz2"))
1235 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
1236 (build-system waf-build-system)
1238 `(#:python ,python-2
1239 #:tests? #f)) ; no check target
1244 `(("pkg-config" ,pkg-config)))
1245 (home-page "http://drobilla.net/software/raul/")
1246 (synopsis "Real-time audio utility library")
1248 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
1249 aimed at audio/musical applications.")
1250 (license license:gpl2+)))
1252 (define-public rubberband
1259 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
1264 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
1265 (build-system gnu-build-system)
1266 (arguments `(#:tests? #f)) ; no check target
1268 `(("ladspa" ,ladspa)
1269 ("libsamplerate" ,libsamplerate)
1272 `(("pkg-config" ,pkg-config)))
1273 (home-page "http://breakfastquay.com/rubberband/")
1274 (synopsis "Audio time-stretching and pitch-shifting library")
1276 "Rubber Band is a library and utility program that permits changing the
1277 tempo and pitch of an audio recording independently of one another.")
1278 (license license:gpl2+)))
1280 (define-public rtmidi
1287 (string-append "https://github.com/powertab/rtmidi/archive/"
1289 (file-name (string-append name "-" version ".tar.gz"))
1292 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
1293 (build-system gnu-build-system)
1295 `(#:tests? #f ;no "check" target
1296 #:phases (modify-phases %standard-phases
1298 'configure 'autoconf
1299 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
1301 'build 'fix-makefile
1303 (substitute* "Makefile"
1305 (("RtMidi.h RtError.h") "RtMidi.h"))
1308 'install 'make-target-dirs
1310 (let ((out (assoc-ref %outputs "out")))
1311 (mkdir-p (string-append out "/bin"))
1312 (mkdir (string-append out "/lib"))
1313 (mkdir (string-append out "/include")))
1317 ("alsa-lib" ,alsa-lib)))
1319 `(("autoconf" ,autoconf)
1320 ("automake" ,automake)
1321 ("libtool" ,libtool)
1322 ("pkg-config" ,pkg-config)))
1323 (home-page "https://github.com/powertab/rtmidi")
1324 (synopsis "Cross-platform MIDI library for C++")
1326 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
1327 classes) that provide a common cross-platform API for realtime MIDI
1329 (license license:expat)))
1331 (define-public sratom
1337 (uri (string-append "http://download.drobilla.net/sratom-"
1342 "080jjiyxjnj7hf25844hd9rb01grvzz1rk8mxcdnakywmspbxfd4"))))
1343 (build-system waf-build-system)
1344 (arguments `(#:tests? #f)) ; no check target
1350 `(("pkg-config" ,pkg-config)))
1351 (home-page "http://drobilla.net/software/sratom/")
1352 (synopsis "Library for serialising LV2 atoms to/from RDF")
1354 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
1355 the Turtle syntax.")
1356 (license license:isc)))
1364 (uri (string-append "http://download.drobilla.net/suil-"
1369 "1s3adyiw7sa5gfvm5wasa61qa23629kprxyv6w8hbxdiwp0hhxkq"))))
1370 (build-system waf-build-system)
1371 (arguments `(#:tests? #f)) ; no check target
1377 `(("pkg-config" ,pkg-config)))
1378 (home-page "http://drobilla.net/software/suil/")
1379 (synopsis "Library for loading and wrapping LV2 plugin UIs")
1381 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
1383 Suil makes it possible to load a UI of a toolkit in a host using another
1384 toolkit. The API is designed such that hosts do not need to explicitly
1385 support specific toolkits – if Suil supports a particular toolkit, then UIs in
1386 that toolkit will work in all hosts that use Suil automatically.
1388 Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
1389 (license license:isc)))
1391 (define-public timidity++
1398 "mirror://sourceforge/timidity/TiMidity++-"
1399 version ".tar.bz2"))
1402 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
1403 (build-system gnu-build-system)
1406 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
1410 (string-append "--with-default-path="
1411 (assoc-ref %outputs "out") "/etc/timidity"))
1414 'install 'install-config
1416 (let ((out (string-append (assoc-ref %outputs "out")
1419 (call-with-output-file
1420 (string-append out "/timidity.cfg")
1422 (format port (string-append "source "
1423 (assoc-ref %build-inputs "freepats")
1424 "/share/freepats/freepats.cfg"))))))
1427 `(("alsa-lib" ,alsa-lib)
1433 ("ncurses" ,ncurses)
1434 ("freepats" ,freepats)))
1436 `(("pkg-config" ,pkg-config)))
1437 (home-page "http://timidity.sourceforge.net/")
1438 (synopsis "Software synthesizer for playing MIDI files")
1440 "TiMidity++ is a software synthesizer. It can play MIDI files by
1441 converting them into PCM waveform data; give it a MIDI data along with digital
1442 instrument data files, then it synthesizes them in real-time, and plays. It
1443 can not only play sounds, but also can save the generated waveforms into hard
1444 disks as various audio file formats.")
1445 (license license:gpl2+)))
1454 "https://code.soundsoftware.ac.uk"
1455 "/attachments/download/1520/vamp-plugin-sdk-"
1459 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
1460 (build-system gnu-build-system)
1462 `(#:tests? #f ; no check target
1465 'install 'remove-libvamp-hostsdk.la
1466 (lambda* (#:key outputs #:allow-other-keys)
1467 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
1468 (for-each delete-file
1469 (let ((out (assoc-ref outputs "out")))
1470 (list (string-append out "/lib/libvamp-sdk.la")
1471 (string-append out "/lib/libvamp-hostsdk.la"))))
1475 `(("libsndfile" ,libsndfile)))
1477 `(("pkg-config" ,pkg-config)))
1478 (home-page "http://vamp-plugins.org")
1479 (synopsis "Modular and extensible audio processing system")
1481 "Vamp is an audio processing plugin system for plugins that extract
1482 descriptive information from audio data — typically referred to as audio
1483 analysis plugins or audio feature extraction plugins.")
1486 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
1488 (define-public libsbsms
1495 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
1496 "/libsbsms-" version ".tar.gz"))
1498 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
1499 (build-system gnu-build-system)
1500 (native-inputs `(("automake" ,automake)))
1503 ;; Disable the use of SSE unless on x86_64.
1504 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
1505 (%current-system))))
1509 (modify-phases %standard-phases
1511 'unpack 'fix-ar-lib-path
1512 (lambda* (#:key inputs #:allow-other-keys)
1513 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
1514 (delete-file "ar-lib")
1516 (string-append (assoc-ref inputs "automake") "/share/automake-"
1517 ,(package-version automake) "/ar-lib")
1519 (home-page "http://sbsms.sourceforge.net/")
1520 (synopsis "Library for time stretching and pitch scaling of audio")
1522 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
1523 stretching and pitch scaling of audio. This package contains the library.")
1524 ;; There is no explicit declaration of a license, but a COPYING file
1526 (license license:gpl2)))
1528 (define-public wavpack
1534 (uri (string-append "http://www.wavpack.com/"
1535 name "-" version ".tar.bz2"))
1538 "191h8hv8qk72hfh1crg429i9yq3cminwqb249sy9zadbn1wy7b9c"))))
1539 (build-system gnu-build-system)
1542 ;; wavpack.pc.in lacks path substitution for 'exec_prefix'.
1543 (list (string-append "--libdir=" %output "/lib"))))
1544 (home-page "http://www.wavpack.com/")
1545 (synopsis "Hybrid lossless audio codec")
1547 "WavPack is an audio compression format with lossless, lossy and hybrid
1548 compression modes. This package contains command-line programs and library to
1549 encode and decode wavpack files.")
1550 (license license:bsd-3)))
1552 (define-public libmodplug
1559 "mirror://sourceforge/project/modplug-xmms/"
1560 name "/" version "/" name "-" version ".tar.gz"))
1563 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
1564 (build-system gnu-build-system)
1565 (home-page "http://modplug-xmms.sourceforge.net/")
1566 (synopsis "Mod file playing library")
1568 "Libmodplug renders mod music files as raw audio data, for playing or
1569 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
1570 supported. Optional features include high-quality resampling, bass expansion,
1571 surround and reverb.")
1572 (license license:public-domain)))
1574 (define-public libxmp
1580 (uri (string-append "mirror://sourceforge/xmp/libxmp/"
1581 name "-" version ".tar.gz"))
1584 "1gm5xa0ca7ypcbj3bkmj3k1vvzl7nkch8gjyrm8p1a9vgzr0n761"))))
1585 (build-system gnu-build-system)
1586 (home-page "http://xmp.sourceforge.net/")
1587 (synopsis "Module player library")
1589 "Libxmp is a library that renders module files to PCM data. It supports
1590 over 90 mainstream and obscure module formats including Protracker (MOD),
1591 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
1592 (license license:lgpl2.1+)))
1600 (uri (string-append "mirror://sourceforge/xmp/xmp/"
1601 name "-" version ".tar.gz"))
1604 "0gjylvvmq7ha0nhcjg56qfp0xxpsrcsj7y5r914svd5x1ppmzm5n"))))
1605 (build-system gnu-build-system)
1607 `(("pkg-config" ,pkg-config)))
1609 `(("libxmp" ,libxmp)
1610 ("pulseaudio" ,pulseaudio)))
1611 (home-page "http://xmp.sourceforge.net/")
1612 (synopsis "Extended module player")
1614 "Xmp is a portable module player that plays over 90 mainstream and
1615 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
1616 Tracker 3 S3M and Impulse Tracker IT files.")
1617 (license license:gpl2+)))
1619 (define-public soundtouch
1628 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
1630 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
1631 (build-system gnu-build-system)
1633 `(("autoconf" ,autoconf)
1634 ("automake" ,automake)
1635 ("libtool" ,libtool)
1642 (zero? (system* "sh" "bootstrap")))
1644 (home-page "http://www.surina.net/soundtouch/")
1646 "Audio processing library for changing tempo, pitch and playback rate")
1648 "SoundTouch is an audio processing library for changing the tempo, pitch
1649 and playback rates of audio streams or audio files. It is intended for
1650 application developers writing sound processing tools that require tempo/pitch
1651 control functionality, or just for playing around with the sound effects.")
1652 (license license:lgpl2.1+)))
1660 (uri (string-append "mirror://sourceforge/sox/sox-"
1661 version ".tar.bz2"))
1664 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
1665 (build-system gnu-build-system)
1668 ;; The upstream asks to identify the distribution to diagnose SoX
1670 '("--with-distro=Guix System Distribution")))
1672 `(("pkg-config" ,pkg-config)))
1674 `(("alsa-lib" ,alsa-lib)
1678 ("libid3tag" ,libid3tag)
1679 ("libltdl" ,libltdl)
1682 ("libvorbis" ,libvorbis)
1683 ("pulseaudio" ,pulseaudio)))
1684 (home-page "http://sox.sourceforge.net")
1685 (synopsis "Sound processing utility")
1687 "SoX (Sound eXchange) is a command line utility that can convert
1688 various formats of computer audio files to other formats. It can also
1689 apply various effects to these sound files, and, as an added bonus, SoX
1690 can play and record audio files.")
1691 ;; sox.c is distributed under GPL, while the files that make up
1692 ;; libsox are licensed under LGPL.
1693 (license (list license:gpl2+ license:lgpl2.1+))))
1703 (string-append "mirror://sourceforge/soxr/soxr-" version
1706 (base32 "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw"))))
1707 (build-system cmake-build-system)
1708 (arguments '(#:tests? #f)) ;no 'check' target
1709 (home-page "http://sourceforge.net/p/soxr/wiki/Home/")
1710 (synopsis "One-dimensional sample-rate conversion library")
1712 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
1713 conversion. It may be used, for example, to resample PCM-encoded audio.")
1714 (license license:lgpl2.1+)))
1716 (define-public twolame
1724 "mirror://sourceforge/twolame/twolame-" version ".tar.gz"))
1726 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))))
1727 (build-system gnu-build-system)
1729 `(("libsndfile" ,libsndfile)))
1732 ("which" ,which))) ;used in tests/test.pl
1733 (home-page "http://www.twolame.org/")
1734 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
1736 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
1737 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
1739 (license license:lgpl2.1+)))
1741 (define-public portaudio
1744 (version "19.20140130")
1749 "http://www.portaudio.com/archives/pa_stable_v"
1750 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
1753 (base32 "0mwddk4qzybaf85wqfhxqlf0c5im9il8z03rd4n127k8y2jj9q4g"))
1754 (patches (list (search-patch "portaudio-audacity-compat.patch")))))
1755 (build-system gnu-build-system)
1757 ;; TODO: Add ASIHPI.
1758 `(("alsa-lib" ,alsa-lib)
1761 `(("autoconf" ,autoconf)
1762 ("automake" ,automake)
1763 ("libtool" ,libtool)
1764 ("pkg-config" ,pkg-config)))
1767 ;; Autoreconf is necessary because the audacity-compat patch modifies
1772 (zero? (system* "autoreconf" "-vif")))
1774 #:tests? #f)) ;no 'check' target
1775 (home-page "http://www.portaudio.com/")
1776 (synopsis "Audio I/O library")
1778 "PortAudio is a portable C/C++ audio I/O library providing a simple API
1779 to record and/or play sound using a callback function or a blocking read/write
1781 (license license:expat)))
1783 (define-public qsynth
1791 "mirror://sourceforge/qsynth/qsynth-" version ".tar.gz"))
1793 (base32 "1chc89v9hcjw3k4rvzakl8g56wv24kh48fzv1gfs4iv8vhyl3j4x"))))
1794 (build-system gnu-build-system)
1796 `(#:tests? #f)) ; no "check" phase
1799 ("fluidsynth" ,fluidsynth)))
1800 (home-page "http://qsynth.sourceforge.net")
1801 (synopsis "Graphical user interface for FluidSynth")
1803 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
1804 synthesizer written in C++.")
1805 (license license:gpl2+)))
1807 (define-public rsound
1814 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
1816 (file-name (string-append name "-" version))
1818 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
1819 (build-system gnu-build-system)
1821 `(("alsa-lib" ,alsa-lib)
1824 ("libsamplerate" ,libsamplerate)
1826 ("portaudio" ,portaudio)
1827 ("pulseaudio" ,pulseaudio)))
1832 (lambda* (#:key outputs #:allow-other-keys)
1835 (system* "./configure"
1836 (string-append "--prefix=" (assoc-ref outputs "out")))))
1838 ;; No 'check' target.
1840 (home-page "http://themaister.net/rsound.html")
1841 (synopsis "Networked audio system")
1843 "RSound allows you to send audio from an application and transfer it
1844 directly to a different computer on your LAN network. It is an audio daemon
1845 with a much different focus than most other audio daemons.")
1846 (license license:gpl3+)))
1848 (define-public xjackfreak
1855 "https://github.com/johnhldavis/xjackfreak/archive/v"
1857 (file-name (string-append name "-" version ".tar.gz"))
1860 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
1861 (build-system gnu-build-system)
1864 (list (string-append "docdir=" (assoc-ref %outputs "out")
1865 "/share/doc/xjackfreak"))))
1870 ("libxext" ,libxext)))
1872 `(("pkg-config" ,pkg-config)))
1873 (home-page "https://github.com/johnhldavis/xjackfreak")
1874 (synopsis "JACK audio frequency analyzer and display")
1876 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
1877 Connection Kit. It can display the FFT of any input, modify it and output the
1879 (license license:gpl3+)))
1881 (define-public zita-convolver
1883 (name "zita-convolver")
1888 "http://kokkinizita.linuxaudio.org"
1889 "/linuxaudio/downloads/zita-convolver-"
1890 version ".tar.bz2"))
1892 ;; Don't optimize for a specific processor architecture.
1893 '(substitute* "libs/Makefile"
1894 (("^CXXFLAGS \\+= -march=native") "")))
1895 (modules '((guix build utils)))
1898 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
1899 (build-system gnu-build-system)
1901 `(#:tests? #f ; no "check" target
1902 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1905 'unpack 'patch-makefile-and-enter-directory
1907 (substitute* "libs/Makefile"
1908 (("ldconfig") "true")
1909 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1915 (symlink "libzita-convolver.so"
1916 (string-append (assoc-ref %outputs "out")
1917 "/lib/libzita-convolver.so.3")))
1918 ;; no configure script
1919 (alist-delete 'configure %standard-phases)))))
1920 (inputs `(("fftwf" ,fftwf)))
1921 (home-page "http://kokkinizita.linuxaudio.org")
1922 (synopsis "Fast, partitioned convolution engine library")
1924 "Zita convolver is a C++ library providing a real-time convolution
1926 (license license:gpl3+)))
1928 (define-public zita-resampler
1930 (name "zita-resampler")
1935 "http://kokkinizita.linuxaudio.org"
1936 "/linuxaudio/downloads/zita-resampler-"
1937 version ".tar.bz2"))
1939 ;; Don't optimize for a specific processor architecture.
1940 '(substitute* '("apps/Makefile" "libs/Makefile")
1941 (("^CXXFLAGS \\+= -march=native") "")))
1942 (modules '((guix build utils)))
1945 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
1946 (build-system gnu-build-system)
1948 `(#:tests? #f ; no "check" target
1949 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1951 (modify-phases %standard-phases
1953 'unpack 'patch-makefile-and-enter-directory
1955 (substitute* "libs/Makefile"
1956 (("ldconfig") "true")
1957 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1961 'install 'install-symlink
1963 (symlink "libzita-resampler.so"
1964 (string-append (assoc-ref %outputs "out")
1965 "/lib/libzita-resampler.so.1"))))
1966 ;; no configure script
1967 (delete 'configure))))
1968 (home-page "http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
1969 (synopsis "C++ library for resampling audio signals")
1971 "Libzita-resampler is a C++ library for resampling audio signals. It is
1972 designed to be used within a real-time processing context, to be fast, and to
1973 provide high-quality sample rate conversion.")
1974 (license license:gpl3+)))
1976 (define-public zita-alsa-pcmi
1978 (name "zita-alsa-pcmi")
1983 "http://kokkinizita.linuxaudio.org"
1984 "/linuxaudio/downloads/zita-alsa-pcmi-"
1985 version ".tar.bz2"))
1988 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
1989 (build-system gnu-build-system)
1991 `(#:tests? #f ; no "check" target
1992 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1995 'unpack 'patch-makefile-and-enter-directory
1997 (substitute* "libs/Makefile"
1998 (("ldconfig") "true")
1999 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2006 (symlink "libzita-alsa-pcmi.so"
2007 (string-append (assoc-ref %outputs "out")
2008 "/lib/libzita-alsa-pcmi.so.0")))
2009 ;; no configure script
2010 (alist-delete 'configure %standard-phases)))))
2012 `(("alsa-lib" ,alsa-lib)
2014 (home-page "http://kokkinizita.linuxaudio.org")
2015 (synopsis "C++ wrapper around the ALSA API")
2017 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2018 access to ALSA PCM devices, taking care of the many functions required to
2019 open, initialise and use a hw: device in mmap mode, and providing floating
2021 (license license:gpl3+)))
2023 (define-public cuetools
2029 (uri (string-append "https://github.com/svend/cuetools/archive/"
2031 (file-name (string-append name "-" version ".tar.gz"))
2034 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2035 (build-system gnu-build-system)
2036 ;; The source tarball is not bootstrapped.
2039 (modify-phases %standard-phases
2040 (add-after 'unpack 'bootstrap
2041 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2042 ;; Bootstrapping tools
2044 `(("autoconf" ,autoconf)
2045 ("automake" ,automake)
2048 (synopsis "Cue and toc file parsers and utilities")
2049 (description "Cuetools is a set of programs that are useful for manipulating
2050 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2051 files are a way to represent the layout of a data or audio CD in a
2052 machine-readable ASCII format.")
2053 (home-page "https://github.com/svend/cuetools")
2054 (license license:gpl2+)))
2056 (define-public shntool
2062 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2063 "shntool-" version ".tar.gz"))
2066 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2067 (build-system gnu-build-system)
2068 (synopsis "WAVE audio data processing tool")
2069 (description "shntool is a multi-purpose WAVE data processing and reporting
2070 utility. File formats are abstracted from its core, so it can process any file
2071 that contains WAVE data, compressed or not---provided there exists a format
2072 module to handle that particular file type.")
2073 (home-page "http://etree.org/shnutils/shntool/")
2074 ;; 'install-sh' bears the x11 license
2075 (license (list license:gpl2+ license:x11))))