1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 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, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 Nikita <nikita@n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
13 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
14 ;;; Copyright © 2018, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
15 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
16 ;;; Copyright © 2018 Brett Gilio <brettg@gnu.org>
17 ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
19 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
20 ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
21 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
22 ;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
23 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
26 ;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org>
27 ;;; Copyright © 2019 Christopher Lemmer Webber <cwebber@dustycloud.org>
28 ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
29 ;;; Copyright © 2019 Hartmt Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
31 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 Jonathan Frederickson <jonathan@terracrypt.net>
34 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
35 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
37 ;;; This file is part of GNU Guix.
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52 (define-module (gnu packages audio)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages avahi)
57 #:use-module (gnu packages backup)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages boost)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages dbm)
65 #:use-module (gnu packages documentation)
66 #:use-module (gnu packages elf)
67 #:use-module (gnu packages emacs)
68 #:use-module (gnu packages file)
69 #:use-module (gnu packages flex)
70 #:use-module (gnu packages fltk)
71 #:use-module (gnu packages fontutils)
72 #:use-module (gnu packages gcc)
73 #:use-module (gnu packages gettext)
74 #:use-module (gnu packages gl)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages gnunet) ; libmicrohttpd
78 #:use-module (gnu packages gperf)
79 #:use-module (gnu packages gtk)
80 #:use-module (gnu packages guile)
81 #:use-module (gnu packages icu4c)
82 #:use-module (gnu packages image)
83 #:use-module (gnu packages libbsd)
84 #:use-module (gnu packages libusb)
85 #:use-module (gnu packages linux)
86 #:use-module (gnu packages llvm)
87 #:use-module (gnu packages man)
88 #:use-module (gnu packages maths)
89 #:use-module (gnu packages mp3) ;taglib
90 #:use-module (gnu packages multiprecision)
91 #:use-module (gnu packages music)
92 #:use-module (gnu packages ncurses)
93 #:use-module (gnu packages networking)
94 #:use-module (gnu packages onc-rpc)
95 #:use-module (gnu packages perl)
96 #:use-module (gnu packages pkg-config)
97 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
98 #:use-module (gnu packages python)
99 #:use-module (gnu packages python-xyz)
100 #:use-module (gnu packages qt)
101 #:use-module (gnu packages rdf)
102 #:use-module (gnu packages readline)
103 #:use-module (gnu packages sdl)
104 #:use-module (gnu packages serialization)
105 #:use-module (gnu packages telephony)
106 #:use-module (gnu packages linphone)
107 #:use-module (gnu packages tls)
108 #:use-module (gnu packages valgrind)
109 #:use-module (gnu packages video)
110 #:use-module (gnu packages vim) ;xxd
111 #:use-module (gnu packages webkit)
112 #:use-module (gnu packages wxwidgets)
113 #:use-module (gnu packages xiph)
114 #:use-module (gnu packages xml)
115 #:use-module (gnu packages xorg)
116 #:use-module (guix build-system cmake)
117 #:use-module (guix build-system copy)
118 #:use-module (guix build-system glib-or-gtk)
119 #:use-module (guix build-system gnu)
120 #:use-module (guix build-system meson)
121 #:use-module (guix build-system python)
122 #:use-module (guix build-system trivial)
123 #:use-module (guix build-system waf)
124 #:use-module (guix download)
125 #:use-module (guix git-download)
126 #:use-module ((guix licenses) #:prefix license:)
127 #:use-module (guix packages)
128 #:use-module (guix utils)
129 #:use-module (srfi srfi-1)
130 #:use-module (srfi srfi-26))
132 (define-public opensles
141 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry.git")
142 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
143 (file-name (git-file-name name version))
145 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
147 (search-patches "opensles-add-license-file.patch"))))
148 (build-system copy-build-system)
151 (modify-phases %standard-phases
152 (add-after 'install 'clean
153 (lambda* (#:key outputs #:allow-other-keys)
154 (let* ((out (assoc-ref outputs "out")))
155 (mkdir-p (string-append out "/etc"))
156 (mkdir-p (string-append out "/include"))
157 (mkdir-p (string-append out "/share"))
159 (string-append out "/api/1.1/OpenSLES_IID.c")
160 (string-append out "/etc/OpenSLES_IID.c"))
162 (string-append out "/api/1.1/OpenSLES.h")
163 (string-append out "/include/OpenSLES.h"))
165 (string-append out "/api/1.1/OpenSLES_Platform.h")
166 (string-append out "/include/OpenSLES_Platform.h"))
168 (string-append out "/api/1.1/README.txt")
169 (string-append out "/share/README.txt"))
171 (string-append out "/LICENSE.txt")
172 (string-append out "/share/LICENSE.txt"))
173 (for-each delete-file-recursively
175 (string-append out "/api")
176 (string-append out "/specs")))
177 (for-each delete-file
179 (string-append out "/CODE_OF_CONDUCT.md")
180 (string-append out "/index.php")
181 (string-append out "/README.md"))))
183 (synopsis "Embedded Audio Acceleration")
184 (description "OpenSLES is a royalty-free, cross-platform,
185 hardware-accelerated audio API tuned for embedded systems. It provides a
186 standardized, high-performance, low-latency method to access audio
187 functionality for developers of native applications on embedded mobile
188 multimedia devices, enabling straightforward cross-platform deployment of
189 hardware and software audio capabilities, reducing implementation effort, and
190 promoting the market for advanced audio.")
191 (home-page "https://www.khronos.org/opensles/")
192 (license (license:non-copyleft "file:///LICENSE.txt"))))
194 (define-public wildmidi
203 (url "https://github.com/Mindwerks/wildmidi.git")
204 (commit (string-append name "-" version))))
205 (file-name (git-file-name name version))
207 (base32 "01f4a9c5xlap5a4pkfnlgkzk5pjlk43zkq6fnw615ghya04g6hrl"))))
208 (build-system cmake-build-system)
210 `(#:tests? #f ; No target
215 "-DWANT_OPENAL=ON")))
219 (synopsis "Software Synthesizer")
220 (description "WildMIDI is a simple software midi player which has a core
221 softsynth library that can be use with other applications.")
222 (home-page "https://www.mindwerks.net/projects/wildmidi/")
230 (define-public webrtc-audio-processing
232 (name "webrtc-audio-processing")
238 (string-append "http://freedesktop.org/software/pulseaudio/"
239 name "/" name "-" version ".tar.xz"))
241 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
242 (build-system gnu-build-system)
243 (synopsis "WebRTC's Audio Processing Library")
244 (description "WebRTC-Audio-Processing library based on Google's
245 implementation of WebRTC.")
247 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
248 (license (license:non-copyleft "file:///COPYING"))))
250 (define-public vo-aacenc
258 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
259 name "/" name "-" version ".tar.gz"))
261 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
262 (build-system gnu-build-system)
263 (synopsis "VisualOn AAC Encoder")
264 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
265 Coding (AAC) encoder.")
266 (home-page "https://sourceforge.net/projects/opencore-amr/")
267 (license license:asl2.0)))
269 (define-public tinyalsa
278 (url "https://github.com/tinyalsa/tinyalsa.git")
280 (file-name (git-file-name name version))
282 (base32 "0ajyvml5bnzvhiyyrn42gqwgg23ssxkfh09rvsnywhzxhd0xai4h"))))
283 (build-system gnu-build-system)
285 `(#:tests? #f ; No target
287 (modify-phases %standard-phases
291 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
292 (synopsis "ALSA interfacing library")
293 (description "TinyALSA is a small library to interface with ALSA in the
295 (home-page "https://github.com/tinyalsa/tinyalsa")
296 (license (license:non-copyleft "file:///NOTICE"))))
298 (define-public libopenmpt
306 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
307 "libopenmpt-" version "+release.autotools.tar.gz"))
309 (base32 "1cwpc4j90dpxa2siia68rg9qwwm2xk6bhxnslfjj364507jy6s4l"))))
310 (build-system gnu-build-system)
313 (list (string-append "--docdir=" (assoc-ref %outputs "out")
314 "/share/doc/" ,name "-" ,version))
316 (modify-phases %standard-phases
317 (add-after 'install 'delete-static-libraries
318 (lambda* (#:key outputs #:allow-other-keys)
319 (let* ((out (assoc-ref outputs "out"))
320 (lib (string-append out "/lib")))
321 (for-each delete-file (find-files lib "\\.a$"))
324 `(("doxygen" ,doxygen)
326 ("pkg-config" ,pkg-config)))
331 ("portaudio" ,portaudio)
332 ("pulseaudio" ,pulseaudio)
334 ("sndfile" ,libsndfile)
335 ("vorbis" ,libvorbis)
337 (synopsis "Audio tracking library")
338 (description "LibOpenMPT is a cross-platform C++ and C module playback
339 library. It is based on the player code of the Open ModPlug Tracker project.")
340 (home-page "https://openmpt.org/")
341 (license (license:non-copyleft "file:///LICENSE"))))
343 (define-public libofa
351 (string-append "https://storage.googleapis.com/"
352 "google-code-archive-downloads/v2/code.google.com/"
353 "musicip-libofa/" name "-" version ".tar.gz"))
355 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
358 "libofa-ftbfs-1.diff"
360 "libofa-ftbfs-2.diff"))))
361 (build-system gnu-build-system)
363 `(("pkg-config" ,pkg-config)))
369 (synopsis "Open Fingerprint Architecture")
370 (description "LibOFA is an audio fingerprint library, created and provided
372 (home-page "https://code.google.com/archive/p/musicip-libofa/")
373 (license license:gpl2+)))
383 (string-append "https://sourceforge.net/projects/faac/files/faac-src/"
384 "faac-1.30/faac-1_30.tar.gz/download"))
386 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
387 (build-system gnu-build-system)
389 `(("autoconf" ,autoconf)
390 ("automake" ,automake)
392 ("pkg-config" ,pkg-config)))
393 (synopsis "Freeware Advanced Audio Coder")
394 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
395 (home-page "https://www.audiocoding.com/faac.html")
398 ;; ISO MPEG-4 reference code.
403 (define-public libtimidity
411 (string-append "https://sourceforge.net/projects/" name "/files/"
412 name "/" version "/" name "-" version ".tar.gz"))
414 (base32 "0p2px0m907gi1zpdr0l9adq25jl89j85c11ag9s2g4yc6n1nhgfm"))))
415 (build-system gnu-build-system)
417 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
419 `(("pkg-config" ,pkg-config)))
422 (synopsis "MIDI to WAVE converter library")
423 (description "LibTiMidity is a MIDI to WAVE converter library that uses
424 Gravis Ultrasound-compatible patch files to generate digital audio data from
425 General MIDI files.")
426 (home-page "http://libtimidity.sourceforge.net/")
428 ;; This project is dual-licensed.
429 ;; Either of the following licenses can be exercised.
432 license:artistic2.0))))
434 (define-public vo-amrwbenc
442 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
443 name "/" name "-" version ".tar.gz"))
445 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
446 (build-system gnu-build-system)
447 (synopsis "Adaptive Multi Rate Codec")
448 (description "VO-AMR is a library of VisualOn implementation of
449 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
450 (home-page "https://sourceforge.net/projects/opencore-amr/")
451 (license license:asl2.0)))
453 (define-public opencore-amr
455 (name "opencore-amr")
461 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
462 name "/" name "-" version ".tar.gz"))
464 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
465 (build-system gnu-build-system)
466 (synopsis "Adaptive Multi Rate Codec")
467 (description "OpenCore-AMR is a library of OpenCORE Framework
468 implementation of Adaptive Multi Rate Narrowband and Wideband
469 (AMR-NB and AMR-WB) speech codec.")
470 (home-page "https://sourceforge.net/projects/opencore-amr/")
471 (license license:asl2.0)))
473 (define-public alsa-modular-synth
475 (name "alsa-modular-synth")
479 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
480 "/" version "/ams-" version ".tar.bz2"))
483 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))
485 (search-patches "alsa-modular-synth-fix-vocoder.patch"))))
486 (build-system gnu-build-system)
490 "CXXFLAGS=-std=gnu++11")
492 (modify-phases %standard-phases
493 (add-after 'set-paths 'hide-default-gcc
494 (lambda* (#:key inputs #:allow-other-keys)
495 (let ((gcc (assoc-ref inputs "gcc")))
496 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
497 ;; conflicts with the GCC 5 input.
498 (setenv "CPLUS_INCLUDE_PATH"
500 (delete (string-append gcc "/include/c++")
501 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
504 ;; Insert an extra space between linker flags.
505 (add-before 'configure 'add-missing-space
507 (substitute* "configure"
508 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
509 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
512 `(("alsa-lib" ,alsa-lib)
513 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
514 ;; license incompatibility.
515 ("clalsadrv" ,clalsadrv)
522 `(("pkg-config" ,pkg-config)
525 (home-page "http://alsamodular.sourceforge.net/")
526 (synopsis "Realtime modular synthesizer and effect processor")
528 "AlsaModularSynth is a digital implementation of a classical analog
529 modular synthesizer system. It uses virtual control voltages to control the
530 parameters of the modules. The control voltages which control the frequency
531 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
532 Filter) modules follow the convention of 1V / Octave.")
533 (license license:gpl2)))
542 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
545 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
546 (build-system waf-build-system)
548 `(#:tests? #f ; no check target
551 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
555 "--enable-samplerate"
560 ("libsndfile" ,libsndfile)
561 ("libsamplerate" ,libsamplerate)
563 ("ffmpeg" ,ffmpeg))) ; for libavcodec
565 `(("pkg-config" ,pkg-config)))
566 (home-page "https://aubio.org/")
567 (synopsis "Library for audio labelling")
569 "aubio is a tool designed for the extraction of annotations from audio
570 signals. Its features include segmenting a sound file before each of its
571 attacks, performing pitch detection, tapping the beat and producing MIDI
572 streams from live audio.")
573 (license license:gpl3+)))
575 (define (ardour-rpath-phase major-version)
576 `(lambda* (#:key outputs #:allow-other-keys)
577 (let ((libdir (string-append (assoc-ref outputs "out")
578 "/lib/ardour" ,major-version)))
579 (substitute* "wscript"
580 (("linker_flags = \\[\\]")
581 (string-append "linker_flags = [\""
584 libdir "/backends" ":"
585 libdir "/engines" ":"
586 libdir "/panners" ":"
587 libdir "/surfaces" ":"
588 libdir "/vamp" "\"]"))))
591 (define-public ardour
598 (url "https://git.ardour.org/ardour/ardour.git")
601 ;; Ardour expects this file to exist at build time. The revision
603 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
604 `(call-with-output-file
605 "libs/ardour/revision.cc"
607 (format port ,(string-append "#include \"ardour/revision.h\"
608 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
612 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
613 (file-name (string-append name "-" version))))
614 (build-system waf-build-system)
616 `(#:configure-flags '("--cxx11" ; required by gtkmm
617 "--no-phone-home" ; don't contact ardour.org
618 "--freedesktop" ; build .desktop file
619 "--test") ; build unit tests
621 (modify-phases %standard-phases
622 (add-after 'unpack 'set-rpath-in-LDFLAGS
623 ,(ardour-rpath-phase (version-major version)))
624 (add-after 'install 'install-freedesktop-files
625 (lambda* (#:key outputs #:allow-other-keys)
626 (let* ((out (assoc-ref outputs "out"))
627 (share (string-append out "/share"))
628 (ver ,(version-major version)))
631 (let ((dir (string-append share "/icons/hicolor/"
632 size "x" size "/apps")))
635 (string-append "gtk2_ardour/resources/Ardour-icon_"
637 (string-append dir "/ardour" ver ".png"))))
638 '("16" "22" "32" "48" "256"))
639 (install-file (string-append "build/gtk2_ardour/ardour"
641 (string-append share "/applications/"))
642 (install-file (string-append "build/gtk2_ardour/ardour"
644 (string-append share "/appdata/")))
649 `(("alsa-lib" ,alsa-lib)
662 ("libarchive" ,libarchive)
663 ("libart-lgpl" ,libart-lgpl)
664 ("libgnomecanvasmm" ,libgnomecanvasmm)
667 ("libsamplerate" ,libsamplerate)
668 ("libsndfile" ,libsndfile)
670 ("libvorbis" ,libvorbis)
676 ("python-rdflib" ,python-rdflib)
677 ("readline" ,readline)
679 ("rubberband" ,rubberband)
687 `(("cppunit" ,cppunit)
688 ("gettext" ,gettext-minimal)
691 ("pkg-config" ,pkg-config)))
692 (home-page "https://ardour.org")
693 (synopsis "Digital audio workstation")
695 "Ardour is a multi-channel digital audio workstation, allowing users to
696 record, edit, mix and master audio and MIDI projects. It is targeted at audio
697 engineers, musicians, soundtrack editors and composers.")
698 (license license:gpl2+)))
700 (define-public audacity
708 (url "https://github.com/audacity/audacity")
709 (commit (string-append "Audacity-" version))))
710 (file-name (git-file-name name version))
713 "1xk0piv72d2xd3p7igr916fhcbrm76fhjr418k1rlqdzzg1hfljn"))
714 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
715 (modules '((guix build utils)))
717 ;; Remove bundled libraries.
721 (delete-file-recursively (string-append "lib-src/" dir)))
722 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
723 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
724 "portaudio-v19" "portmidi" "soundtouch" "twolame"
725 ;; FIXME: these libraries have not been packaged yet:
733 ;; FIXME: we have this library, but it differs in that the Slide
734 ;; class does not have a member "getInverseStretchedTime".
738 (build-system glib-or-gtk-build-system)
740 `(("wxwidgets" ,wxwidgets)
742 ("alsa-lib" ,alsa-lib)
748 ("libid3tag" ,libid3tag)
750 ;;("libsbsms" ,libsbsms) ;bundled version is modified
751 ("libsndfile" ,libsndfile)
752 ("soundtouch" ,soundtouch)
753 ("soxr" ,soxr) ;replaces libsamplerate
756 ("libvorbis" ,libvorbis)
758 ("lilv" ,lilv) ;for lv2
759 ("suil" ,suil) ;for lv2
760 ("portaudio" ,portaudio)
761 ("portmidi" ,portmidi)))
763 `(("autoconf" ,autoconf)
764 ("automake" ,automake)
765 ("gettext" ,gettext-minimal) ;for msgfmt
767 ("pkg-config" ,pkg-config)
772 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
773 (libmad (assoc-ref %build-inputs "libmad"))
774 (portmidi (assoc-ref %build-inputs "portmidi")))
776 ;; Loading FFmpeg dynamically is problematic.
777 "--disable-dynamic-loading"
778 ;; SSE instructions are available on Intel systems only.
779 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
783 '("--enable-sse=no"))
784 ;; portmidi, libid3tag and libmad provide no .pc files, so
785 ;; pkg-config fails to find them. Force their inclusion.
786 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
787 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
788 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
789 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
790 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
791 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
792 "EXPAT_USE_SYSTEM=yes"
793 "FFMPEG_USE_SYSTEM=yes"
794 "LAME_USE_SYSTEM=yes"
795 "LIBFLAC_USE_SYSTEM=yes"
796 "LIBID3TAG_USE_SYSTEM=yes"
797 "LIBMAD_USE_SYSTEM=yes"
798 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
799 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
800 "LIBSNDFILE_USE_SYSTEM=yes"
801 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
802 "LIBSOXR_USE_SYSTEM=yes"
803 "LIBTWOLAME_USE_SYSTEM=yes"
804 "LIBVAMP_USE_SYSTEM=yes"
805 "LIBVORBIS_USE_SYSTEM=yes"
807 "PORTAUDIO_USE_SYSTEM=yes"))
809 (modify-phases %standard-phases
810 (add-after 'unpack 'fix-sbsms-check
812 ;; This check is wrong: there is no 2.2.0 release; not even the
813 ;; bundled sources match this release string.
814 (substitute* '("m4/audacity_checklib_libsbsms.m4"
816 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
818 (add-after 'unpack 'use-upstream-headers
819 (lambda* (#:key inputs #:allow-other-keys)
820 (substitute* '("src/NoteTrack.cpp"
823 "src/AudioIOBase.cpp")
824 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
825 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
826 (substitute* "src/prefs/MidiIOPrefs.cpp"
827 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
829 ;; The test suite is not "well exercised" according to the developers,
830 ;; and fails with various errors. See
831 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
833 (home-page "https://www.audacityteam.org/")
834 (synopsis "Software for recording and editing sounds")
836 "Audacity is a multi-track audio editor designed for recording, playing
837 and editing digital audio. It features digital effects and spectrum analysis
839 (license license:gpl2+)))
841 (define-public audiofile
849 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
851 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
853 ;; CVE references according to nixpgs
855 "audiofile-fix-datatypes-in-tests.patch"
856 "audiofile-fix-sign-conversion.patch"
857 "audiofile-hurd.patch"
858 "audiofile-CVE-2015-7747.patch"
860 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
861 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
863 "audiofile-Check-the-number-of-coefficients.patch"
865 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
866 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
867 "audiofile-Fix-multiply-overflow-sfconvert.patch"
868 "audiofile-signature-of-multiplyCheckOverflow.patch"
870 "audiofile-Fail-on-error-in-parseFormat.patch"
872 "audiofile-division-by-zero-BlockCodec-runPull.patch"
873 "audiofile-CVE-2018-13440.patch"
874 "audiofile-CVE-2018-17095.patch"))))
875 (build-system gnu-build-system)
877 `(("alsa-lib" ,alsa-lib)))
878 (home-page "https://audiofile.68k.org/")
879 (synopsis "Library to handle various audio file formats")
880 (description "This is an open-source version of SGI's audiofile library.
881 It provides a uniform programming interface for processing of audio data to
882 and from audio files of many common formats.
884 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
885 .snd/.au, BICS, and raw data. Supported compression formats are currently
886 G.711 mu-law and A-law.")
887 (license license:lgpl2.1+)))
889 (define-public autotalent
895 (uri (string-append "http://tombaran.info/autotalent-"
899 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
900 (build-system gnu-build-system)
902 `(#:tests? #f ; no check target
904 (modify-phases %standard-phases
905 ;; no configure script
907 (add-before 'install 'prepare-target-directory
908 (lambda* (#:key outputs #:allow-other-keys)
909 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
911 (add-after 'unpack 'override-target-directory
912 (lambda* (#:key outputs #:allow-other-keys)
913 (substitute* "Makefile"
914 (("/usr/lib64/ladspa")
915 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
918 `(("ladspa" ,ladspa)))
919 (home-page "http://tombaran.info/autotalent.html")
920 (synopsis "Pitch-correction LADSPA audio plugin")
922 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
923 controls are allowable notes, strength of correction, LFO for vibrato and
925 ;; All code except the FFT routine is licensed under GPLv2+.
926 ;; The FFT routine is under BSD-3.
927 (license license:gpl2+)))
935 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
940 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
941 (patches (search-patches "azr3.patch"))))
942 (build-system gnu-build-system)
944 `(#:tests? #f ; no check target
947 (string-append "prefix=" %output)
948 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
950 (modify-phases %standard-phases
951 (add-before 'install 'fix-timestamp
953 (let ((early-1980 315619200)) ; 1980-01-02 UTC
954 (utime "azr3.1" early-1980 early-1980))
962 `(("pkg-config" ,pkg-config)))
963 (home-page "http://ll-plugins.nongnu.org/azr3/")
964 (synopsis "Tonewheel organ synthesizer")
966 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
967 with drawbars, distortion and rotating speakers. The organ has three
968 sections, two polyphonic sections with nine drawbars each and one monophonic
969 bass section with five drawbars. A standalone JACK application and LV2
970 plugins are provided.")
971 (license license:gpl2)))
979 (uri (string-append "https://calf-studio-gear.org/files/calf-"
983 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
984 (build-system gnu-build-system)
986 `(("fluidsynth" ,fluidsynth)
997 `(("pkg-config" ,pkg-config)))
999 (list (search-path-specification
1000 (variable "LV2_PATH")
1001 (files '("lib/lv2")))))
1002 (home-page "http://calf.sourceforge.net/")
1003 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1005 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1006 The suite contains lots of effects (delay, modulation, signal processing,
1007 filters, equalizers, dynamics, distortion and mastering effects),
1008 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1009 tools (analyzer, mono/stereo tools, crossovers).")
1010 ;; calfjackhost is released under GPLv2+
1011 ;; The plugins are released under LGPLv2.1+
1012 (license (list license:lgpl2.1+ license:gpl2+))))
1014 (define-public caps-plugins-lv2
1016 (name "caps-plugins-lv2")
1017 (version "0.9.24") ; version that has been ported.
1020 ;; The Github project hasn't tagged a release.
1023 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
1024 ;; missing fixes for newer glibc, so using the origin of a pull
1025 ;; request regarding this issue:
1026 (url "https://github.com/jujudusud/caps-lv2")
1027 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
1028 (file-name (git-file-name name version))
1031 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
1032 (build-system gnu-build-system)
1034 `(#:tests? #f ; no check target
1036 (modify-phases %standard-phases
1037 ;; no configure script
1039 (add-after 'unpack 'override-target-directory
1040 (lambda* (#:key outputs #:allow-other-keys)
1041 (substitute* (find-files "plugins" "Makefile")
1042 (("/usr/local")(assoc-ref outputs "out")))
1046 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1047 (home-page "https://github.com/moddevices/caps-lv2")
1048 (synopsis "LV2 port of the CAPS audio plugin colection")
1050 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1051 guitar amplification and a small range of classic effects, signal processors and
1052 generators of mostly elementary and occasionally exotic nature.")
1053 (license license:gpl3+)))
1055 (define-public infamous-plugins
1057 (name "infamous-plugins")
1062 (url "https://github.com/ssj71/infamousPlugins")
1063 (commit (string-append "v" version))))
1064 (file-name (git-file-name name version))
1067 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
1068 (build-system cmake-build-system)
1070 `(#:tests? #f ; there are no tests
1072 (modify-phases %standard-phases
1073 (add-after 'unpack 'remove-compiler-flags
1075 (substitute* (find-files "." "CMakeLists.txt")
1076 (("-msse2 -mfpmath=sse") ""))
1083 ("zita-resampler" ,zita-resampler)))
1085 `(("pkg-config" ,pkg-config)))
1086 (home-page "https://ssj71.github.io/infamousPlugins")
1087 (synopsis "LV2 plugins for live use")
1089 "The infamous plugins are a collection of LV2 audio plugins for live
1090 performances. The plugins include a cellular automaton synthesizer, an
1091 envelope follower, distortion effects, tape effects and more.")
1092 (license license:gpl2+)))
1094 (define-public swh-plugins
1096 (name "swh-plugins")
1101 (url "https://github.com/swh/ladspa")
1102 (commit (string-append "v" version))))
1103 (file-name (git-file-name name version))
1106 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1108 `(("autoconf" ,autoconf)
1109 ("automake" ,automake)
1110 ("gettext" ,gettext-minimal) ;for autopoint
1111 ("libtool" ,libtool)
1113 ("pkg-config" ,pkg-config)
1117 ("perl-xml-parser" ,perl-xml-parser)))
1118 (build-system gnu-build-system)
1119 (home-page "http://plugin.org.uk")
1120 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1121 (description "This package provides Steve Harris's LADSPA plugins.")
1122 (license license:gpl2+)))
1124 (define-public swh-plugins-lv2
1126 (name "swh-plugins-lv2")
1131 (url "https://github.com/swh/lv2")
1132 (commit (string-append "v" version))))
1133 (file-name (git-file-name name version))
1136 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1137 (build-system gnu-build-system)
1139 `(#:tests? #f ; no check target
1140 #:make-flags (list "CC=gcc"
1141 (string-append "PREFIX="
1142 (assoc-ref %outputs "out")))
1144 (modify-phases %standard-phases
1145 ;; no configure script
1147 (add-after 'unpack 'patch-makefile-and-enter-directory
1148 ;; The default install target doesn't install, but the
1149 ;; "install-system" target does.
1151 (substitute* "Makefile"
1152 (("install:") "install: install-system"))
1158 `(("libxslt" ,libxslt)
1159 ("pkg-config" ,pkg-config)))
1160 (home-page "http://plugin.org.uk")
1161 (synopsis "SWH plugins in LV2 format")
1163 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1164 classes include: dynamics (compressor, limiter), time (delay, chorus,
1165 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1166 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1167 (license license:gpl3+)))
1172 (version "1.0-beta-10May2006")
1175 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1177 "tao-" version ".tar.gz"))
1180 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1182 (search-patches "tao-add-missing-headers.patch"
1183 "tao-fix-parser-types.patch"))
1184 (modules '((guix build utils)))
1187 (substitute* "configure"
1188 (("SHELL=/bin/sh") ""))
1190 (build-system gnu-build-system)
1192 '(#:configure-flags '("TAO_RELEASE=-beta")
1194 (modify-phases %standard-phases
1195 (add-after 'unpack 'fix-references
1196 (lambda* (#:key outputs #:allow-other-keys)
1197 (substitute* "user-scripts/tao.in"
1199 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1200 (("grep") (which "grep"))
1201 (("sed -f \\$distdir/user-scripts/")
1202 (string-append (which "sed") " -f $distdir/"))
1204 (string-append "distdir="
1205 (assoc-ref outputs "out") "/share/tao")))
1207 (add-after 'install 'install-extra-files
1208 (lambda* (#:key outputs #:allow-other-keys)
1209 (let* ((out (assoc-ref outputs "out"))
1210 (share (string-append out "/share/tao/"))
1211 (inc (string-append out "/include/tao/")))
1214 (install-file "user-scripts/error.parse" share)
1215 (copy-recursively "examples" (string-append share "examples"))
1216 (for-each (lambda (file) (install-file file inc))
1217 (find-files "include" "\\.h"))
1220 `(("audiofile" ,audiofile)
1229 (home-page "http://taopm.sourceforge.net/")
1230 (synopsis "Sound Synthesis with Physical Models")
1231 (description "Tao is a software package for sound synthesis using physical
1232 models. It provides a virtual acoustic material constructed from masses and
1233 springs which can be used as the basis for building quite complex virtual
1234 musical instruments. Tao comes with a synthesis language for creating and
1235 playing instruments and a C++ API for those who would like to use it as an
1237 (license license:gpl2+)))
1239 (define-public csound
1247 (url "https://github.com/csound/csound")
1249 (file-name (git-file-name name version))
1251 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1252 (build-system cmake-build-system)
1256 ("gettext" ,gettext-minimal)
1259 `(("alsa-lib" ,alsa-lib)
1264 ("libsndfile" ,libsndfile)
1265 ("pulseaudio" ,pulseaudio)))
1266 (home-page "https://csound.com/")
1267 (synopsis "Sound and music computing system")
1269 "Csound is a user-programmable and user-extensible sound processing
1270 language and software synthesizer.")
1271 (license license:lgpl2.1+)))
1273 (define-public clalsadrv
1280 "http://kokkinizita.linuxaudio.org"
1281 "/linuxaudio/downloads/clalsadrv-"
1282 version ".tar.bz2"))
1285 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1286 (build-system gnu-build-system)
1288 `(#:tests? #f ; no "check" target
1289 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1291 (modify-phases %standard-phases
1292 (add-after 'unpack 'patch-makefile-and-enter-directory
1294 (substitute* "libs/Makefile"
1295 (("/sbin/ldconfig") "true")
1296 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1299 (add-after 'install 'install-symlink
1301 (symlink "libclalsadrv.so"
1302 (string-append (assoc-ref %outputs "out")
1303 "/lib/libclalsadrv.so.2"))
1305 ;; no configure script
1306 (delete 'configure))))
1308 `(("alsa-lib" ,alsa-lib)
1310 (home-page "https://kokkinizita.linuxaudio.org")
1311 (synopsis "C++ wrapper around the ALSA API")
1313 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1315 (license license:gpl2+)))
1317 (define-public amb-plugins
1319 (name "amb-plugins")
1324 "http://kokkinizita.linuxaudio.org"
1325 "/linuxaudio/downloads/AMB-plugins-"
1326 version ".tar.bz2"))
1329 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1330 (build-system gnu-build-system)
1332 `(#:tests? #f ; no "check" target
1334 (modify-phases %standard-phases
1335 ;; no configure script
1337 (add-before 'install 'prepare-target-directory
1338 (lambda* (#:key outputs #:allow-other-keys)
1339 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1341 (add-after 'unpack 'override-target-directory-and-tool-paths
1342 (lambda* (#:key outputs #:allow-other-keys)
1343 (substitute* "Makefile"
1344 (("/usr/lib/ladspa")
1345 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1346 (("/usr/bin/install") (which "install"))
1349 (home-page "https://kokkinizita.linuxaudio.org")
1350 (synopsis "LADSPA ambisonics plugins")
1352 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1353 used within Ardour. Features include: mono and stereo to B-format panning,
1354 horizontal rotator, square, hexagon and cube decoders.")
1355 (license license:gpl2+)))
1357 (define-public mcp-plugins
1359 (name "mcp-plugins")
1364 "http://kokkinizita.linuxaudio.org"
1365 "/linuxaudio/downloads/MCP-plugins-"
1366 version ".tar.bz2"))
1369 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1370 (build-system gnu-build-system)
1372 `(#:tests? #f ; no "check" target
1374 (modify-phases %standard-phases
1375 ;; no configure script
1377 (add-before 'install 'prepare-target-directory
1378 (lambda* (#:key outputs #:allow-other-keys)
1379 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1381 (add-after 'unpack 'override-target-directory
1382 (lambda* (#:key outputs #:allow-other-keys)
1383 (substitute* "Makefile"
1384 (("/usr") (assoc-ref outputs "out")))
1386 (home-page "https://kokkinizita.linuxaudio.org")
1387 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1389 "This package provides various LADSPA plugins. @code{cs_chorus} and
1390 @code{cs_phaser} provide chorus and phaser effects, respectively;
1391 @code{mvclpf24} provides four implementations of the low-pass filter used in
1392 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1393 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1394 the non-linear circuit elements of their original analog counterparts.")
1395 (license license:gpl2+)))
1397 (define-public rev-plugins
1399 (name "rev-plugins")
1404 "http://kokkinizita.linuxaudio.org"
1405 "/linuxaudio/downloads/REV-plugins-"
1406 version ".tar.bz2"))
1409 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1410 (build-system gnu-build-system)
1412 `(#:tests? #f ; no "check" target
1414 (modify-phases %standard-phases
1415 ;; no configure script
1417 (add-before 'install 'prepare-target-directory
1418 (lambda* (#:key outputs #:allow-other-keys)
1419 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1421 (add-after 'unpack 'override-target-directory
1422 (lambda* (#:key outputs #:allow-other-keys)
1423 (substitute* "Makefile"
1424 (("/usr") (assoc-ref outputs "out")))
1426 (home-page "https://kokkinizita.linuxaudio.org")
1427 (synopsis "LADSPA reverb plugin")
1429 "This package provides a stereo reverb LADSPA plugin based on the
1430 well-known greverb.")
1431 (license license:gpl2+)))
1433 (define-public fil-plugins
1435 (name "fil-plugins")
1440 "http://kokkinizita.linuxaudio.org"
1441 "/linuxaudio/downloads/FIL-plugins-"
1442 version ".tar.bz2"))
1445 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1446 (build-system gnu-build-system)
1448 `(#:tests? #f ; no "check" target
1450 (modify-phases %standard-phases
1451 ;; no configure script
1453 (add-before 'install 'prepare-target-directory
1454 (lambda* (#:key outputs #:allow-other-keys)
1455 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1457 (add-after 'unpack 'override-target-directory
1458 (lambda* (#:key outputs #:allow-other-keys)
1459 (substitute* "Makefile"
1460 (("/usr") (assoc-ref outputs "out")))
1462 (home-page "https://kokkinizita.linuxaudio.org")
1463 (synopsis "LADSPA four-band parametric equalizer plugin")
1465 "This package provides a LADSPA plugin for a four-band parametric
1466 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1467 gain controls. There is also a global bypass switch and gain control.
1469 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1470 lattice filter, which is stable even while parameters are being changed.
1472 All switches and controls are internally smoothed, so they can be used @code{live}
1473 without any clicks or zipper noises. This makes this plugin suitable for use
1474 in systems that allow automation of plugin control ports, such as Ardour, or
1476 (license license:gpl2+)))
1478 (define-public ste-plugins
1480 (name "ste-plugins")
1485 "http://kokkinizita.linuxaudio.org"
1486 "/linuxaudio/downloads/STE-plugins-"
1487 version ".tar.bz2"))
1490 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1491 (build-system gnu-build-system)
1493 `(#:tests? #f ; no "check" target
1495 (modify-phases %standard-phases
1496 ;; no configure script
1498 (add-before 'install 'prepare-target-directory
1499 (lambda* (#:key outputs #:allow-other-keys)
1500 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1502 (add-after 'unpack 'override-target-directory
1503 (lambda* (#:key outputs #:allow-other-keys)
1504 (substitute* "Makefile"
1505 (("/usr") (assoc-ref outputs "out")))
1507 (home-page "https://kokkinizita.linuxaudio.org")
1508 (synopsis "LADSPA stereo width plugin")
1510 "This package provides a LADSPA plugin to manipulate the stereo width of
1512 (license license:gpl2+)))
1514 (define-public vco-plugins
1516 (name "vco-plugins")
1521 "http://kokkinizita.linuxaudio.org"
1522 "/linuxaudio/downloads/VCO-plugins-"
1523 version ".tar.bz2"))
1526 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1527 (build-system gnu-build-system)
1529 `(#:tests? #f ; no "check" target
1531 (modify-phases %standard-phases
1532 ;; no configure script
1534 (add-before 'install 'prepare-target-directory
1535 (lambda* (#:key outputs #:allow-other-keys)
1536 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1538 (add-after 'unpack 'override-target-directory
1539 (lambda* (#:key outputs #:allow-other-keys)
1540 (substitute* "Makefile"
1541 (("/usr") (assoc-ref outputs "out"))
1542 (("/bin/cp") (which "cp")))
1544 (home-page "https://kokkinizita.linuxaudio.org")
1545 (synopsis "LADSPA plugin for synthesizer oscillators")
1547 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1550 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1551 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1552 @item Rec-VCO, a square / rectangle oscillator
1555 All oscillators are low-pass filtered to provide waveforms similar to the
1556 output of analog synthesizers such as the Moog Voyager.")
1557 (license license:gpl2+)))
1559 (define-public wah-plugins
1561 (name "wah-plugins")
1566 "http://kokkinizita.linuxaudio.org"
1567 "/linuxaudio/downloads/WAH-plugins-"
1568 version ".tar.bz2"))
1571 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1572 (build-system gnu-build-system)
1574 `(#:tests? #f ; no "check" target
1576 (modify-phases %standard-phases
1577 ;; no configure script
1579 (add-before 'install 'prepare-target-directory
1580 (lambda* (#:key outputs #:allow-other-keys)
1581 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1583 (add-after 'unpack 'override-target-directory
1584 (lambda* (#:key outputs #:allow-other-keys)
1585 (substitute* "Makefile"
1586 (("/usr") (assoc-ref outputs "out")))
1588 (home-page "https://kokkinizita.linuxaudio.org")
1589 (synopsis "LADSPA Autowah effect plugin")
1591 "This package provides a LADSPA plugin for a Wah effect with envelope
1593 (license license:gpl2+)))
1595 (define-public g2reverb
1602 "http://kokkinizita.linuxaudio.org"
1603 "/linuxaudio/downloads/g2reverb-"
1604 version ".tar.bz2"))
1607 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1608 (build-system gnu-build-system)
1610 `(#:tests? #f ; no "check" target
1612 (modify-phases %standard-phases
1613 ;; no configure script
1615 (add-before 'install 'prepare-target-directory
1616 (lambda* (#:key outputs #:allow-other-keys)
1617 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1619 (add-after 'unpack 'override-target-directory
1620 (lambda* (#:key outputs #:allow-other-keys)
1621 (substitute* "Makefile"
1622 (("/usr") (assoc-ref outputs "out")))
1624 (home-page "https://kokkinizita.linuxaudio.org")
1625 (synopsis "LADSPA stereo reverb plugin")
1627 "This package provides a LADSPA plugin for a stereo reverb effect.")
1628 (license license:gpl2+)))
1630 (define-public fluidsynth
1637 (url "https://github.com/FluidSynth/fluidsynth")
1638 (commit (string-append "v" version))))
1639 (file-name (git-file-name name version))
1642 "1r3khwyw57ybg5m4x0rvdzq7hgw2484sd52k6bm19akbw8yicfna"))))
1643 (build-system cmake-build-system)
1645 '(#:tests? #f ; no check target
1647 (modify-phases %standard-phases
1648 (add-after 'unpack 'fix-libdir
1650 ;; Install libraries to /lib, not /lib64.
1651 (substitute* "CMakeLists.txt"
1652 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1656 `(("libsndfile" ,libsndfile)
1657 ("alsa-lib" ,alsa-lib)
1661 ("readline" ,readline)
1664 `(("pkg-config" ,pkg-config)))
1665 (home-page "http://www.fluidsynth.org/")
1666 (synopsis "SoundFont synthesizer")
1668 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1669 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1670 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1671 also play midifiles using a Soundfont.")
1672 (license license:lgpl2.1+)))
1674 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1676 (define-public fluidsynth-1
1678 (inherit fluidsynth)
1681 (inherit (package-source fluidsynth))
1683 (url "https://github.com/FluidSynth/fluidsynth")
1684 (commit (string-append "v" version))))
1685 (file-name (git-file-name "fluidsynth" version))
1688 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1690 (define-public faad2
1698 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1699 (version-major+minor version) ".0/"
1700 "faad2-" version ".tar.gz"))
1702 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1703 (build-system gnu-build-system)
1704 (home-page "https://www.audiocoding.com/faad2.html")
1705 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1707 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1708 (license license:gpl2+)))
1710 (define-public faust
1717 (url "https://github.com/grame-cncm/faust")
1718 (commit (string-append "v"
1719 (string-map (lambda (c)
1720 (if (char=? c #\.) #\- c))
1722 (file-name (string-append "faust-" version "-checkout"))
1725 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1726 (build-system gnu-build-system)
1728 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1731 (modify-phases %standard-phases
1732 ;; no "configure" script
1734 ;; Files appear under $out/share/faust that are read-only. The
1735 ;; install phase tries to overwrite them and fails, so we change
1736 ;; the permissions first.
1737 (add-before 'install 'fix-permissions
1739 (for-each (lambda (file)
1741 (find-files "architecture/max-msp" ".*"))
1744 `(("unzip" ,unzip)))
1745 (home-page "https://faust.grame.fr/")
1746 (synopsis "Signal processing language")
1748 "Faust is a programming language for realtime audio signal processing.")
1749 (license license:gpl2+)))
1751 (define-public faust-2
1757 (uri (string-append "https://github.com/grame-cncm/faust/"
1758 "releases/download/" version
1759 "/faust-" version ".tar.gz"))
1762 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1763 (build-system gnu-build-system)
1765 (substitute-keyword-arguments (package-arguments faust)
1766 ((#:make-flags flags)
1767 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1770 `(("llvm" ,llvm-3.8)
1773 ("ctags" ,emacs-minimal) ; for ctags
1774 ("pkg-config" ,pkg-config)))
1776 `(("libsndfile" ,libsndfile)
1777 ("libmicrohttpd" ,libmicrohttpd)
1778 ("ncurses" ,ncurses)
1779 ("openssl" ,openssl)
1782 (define-public freepats
1785 (version "20060219")
1788 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1789 version ".tar.bz2"))
1792 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1793 (build-system trivial-build-system)
1795 `(#:modules ((guix build utils))
1797 (use-modules (guix build utils))
1798 (let ((out (string-append %output "/share/freepats")))
1799 (setenv "PATH" (string-append
1800 (assoc-ref %build-inputs "bzip2") "/bin:"
1801 (assoc-ref %build-inputs "tar") "/bin"))
1802 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1804 ;; Use absolute pattern references
1805 (substitute* "freepats.cfg"
1806 (("Tone_000") (string-append out "/Tone_000"))
1807 (("Drum_000") (string-append out "/Drum_000")))
1809 (copy-recursively "." out)
1814 (home-page "http://freepats.zenvoid.org")
1815 (synopsis "GUS compatible patches for MIDI players")
1817 "FreePats is a project to create a free and open set of GUS compatible
1818 patches that can be used with softsynths such as Timidity and WildMidi.")
1819 ;; GPLv2+ with exception for compositions using these patches.
1820 (license license:gpl2+)))
1822 (define-public guitarix
1829 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1833 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1834 (build-system waf-build-system)
1836 `(#:tests? #f ; no "check" target
1840 ;; Add the output lib directory to the RUNPATH.
1841 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1843 (modify-phases %standard-phases
1844 (add-after 'unpack 'fix-boost-includes
1846 (substitute* "src/headers/gx_internal_plugins.h"
1847 (("namespace gx_jack" m)
1848 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1849 (substitute* '("src/headers/gx_system.h"
1850 "src/headers/gx_parameter.h"
1851 "src/headers/gx_json.h")
1852 (("namespace gx_system" m)
1853 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1856 `(("libsndfile" ,libsndfile)
1869 ("zita-resampler" ,zita-resampler)
1870 ("zita-convolver" ,zita-convolver)))
1874 ("intltool" ,intltool)
1875 ("gettext" ,gettext-minimal)
1876 ("pkg-config" ,pkg-config)))
1877 (native-search-paths
1878 (list (search-path-specification
1879 (variable "LV2_PATH")
1880 (files '("lib/lv2")))))
1881 (home-page "https://guitarix.org/")
1882 (synopsis "Virtual guitar amplifier")
1883 (description "Guitarix is a virtual guitar amplifier running JACK.
1884 Guitarix takes the signal from your guitar as a mono-signal from your sound
1885 card. The input is processed by a main amp and a rack-section. Both can be
1886 routed separately and deliver a processed stereo-signal via JACK. You may
1887 fill the rack with effects from more than 25 built-in modules including stuff
1888 from a simple noise gate to modulation effects like flanger, phaser or
1890 (license license:gpl2+)))
1892 (define-public guitarix-lv2
1893 (package (inherit guitarix)
1894 (name "guitarix-lv2")
1896 (substitute-keyword-arguments (package-arguments guitarix)
1897 ((#:configure-flags flags)
1898 `(cons "--no-standalone" ,flags))))))
1900 (define-public rakarrack
1906 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1907 "rakarrack-" version "/rakarrack-"
1908 version ".tar.bz2"))
1911 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1912 (modules '((guix build utils)))
1915 (substitute* '("src/process.C"
1917 (("#include <Fl/") "#include <FL/"))
1919 (build-system gnu-build-system)
1921 `(("alsa-utils" ,alsa-utils)
1924 ("libxext" ,libxext)
1925 ("libxfixes" ,libxfixes)
1927 ("libxrender" ,libxrender)
1929 ("fontconfig" ,fontconfig)
1930 ("freetype" ,freetype)
1932 ("alsa-lib" ,alsa-lib)
1933 ("libsndfile" ,libsndfile)
1934 ("libsamplerate" ,libsamplerate)
1936 (home-page "http://rakarrack.sourceforge.net/")
1937 (synopsis "Audio effects processor")
1939 "Rakarrack is a richly featured multi-effects processor emulating a
1940 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1941 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1942 distortion modules and many more. Most of the effects engine is built from
1943 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1944 user interface are optimized for guitar, but Rakarrack processes signals in
1945 stereo while it does not apply internal band-limiting filtering, and thus is
1946 well suited to all musical instruments and vocals.")
1947 ;; The code is explicitly licensed under the GPL version 2 only.
1948 (license license:gpl2)))
1957 (url "https://github.com/tomszilagyi/ir.lv2")
1959 (file-name (git-file-name name version))
1962 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1963 (build-system gnu-build-system)
1965 `(#:tests? #f ; no tests
1967 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1968 (string-append "INSTDIR="
1969 (assoc-ref %outputs "out") "/lib/lv2"))
1970 #:phases (modify-phases %standard-phases
1971 (delete 'configure)))) ; no configure script
1973 `(("libsndfile" ,libsndfile)
1974 ("libsamplerate" ,libsamplerate)
1978 ("zita-convolver" ,zita-convolver)))
1980 `(("pkg-config" ,pkg-config)))
1981 (native-search-paths
1982 (list (search-path-specification
1983 (variable "LV2_PATH")
1984 (files '("lib/lv2")))))
1985 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1986 (synopsis "LV2 convolution reverb")
1988 "IR is a low-latency, real-time, high performance signal convolver
1989 especially for creating reverb effects. It supports impulse responses with 1,
1990 2 or 4 channels, in any soundfile format supported by libsndfile.")
1991 (license license:gpl2+)))
1993 (define-public jack-1
2000 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2001 ;; no longer exists (404). Use an unofficial mirror.
2002 (uri (string-append "https://crux.ster.zone/downloads/"
2003 "jack-audio-connection-kit/"
2004 "jack-audio-connection-kit-" version ".tar.gz"))
2006 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2007 (build-system gnu-build-system)
2009 `(#:phases (modify-phases %standard-phases
2010 (add-after 'unpack 'patch-configure
2012 (substitute* "configure"
2013 ;; Install to <out/lib> regardless of platform.
2014 (("libnn=lib64") "libnn=lib"))
2017 `(("alsa-lib" ,alsa-lib)
2018 ("readline" ,readline)))
2019 ;; uuid.h is included in the JACK type headers
2020 ;; db.h is included in the libjack metadata headers
2022 `(("libuuid" ,util-linux "lib")
2025 `(("pkg-config" ,pkg-config)))
2026 (home-page "https://jackaudio.org/")
2027 (synopsis "JACK audio connection kit")
2029 "JACK is a low-latency audio server. It can connect a number of
2030 different applications to an audio device, as well as allowing them to share
2031 audio between themselves. JACK is different from other audio server efforts
2032 in that it has been designed from the ground up to be suitable for
2033 professional audio work. This means that it focuses on two key areas:
2034 synchronous execution of all clients, and low latency operation.")
2035 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2036 ;; licensed under the LGPL in order to allow for proprietary usage.
2037 (license (list license:gpl2+ license:lgpl2.1+))))
2039 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2040 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2041 ;; program for users who might benefit from the D-BUS features.
2042 (define-public jack-2
2043 (package (inherit jack-1)
2048 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
2049 "download/v" version "/jack2-"
2051 (file-name (string-append name "-" version ".tar.gz"))
2054 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
2055 (build-system waf-build-system)
2057 `(#:tests? #f ; no check target
2058 #:configure-flags '("--dbus"
2061 (modify-phases %standard-phases
2062 (add-before 'configure 'set-linkflags
2064 ;; Add $libdir to the RUNPATH of all the binaries.
2065 (substitute* "wscript"
2066 ((".*CFLAGS.*-Wall.*" m)
2068 " conf.env.append_unique('LINKFLAGS',"
2069 "'-Wl,-rpath=" %output "/lib')\n")))
2071 (add-after 'install 'wrap-python-scripts
2072 (lambda* (#:key inputs outputs #:allow-other-keys)
2073 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2074 (let* ((out (assoc-ref outputs "out"))
2075 (path (getenv "PYTHONPATH")))
2076 (wrap-program (string-append out "/bin/jack_control")
2077 `("PYTHONPATH" ":" prefix (,path))))
2080 `(("alsa-lib" ,alsa-lib)
2083 ("libsamplerate" ,libsamplerate)
2085 ("python-dbus" ,python-dbus)
2086 ("readline" ,readline)))
2088 `(("pkg-config" ,pkg-config)))
2089 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2090 (license (list license:gpl2+ license:lgpl2.1+))))
2098 (uri (string-append "https://download.drobilla.net/jalv-"
2099 version ".tar.bz2"))
2102 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2103 (build-system waf-build-system)
2105 `(#:tests? #f ; no check target
2106 #:python ,python-2))
2117 `(("pkg-config" ,pkg-config)))
2118 (home-page "https://drobilla.net/software/jalv/")
2119 (synopsis "Simple LV2 host for JACK")
2121 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2122 plugins and exposes their ports as JACK ports, essentially making any LV2
2123 plugin function as a JACK application.")
2124 (license license:isc)))
2126 (define-public ladspa
2133 ;; Since the official link is dead,
2134 ;; we download the tarball from Debian or Internet Archive.
2135 (uri (list (string-append "http://http.debian.net"
2136 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2137 version ".orig.tar.gz")
2138 (string-append "https://web.archive.org/web/20140717172251/"
2139 "http://www.ladspa.org/download/ladspa_sdk_"
2143 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2144 (build-system gnu-build-system)
2146 `(#:tests? #f ; the "test" target is a listening test only
2148 (modify-phases %standard-phases
2150 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2152 (let ((out (assoc-ref outputs "out")))
2153 (substitute* "makefile"
2154 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2155 (("/usr/include/") (string-append out "/include/"))
2156 (("/usr/bin/") (string-append out "/bin/"))
2157 (("-mkdirhier") "mkdir -p")
2158 (("^CC.*") "CC = gcc\n")
2159 (("^CPP.*") "CPP = g++\n")))
2162 ;; Since the home page is gone, we provide a link to the archived version.
2164 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2165 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2167 "LADSPA is a standard that allows software audio processors and effects
2168 to be plugged into a wide range of audio synthesis and recording packages.")
2169 (license license:lgpl2.1+)))
2174 (version "0.6.0-rc2")
2177 ;; The tilde is not permitted in the builder name, but is used
2180 "mirror://savannah/lash/lash-"
2181 (string-join (string-split version #\-) "~")
2183 (file-name (string-append name "-" version ".tar.bz2"))
2186 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2187 (build-system gnu-build-system)
2189 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2190 ;; to use libtirpc instead.
2191 #:make-flags (list (string-append "CFLAGS=-I"
2192 (assoc-ref %build-inputs "libtirpc")
2193 "/include/tirpc -ltirpc"))
2195 (modify-phases %standard-phases
2196 ;; lashd embeds an ancient version of sigsegv so we just skip it
2197 (add-after 'unpack 'skip-lashd
2199 (substitute* '("Makefile.am" "Makefile.in")
2202 #:configure-flags '("--disable-static")))
2207 ("libtirpc" ,libtirpc)
2208 ("readline" ,readline)
2209 ("python" ,python-2)))
2210 ;; According to pkg-config, packages depending on lash also need to have
2211 ;; at least the following packages declared as inputs.
2213 `(("alsa-lib" ,alsa-lib)
2215 ("libxml2" ,libxml2)))
2217 `(("pkg-config" ,pkg-config)))
2218 (home-page "https://www.nongnu.org/lash/")
2219 (synopsis "Audio application session manager")
2221 "LASH is a session management system for audio applications. It allows
2222 you to save and restore audio sessions consisting of multiple interconneced
2223 applications, restoring program state (i.e. loaded patches) and the
2224 connections between them.")
2225 (license license:gpl2+)))
2227 (define-public libbs2b
2233 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2234 "/libbs2b-" version ".tar.lzma"))
2237 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2238 (build-system gnu-build-system)
2239 (native-inputs `(("pkg-config" ,pkg-config)))
2240 (inputs `(("libsndfile" ,libsndfile)))
2241 (home-page "https://sourceforge.net/projects/bs2b/")
2242 (synopsis "Bauer stereophonic-to-binaural DSP")
2244 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2245 designed to improve headphone listening of stereo audio records. Recommended
2246 for headphone prolonged listening to disable superstereo fatigue without
2247 essential distortions.")
2248 (license license:expat)))
2250 (define-public ladspa-bs2b
2252 (name "ladspa-bs2b")
2257 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2258 version "/" name "-" version ".tar.gz"))
2261 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2262 (build-system gnu-build-system)
2263 (native-inputs `(("pkg-config" ,pkg-config)))
2264 (inputs `(("ladspa" ,ladspa)
2265 ("libbs2b" ,libbs2b)))
2266 (home-page "https://sourceforge.net/projects/bs2b/")
2267 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2268 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2269 plugins is designed to improve headphone listening of stereo audio records.
2270 Recommended for headphone prolonged listening to disable superstereo fatigue
2271 without essential distortions. This package contains a LADSPA plugin for use
2272 with applications that support them (e.g. PulseAudio).")
2273 (license license:gpl2+)))
2275 (define-public liblo
2281 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2282 "/liblo-" version ".tar.gz"))
2285 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2286 (build-system gnu-build-system)
2288 `(;; liblo test FAILED
2289 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2291 (home-page "http://liblo.sourceforge.net")
2292 (synopsis "Implementation of the Open Sound Control protocol")
2294 "liblo is a lightweight library that provides an easy to use
2295 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2296 (license license:lgpl2.1+)))
2298 (define-public rtaudio
2306 (url "https://github.com/thestk/rtaudio")
2308 (file-name (git-file-name name version))
2310 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2311 (build-system cmake-build-system)
2313 `(("pkg-config" ,pkg-config)))
2315 `(("alsa-lib" ,alsa-lib)
2317 ("pulseaudio" ,pulseaudio)))
2318 (synopsis "Common API for real-time audio I/O")
2320 "RtAudio is a set of C++ classes that provides a common API for real-time
2321 audio input/output. It was designed with the following objectives:
2324 @item object-oriented C++ design
2325 @item simple, common API across all supported platforms
2326 @item only one source and one header file for easy inclusion in programming
2328 @item allow simultaneous multi-api support
2329 @item support dynamic connection of devices
2330 @item provide extensive audio device parameter control
2331 @item allow audio device capability probing
2332 @item automatic internal conversion for data format, channel number
2333 compensation, (de)interleaving, and byte-swapping
2335 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2336 ;; License is expat with a non-binding request to send modifications to
2337 ;; original developer.
2338 (license license:expat)))
2340 (define-public python-pyaudio
2342 (name "python-pyaudio")
2347 (uri (pypi-uri "PyAudio" version))
2350 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2351 (build-system python-build-system)
2353 `(("portaudio" ,portaudio)))
2354 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2355 (synopsis "Bindings for PortAudio v19")
2356 (description "This package provides bindings for PortAudio v19, the
2357 cross-platform audio input/output stream library.")
2358 (license license:expat)))
2360 (define-public python2-pyaudio
2361 (package-with-python2 python-pyaudio))
2363 (define-public python-pyliblo
2365 (name "python-pyliblo")
2369 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2373 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2374 (build-system python-build-system)
2375 (arguments `(#:tests? #f)) ;no tests
2377 `(("python-cython" ,python-cython)))
2379 `(("liblo" ,liblo)))
2380 (home-page "http://das.nasophon.de/pyliblo/")
2381 (synopsis "Python bindings for liblo")
2383 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2384 library. It supports almost the complete functionality of liblo, allowing you
2385 to send and receive OSC messages using a nice and simple Python API. Also
2386 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2387 (license license:lgpl2.1+)))
2389 (define-public python2-pyliblo
2390 (package-with-python2 python-pyliblo))
2398 (uri (string-append "https://download.drobilla.net/lilv-"
2399 version ".tar.bz2"))
2402 "0063i5zgf3d3accwmyx651hw0wh5ik7kji2hvfkcdbl1qia3dp6a"))))
2403 (build-system waf-build-system)
2405 `(#:tests? #f ; no check target
2407 (modify-phases %standard-phases
2408 (add-before 'configure 'set-ldflags
2409 (lambda* (#:key outputs #:allow-other-keys)
2411 (string-append "-Wl,-rpath="
2412 (assoc-ref outputs "out") "/lib"))
2414 (add-after 'unpack 'full-store-path-to-shared-library
2415 (lambda* (#:key outputs #:allow-other-keys)
2416 (with-directory-excursion "bindings/python"
2417 (substitute* "lilv.py"
2418 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2419 "/lib/liblilv-0.so"))))
2421 ;; Required by lilv-0.pc.
2426 ("sratom" ,sratom)))
2428 `(("python" ,python)
2429 ("pkg-config" ,pkg-config)))
2430 (home-page "https://drobilla.net/software/lilv")
2431 (synopsis "Library to simplify use of LV2 plugins in applications")
2433 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2434 for applications. Lilv is the successor to SLV2, rewritten to be
2435 significantly faster and have minimal dependencies.")
2436 (license license:isc)))
2444 (uri (string-append "https://lv2plug.in/spec/lv2-"
2445 version ".tar.bz2"))
2448 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2449 (build-system waf-build-system)
2451 `(#:tests? #f ; no check target
2452 #:configure-flags '("--no-plugins")))
2454 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2455 `(("libsndfile" ,libsndfile)))
2457 `(("pkg-config" ,pkg-config)))
2458 (home-page "https://lv2plug.in/")
2459 (synopsis "LV2 audio plugin specification")
2461 "LV2 is an open specification for audio plugins and host applications.
2462 At its core, LV2 is a simple stable interface, accompanied by extensions which
2463 add functionality to support the needs of increasingly powerful audio
2465 (license license:isc)))
2467 (define-public lv2-mda-piano
2469 (name "lv2-mda-piano")
2474 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2476 (file-name (git-file-name name version))
2479 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2480 (build-system gnu-build-system)
2482 `(#:make-flags (list
2484 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2485 #:tests? #f ; no check target
2486 #:phases (modify-phases %standard-phases (delete 'configure))))
2491 `(("pkg-config" ,pkg-config)))
2492 (native-search-paths
2493 (list (search-path-specification
2494 (variable "LV2_PATH")
2495 (files '("lib/lv2")))))
2496 (home-page "https://elephly.net/lv2/mdapiano.html")
2497 (synopsis "LV2 port of the mda Piano plugin")
2498 (description "An LV2 port of the mda Piano VSTi.")
2499 (license license:gpl3+)))
2501 (define-public lv2-mda-epiano
2502 (package (inherit lv2-mda-piano)
2503 (name "lv2-mda-epiano")
2505 `(#:make-flags (list
2507 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2508 #:tests? #f ; no check target
2509 #:phases (modify-phases %standard-phases (delete 'configure))))
2510 (home-page "https://elephly.net/lv2/mdaepiano.html")
2511 (synopsis "LV2 port of the mda EPiano plugin")
2512 (description "An LV2 port of the mda EPiano VSTi.")))
2521 (url "https://github.com/lvtk/lvtk")
2523 (file-name (git-file-name name version))
2526 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2527 (build-system waf-build-system)
2529 `(#:tests? #f ; no check target
2532 (list (string-append "--boost-includes="
2533 (assoc-ref %build-inputs "boost")
2540 `(("pkg-config" ,pkg-config)))
2541 (home-page "https://github.com/lvtk/lvtk")
2542 (synopsis "C++ libraries for LV2 plugins")
2544 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2545 extensions into easy to use C++ classes. It is the successor of
2547 (license license:gpl3+)))
2549 (define-public openal
2556 "https://openal-soft.org/openal-releases/openal-soft-"
2557 version ".tar.bz2"))
2560 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2561 (build-system cmake-build-system)
2563 `(#:tests? #f ; no check target
2565 (modify-phases %standard-phases
2567 'unpack 'use-full-library-paths
2568 (lambda* (#:key inputs #:allow-other-keys)
2569 (substitute* "alc/backends/pulseaudio.cpp"
2570 (("#define PALIB \"libpulse\\.so\\.0\"")
2571 (string-append "#define PALIB \""
2572 (assoc-ref inputs "pulseaudio")
2573 "/lib/libpulse.so.0"
2575 (substitute* "alc/backends/alsa.cpp"
2576 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2577 (string-append "LoadLib(\""
2578 (assoc-ref inputs "alsa-lib")
2579 "/lib/libasound.so.2"
2583 `(("alsa-lib" ,alsa-lib)
2584 ("pulseaudio" ,pulseaudio)))
2585 (synopsis "3D audio API")
2587 "OpenAL provides capabilities for playing audio in a virtual 3D
2588 environment. Distance attenuation, doppler shift, and directional sound
2589 emitters are among the features handled by the API. More advanced effects,
2590 including air absorption, occlusion, and environmental reverb, are available
2591 through the EFX extension. It also facilitates streaming audio, multi-channel
2592 buffers, and audio capture.")
2593 (home-page "https://openal-soft.org/")
2594 (license license:lgpl2.0+)))
2596 (define-public freealut
2602 ;; Upstream url is unclear, many systems use Fedora, there is also
2603 ;; https://github.com/vancegroup/freealut though the status of it
2604 ;; (official? unofficial?) is not clear.
2606 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2607 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2608 "-" version ".tar.gz"))
2611 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2612 (build-system cmake-build-system)
2614 `(#:tests? #f)) ; no check target
2616 `(("openal" ,openal)))
2617 (synopsis "Free implementation of OpenAL's ALUT standard")
2618 (description "freealut is the OpenAL Utility Toolkit.")
2619 (home-page "https://kcat.strangesoft.net/openal.html")
2620 (license license:lgpl2.0)))
2622 (define-public patchage
2628 (uri (string-append "https://download.drobilla.net/patchage-"
2633 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2634 (build-system waf-build-system)
2636 `(#:tests? #f ; no check target
2637 #:python ,python-2))
2639 `(("alsa-lib" ,alsa-lib)
2645 ("dbus-glib" ,dbus-glib)))
2647 `(("pkg-config" ,pkg-config)))
2648 (home-page "https://drobilla.net/software/patchage/")
2649 (synopsis "Modular patch bay for audio and MIDI systems")
2651 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2653 (license license:gpl3+)))
2655 (define-public pcaudiolib
2659 (home-page "https://github.com/espeak-ng/pcaudiolib")
2662 (uri (git-reference (url home-page) (commit version)))
2663 (file-name (git-file-name name version))
2666 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2667 (build-system gnu-build-system)
2669 `(#:configure-flags '("--disable-static")))
2671 `(("autoconf" ,autoconf)
2672 ("automake" ,automake)
2673 ("libtool" ,libtool)
2674 ("pkg-config" ,pkg-config)
2677 `(("alsa-lib" ,alsa-lib)
2678 ("pulseaudio" ,pulseaudio)))
2679 (synopsis "Portable C audio library")
2681 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2682 different audio devices such as ALSA or PulseAudio.")
2683 (license (list license:gpl3+
2684 ;; The bundled TPCircularBuffer uses a custom license.
2685 (license:non-copyleft
2686 "file://src/TPCircularBuffer/README.markdown")))))
2688 (define-public qjackctl
2694 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2695 version "/qjackctl-" version ".tar.gz"))
2698 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2699 (build-system gnu-build-system)
2701 '(#:tests? #f)) ; no check target
2704 ("alsa-lib" ,alsa-lib)
2706 ("qtx11extras" ,qtx11extras)))
2708 `(("pkg-config" ,pkg-config)
2709 ("qttools" ,qttools)))
2710 (home-page "https://qjackctl.sourceforge.io/")
2711 (synopsis "Jack server control application")
2712 (description "Control a Jack server. Allows you to plug various sources
2713 into various outputs and to start, stop and configure jackd")
2714 (license license:gpl2+)))
2716 (define-public qjackrcd
2723 (url "https://github.com/orouits/qjackrcd")
2724 (commit (string-append "v" version))))
2725 (file-name (git-file-name name version))
2728 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2729 (build-system gnu-build-system)
2732 (modify-phases %standard-phases
2734 (lambda* (#:key outputs #:allow-other-keys)
2736 (string-append "PREFIX="
2737 (assoc-ref outputs "out"))))))))
2739 `(("qtbase" ,qtbase))) ; for qmake
2742 ("libsndfile" ,libsndfile)
2743 ("qtbase" ,qtbase)))
2744 (home-page "https://sourceforge.net/projects/qjackrcd/")
2745 (synopsis "Stereo audio recorder for JACK")
2746 (description "QJackRcd is a simple graphical stereo recorder for JACK
2747 supporting silence processing for automatic pause, file splitting, and
2748 background file post-processing.")
2749 (license license:gpl2+)))
2751 (define-public supercollider
2753 (name "supercollider")
2758 (url "https://github.com/supercollider/supercollider")
2759 (commit (string-append "Version-" version))
2760 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2762 (file-name (git-file-name name version))
2765 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))
2766 (modules '((guix build utils)
2769 ;; The build system doesn't allow us to unbundle the following
2770 ;; libraries. hidapi is also heavily patched and upstream not
2771 ;; actively maintained.
2772 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2773 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2774 (with-directory-excursion "./external_libraries"
2776 delete-file-recursively
2779 (and (eq? (stat:type (stat x)) 'directory)
2780 (not (member (basename x) keep-dirs)))))))
2781 ;; To find the Guix provided ableton-link library.
2782 (substitute* "lang/CMakeLists.txt"
2783 (("include\\(\\.\\./external_libraries/link/\
2784 AbletonLinkConfig\\.cmake\\)")
2785 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2788 (build-system cmake-build-system)
2790 '("out" ;core language
2793 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2794 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2795 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2796 "-DSC_EL=off") ;scel is packaged individually as
2799 (modify-phases %standard-phases
2800 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2801 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2802 ;; The graphical tests also hang without it.
2803 (add-after 'unpack 'set-home-directory
2805 (setenv "HOME" (getcwd))
2807 (add-after 'unpack 'patch-scclass-dir
2808 (lambda* (#:key outputs #:allow-other-keys)
2809 (let* ((out (assoc-ref outputs "out"))
2812 "/share/SuperCollider/SCClassLibrary")))
2813 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2815 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2816 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2817 (string-append "Path(\"" scclass-dir "\")")))
2819 (add-before 'build 'prepare-x
2822 (setenv "DISPLAY" ":0")
2824 (add-before 'install 'install-ide
2825 (lambda* (#:key outputs #:allow-other-keys)
2826 (let* ((out (assoc-ref outputs "out"))
2827 (ide (assoc-ref outputs "ide"))
2828 (scide "editors/sc-ide/scide"))
2830 (string-append ide "/bin"))
2834 `(("ableton-link" ,ableton-link)
2835 ("pkg-config" ,pkg-config)
2836 ("qttools" ,qttools)
2837 ("xorg-server" ,xorg-server-for-tests)))
2840 ("libsndfile" ,libsndfile)
2843 ("readline" ,readline) ;readline support for sclang's CLI
2844 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2845 ("eudev" ,eudev) ;for user interactions with devices
2846 ("avahi" ,avahi) ;zeroconf service discovery support
2849 ("boost-sync" ,boost-sync)
2850 ("yaml-cpp" ,yaml-cpp)
2852 ("qtdeclarative" ,qtdeclarative)
2854 ("qtwebchannel" ,qtwebchannel)
2855 ("qtwebsockets" ,qtwebsockets)))
2856 (propagated-inputs ;to get native-search-path
2857 `(("qtwebengine" ,qtwebengine)))
2858 (home-page "https://github.com/supercollider/supercollider")
2859 (synopsis "Synthesis engine and programming language")
2860 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2861 @code{supernova}) and programming language (@code{sclang}). It can be used
2862 for experimenting with sound synthesis and algorithmic composition.
2864 SuperCollider requires jackd to be installed in your user profile and your
2865 user must be allowed to access the realtime features of the kernel. Search
2866 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2867 using Guix System.")
2868 (license license:gpl2+)))
2876 (uri (string-append "https://download.drobilla.net/raul-"
2877 version ".tar.bz2"))
2880 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2881 (build-system waf-build-system)
2883 `(#:python ,python-2
2884 #:tests? #f)) ; no check target
2889 `(("pkg-config" ,pkg-config)))
2890 (home-page "https://drobilla.net/software/raul/")
2891 (synopsis "Real-time audio utility library")
2893 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2894 aimed at audio/musical applications.")
2895 (license license:gpl2+)))
2897 (define-public raul-devel
2898 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2900 (package (inherit raul)
2902 (version (string-append "0.8.9-" revision "."
2903 (string-take commit 9)))
2907 (url "https://git.drobilla.net/raul.git")
2909 (file-name (string-append name "-" version "-checkout"))
2912 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2914 (define-public resample
2920 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2924 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2925 (build-system gnu-build-system)
2927 `(("autoconf" ,autoconf)
2928 ("automake" ,automake)
2929 ("pkg-config" ,pkg-config)
2930 ("libtool" ,libtool)))
2931 (synopsis "Sampling rate conversion and filter design utilities")
2932 (description "This package contains the @command{resample} and
2933 @command{windowfilter} command line utilities. The @command{resample} command
2934 allows changing the sampling rate of a sound file, while the
2935 @command{windowfilter} command allows to design Finite Impulse Response (FIR)
2936 filters using the so-called @emph{window method}.")
2937 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2938 (license license:lgpl2.1+)))
2940 (define-public rubberband
2947 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2950 (file-name (string-append name "-" version ".tar.bz2"))
2953 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2954 (build-system gnu-build-system)
2956 `(#:tests? #f ; no check target
2958 (modify-phases %standard-phases
2959 (add-after 'unpack 'skip-jni-installation
2960 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2961 ;; which is never built by ‘make all’. Skip it.
2963 (substitute* "Makefile.in"
2964 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2967 `(("ladspa" ,ladspa)
2968 ("libsamplerate" ,libsamplerate)
2971 `(("pkg-config" ,pkg-config)))
2972 (home-page "https://breakfastquay.com/rubberband/")
2973 (synopsis "Audio time-stretching and pitch-shifting library")
2975 "Rubber Band is a library and utility program that permits changing the
2976 tempo and pitch of an audio recording independently of one another.")
2977 (license license:gpl2+)))
2979 (define-public rtmidi
2985 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2986 "/release/rtmidi-" version ".tar.gz"))
2987 (file-name (string-append "rtmidi-" version ".tar.gz"))
2990 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2991 (build-system gnu-build-system)
2994 ("alsa-lib" ,alsa-lib)))
2996 `(("autoconf" ,autoconf)
2997 ("automake" ,automake)
2998 ("libtool" ,libtool)
2999 ("pkg-config" ,pkg-config)))
3000 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3001 (synopsis "Cross-platform MIDI library for C++")
3003 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3004 classes) that provide a common cross-platform API for realtime MIDI
3006 (license license:expat)))
3008 (define-public sratom
3014 (uri (string-append "https://download.drobilla.net/sratom-"
3015 version ".tar.bz2"))
3018 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
3019 (build-system waf-build-system)
3020 (arguments `(#:tests? #f)) ;no check target
3022 ;; In Requires of sratom-0.pc.
3027 `(("pkg-config" ,pkg-config)))
3028 (home-page "https://drobilla.net/software/sratom/")
3029 (synopsis "Library for serialising LV2 atoms to/from RDF")
3031 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3032 the Turtle syntax.")
3033 (license license:isc)))
3041 (uri (string-append "https://download.drobilla.net/suil-"
3042 version ".tar.bz2"))
3045 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
3046 (build-system waf-build-system)
3048 `(#:tests? #f)) ;no check target
3055 `(("pkg-config" ,pkg-config)))
3056 (home-page "https://drobilla.net/software/suil/")
3057 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3059 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3061 Suil makes it possible to load a UI of a toolkit in a host using another
3062 toolkit. The API is designed such that hosts do not need to explicitly
3063 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3064 that toolkit will work in all hosts that use Suil automatically.
3066 Suil currently supports every combination of Gtk, Qt, and X11.")
3067 (license license:isc)))
3069 (define-public timidity++
3075 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3076 "/TiMidity++-" version
3077 "/TiMidity++-" version ".tar.bz2"))
3080 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
3081 (build-system gnu-build-system)
3084 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3088 (string-append "--with-default-path="
3089 (assoc-ref %outputs "out") "/etc/timidity"))
3091 (modify-phases %standard-phases
3092 (add-after 'install 'install-config
3094 (let ((out (string-append (assoc-ref %outputs "out")
3097 (call-with-output-file
3098 (string-append out "/timidity.cfg")
3100 (format port (string-append "source "
3101 (assoc-ref %build-inputs "freepats")
3102 "/share/freepats/freepats.cfg")))))
3105 `(("alsa-lib" ,alsa-lib)
3110 ("libvorbis" ,libvorbis)
3112 ("ncurses" ,ncurses)
3113 ("freepats" ,freepats)))
3115 `(("pkg-config" ,pkg-config)))
3116 (home-page "http://timidity.sourceforge.net/")
3117 (synopsis "Software synthesizer for playing MIDI files")
3119 "TiMidity++ is a software synthesizer. It can play MIDI files by
3120 converting them into PCM waveform data; give it a MIDI data along with digital
3121 instrument data files, then it synthesizes them in real-time, and plays. It
3122 can not only play sounds, but also can save the generated waveforms into hard
3123 disks as various audio file formats.")
3124 (license license:gpl2+)))
3133 "https://code.soundsoftware.ac.uk"
3134 "/attachments/download/1520/vamp-plugin-sdk-"
3138 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3139 (build-system gnu-build-system)
3141 `(#:tests? #f ; no check target
3143 (modify-phases %standard-phases
3144 (add-after 'install 'remove-libvamp-hostsdk.la
3145 (lambda* (#:key outputs #:allow-other-keys)
3146 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3147 (for-each delete-file
3148 (let ((out (assoc-ref outputs "out")))
3149 (list (string-append out "/lib/libvamp-sdk.la")
3150 (string-append out "/lib/libvamp-hostsdk.la"))))
3153 `(("libsndfile" ,libsndfile)))
3155 `(("pkg-config" ,pkg-config)))
3156 (home-page "https://vamp-plugins.org")
3157 (synopsis "Modular and extensible audio processing system")
3159 "Vamp is an audio processing plugin system for plugins that extract
3160 descriptive information from audio data — typically referred to as audio
3161 analysis plugins or audio feature extraction plugins.")
3164 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3166 (define-public libsbsms
3173 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3174 "/libsbsms-" version ".tar.gz"))
3176 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3177 (build-system gnu-build-system)
3178 (native-inputs `(("automake" ,automake)))
3181 ;; Disable the use of SSE unless on x86_64.
3182 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3183 (%current-system))))
3187 (modify-phases %standard-phases
3189 'unpack 'fix-ar-lib-path
3190 (lambda* (#:key inputs #:allow-other-keys)
3191 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3192 (delete-file "ar-lib")
3194 (string-append (assoc-ref inputs "automake") "/share/automake-"
3195 ,(package-version automake) "/ar-lib")
3198 (home-page "http://sbsms.sourceforge.net/")
3199 (synopsis "Library for time stretching and pitch scaling of audio")
3201 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3202 stretching and pitch scaling of audio. This package contains the library.")
3203 ;; There is no explicit declaration of a license, but a COPYING file
3205 (license license:gpl2)))
3207 (define-public wavpack
3215 (url "https://github.com/dbry/WavPack")
3216 (commit "e4e8d191e8dd74cbdbeaef3232c16a7ef517e68d")))
3218 (base32 "1zj8svk6giy1abq3940sz32ygz7zldppxl47852zgn5wfm3l2spx"))
3219 (file-name (git-file-name name version))))
3220 (build-system gnu-build-system)
3223 (list "--disable-static")
3225 (modify-phases %standard-phases
3227 ;; Running ./autogen.sh would cause premature configuration.
3229 (invoke "autoreconf" "-vif")
3232 `(("autoconf" ,autoconf)
3233 ("automake" ,automake)
3234 ("libtool" ,libtool)))
3235 (home-page "http://www.wavpack.com/")
3236 (synopsis "Hybrid lossless audio codec")
3238 "WavPack is an audio compression format with lossless, lossy and hybrid
3239 compression modes. This package contains command-line programs and library to
3240 encode and decode wavpack files.")
3241 (license license:bsd-3)))
3243 (define-public libmodplug
3250 "mirror://sourceforge/modplug-xmms/"
3251 name "/" version "/" name "-" version ".tar.gz"))
3254 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3255 (build-system gnu-build-system)
3256 (home-page "http://modplug-xmms.sourceforge.net/")
3257 (synopsis "Mod file playing library")
3259 "Libmodplug renders mod music files as raw audio data, for playing or
3260 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3261 supported. Optional features include high-quality resampling, bass expansion,
3262 surround and reverb.")
3263 (license license:public-domain)))
3265 (define-public libxmp
3271 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3272 name "-" version ".tar.gz"))
3275 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3276 (build-system gnu-build-system)
3277 (home-page "http://xmp.sourceforge.net/")
3278 (synopsis "Module player library")
3280 "Libxmp is a library that renders module files to PCM data. It supports
3281 over 90 mainstream and obscure module formats including Protracker (MOD),
3282 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3283 (license license:lgpl2.1+)))
3291 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3292 name "-" version ".tar.gz"))
3295 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3296 (build-system gnu-build-system)
3298 `(("pkg-config" ,pkg-config)))
3300 `(("libxmp" ,libxmp)
3301 ("pulseaudio" ,pulseaudio)))
3302 (home-page "http://xmp.sourceforge.net/")
3303 (synopsis "Extended module player")
3305 "Xmp is a portable module player that plays over 90 mainstream and
3306 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3307 Tracker 3 S3M and Impulse Tracker IT files.")
3308 (license license:gpl2+)))
3310 (define-public soundtouch
3318 (url "https://gitlab.com/soundtouch/soundtouch.git")
3320 (file-name (git-file-name name version))
3322 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
3323 (build-system gnu-build-system)
3325 `(("autoconf" ,autoconf)
3326 ("automake" ,automake)
3327 ("libtool" ,libtool)
3329 (home-page "https://www.surina.net/soundtouch/")
3331 "Audio processing library for changing tempo, pitch and playback rate")
3333 "SoundTouch is an audio processing library for changing the tempo, pitch
3334 and playback rates of audio streams or audio files. It is intended for
3335 application developers writing sound processing tools that require tempo/pitch
3336 control functionality, or just for playing around with the sound effects.")
3337 (license license:lgpl2.1+)))
3345 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3346 name "-" version ".tar.bz2"))
3349 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3350 (build-system gnu-build-system)
3353 ;; The upstream asks to identify the distribution to diagnose SoX
3355 '("--with-distro=Guix System Distribution")))
3357 `(("pkg-config" ,pkg-config)))
3359 `(("alsa-lib" ,alsa-lib)
3363 ("libid3tag" ,libid3tag)
3364 ("libltdl" ,libltdl)
3367 ("libvorbis" ,libvorbis)
3368 ("pulseaudio" ,pulseaudio)))
3369 (home-page "http://sox.sourceforge.net")
3370 (synopsis "Sound processing utility")
3372 "SoX (Sound eXchange) is a command line utility that can convert
3373 various formats of computer audio files to other formats. It can also
3374 apply various effects to these sound files, and, as an added bonus, SoX
3375 can play and record audio files.")
3376 ;; sox.c is distributed under GPL, while the files that make up
3377 ;; libsox are licensed under LGPL.
3378 (license (list license:gpl2+ license:lgpl2.1+))))
3388 (string-append "mirror://sourceforge/soxr/soxr-" version
3391 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3392 (build-system cmake-build-system)
3393 (arguments '(#:tests? #f)) ;no 'check' target
3394 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3395 (synopsis "One-dimensional sample-rate conversion library")
3397 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3398 conversion. It may be used, for example, to resample PCM-encoded audio.")
3399 (license license:lgpl2.1+)))
3401 (define-public twolame
3408 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3409 "/twolame-" version ".tar.gz"))
3411 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3412 (build-system gnu-build-system)
3414 `(("libsndfile" ,libsndfile)))
3417 ("which" ,which))) ;used in tests/test.pl
3418 (home-page "http://www.twolame.org/")
3419 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3421 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3422 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3424 (license license:lgpl2.1+)))
3426 (define-public portaudio
3429 (version "190600.20161030")
3434 "http://www.portaudio.com/archives/pa_stable_v"
3435 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3438 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3439 (patches (search-patches "portaudio-audacity-compat.patch"))))
3440 (build-system gnu-build-system)
3442 ;; TODO: Add ASIHPI.
3443 `(("alsa-lib" ,alsa-lib)
3445 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3448 `(("autoconf" ,autoconf)
3449 ("automake" ,automake)
3450 ("libtool" ,libtool)
3451 ("pkg-config" ,pkg-config)))
3453 '(#:tests? #f ;no 'check' target
3454 #:parallel-build? #f ;fails on some systems
3455 #:configure-flags '("--with-pic"
3457 ;; XXX: The following prevents a build error
3458 ;; because of missing depcomp when C++ bindings are
3460 "--disable-dependency-tracking")
3462 (modify-phases %standard-phases
3463 ;; This is needed for linking the static libraries
3464 (add-after 'unpack 'build-only-position-independent-code
3466 (substitute* "configure.in"
3467 (("AC_PROG_LIBTOOL" m)
3468 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3469 (delete-file "configure")
3471 ;; Some headers are not installed by default, but are needed by
3472 ;; packages like Kaldi.
3473 (add-after 'install 'install-missing-headers
3474 (lambda* (#:key outputs #:allow-other-keys)
3475 (install-file "src/common/pa_ringbuffer.h"
3476 (string-append (assoc-ref outputs "out") "/include"))
3478 (home-page "http://www.portaudio.com/")
3479 (synopsis "Audio I/O library")
3481 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3482 to record and/or play sound using a callback function or a blocking read/write
3484 (license license:expat)))
3486 (define-public qsynth
3493 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
3494 "/qsynth-" version ".tar.gz"))
3496 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3497 (build-system gnu-build-system)
3499 `(#:tests? #f)) ; no "check" phase
3501 `(("qttools" ,qttools)
3502 ("pkg-config" ,pkg-config)))
3504 `(("fluidsynth" ,fluidsynth)
3506 ("qtx11extras" ,qtx11extras)))
3507 (home-page "https://qsynth.sourceforge.io")
3508 (synopsis "Graphical user interface for FluidSynth")
3510 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3511 synthesizer written in C++.")
3512 (license license:gpl2+)))
3514 (define-public rsound
3522 (url "https://github.com/Themaister/RSound")
3523 (commit (string-append "v" version))))
3524 (file-name (git-file-name name version))
3526 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3527 (build-system gnu-build-system)
3529 `(("alsa-lib" ,alsa-lib)
3532 ("libsamplerate" ,libsamplerate)
3534 ("portaudio" ,portaudio)
3535 ("pulseaudio" ,pulseaudio)))
3538 (modify-phases %standard-phases
3540 (lambda* (#:key outputs #:allow-other-keys)
3542 (invoke "./configure"
3543 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3544 ;; No 'check' target.
3546 (home-page "https://themaister.net/rsound.html")
3547 (synopsis "Networked audio system")
3549 "RSound allows you to send audio from an application and transfer it
3550 directly to a different computer on your LAN network. It is an audio daemon
3551 with a much different focus than most other audio daemons.")
3552 (license license:gpl3+)))
3554 (define-public xjackfreak
3561 (url "https://github.com/johnhldavis/xjackfreak")
3562 (commit (string-append "v" version))))
3563 (file-name (git-file-name name version))
3566 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3567 (build-system gnu-build-system)
3570 (list (string-append "docdir=" (assoc-ref %outputs "out")
3571 "/share/doc/xjackfreak"))))
3576 ("libxext" ,libxext)))
3578 `(("pkg-config" ,pkg-config)))
3579 (home-page "https://github.com/johnhldavis/xjackfreak")
3580 (synopsis "JACK audio frequency analyzer and display")
3582 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3583 Connection Kit. It can display the FFT of any input, modify it and output the
3585 (license license:gpl3+)))
3587 (define-public zita-convolver
3589 (name "zita-convolver")
3594 "http://kokkinizita.linuxaudio.org"
3595 "/linuxaudio/downloads/zita-convolver-"
3596 version ".tar.bz2"))
3598 ;; Don't optimize for a specific processor architecture.
3600 (substitute* "source/Makefile"
3601 (("^CXXFLAGS \\+= -march=native") ""))
3603 (modules '((guix build utils)))
3606 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3607 (build-system gnu-build-system)
3609 `(#:tests? #f ; no "check" target
3611 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3612 (string-append "SUFFIX="))
3614 (modify-phases %standard-phases
3615 (add-after 'unpack 'patch-makefile-and-enter-directory
3617 (substitute* "source/Makefile"
3618 (("ldconfig") "true")
3619 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3622 (add-after 'install 'install-symlink
3624 (symlink "libzita-convolver.so"
3625 (string-append (assoc-ref %outputs "out")
3626 "/lib/libzita-convolver.so.4"))
3628 ;; no configure script
3629 (delete 'configure))))
3630 (inputs `(("fftwf" ,fftwf)))
3631 (home-page "https://kokkinizita.linuxaudio.org")
3632 (synopsis "Fast, partitioned convolution engine library")
3634 "Zita convolver is a C++ library providing a real-time convolution
3636 (license license:gpl3+)))
3638 (define-public zita-resampler
3640 (name "zita-resampler")
3645 "http://kokkinizita.linuxaudio.org"
3646 "/linuxaudio/downloads/zita-resampler-"
3647 version ".tar.bz2"))
3649 ;; Don't optimize for a specific processor architecture.
3651 (substitute* '("apps/Makefile" "source/Makefile")
3652 (("^CXXFLAGS \\+= -march=native") ""))
3654 (modules '((guix build utils)))
3657 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3658 (build-system gnu-build-system)
3660 `(#:tests? #f ; no "check" target
3662 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3663 (string-append "SUFFIX="))
3665 (modify-phases %standard-phases
3667 'unpack 'patch-makefile-and-enter-directory
3669 (substitute* "source/Makefile"
3670 (("ldconfig") "true")
3671 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3675 'install 'install-symlink
3677 (symlink "libzita-resampler.so"
3678 (string-append (assoc-ref %outputs "out")
3679 "/lib/libzita-resampler.so.1"))
3681 ;; no configure script
3682 (delete 'configure))))
3683 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3684 (synopsis "C++ library for resampling audio signals")
3686 "Libzita-resampler is a C++ library for resampling audio signals. It is
3687 designed to be used within a real-time processing context, to be fast, and to
3688 provide high-quality sample rate conversion.")
3689 (license license:gpl3+)))
3691 (define-public zita-alsa-pcmi
3693 (name "zita-alsa-pcmi")
3698 "http://kokkinizita.linuxaudio.org"
3699 "/linuxaudio/downloads/zita-alsa-pcmi-"
3700 version ".tar.bz2"))
3703 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3704 (build-system gnu-build-system)
3706 `(#:tests? #f ; no "check" target
3708 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3709 (string-append "SUFFIX="))
3711 (modify-phases %standard-phases
3712 (add-after 'unpack 'patch-makefile-and-enter-directory
3714 (substitute* "source/Makefile"
3715 (("ldconfig") "true")
3716 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3719 (add-after 'install 'install-symlink
3721 (symlink "libzita-alsa-pcmi.so"
3722 (string-append (assoc-ref %outputs "out")
3723 "/lib/libzita-alsa-pcmi.so.0"))
3725 ;; no configure script
3726 (delete 'configure))))
3728 `(("alsa-lib" ,alsa-lib)
3730 (home-page "https://kokkinizita.linuxaudio.org")
3731 (synopsis "C++ wrapper around the ALSA API")
3733 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3734 access to ALSA PCM devices, taking care of the many functions required to
3735 open, initialise and use a hw: device in mmap mode, and providing floating
3737 (license license:gpl3+)))
3739 (define-public cuetools
3746 (url "https://github.com/svend/cuetools")
3748 (file-name (git-file-name name version))
3751 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3752 (build-system gnu-build-system)
3753 ;; The source checkout is not bootstrapped.
3755 `(("autoconf" ,autoconf)
3756 ("automake" ,automake)
3759 (synopsis "Cue and toc file parsers and utilities")
3760 (description "Cuetools is a set of programs that are useful for manipulating
3761 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3762 files are a way to represent the layout of a data or audio CD in a
3763 machine-readable ASCII format.")
3764 (home-page "https://github.com/svend/cuetools")
3765 (license license:gpl2+)))
3767 (define-public shntool
3773 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3774 "shntool-" version ".tar.gz"))
3777 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3778 (build-system gnu-build-system)
3779 (synopsis "WAVE audio data processing tool")
3780 (description "shntool is a multi-purpose WAVE data processing and reporting
3781 utility. File formats are abstracted from its core, so it can process any file
3782 that contains WAVE data, compressed or not---provided there exists a format
3783 module to handle that particular file type. It can also generate CUE files, and
3784 use them split WAVE data into multiple files.")
3785 (home-page "http://etree.org/shnutils/shntool/")
3786 ;; 'install-sh' bears the x11 license
3787 (license (list license:gpl2+ license:x11))))
3789 (define-public dcadec
3796 (url "https://github.com/foo86/dcadec")
3797 (commit (string-append "v" version))))
3798 (file-name (git-file-name name version))
3801 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3802 (build-system gnu-build-system)
3804 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3808 ;; Build shared library.
3810 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3811 ;; Set proper runpath.
3812 (string-append "LDFLAGS=-Wl,-rpath="
3813 (assoc-ref %outputs "out")
3816 (modify-phases %standard-phases
3817 ;; No configure script, just a hand-written Makefile.
3818 (delete 'configure))))
3819 (synopsis "DTS Coherent Acoustics decoder")
3820 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3821 with support for HD extensions.")
3822 (home-page "https://github.com/foo86/dcadec")
3823 (license license:lgpl2.1+)))
3825 (define-public bs1770gain
3829 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3833 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3834 version "/bs1770gain-" version ".tar.gz"))
3836 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3837 (modules '((guix build utils)))
3841 (substitute* (find-files "." "\\.[ch]$")
3842 (("^ \\* N..o.*") ""))
3843 (substitute* "libbg/bgx.c"
3844 (("#define BG.* ") "#define BS ")
3845 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3846 (("\"( #|N).*\"") "\"\""))
3847 (substitute* (list "config.h"
3850 (("https?://bs1770gain[^/]*/")
3853 (build-system gnu-build-system)
3854 (inputs `(("ffmpeg" ,ffmpeg)
3856 (synopsis "Tool to adjust loudness of media files")
3858 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3859 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3860 loudness of audio and video files to the same level.")
3861 (license license:gpl2+)))
3863 (define-public filteraudio
3864 (let ((revision "1")
3865 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3867 (name "filteraudio")
3868 (version (string-append "0.0.0-" revision "."
3869 (string-take commit 7)))
3874 (url "https://github.com/irungentoo/filter_audio")
3876 (file-name (string-append name "-" version "-checkout"))
3879 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3880 (build-system gnu-build-system)
3882 '(#:make-flags (list (string-append "PREFIX=" %output)
3884 #:tests? #f ; No tests
3886 (modify-phases %standard-phases
3887 ;; No configure script
3888 (delete 'configure))))
3889 (synopsis "Lightweight audio filtering library")
3890 (description "An easy to use audio filtering library made from webrtc
3891 code, used in @code{libtoxcore}.")
3892 (home-page "https://github.com/irungentoo/filter_audio")
3893 (license license:bsd-3))))
3903 (string-append "http://www.quut.com/" name "/" name
3904 "-" version ".tar.gz"))
3907 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3908 (build-system gnu-build-system)
3910 `(#:test-target "tst"
3911 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3913 (modify-phases %standard-phases
3914 (add-after 'unpack 'add-fpic-ccflag
3916 ;; The -fPIC compiler option is needed when building
3918 (substitute* "Makefile"
3920 (string-append all "CCFLAGS += -fPIC\n")))
3922 (add-before 'install 'pre-install
3924 (let ((out (assoc-ref %outputs "out")))
3925 (mkdir-p (string-append out "/inc"))
3926 (mkdir-p (string-append out "/man"))
3927 (mkdir-p (string-append out "/man/man1"))
3928 (mkdir-p (string-append out "/man/man3"))
3929 (mkdir-p (string-append out "/bin"))
3930 (mkdir-p (string-append out "/lib")))
3932 (add-after 'install 'post-install
3934 (let ((out (assoc-ref %outputs "out")))
3935 (rename-file (string-append out "/inc")
3936 (string-append out "/include"))
3937 (mkdir-p (string-append out "/include/gsm"))
3938 (copy-recursively "inc"
3939 (string-append out "/include/gsm")))
3941 (delete 'configure)))) ; no configure script
3942 (synopsis "GSM 06.10 lossy speech compression library")
3943 (description "This C library provides an encoder and a decoder for the GSM
3944 06.10 RPE-LTP lossy speech compression algorithm.")
3945 (home-page "http://quut.com/gsm/")
3946 (license (license:non-copyleft "file://COPYRIGHT"))))
3948 (define-public python-pyalsaaudio
3950 (name "python-pyalsaaudio")
3954 (uri (pypi-uri "pyalsaaudio" version))
3957 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3958 (build-system python-build-system)
3960 `(#:tests? #f)) ; tests require access to ALSA devices.
3962 `(("alsa-lib" ,alsa-lib)))
3963 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3964 (synopsis "ALSA wrappers for Python")
3966 "This package contains wrappers for accessing the ALSA API from Python.
3967 It is currently fairly complete for PCM devices, and has some support for
3969 (license license:psfl)))
3971 (define-public python2-pyalsaaudio
3972 (package-with-python2 python-pyalsaaudio))
3974 (define-public bluez-alsa
3979 ;; The tarballs are mere snapshots and don't contain a
3980 ;; bootstrapped build system.
3983 (url "https://github.com/Arkq/bluez-alsa")
3984 (commit (string-append "v" version))))
3985 (file-name (git-file-name name version))
3988 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3989 (build-system gnu-build-system)
3992 (list (string-append "--with-alsaplugindir="
3993 (assoc-ref %outputs "out")
3995 (string-append "--with-dbusconfdir="
3996 (assoc-ref %outputs "out")
3997 "/etc/dbus-1/system.d"))))
3999 `(("autoconf" ,autoconf)
4000 ("automake" ,automake)
4001 ("libtool" ,libtool)
4002 ("pkg-config" ,pkg-config)))
4004 `(("alsa-lib" ,alsa-lib)
4009 ("ncurses" ,ncurses)
4012 (home-page "https://github.com/Arkq/bluez-alsa")
4013 (synopsis "Bluetooth ALSA backend")
4014 (description "This project is a rebirth of a direct integration between
4015 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
4016 in favor of 3rd party audio applications. From now on, Bluez acts as a
4017 middleware between an audio application, which implements Bluetooth audio
4018 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4019 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4020 capabilities) can be connected. In order to access the audio stream, one has
4021 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4022 on the ALSA software PCM plugin.")
4023 (license license:expat)))
4031 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4032 "snd-" version ".tar.gz"))
4035 "1kd422krz8ln4m8g3p14wfplcq8lgpzly9297rpbvyc94dc6sdwj"))))
4036 (build-system glib-or-gtk-build-system)
4038 `(#:tests? #f ; no tests
4039 #:out-of-source? #f ; for the 'install-doc' phase
4041 (let* ((out (assoc-ref %outputs "out"))
4042 (docdir (string-append out "/share/doc/"
4043 ,name "-" ,version)))
4044 (list "--with-alsa" "--with-jack" "--with-gmp"
4045 (string-append "--with-doc-dir=" docdir)))
4047 (modify-phases %standard-phases
4048 (add-after 'install 'install-doc
4049 (lambda* (#:key outputs #:allow-other-keys)
4050 (let* ((out (assoc-ref outputs "out"))
4051 (doc (string-append out "/share/doc/"
4052 ,name "-" ,version)))
4055 (install-file f doc))
4056 (find-files "." "\\.html$"))
4057 (copy-recursively "pix" (string-append doc "/pix"))
4060 `(("pkg-config" ,pkg-config)))
4062 `(("alsa-lib" ,alsa-lib)
4069 ("libsamplerate" ,libsamplerate)
4074 ("timidity++" ,timidity++)
4075 ("vorbis-tools" ,vorbis-tools)
4076 ("wavpack" ,wavpack)))
4077 (synopsis "Sound editor")
4078 (home-page "https://ccrma.stanford.edu/software/snd/")
4080 "Snd is a sound editor modelled loosely after Emacs. It can be
4081 customized and extended using either the s7 Scheme implementation (included in
4082 the Snd sources), Ruby, or Forth.")
4083 (license (license:non-copyleft "file://COPYING"))))
4085 (define-public noise-repellent
4087 (name "noise-repellent")
4092 (url "https://github.com/lucianodato/noise-repellent")
4094 (file-name (string-append name "-" version "-checkout"))
4097 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4098 (build-system meson-build-system)
4101 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4107 `(("pkg-config" ,pkg-config)))
4108 (home-page "https://github.com/lucianodato/noise-repellent")
4109 (synopsis "LV2 plugin for broadband noise reduction")
4110 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4111 the following features:
4114 @item Spectral gating and spectral subtraction suppression rule
4115 @item Adaptive and manual noise thresholds estimation
4116 @item Adjustable noise floor
4117 @item Adjustable offset of thresholds to perform over-subtraction
4118 @item Time smoothing and a masking estimation to reduce artifacts
4119 @item Basic onset detector to avoid transients suppression
4120 @item Whitening of the noise floor to mask artifacts and to recover higher
4122 @item Option to listen to the residual signal
4124 @item Noise profile saved with the session
4127 (license license:lgpl3+)))
4129 (define-public cli-visualizer
4131 (name "cli-visualizer")
4137 (url "https://github.com/dpayne/cli-visualizer")
4138 (commit (string-append "v" version))))
4139 (file-name (git-file-name name version))
4141 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4142 (build-system cmake-build-system)
4144 ;; TODO: Try using the latest googletest for versions > 1.8.
4145 `( ;; ("googletest" ,googletest-1.8)
4149 ("ncurses" ,ncurses)
4150 ("pulseaudio" ,pulseaudio)))
4153 ;; XXX Enable tests after patching them to use the system googletest.
4154 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4156 (modify-phases %standard-phases
4157 (add-after 'install 'install-examples
4158 (lambda* (#:key outputs #:allow-other-keys)
4159 (with-directory-excursion "../source/examples"
4160 (delete-file "mac_osx_config")
4161 (for-each (lambda (file)
4164 (assoc-ref outputs "out")
4168 (home-page "https://github.com/dpayne/cli-visualizer/")
4169 (synopsis "Command-line audio visualizer")
4170 (description "@code{cli-visualizer} displays fast-Fourier
4171 transforms (FFTs) of the sound being played, as well as other graphical
4173 (license license:expat)))
4182 (url "https://github.com/karlstav/cava")
4184 (file-name (git-file-name name version))
4187 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
4188 (build-system gnu-build-system)
4190 `(("autoconf" ,autoconf)
4191 ("automake" ,automake)
4192 ("libtool" ,libtool)))
4195 ("ncurses" ,ncurses)
4196 ("pulseaudio" ,pulseaudio)))
4199 (list (string-append "PREFIX=" %output)
4200 (string-append "FONT_DIR=" %output "/share/consolefonts"))
4202 (let ((lib (string-append %output "/lib")))
4203 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
4205 (modify-phases %standard-phases
4207 (lambda* (#:key outputs #:allow-other-keys)
4208 (setenv "HOME" (getcwd))
4209 (invoke "sh" "autogen.sh")))
4210 (add-before 'build 'make-cava-ldflags
4211 (lambda* (#:key outputs #:allow-other-keys)
4212 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
4214 (add-after 'install 'data
4215 (lambda* (#:key outputs #:allow-other-keys)
4216 (for-each (lambda (file)
4218 (string-append (assoc-ref outputs "out")
4219 "/share/doc/examples")))
4220 (find-files "example_files"))
4222 (home-page "https://karlstav.github.io/cava/")
4223 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4224 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4225 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4226 (license license:expat)))
4228 (define-public fluid-3
4229 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4236 ;; Only one file is required, but the release bundles the whole
4237 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4238 ;; directly links the soundfont release to the github file download.
4239 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4240 commit "/share/sound/FluidR3Mono_GM.sf3"))
4241 (file-name (string-append name "-" version ".sf3"))
4244 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4245 (build-system trivial-build-system)
4247 `(#:modules ((guix build utils))
4250 (use-modules (guix build utils))
4251 (let ((file (assoc-ref %build-inputs "source"))
4252 (out (string-append %output "/share/soundfonts")))
4254 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4256 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4257 (synopsis "Pro-quality GM soundfont")
4258 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4259 (license license:expat))))
4261 (define-public libfdk
4269 (url "https://github.com/mstorsjo/fdk-aac")
4270 (commit (string-append "v" version))))
4271 (file-name (git-file-name name version))
4274 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4275 (build-system gnu-build-system)
4277 `(("autoconf" ,autoconf)
4278 ("automake" ,automake)
4279 ("libtool" ,libtool)))
4280 (home-page "https://github.com/mstorsjo/fdk-aac")
4281 (synopsis "Fraunhofer FDK AAC library")
4282 (description "FDK is a library for encoding and decoding Advanced Audio
4283 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4284 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4285 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4286 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4287 library supports sample rates up to 96 kHz and up to eight channels (7.1
4289 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4290 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4292 (define-public libopenshot-audio
4294 (name "libopenshot-audio")
4299 (url "https://github.com/OpenShot/libopenshot-audio")
4300 (commit (string-append "v" version))))
4301 (file-name (git-file-name name version))
4304 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
4305 (build-system cmake-build-system)
4307 `(("alsa-lib" ,alsa-lib)
4308 ;; The following are for JUCE GUI components:
4310 ("freetype" ,freetype)
4311 ("libxrandr" ,libxrandr)
4312 ("libxinerama" ,libxinerama)
4313 ("libxcursor" ,libxcursor)))
4315 `(#:tests? #f ;there are no tests
4317 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4318 (assoc-ref %build-inputs "freetype")
4319 "/include/freetype2"))))
4320 (home-page "https://openshot.org")
4321 (synopsis "Audio editing and playback for OpenShot")
4322 (description "OpenShot Audio Library (libopenshot-audio) allows
4323 high-quality editing and playback of audio, and is based on the JUCE
4325 (license license:lgpl3+)))
4327 (define-public faudio
4335 (url "https://github.com/FNA-XNA/FAudio")
4337 (file-name (git-file-name name version))
4339 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
4341 '(#:tests? #f ; No tests.
4342 #:configure-flags '("-DFFMPEG=ON")))
4343 (build-system cmake-build-system)
4344 (native-inputs `(("pkg-config" ,pkg-config)))
4345 (inputs `(("ffmpeg" ,ffmpeg)
4347 (home-page "https://github.com/FNA-XNA/FAudio")
4348 (synopsis "XAudio reimplementation")
4349 (description "FAudio is an XAudio reimplementation that focuses solely on
4350 developing fully accurate DirectX Audio runtime libraries.")
4351 (license license:zlib)))
4353 (define-public gnaural
4356 (version "20110606")
4360 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4364 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4365 (build-system gnu-build-system)
4367 `(("alsa-lib" ,alsa-lib)
4369 ("libsndfile" ,libsndfile)
4370 ("portaudio" ,portaudio)))
4372 `(("pkg-config" ,pkg-config)))
4373 (home-page "http://gnaural.sourceforge.net/")
4374 (synopsis "Binaural beat synthesizer")
4375 (description "Gnaural is a programmable auditory binaural beat synthesizer
4376 intended to be used for brainwave entrainment. Gnaural supports creation of
4377 binaural beat tracks of different frequencies and exporting of tracks into
4378 different audio formats. Gnaural can also be linked over the internet with
4379 other Gnaural instances, allowing synchronous sessions between many users.")
4380 (license license:gpl2+)))
4382 (define-public darkice
4388 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4389 "download/v" version "/darkice-"
4393 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4394 (build-system gnu-build-system)
4395 (native-inputs `(("pkg-config" ,pkg-config)))
4396 (inputs `(("lame" ,lame)
4397 ("libvorbis" ,libvorbis)
4399 ("twolame" ,twolame)
4400 ("alsa-lib" ,alsa-lib)
4401 ("pulseaudio" ,pulseaudio)
4403 ("libsamplerate" ,libsamplerate)))
4406 (list (string-append "--with-lame-prefix="
4407 (assoc-ref %build-inputs "lame")))))
4408 (home-page "http://www.darkice.org/")
4409 (synopsis "Live audio streamer")
4410 (description "DarkIce is a live audio streamer. It takes audio input from
4411 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4412 stream to one or more IceCast and/or ShoutCast servers.")
4413 (license license:gpl3+)))
4415 (define-public libltc
4423 (string-append "https://github.com/x42/libltc/releases/download/v"
4424 version "/libltc-" version ".tar.gz"))
4427 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4428 (build-system gnu-build-system)
4430 `(#:parallel-tests? #f)) ;tests fail otherwise
4432 `(("doxygen" ,doxygen)
4433 ("pkg-config" ,pkg-config)))
4434 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4435 (description "Libltc is a POSIX-C Library for handling
4436 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4437 (home-page "https://x42.github.io/libltc/")
4438 (license license:lgpl3+)))
4440 (define-public ttaenc
4447 (uri (string-append "mirror://sourceforge/tta/"
4449 "/ttaenc-" version "-src.tgz"))
4452 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4453 (build-system gnu-build-system)
4455 `(#:tests? #f ;no tests
4457 (list (string-append "CC=" ,(cc-for-target))
4458 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4460 (modify-phases %standard-phases
4461 (delete 'configure) ; no configure
4462 (add-before 'install 'make-bindir
4463 (lambda* (#:key outputs #:allow-other-keys)
4464 (let* ((out (assoc-ref outputs "out")))
4465 (mkdir-p (string-append out "/bin"))
4467 (synopsis "TTA lossless audio encoder")
4469 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4470 data of the Wav audio files. Being lossless means that no data-
4471 quality is lost in the compression - when uncompressed, the data will
4472 be identical to the original. The compression ratios of TTA depend on
4473 the type of music file being compressed, but the compression size
4474 will generally range between 30% - 70% of the original. TTA format
4475 supports both of ID3v1/v2 and APEv2 tags.")
4476 (home-page "http://tausoft.org/")
4477 (license license:gpl2+)))
4479 (define-public redkite
4487 (url "https://gitlab.com/geontime/redkite.git")
4488 (commit (string-append "v" version))))
4489 (file-name (git-file-name name version))
4491 (base32 "17kv2jc4jvn3sdicz3sf8dnf25wbvv7ijzkr0mm0sbrrjz6vrwz0"))))
4492 (build-system cmake-build-system)
4494 `(#:tests? #f)) ;no tests included
4496 `(("cairo" ,cairo)))
4498 `(("pkg-config", pkg-config)))
4499 (synopsis "Small GUI toolkit")
4500 (description "Redkite is a small GUI toolkit developed in C++17 and
4501 inspired from other well known GUI toolkits such as Qt and GTK. It is
4502 minimal on purpose and is intended to be statically linked to applications,
4503 therefore satisfying any requirements they may have to be self contained,
4504 as is the case with audio plugins.")
4505 (home-page "https://gitlab.com/geontime/redkite")
4506 (license license:gpl3+)))
4508 (define-public carla
4517 (url "https://github.com/falkTX/Carla")
4518 (commit (string-append "v" version))))
4519 (file-name (git-file-name name version))
4522 "0c3y4a6cgi4bv1mg57i3qn5ia6pqjqlaylvkapj6bmpsw71ig22g"))))
4523 (build-system gnu-build-system)
4525 `(#:tests? #f ; no "check" target
4527 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4529 (modify-phases %standard-phases
4530 (delete 'configure) ; no configure script
4531 (add-before 'build 'set-CC-variable-and-show-features
4534 (invoke "make" "features")))
4535 (add-after 'install 'make-carla-executable
4536 (lambda* (#:key outputs #:allow-other-keys)
4537 (let ((out (assoc-ref outputs "out")))
4538 (chmod (string-append out "/share/carla/carla") #o555)
4540 (add-after 'install 'wrap-executables
4541 (lambda* (#:key outputs #:allow-other-keys)
4542 (let ((out (assoc-ref outputs "out")))
4543 (wrap-script (string-append out "/bin/carla")
4544 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4547 `(("alsa-lib" ,alsa-lib)
4549 ("fluidsynth" ,fluidsynth)
4552 ("libsndfile" ,libsndfile)
4553 ("gtk2" ,gtk+-2) ;needed for bridging GTK2 plugins in GTK3 hosts
4555 ("python-pyliblo" ,python-pyliblo)
4556 ("python-pyqt" ,python-pyqt)
4557 ("python-rdflib" ,python-rdflib)
4558 ;; python-pyqt shows the following error without python-wrapper:
4559 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4560 ;; (ModuleNotFoundError: No module named 'PyQt5')
4561 ("python-wrapper" ,python-wrapper)
4566 ;; For WRAP-SCRIPT above.
4567 ("guile" ,guile-2.2)))
4569 `(("pkg-config" ,pkg-config)))
4570 (home-page "https://kx.studio/Applications:Carla")
4571 (synopsis "Audio plugin host")
4572 (description "Carla is a modular audio plugin host, with features like
4573 transport control, automation of parameters via MIDI CC and remote control
4574 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4575 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4576 default and preferred audio driver but also supports native drivers like ALSA.")
4577 (license license:gpl2+)))
4579 (define-public ecasound
4585 (uri (string-append "https://nosignal.fi/download/ecasound-"
4588 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4589 (build-system gnu-build-system)
4590 (native-inputs `(("pkg-config" ,pkg-config)))
4591 ;; It would be nice to add mikmod to inputs if that gets packaged
4593 (inputs `(("alsa-lib" ,alsa-lib)
4597 ("vorbis-tools" ,vorbis-tools)
4600 ("timidity++" ,timidity++)
4601 ("libsndfile" ,libsndfile)
4602 ("libsamplerate" ,libsamplerate)
4603 ("ncurses" ,ncurses)
4606 (home-page "https://nosignal.fi/ecasound/index.php")
4607 (synopsis "Multitrack audio processing")
4608 (description "Ecasound is a software package designed for multitrack audio
4609 processing. It can be used for simple tasks like audio playback, recording and
4610 format conversions, as well as for multitrack effect processing, mixing,
4611 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4612 outputs and effect algorithms. Effects and audio objects can be combined in
4613 various ways, and their parameters can be controlled by operator objects like
4614 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4616 ;; As an exception to the above, the C, C++ and python implementations
4617 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4618 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4619 ;; that are not licensed under GPL.
4620 (license (list license:gpl2 license:lgpl2.1))))
4622 (define-public libaudec
4630 (url "https://git.zrythm.org/git/libaudec")
4631 (commit (string-append "v" version))))
4632 (file-name (git-file-name name version))
4635 "04mpmfmqc43asw0m3zxhb6jj4qms7x4jw7mx4xb1d3lh16xllniz"))))
4636 (build-system meson-build-system)
4638 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4640 `(("libsamplerate" ,libsamplerate)
4641 ("libsndfile" ,libsndfile)
4642 ("ffmpeg" ,ffmpeg)))
4644 `(("pkg-config", pkg-config)))
4645 (synopsis "Library for reading and resampling audio files")
4646 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4647 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4648 @code{audio_decoder} code.")
4649 (home-page "https://git.zrythm.org/cgit/libaudec")
4650 (license license:agpl3+)))
4652 (define-public lv2lint
4660 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4662 (file-name (git-file-name name version))
4665 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
4666 (build-system meson-build-system)
4669 `("-Delf-tests=true" ; for checking symbol visibility
4670 "-Donline-tests=true"))) ; for checking URI existence
4676 `(("pkg-config", pkg-config)))
4677 (synopsis "LV2 plugin lint tool")
4678 (description "lv2lint is an LV2 lint-like tool that checks whether a
4679 given plugin and its UI(s) match up with the provided metadata and adhere
4680 to well-known best practices.")
4681 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4682 (license license:artistic2.0)))
4684 (define-public lv2toweb
4692 (url "https://github.com/x42/lv2toweb")
4693 (commit (string-append "v" version))))
4694 (file-name (git-file-name name version))
4697 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4698 (build-system gnu-build-system)
4700 `(#:tests? #f ; no "check" target
4701 #:make-flags (list "CC=gcc"
4702 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4704 (modify-phases %standard-phases
4705 (delete 'configure))))
4710 `(("help2man", help2man)
4711 ("pkg-config", pkg-config)))
4712 (synopsis "Documentation generator for LV2 plugins")
4714 "lv2toweb allows the user to create an xhtml page with information
4715 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4716 with the provided metadata and adhere to well-known best practices.")
4717 (home-page "https://github.com/x42/lv2toweb")
4718 (license (list license:isc license:gpl2))))
4720 (define-public ztoolkit
4728 (url "https://git.zrythm.org/git/ztoolkit")
4729 (commit (string-append "v" version))))
4730 (file-name (git-file-name name version))
4733 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4734 (build-system meson-build-system)
4737 ("libx11" ,libx11)))
4739 `(("pkg-config" ,pkg-config)))
4740 (synopsis "GUI toolkit for LV2 plugins")
4741 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4742 inspired by GTK. It handles events and low level drawing on behalf of
4743 the user and provides a high-level API for managing the UI and custom
4744 widgets. ZToolkit is written in C and was created to be used for building
4745 audio plugin UIs, where the dependencies often need to be kept to a
4747 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4748 (license license:agpl3+)))
4750 (define-public libinstpatch
4752 (name "libinstpatch")
4758 (url "https://github.com/swami/libinstpatch")
4759 (commit (string-append "v" version))))
4760 (file-name (git-file-name name version))
4762 (base32 "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb"))))
4763 (build-system cmake-build-system)
4765 `(#:tests? #f)) ;there are no tests
4767 `(("glib:bin" ,glib "bin")
4768 ("pkg-config" ,pkg-config)))
4771 ("libsndfile" ,libsndfile)))
4772 (home-page "http://www.swamiproject.org/")
4773 (synopsis "Instrument file software library")
4775 "libInstPatch is a library for processing digital sample based MIDI
4776 instrument \"patch\" files. The types of files libInstPatch supports are used
4777 for creating instrument sounds for wavetable synthesis. libInstPatch provides
4778 an object framework (based on GObject) to load patch files, which can then be
4779 edited, converted, compressed and saved.")
4780 (license license:lgpl2.1)))
4782 (define-public ztoolkit-rsvg
4785 (name "ztoolkit-rsvg")
4787 `(#:configure-flags `("-Denable_rsvg=true")))
4789 `(("librsvg" ,librsvg)
4790 ,@(package-inputs ztoolkit)))
4791 (synopsis "ZToolkit with SVG support")))
4793 (define-public codec2
4801 (url "https://github.com/drowe67/codec2")
4802 (commit (string-append "v" version))))
4803 (file-name (git-file-name name version))
4805 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4806 (build-system cmake-build-system)
4810 ("valgrind" ,valgrind)))
4812 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4814 (modify-phases %standard-phases
4815 (add-before 'check 'set-test-environment
4817 (setenv "HOME" "/tmp")
4819 (synopsis "Speech codec")
4821 "Codec 2 is a speech codec designed for communications quality speech
4822 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4824 (home-page "https://www.rowetel.com/?page_id=452")
4825 (license license:lgpl2.1)))
4827 (define-public ableton-link
4829 (name "ableton-link")
4834 (url "https://github.com/Ableton/link")
4835 (commit (string-append "Link-" version))))
4836 (file-name (git-file-name name version))
4839 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4840 (modules '((guix build utils)))
4842 (search-patches "ableton-link-system-libraries-debian.patch"))
4845 ;; Tests assume that CMake's "build" directory is a
4846 ;; sub-directory of the source tree, so we fix it.
4847 (substitute* "ci/run-tests.py"
4848 (("root_dir,") "root_dir, os.pardir,"))
4849 ;; Unbundle dependencies.
4850 (delete-file-recursively "third_party")
4851 (delete-file-recursively "modules")
4853 (build-system cmake-build-system)
4855 `(("catch" ,catch-framework)
4856 ("python" ,python) ;for running tests
4857 ("portaudio" ,portaudio) ;for portaudio examples
4858 ("qtbase" ,qtbase) ;for Qt examples
4859 ("qtdeclarative" ,qtdeclarative)
4860 ("qttools" ,qttools)))
4862 `(("jack" ,jack-1) ;for JACK examples
4863 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4865 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4866 ;; contains '#include <asio.hpp>'.
4870 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4871 "-DLINK_BUILD_JACK=ON")
4873 (modify-phases %standard-phases
4875 (lambda* (#:key inputs #:allow-other-keys)
4876 (let* ((python (string-append (assoc-ref inputs "python")
4878 (run-tests (string-append "../ableton-link-"
4880 "-checkout/ci/run-tests.py")))
4881 (invoke python run-tests "--target" "LinkCoreTest")
4882 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
4883 (add-before 'install 'patch-cmake
4884 (lambda* (#:key inputs #:allow-other-keys)
4885 (let* ((source (string-append "../ableton-link-"
4888 (substitute* (string-append source
4889 "cmake_include/AsioStandaloneConfig.cmake")
4890 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
4891 "modules/asio-standalone/asio/include"))
4892 (string-append (assoc-ref inputs "asio")
4894 (substitute* (string-append source "AbletonLinkConfig.cmake")
4895 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
4896 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
4897 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
4898 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
4901 (lambda* (#:key outputs #:allow-other-keys)
4902 (let* ((out (assoc-ref outputs "out"))
4903 (bin (string-append out "/bin"))
4904 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
4905 (source (string-append "../ableton-link-" ,version "-checkout")))
4906 (for-each (lambda (test-file)
4907 (delete-file test-file))
4908 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
4909 (copy-recursively "bin" bin)
4910 (copy-recursively (string-append source "/include/ableton")
4911 (string-append out "/include/ableton"))
4912 (install-file (string-append source "/AbletonLinkConfig.cmake")
4914 (install-file (string-append source
4915 "/cmake_include/AsioStandaloneConfig.cmake")
4916 (string-append lib-cmake "/cmake_include"))
4918 (home-page "https://github.com/Ableton/link")
4919 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
4921 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
4922 across multiple applications running on one or more devices. Applications on devices
4923 connected to a local network discover each other automatically and form a musical
4924 session in which each participant can perform independently: anyone can start or stop
4925 while still staying in time.")
4926 (license license:gpl2+)))