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, 2020 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>
36 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
38 ;;; This file is part of GNU Guix.
40 ;;; GNU Guix is free software; you can redistribute it and/or modify it
41 ;;; under the terms of the GNU General Public License as published by
42 ;;; the Free Software Foundation; either version 3 of the License, or (at
43 ;;; your option) any later version.
45 ;;; GNU Guix is distributed in the hope that it will be useful, but
46 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
47 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 ;;; GNU General Public License for more details.
50 ;;; You should have received a copy of the GNU General Public License
51 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
53 (define-module (gnu packages audio)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages algebra)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages avahi)
58 #:use-module (gnu packages backup)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages bison)
61 #:use-module (gnu packages boost)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages dbm)
66 #:use-module (gnu packages documentation)
67 #:use-module (gnu packages elf)
68 #:use-module (gnu packages emacs)
69 #:use-module (gnu packages file)
70 #:use-module (gnu packages flex)
71 #:use-module (gnu packages fltk)
72 #:use-module (gnu packages fontutils)
73 #:use-module (gnu packages gcc)
74 #:use-module (gnu packages gettext)
75 #:use-module (gnu packages gl)
76 #:use-module (gnu packages glib)
77 #:use-module (gnu packages gnome)
78 #:use-module (gnu packages gnunet) ; libmicrohttpd
79 #:use-module (gnu packages gperf)
80 #:use-module (gnu packages gtk)
81 #:use-module (gnu packages guile)
82 #:use-module (gnu packages icu4c)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages libbsd)
85 #:use-module (gnu packages libusb)
86 #:use-module (gnu packages linux)
87 #:use-module (gnu packages llvm)
88 #:use-module (gnu packages man)
89 #:use-module (gnu packages maths)
90 #:use-module (gnu packages mp3) ;taglib
91 #:use-module (gnu packages multiprecision)
92 #:use-module (gnu packages music)
93 #:use-module (gnu packages ncurses)
94 #:use-module (gnu packages networking)
95 #:use-module (gnu packages onc-rpc)
96 #:use-module (gnu packages perl)
97 #:use-module (gnu packages pkg-config)
98 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages python-xyz)
101 #:use-module (gnu packages qt)
102 #:use-module (gnu packages rdf)
103 #:use-module (gnu packages readline)
104 #:use-module (gnu packages sdl)
105 #:use-module (gnu packages serialization)
106 #:use-module (gnu packages telephony)
107 #:use-module (gnu packages linphone)
108 #:use-module (gnu packages tls)
109 #:use-module (gnu packages valgrind)
110 #:use-module (gnu packages video)
111 #:use-module (gnu packages vim) ;xxd
112 #:use-module (gnu packages web)
113 #:use-module (gnu packages webkit)
114 #:use-module (gnu packages wxwidgets)
115 #:use-module (gnu packages xiph)
116 #:use-module (gnu packages xml)
117 #:use-module (gnu packages xorg)
118 #:use-module (guix build-system cmake)
119 #:use-module (guix build-system copy)
120 #:use-module (guix build-system glib-or-gtk)
121 #:use-module (guix build-system gnu)
122 #:use-module (guix build-system meson)
123 #:use-module (guix build-system python)
124 #:use-module (guix build-system trivial)
125 #:use-module (guix build-system waf)
126 #:use-module (guix download)
127 #:use-module (guix git-download)
128 #:use-module ((guix licenses) #:prefix license:)
129 #:use-module (guix packages)
130 #:use-module (guix utils)
131 #:use-module (srfi srfi-1)
132 #:use-module (srfi srfi-26))
134 (define-public opensles
143 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry")
144 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
145 (file-name (git-file-name name version))
147 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
149 (search-patches "opensles-add-license-file.patch"))))
150 (build-system copy-build-system)
153 (modify-phases %standard-phases
154 (add-after 'install 'clean
155 (lambda* (#:key outputs #:allow-other-keys)
156 (let* ((out (assoc-ref outputs "out")))
157 (mkdir-p (string-append out "/etc"))
158 (mkdir-p (string-append out "/include"))
159 (mkdir-p (string-append out "/share"))
161 (string-append out "/api/1.1/OpenSLES_IID.c")
162 (string-append out "/etc/OpenSLES_IID.c"))
164 (string-append out "/api/1.1/OpenSLES.h")
165 (string-append out "/include/OpenSLES.h"))
167 (string-append out "/api/1.1/OpenSLES_Platform.h")
168 (string-append out "/include/OpenSLES_Platform.h"))
170 (string-append out "/api/1.1/README.txt")
171 (string-append out "/share/README.txt"))
173 (string-append out "/LICENSE.txt")
174 (string-append out "/share/LICENSE.txt"))
175 (for-each delete-file-recursively
177 (string-append out "/api")
178 (string-append out "/specs")))
179 (for-each delete-file
181 (string-append out "/CODE_OF_CONDUCT.md")
182 (string-append out "/index.php")
183 (string-append out "/README.md"))))
185 (synopsis "Embedded Audio Acceleration")
186 (description "OpenSLES is a royalty-free, cross-platform,
187 hardware-accelerated audio API tuned for embedded systems. It provides a
188 standardized, high-performance, low-latency method to access audio
189 functionality for developers of native applications on embedded mobile
190 multimedia devices, enabling straightforward cross-platform deployment of
191 hardware and software audio capabilities, reducing implementation effort, and
192 promoting the market for advanced audio.")
193 (home-page "https://www.khronos.org/opensles/")
194 (license (license:non-copyleft "file:///LICENSE.txt"))))
196 (define-public wildmidi
205 (url "https://github.com/Mindwerks/wildmidi")
206 (commit (string-append name "-" version))))
207 (file-name (git-file-name name version))
209 (base32 "01f4a9c5xlap5a4pkfnlgkzk5pjlk43zkq6fnw615ghya04g6hrl"))))
210 (build-system cmake-build-system)
212 `(#:tests? #f ; No target
217 "-DWANT_OPENAL=ON")))
221 (synopsis "Software Synthesizer")
222 (description "WildMIDI is a simple software midi player which has a core
223 softsynth library that can be use with other applications.")
224 (home-page "https://www.mindwerks.net/projects/wildmidi/")
232 (define-public webrtc-audio-processing
234 (name "webrtc-audio-processing")
240 (string-append "http://freedesktop.org/software/pulseaudio/"
241 name "/" name "-" version ".tar.xz"))
243 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
244 (build-system gnu-build-system)
245 (synopsis "WebRTC's Audio Processing Library")
246 (description "WebRTC-Audio-Processing library based on Google's
247 implementation of WebRTC.")
249 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
250 (license (license:non-copyleft "file:///COPYING"))))
252 (define-public vo-aacenc
260 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
261 name "/" name "-" version ".tar.gz"))
263 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
264 (build-system gnu-build-system)
265 (synopsis "VisualOn AAC Encoder")
266 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
267 Coding (AAC) encoder.")
268 (home-page "https://sourceforge.net/projects/opencore-amr/")
269 (license license:asl2.0)))
271 (define-public tinyalsa
280 (url "https://github.com/tinyalsa/tinyalsa")
282 (file-name (git-file-name name version))
284 (base32 "0ajyvml5bnzvhiyyrn42gqwgg23ssxkfh09rvsnywhzxhd0xai4h"))))
285 (build-system gnu-build-system)
287 `(#:tests? #f ; No target
289 (modify-phases %standard-phases
293 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
294 (synopsis "ALSA interfacing library")
295 (description "TinyALSA is a small library to interface with ALSA in the
297 (home-page "https://github.com/tinyalsa/tinyalsa")
298 (license (license:non-copyleft "file:///NOTICE"))))
300 (define-public libopenmpt
308 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
309 "libopenmpt-" version "+release.autotools.tar.gz"))
311 (base32 "1f155yf5v57dwhzb7z0kh67lckr3yq4x8040dm54qgbxw582la77"))))
312 (build-system gnu-build-system)
315 (list (string-append "--docdir=" (assoc-ref %outputs "out")
316 "/share/doc/" ,name "-" ,version))
318 (modify-phases %standard-phases
319 (add-after 'install 'delete-static-libraries
320 (lambda* (#:key outputs #:allow-other-keys)
321 (let* ((out (assoc-ref outputs "out"))
322 (lib (string-append out "/lib")))
323 (for-each delete-file (find-files lib "\\.a$"))
326 `(("doxygen" ,doxygen)
328 ("pkg-config" ,pkg-config)))
333 ("portaudio" ,portaudio)
334 ("pulseaudio" ,pulseaudio)
336 ("sndfile" ,libsndfile)
337 ("vorbis" ,libvorbis)
339 (synopsis "Audio tracking library")
340 (description "LibOpenMPT is a cross-platform C++ and C module playback
341 library. It is based on the player code of the Open ModPlug Tracker project.")
342 (home-page "https://openmpt.org/")
343 (license (license:non-copyleft "file:///LICENSE"))))
345 (define-public libofa
353 (string-append "https://storage.googleapis.com/"
354 "google-code-archive-downloads/v2/code.google.com/"
355 "musicip-libofa/" name "-" version ".tar.gz"))
357 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
360 "libofa-ftbfs-1.diff"
362 "libofa-ftbfs-2.diff"))))
363 (build-system gnu-build-system)
365 `(("pkg-config" ,pkg-config)))
371 (synopsis "Open Fingerprint Architecture")
372 (description "LibOFA is an audio fingerprint library, created and provided
374 (home-page "https://code.google.com/archive/p/musicip-libofa/")
375 (license license:gpl2+)))
385 (string-append "https://sourceforge.net/projects/faac/files/faac-src/"
386 "faac-1.30/faac-1_30.tar.gz/download"))
388 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
389 (build-system gnu-build-system)
391 `(("autoconf" ,autoconf)
392 ("automake" ,automake)
394 ("pkg-config" ,pkg-config)))
395 (synopsis "Freeware Advanced Audio Coder")
396 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
397 (home-page "https://www.audiocoding.com/faac.html")
400 ;; ISO MPEG-4 reference code.
405 (define-public libtimidity
413 (string-append "https://sourceforge.net/projects/" name "/files/"
414 name "/" version "/" name "-" version ".tar.gz"))
416 (base32 "0p2px0m907gi1zpdr0l9adq25jl89j85c11ag9s2g4yc6n1nhgfm"))))
417 (build-system gnu-build-system)
419 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
421 `(("pkg-config" ,pkg-config)))
424 (synopsis "MIDI to WAVE converter library")
425 (description "LibTiMidity is a MIDI to WAVE converter library that uses
426 Gravis Ultrasound-compatible patch files to generate digital audio data from
427 General MIDI files.")
428 (home-page "http://libtimidity.sourceforge.net/")
430 ;; This project is dual-licensed.
431 ;; Either of the following licenses can be exercised.
434 license:artistic2.0))))
436 (define-public vo-amrwbenc
444 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
445 name "/" name "-" version ".tar.gz"))
447 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
448 (build-system gnu-build-system)
449 (synopsis "Adaptive Multi Rate Codec")
450 (description "VO-AMR is a library of VisualOn implementation of
451 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
452 (home-page "https://sourceforge.net/projects/opencore-amr/")
453 (license license:asl2.0)))
455 (define-public opencore-amr
457 (name "opencore-amr")
463 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
464 name "/" name "-" version ".tar.gz"))
466 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
467 (build-system gnu-build-system)
468 (synopsis "Adaptive Multi Rate Codec")
469 (description "OpenCore-AMR is a library of OpenCORE Framework
470 implementation of Adaptive Multi Rate Narrowband and Wideband
471 (AMR-NB and AMR-WB) speech codec.")
472 (home-page "https://sourceforge.net/projects/opencore-amr/")
473 (license license:asl2.0)))
475 (define-public alsa-modular-synth
477 (name "alsa-modular-synth")
481 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
482 "/" version "/ams-" version ".tar.bz2"))
485 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))
487 (search-patches "alsa-modular-synth-fix-vocoder.patch"))))
488 (build-system gnu-build-system)
492 "CXXFLAGS=-std=gnu++11")
494 (modify-phases %standard-phases
495 (add-after 'set-paths 'hide-default-gcc
496 (lambda* (#:key inputs #:allow-other-keys)
497 (let ((gcc (assoc-ref inputs "gcc")))
498 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
499 ;; conflicts with the GCC 5 input.
500 (setenv "CPLUS_INCLUDE_PATH"
502 (delete (string-append gcc "/include/c++")
503 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
506 ;; Insert an extra space between linker flags.
507 (add-before 'configure 'add-missing-space
509 (substitute* "configure"
510 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
511 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
514 `(("alsa-lib" ,alsa-lib)
515 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
516 ;; license incompatibility.
517 ("clalsadrv" ,clalsadrv)
524 `(("pkg-config" ,pkg-config)
527 (home-page "http://alsamodular.sourceforge.net/")
528 (synopsis "Realtime modular synthesizer and effect processor")
530 "AlsaModularSynth is a digital implementation of a classical analog
531 modular synthesizer system. It uses virtual control voltages to control the
532 parameters of the modules. The control voltages which control the frequency
533 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
534 Filter) modules follow the convention of 1V / Octave.")
535 (license license:gpl2)))
544 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
547 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
548 (build-system waf-build-system)
550 `(#:tests? #f ; no check target
553 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
557 "--enable-samplerate"
562 ("libsndfile" ,libsndfile)
563 ("libsamplerate" ,libsamplerate)
565 ("ffmpeg" ,ffmpeg))) ; for libavcodec
567 `(("pkg-config" ,pkg-config)))
568 (home-page "https://aubio.org/")
569 (synopsis "Library for audio labelling")
571 "aubio is a tool designed for the extraction of annotations from audio
572 signals. Its features include segmenting a sound file before each of its
573 attacks, performing pitch detection, tapping the beat and producing MIDI
574 streams from live audio.")
575 (license license:gpl3+)))
577 (define (ardour-rpath-phase major-version)
578 `(lambda* (#:key outputs #:allow-other-keys)
579 (let ((libdir (string-append (assoc-ref outputs "out")
580 "/lib/ardour" ,major-version)))
581 (substitute* "wscript"
582 (("linker_flags = \\[\\]")
583 (string-append "linker_flags = [\""
586 libdir "/backends" ":"
587 libdir "/engines" ":"
588 libdir "/panners" ":"
589 libdir "/surfaces" ":"
590 libdir "/vamp" "\"]"))))
593 (define-public ardour
600 (url "https://git.ardour.org/ardour/ardour.git")
603 ;; Ardour expects this file to exist at build time. The revision
605 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
606 `(call-with-output-file
607 "libs/ardour/revision.cc"
609 (format port ,(string-append "#include \"ardour/revision.h\"
610 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
614 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
615 (file-name (string-append name "-" version))))
616 (build-system waf-build-system)
618 `(#:configure-flags '("--cxx11" ; required by gtkmm
619 "--no-phone-home" ; don't contact ardour.org
620 "--freedesktop" ; build .desktop file
621 "--test") ; build unit tests
623 (modify-phases %standard-phases
624 (add-after 'unpack 'set-rpath-in-LDFLAGS
625 ,(ardour-rpath-phase (version-major version)))
626 (add-after 'install 'install-freedesktop-files
627 (lambda* (#:key outputs #:allow-other-keys)
628 (let* ((out (assoc-ref outputs "out"))
629 (share (string-append out "/share"))
630 (ver ,(version-major version)))
633 (let ((dir (string-append share "/icons/hicolor/"
634 size "x" size "/apps")))
637 (string-append "gtk2_ardour/resources/Ardour-icon_"
639 (string-append dir "/ardour" ver ".png"))))
640 '("16" "22" "32" "48" "256"))
641 (install-file (string-append "build/gtk2_ardour/ardour"
643 (string-append share "/applications/"))
644 (install-file (string-append "build/gtk2_ardour/ardour"
646 (string-append share "/appdata/")))
651 `(("alsa-lib" ,alsa-lib)
664 ("libarchive" ,libarchive)
665 ("libart-lgpl" ,libart-lgpl)
666 ("libgnomecanvasmm" ,libgnomecanvasmm)
669 ("libsamplerate" ,libsamplerate)
670 ("libsndfile" ,libsndfile)
672 ("libvorbis" ,libvorbis)
678 ("python-rdflib" ,python-rdflib)
679 ("readline" ,readline)
681 ("rubberband" ,rubberband)
689 `(("cppunit" ,cppunit)
690 ("gettext" ,gettext-minimal)
693 ("pkg-config" ,pkg-config)))
694 (home-page "https://ardour.org")
695 (synopsis "Digital audio workstation")
697 "Ardour is a multi-channel digital audio workstation, allowing users to
698 record, edit, mix and master audio and MIDI projects. It is targeted at audio
699 engineers, musicians, soundtrack editors and composers.")
700 (license license:gpl2+)))
702 (define-public audacity
710 (url "https://github.com/audacity/audacity")
711 (commit (string-append "Audacity-" version))))
712 (file-name (git-file-name name version))
715 "1xk0piv72d2xd3p7igr916fhcbrm76fhjr418k1rlqdzzg1hfljn"))
716 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
717 (modules '((guix build utils)))
719 ;; Remove bundled libraries.
723 (delete-file-recursively (string-append "lib-src/" dir)))
724 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
725 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
726 "portaudio-v19" "portmidi" "soundtouch" "twolame"
727 ;; FIXME: these libraries have not been packaged yet:
735 ;; FIXME: we have this library, but it differs in that the Slide
736 ;; class does not have a member "getInverseStretchedTime".
740 (build-system glib-or-gtk-build-system)
742 `(("wxwidgets" ,wxwidgets)
744 ("alsa-lib" ,alsa-lib)
750 ("libid3tag" ,libid3tag)
752 ;;("libsbsms" ,libsbsms) ;bundled version is modified
753 ("libsndfile" ,libsndfile)
754 ("soundtouch" ,soundtouch)
755 ("soxr" ,soxr) ;replaces libsamplerate
758 ("libvorbis" ,libvorbis)
760 ("lilv" ,lilv) ;for lv2
761 ("suil" ,suil) ;for lv2
762 ("portaudio" ,portaudio)
763 ("portmidi" ,portmidi)))
765 `(("autoconf" ,autoconf)
766 ("automake" ,automake)
767 ("gettext" ,gettext-minimal) ;for msgfmt
769 ("pkg-config" ,pkg-config)
774 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
775 (libmad (assoc-ref %build-inputs "libmad"))
776 (portmidi (assoc-ref %build-inputs "portmidi")))
778 ;; Loading FFmpeg dynamically is problematic.
779 "--disable-dynamic-loading"
780 ;; SSE instructions are available on Intel systems only.
781 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
785 '("--enable-sse=no"))
786 ;; portmidi, libid3tag and libmad provide no .pc files, so
787 ;; pkg-config fails to find them. Force their inclusion.
788 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
789 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
790 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
791 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
792 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
793 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
794 "EXPAT_USE_SYSTEM=yes"
795 "FFMPEG_USE_SYSTEM=yes"
796 "LAME_USE_SYSTEM=yes"
797 "LIBFLAC_USE_SYSTEM=yes"
798 "LIBID3TAG_USE_SYSTEM=yes"
799 "LIBMAD_USE_SYSTEM=yes"
800 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
801 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
802 "LIBSNDFILE_USE_SYSTEM=yes"
803 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
804 "LIBSOXR_USE_SYSTEM=yes"
805 "LIBTWOLAME_USE_SYSTEM=yes"
806 "LIBVAMP_USE_SYSTEM=yes"
807 "LIBVORBIS_USE_SYSTEM=yes"
809 "PORTAUDIO_USE_SYSTEM=yes"))
811 (modify-phases %standard-phases
812 (add-after 'unpack 'fix-sbsms-check
814 ;; This check is wrong: there is no 2.2.0 release; not even the
815 ;; bundled sources match this release string.
816 (substitute* '("m4/audacity_checklib_libsbsms.m4"
818 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
820 (add-after 'unpack 'use-upstream-headers
821 (lambda* (#:key inputs #:allow-other-keys)
822 (substitute* '("src/NoteTrack.cpp"
825 "src/AudioIOBase.cpp")
826 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
827 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
828 (substitute* "src/prefs/MidiIOPrefs.cpp"
829 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
831 ;; The test suite is not "well exercised" according to the developers,
832 ;; and fails with various errors. See
833 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
835 (home-page "https://www.audacityteam.org/")
836 (synopsis "Software for recording and editing sounds")
838 "Audacity is a multi-track audio editor designed for recording, playing
839 and editing digital audio. It features digital effects and spectrum analysis
841 (license license:gpl2+)))
843 (define-public audiofile
851 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
853 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
855 ;; CVE references according to nixpgs
857 "audiofile-fix-datatypes-in-tests.patch"
858 "audiofile-fix-sign-conversion.patch"
859 "audiofile-hurd.patch"
860 "audiofile-CVE-2015-7747.patch"
862 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
863 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
865 "audiofile-check-number-of-coefficients.patch"
867 "audiofile-overflow-in-MSADPCM.patch"
868 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
869 "audiofile-multiply-overflow.patch"
870 "audiofile-function-signature.patch"
872 "audiofile-Fail-on-error-in-parseFormat.patch"
874 "audiofile-division-by-zero.patch"
875 "audiofile-CVE-2018-13440.patch"
876 "audiofile-CVE-2018-17095.patch"))))
877 (properties `((lint-hidden-cve . ("CVE-2017-6829"
879 "CVE-2017-6827" "CVE-2017-6828"
880 "CVE-2017-6832" "CVE-2017-6835"
885 "CVE-2017-6830" "CVE-2017-6834"
886 "CVE-2017-6836" "CVE-2017-6838"
888 "CVE-2017-6831" "CVE-2017-6833"))))
889 (build-system gnu-build-system)
891 `(("alsa-lib" ,alsa-lib)))
892 (home-page "https://audiofile.68k.org/")
893 (synopsis "Library to handle various audio file formats")
894 (description "This is an open-source version of SGI's audiofile library.
895 It provides a uniform programming interface for processing of audio data to
896 and from audio files of many common formats.
898 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
899 .snd/.au, BICS, and raw data. Supported compression formats are currently
900 G.711 mu-law and A-law.")
901 (license license:lgpl2.1+)))
903 (define-public autotalent
909 (uri (string-append "http://tombaran.info/autotalent-"
913 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
914 (build-system gnu-build-system)
916 `(#:tests? #f ; no check target
918 (modify-phases %standard-phases
919 ;; no configure script
921 (add-before 'install 'prepare-target-directory
922 (lambda* (#:key outputs #:allow-other-keys)
923 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
925 (add-after 'unpack 'override-target-directory
926 (lambda* (#:key outputs #:allow-other-keys)
927 (substitute* "Makefile"
928 (("/usr/lib64/ladspa")
929 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
932 `(("ladspa" ,ladspa)))
933 (home-page "http://tombaran.info/autotalent.html")
934 (synopsis "Pitch-correction LADSPA audio plugin")
936 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
937 controls are allowable notes, strength of correction, LFO for vibrato and
939 ;; All code except the FFT routine is licensed under GPLv2+.
940 ;; The FFT routine is under BSD-3.
941 (license license:gpl2+)))
949 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
954 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
955 (patches (search-patches "azr3.patch"))))
956 (build-system gnu-build-system)
958 `(#:tests? #f ; no check target
961 (string-append "prefix=" %output)
962 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
964 (modify-phases %standard-phases
965 (add-before 'install 'fix-timestamp
967 (let ((early-1980 315619200)) ; 1980-01-02 UTC
968 (utime "azr3.1" early-1980 early-1980))
976 `(("pkg-config" ,pkg-config)))
977 (home-page "http://ll-plugins.nongnu.org/azr3/")
978 (synopsis "Tonewheel organ synthesizer")
980 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
981 with drawbars, distortion and rotating speakers. The organ has three
982 sections, two polyphonic sections with nine drawbars each and one monophonic
983 bass section with five drawbars. A standalone JACK application and LV2
984 plugins are provided.")
985 (license license:gpl2)))
993 (uri (string-append "https://calf-studio-gear.org/files/calf-"
997 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
998 (build-system gnu-build-system)
1000 `(("fluidsynth" ,fluidsynth)
1011 `(("pkg-config" ,pkg-config)))
1012 (native-search-paths
1013 (list (search-path-specification
1014 (variable "LV2_PATH")
1015 (files '("lib/lv2")))))
1016 (home-page "http://calf.sourceforge.net/")
1017 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1019 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1020 The suite contains lots of effects (delay, modulation, signal processing,
1021 filters, equalizers, dynamics, distortion and mastering effects),
1022 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1023 tools (analyzer, mono/stereo tools, crossovers).")
1024 ;; calfjackhost is released under GPLv2+
1025 ;; The plugins are released under LGPLv2.1+
1026 (license (list license:lgpl2.1+ license:gpl2+))))
1028 (define-public caps-plugins-lv2
1030 (name "caps-plugins-lv2")
1031 (version "0.9.24") ; version that has been ported.
1034 ;; The Github project hasn't tagged a release.
1037 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
1038 ;; missing fixes for newer glibc, so using the origin of a pull
1039 ;; request regarding this issue:
1040 (url "https://github.com/jujudusud/caps-lv2")
1041 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
1042 (file-name (git-file-name name version))
1045 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
1046 (build-system gnu-build-system)
1048 `(#:tests? #f ; no check target
1050 (modify-phases %standard-phases
1051 ;; no configure script
1053 (add-after 'unpack 'override-target-directory
1054 (lambda* (#:key outputs #:allow-other-keys)
1055 (substitute* (find-files "plugins" "Makefile")
1056 (("/usr/local")(assoc-ref outputs "out")))
1060 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1061 (home-page "https://github.com/moddevices/caps-lv2")
1062 (synopsis "LV2 port of the CAPS audio plugin collection")
1064 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1065 guitar amplification and a small range of classic effects, signal processors and
1066 generators of mostly elementary and occasionally exotic nature.")
1067 (license license:gpl3+)))
1069 (define-public infamous-plugins
1071 (name "infamous-plugins")
1076 (url "https://github.com/ssj71/infamousPlugins")
1077 (commit (string-append "v" version))))
1078 (file-name (git-file-name name version))
1081 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
1082 (build-system cmake-build-system)
1084 `(#:tests? #f ; there are no tests
1086 (modify-phases %standard-phases
1087 (add-after 'unpack 'remove-compiler-flags
1089 (substitute* (find-files "." "CMakeLists.txt")
1090 (("-msse2 -mfpmath=sse") ""))
1097 ("zita-resampler" ,zita-resampler)))
1099 `(("pkg-config" ,pkg-config)))
1100 (home-page "https://ssj71.github.io/infamousPlugins")
1101 (synopsis "LV2 plugins for live use")
1103 "The infamous plugins are a collection of LV2 audio plugins for live
1104 performances. The plugins include a cellular automaton synthesizer, an
1105 envelope follower, distortion effects, tape effects and more.")
1106 (license license:gpl2+)))
1108 (define-public swh-plugins
1110 (name "swh-plugins")
1115 (url "https://github.com/swh/ladspa")
1116 (commit (string-append "v" version))))
1117 (file-name (git-file-name name version))
1120 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1122 `(("autoconf" ,autoconf)
1123 ("automake" ,automake)
1124 ("gettext" ,gettext-minimal) ;for autopoint
1125 ("libtool" ,libtool)
1127 ("pkg-config" ,pkg-config)
1131 ("perl-xml-parser" ,perl-xml-parser)))
1132 (build-system gnu-build-system)
1133 (home-page "http://plugin.org.uk")
1134 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1135 (description "This package provides Steve Harris's LADSPA plugins.")
1136 (license license:gpl2+)))
1138 (define-public swh-plugins-lv2
1140 (name "swh-plugins-lv2")
1145 (url "https://github.com/swh/lv2")
1146 (commit (string-append "v" version))))
1147 (file-name (git-file-name name version))
1150 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1151 (build-system gnu-build-system)
1153 `(#:tests? #f ; no check target
1154 #:make-flags (list "CC=gcc"
1155 (string-append "PREFIX="
1156 (assoc-ref %outputs "out")))
1158 (modify-phases %standard-phases
1159 ;; no configure script
1161 (add-after 'unpack 'patch-makefile-and-enter-directory
1162 ;; The default install target doesn't install, but the
1163 ;; "install-system" target does.
1165 (substitute* "Makefile"
1166 (("install:") "install: install-system"))
1172 `(("libxslt" ,libxslt)
1173 ("pkg-config" ,pkg-config)))
1174 (home-page "http://plugin.org.uk")
1175 (synopsis "SWH plugins in LV2 format")
1177 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1178 classes include: dynamics (compressor, limiter), time (delay, chorus,
1179 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1180 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1181 (license license:gpl3+)))
1186 (version "1.0-beta-10May2006")
1189 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1191 "tao-" version ".tar.gz"))
1194 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1196 (search-patches "tao-add-missing-headers.patch"
1197 "tao-fix-parser-types.patch"))
1198 (modules '((guix build utils)))
1201 (substitute* "configure"
1202 (("SHELL=/bin/sh") ""))
1204 (build-system gnu-build-system)
1206 '(#:configure-flags '("TAO_RELEASE=-beta")
1208 (modify-phases %standard-phases
1209 (add-after 'unpack 'fix-references
1210 (lambda* (#:key outputs #:allow-other-keys)
1211 (substitute* "user-scripts/tao.in"
1213 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1214 (("grep") (which "grep"))
1215 (("sed -f \\$distdir/user-scripts/")
1216 (string-append (which "sed") " -f $distdir/"))
1218 (string-append "distdir="
1219 (assoc-ref outputs "out") "/share/tao")))
1221 (add-after 'install 'install-extra-files
1222 (lambda* (#:key outputs #:allow-other-keys)
1223 (let* ((out (assoc-ref outputs "out"))
1224 (share (string-append out "/share/tao/"))
1225 (inc (string-append out "/include/tao/")))
1228 (install-file "user-scripts/error.parse" share)
1229 (copy-recursively "examples" (string-append share "examples"))
1230 (for-each (lambda (file) (install-file file inc))
1231 (find-files "include" "\\.h"))
1234 `(("audiofile" ,audiofile)
1243 (home-page "http://taopm.sourceforge.net/")
1244 (synopsis "Sound Synthesis with Physical Models")
1245 (description "Tao is a software package for sound synthesis using physical
1246 models. It provides a virtual acoustic material constructed from masses and
1247 springs which can be used as the basis for building quite complex virtual
1248 musical instruments. Tao comes with a synthesis language for creating and
1249 playing instruments and a C++ API for those who would like to use it as an
1251 (license license:gpl2+)))
1253 (define-public csound
1261 (url "https://github.com/csound/csound")
1263 (file-name (git-file-name name version))
1265 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1266 (build-system cmake-build-system)
1270 ("gettext" ,gettext-minimal)
1273 `(("alsa-lib" ,alsa-lib)
1278 ("libsndfile" ,libsndfile)
1279 ("pulseaudio" ,pulseaudio)))
1280 (home-page "https://csound.com/")
1281 (synopsis "Sound and music computing system")
1283 "Csound is a user-programmable and user-extensible sound processing
1284 language and software synthesizer.")
1285 (license license:lgpl2.1+)))
1287 (define-public clalsadrv
1294 "http://kokkinizita.linuxaudio.org"
1295 "/linuxaudio/downloads/clalsadrv-"
1296 version ".tar.bz2"))
1299 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1300 (build-system gnu-build-system)
1302 `(#:tests? #f ; no "check" target
1303 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1305 (modify-phases %standard-phases
1306 (add-after 'unpack 'patch-makefile-and-enter-directory
1308 (substitute* "libs/Makefile"
1309 (("/sbin/ldconfig") "true")
1310 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1313 (add-after 'install 'install-symlink
1315 (symlink "libclalsadrv.so"
1316 (string-append (assoc-ref %outputs "out")
1317 "/lib/libclalsadrv.so.2"))
1319 ;; no configure script
1320 (delete 'configure))))
1322 `(("alsa-lib" ,alsa-lib)
1324 (home-page "https://kokkinizita.linuxaudio.org")
1325 (synopsis "C++ wrapper around the ALSA API")
1327 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1329 (license license:gpl2+)))
1331 (define-public amb-plugins
1333 (name "amb-plugins")
1338 "http://kokkinizita.linuxaudio.org"
1339 "/linuxaudio/downloads/AMB-plugins-"
1340 version ".tar.bz2"))
1343 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1344 (build-system gnu-build-system)
1346 `(#:tests? #f ; no "check" target
1348 (modify-phases %standard-phases
1349 ;; no configure script
1351 (add-before 'install 'prepare-target-directory
1352 (lambda* (#:key outputs #:allow-other-keys)
1353 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1355 (add-after 'unpack 'override-target-directory-and-tool-paths
1356 (lambda* (#:key outputs #:allow-other-keys)
1357 (substitute* "Makefile"
1358 (("/usr/lib/ladspa")
1359 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1360 (("/usr/bin/install") (which "install"))
1363 (home-page "https://kokkinizita.linuxaudio.org")
1364 (synopsis "LADSPA ambisonics plugins")
1366 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1367 used within Ardour. Features include: mono and stereo to B-format panning,
1368 horizontal rotator, square, hexagon and cube decoders.")
1369 (license license:gpl2+)))
1371 (define-public mcp-plugins
1373 (name "mcp-plugins")
1378 "http://kokkinizita.linuxaudio.org"
1379 "/linuxaudio/downloads/MCP-plugins-"
1380 version ".tar.bz2"))
1383 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1384 (build-system gnu-build-system)
1386 `(#:tests? #f ; no "check" target
1388 (modify-phases %standard-phases
1389 ;; no configure script
1391 (add-before 'install 'prepare-target-directory
1392 (lambda* (#:key outputs #:allow-other-keys)
1393 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1395 (add-after 'unpack 'override-target-directory
1396 (lambda* (#:key outputs #:allow-other-keys)
1397 (substitute* "Makefile"
1398 (("/usr") (assoc-ref outputs "out")))
1400 (home-page "https://kokkinizita.linuxaudio.org")
1401 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1403 "This package provides various LADSPA plugins. @code{cs_chorus} and
1404 @code{cs_phaser} provide chorus and phaser effects, respectively;
1405 @code{mvclpf24} provides four implementations of the low-pass filter used in
1406 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1407 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1408 the non-linear circuit elements of their original analog counterparts.")
1409 (license license:gpl2+)))
1411 (define-public rev-plugins
1413 (name "rev-plugins")
1418 "http://kokkinizita.linuxaudio.org"
1419 "/linuxaudio/downloads/REV-plugins-"
1420 version ".tar.bz2"))
1423 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1424 (build-system gnu-build-system)
1426 `(#:tests? #f ; no "check" target
1428 (modify-phases %standard-phases
1429 ;; no configure script
1431 (add-before 'install 'prepare-target-directory
1432 (lambda* (#:key outputs #:allow-other-keys)
1433 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1435 (add-after 'unpack 'override-target-directory
1436 (lambda* (#:key outputs #:allow-other-keys)
1437 (substitute* "Makefile"
1438 (("/usr") (assoc-ref outputs "out")))
1440 (home-page "https://kokkinizita.linuxaudio.org")
1441 (synopsis "LADSPA reverb plugin")
1443 "This package provides a stereo reverb LADSPA plugin based on the
1444 well-known greverb.")
1445 (license license:gpl2+)))
1447 (define-public fil-plugins
1449 (name "fil-plugins")
1454 "http://kokkinizita.linuxaudio.org"
1455 "/linuxaudio/downloads/FIL-plugins-"
1456 version ".tar.bz2"))
1459 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1460 (build-system gnu-build-system)
1462 `(#:tests? #f ; no "check" target
1464 (modify-phases %standard-phases
1465 ;; no configure script
1467 (add-before 'install 'prepare-target-directory
1468 (lambda* (#:key outputs #:allow-other-keys)
1469 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1471 (add-after 'unpack 'override-target-directory
1472 (lambda* (#:key outputs #:allow-other-keys)
1473 (substitute* "Makefile"
1474 (("/usr") (assoc-ref outputs "out")))
1476 (home-page "https://kokkinizita.linuxaudio.org")
1477 (synopsis "LADSPA four-band parametric equalizer plugin")
1479 "This package provides a LADSPA plugin for a four-band parametric
1480 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1481 gain controls. There is also a global bypass switch and gain control.
1483 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1484 lattice filter, which is stable even while parameters are being changed.
1486 All switches and controls are internally smoothed, so they can be used @code{live}
1487 without any clicks or zipper noises. This makes this plugin suitable for use
1488 in systems that allow automation of plugin control ports, such as Ardour, or
1490 (license license:gpl2+)))
1492 (define-public ste-plugins
1494 (name "ste-plugins")
1499 "http://kokkinizita.linuxaudio.org"
1500 "/linuxaudio/downloads/STE-plugins-"
1501 version ".tar.bz2"))
1504 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1505 (build-system gnu-build-system)
1507 `(#:tests? #f ; no "check" target
1509 (modify-phases %standard-phases
1510 ;; no configure script
1512 (add-before 'install 'prepare-target-directory
1513 (lambda* (#:key outputs #:allow-other-keys)
1514 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1516 (add-after 'unpack 'override-target-directory
1517 (lambda* (#:key outputs #:allow-other-keys)
1518 (substitute* "Makefile"
1519 (("/usr") (assoc-ref outputs "out")))
1521 (home-page "https://kokkinizita.linuxaudio.org")
1522 (synopsis "LADSPA stereo width plugin")
1524 "This package provides a LADSPA plugin to manipulate the stereo width of
1526 (license license:gpl2+)))
1528 (define-public vco-plugins
1530 (name "vco-plugins")
1535 "http://kokkinizita.linuxaudio.org"
1536 "/linuxaudio/downloads/VCO-plugins-"
1537 version ".tar.bz2"))
1540 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1541 (build-system gnu-build-system)
1543 `(#:tests? #f ; no "check" target
1545 (modify-phases %standard-phases
1546 ;; no configure script
1548 (add-before 'install 'prepare-target-directory
1549 (lambda* (#:key outputs #:allow-other-keys)
1550 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1552 (add-after 'unpack 'override-target-directory
1553 (lambda* (#:key outputs #:allow-other-keys)
1554 (substitute* "Makefile"
1555 (("/usr") (assoc-ref outputs "out"))
1556 (("/bin/cp") (which "cp")))
1558 (home-page "https://kokkinizita.linuxaudio.org")
1559 (synopsis "LADSPA plugin for synthesizer oscillators")
1561 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1564 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1565 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1566 @item Rec-VCO, a square / rectangle oscillator
1569 All oscillators are low-pass filtered to provide waveforms similar to the
1570 output of analog synthesizers such as the Moog Voyager.")
1571 (license license:gpl2+)))
1573 (define-public wah-plugins
1575 (name "wah-plugins")
1580 "http://kokkinizita.linuxaudio.org"
1581 "/linuxaudio/downloads/WAH-plugins-"
1582 version ".tar.bz2"))
1585 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1586 (build-system gnu-build-system)
1588 `(#:tests? #f ; no "check" target
1590 (modify-phases %standard-phases
1591 ;; no configure script
1593 (add-before 'install 'prepare-target-directory
1594 (lambda* (#:key outputs #:allow-other-keys)
1595 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1597 (add-after 'unpack 'override-target-directory
1598 (lambda* (#:key outputs #:allow-other-keys)
1599 (substitute* "Makefile"
1600 (("/usr") (assoc-ref outputs "out")))
1602 (home-page "https://kokkinizita.linuxaudio.org")
1603 (synopsis "LADSPA Autowah effect plugin")
1605 "This package provides a LADSPA plugin for a Wah effect with envelope
1607 (license license:gpl2+)))
1609 (define-public g2reverb
1616 "http://kokkinizita.linuxaudio.org"
1617 "/linuxaudio/downloads/g2reverb-"
1618 version ".tar.bz2"))
1621 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1622 (build-system gnu-build-system)
1624 `(#:tests? #f ; no "check" target
1626 (modify-phases %standard-phases
1627 ;; no configure script
1629 (add-before 'install 'prepare-target-directory
1630 (lambda* (#:key outputs #:allow-other-keys)
1631 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1633 (add-after 'unpack 'override-target-directory
1634 (lambda* (#:key outputs #:allow-other-keys)
1635 (substitute* "Makefile"
1636 (("/usr") (assoc-ref outputs "out")))
1638 (home-page "https://kokkinizita.linuxaudio.org")
1639 (synopsis "LADSPA stereo reverb plugin")
1641 "This package provides a LADSPA plugin for a stereo reverb effect.")
1642 (license license:gpl2+)))
1644 (define-public fluidsynth
1651 (url "https://github.com/FluidSynth/fluidsynth")
1652 (commit (string-append "v" version))))
1653 (file-name (git-file-name name version))
1656 "0ccpq4p1h1g53ng3961g3lh590qnwvpzwdzpl6ai4j6iazq0bh73"))))
1657 (build-system cmake-build-system)
1659 '(#:tests? #f ; no check target
1661 (modify-phases %standard-phases
1662 (add-after 'unpack 'fix-libdir
1664 ;; Install libraries to /lib, not /lib64.
1665 (substitute* "CMakeLists.txt"
1666 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1670 `(("libsndfile" ,libsndfile)
1671 ("alsa-lib" ,alsa-lib)
1675 ("readline" ,readline)
1678 `(("pkg-config" ,pkg-config)))
1679 (home-page "http://www.fluidsynth.org/")
1680 (synopsis "SoundFont synthesizer")
1682 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1683 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1684 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1685 also play midifiles using a Soundfont.")
1686 (license license:lgpl2.1+)))
1688 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1690 (define-public fluidsynth-1
1692 (inherit fluidsynth)
1695 (inherit (package-source fluidsynth))
1697 (url "https://github.com/FluidSynth/fluidsynth")
1698 (commit (string-append "v" version))))
1699 (file-name (git-file-name "fluidsynth" version))
1702 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1704 (define-public faad2
1712 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1713 (version-major+minor version) ".0/"
1714 "faad2-" version ".tar.gz"))
1716 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1717 (build-system gnu-build-system)
1718 (home-page "https://www.audiocoding.com/faad2.html")
1719 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1721 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1722 (license license:gpl2+)))
1724 (define-public faust
1731 (url "https://github.com/grame-cncm/faust")
1732 (commit (string-append "v"
1733 (string-map (lambda (c)
1734 (if (char=? c #\.) #\- c))
1736 (file-name (string-append "faust-" version "-checkout"))
1739 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1740 (build-system gnu-build-system)
1742 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1745 (modify-phases %standard-phases
1746 ;; no "configure" script
1748 ;; Files appear under $out/share/faust that are read-only. The
1749 ;; install phase tries to overwrite them and fails, so we change
1750 ;; the permissions first.
1751 (add-before 'install 'fix-permissions
1753 (for-each (lambda (file)
1755 (find-files "architecture/max-msp" ".*"))
1758 `(("unzip" ,unzip)))
1759 (home-page "https://faust.grame.fr/")
1760 (synopsis "Signal processing language")
1762 "Faust is a programming language for realtime audio signal processing.")
1763 (license license:gpl2+)))
1765 (define-public faust-2
1771 (uri (string-append "https://github.com/grame-cncm/faust/"
1772 "releases/download/" version
1773 "/faust-" version ".tar.gz"))
1776 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1777 (build-system gnu-build-system)
1779 (substitute-keyword-arguments (package-arguments faust)
1780 ((#:make-flags flags)
1781 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1784 `(("llvm" ,llvm-3.8)
1787 ("ctags" ,emacs-minimal) ; for ctags
1788 ("pkg-config" ,pkg-config)))
1790 `(("libsndfile" ,libsndfile)
1791 ("libmicrohttpd" ,libmicrohttpd)
1792 ("ncurses" ,ncurses)
1793 ("openssl" ,openssl)
1796 (define-public freepats
1799 (version "20060219")
1802 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1803 version ".tar.bz2"))
1806 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1807 (build-system trivial-build-system)
1809 `(#:modules ((guix build utils))
1811 (use-modules (guix build utils))
1812 (let ((out (string-append %output "/share/freepats")))
1813 (setenv "PATH" (string-append
1814 (assoc-ref %build-inputs "bzip2") "/bin:"
1815 (assoc-ref %build-inputs "tar") "/bin"))
1816 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1818 ;; Use absolute pattern references
1819 (substitute* "freepats.cfg"
1820 (("Tone_000") (string-append out "/Tone_000"))
1821 (("Drum_000") (string-append out "/Drum_000")))
1823 (copy-recursively "." out)
1828 (home-page "http://freepats.zenvoid.org")
1829 (synopsis "GUS compatible patches for MIDI players")
1831 "FreePats is a project to create a free and open set of GUS compatible
1832 patches that can be used with softsynths such as Timidity and WildMidi.")
1833 ;; GPLv2+ with exception for compositions using these patches.
1834 (license license:gpl2+)))
1836 (define-public guitarix
1843 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1847 "0qsfbyrrpb3bbdyq68k28mjql7kglxh8nqcw9jvja28x6x9ik5a0"))))
1848 (build-system waf-build-system)
1850 `(#:tests? #f ; no "check" target
1853 ;; Add the output lib directory to the RUNPATH.
1854 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
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)
1878 (native-search-paths
1879 (list (search-path-specification
1880 (variable "LV2_PATH")
1881 (files '("lib/lv2")))))
1882 (home-page "https://guitarix.org/")
1883 (synopsis "Virtual guitar amplifier")
1884 (description "Guitarix is a virtual guitar amplifier running JACK.
1885 Guitarix takes the signal from your guitar as a mono-signal from your sound
1886 card. The input is processed by a main amp and a rack-section. Both can be
1887 routed separately and deliver a processed stereo-signal via JACK. You may
1888 fill the rack with effects from more than 25 built-in modules including stuff
1889 from a simple noise gate to modulation effects like flanger, phaser or
1891 (license license:gpl2+)))
1893 (define-public guitarix-lv2
1894 (package (inherit guitarix)
1895 (name "guitarix-lv2")
1897 (substitute-keyword-arguments (package-arguments guitarix)
1898 ((#:configure-flags flags)
1899 `(cons "--no-standalone" ,flags))))))
1901 (define-public rakarrack
1907 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1908 "rakarrack-" version "/rakarrack-"
1909 version ".tar.bz2"))
1912 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1913 (modules '((guix build utils)))
1916 (substitute* '("src/process.C"
1918 (("#include <Fl/") "#include <FL/"))
1920 (build-system gnu-build-system)
1922 `(("alsa-utils" ,alsa-utils)
1925 ("libxext" ,libxext)
1926 ("libxfixes" ,libxfixes)
1928 ("libxrender" ,libxrender)
1930 ("fontconfig" ,fontconfig)
1931 ("freetype" ,freetype)
1933 ("alsa-lib" ,alsa-lib)
1934 ("libsndfile" ,libsndfile)
1935 ("libsamplerate" ,libsamplerate)
1937 (home-page "http://rakarrack.sourceforge.net/")
1938 (synopsis "Audio effects processor")
1940 "Rakarrack is a richly featured multi-effects processor emulating a
1941 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1942 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1943 distortion modules and many more. Most of the effects engine is built from
1944 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1945 user interface are optimized for guitar, but Rakarrack processes signals in
1946 stereo while it does not apply internal band-limiting filtering, and thus is
1947 well suited to all musical instruments and vocals.")
1948 ;; The code is explicitly licensed under the GPL version 2 only.
1949 (license license:gpl2)))
1958 (url "https://github.com/tomszilagyi/ir.lv2")
1960 (file-name (git-file-name name version))
1963 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1964 (build-system gnu-build-system)
1966 `(#:tests? #f ; no tests
1968 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1969 (string-append "INSTDIR="
1970 (assoc-ref %outputs "out") "/lib/lv2"))
1971 #:phases (modify-phases %standard-phases
1972 (delete 'configure)))) ; no configure script
1974 `(("libsndfile" ,libsndfile)
1975 ("libsamplerate" ,libsamplerate)
1979 ("zita-convolver" ,zita-convolver)))
1981 `(("pkg-config" ,pkg-config)))
1982 (native-search-paths
1983 (list (search-path-specification
1984 (variable "LV2_PATH")
1985 (files '("lib/lv2")))))
1986 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1987 (synopsis "LV2 convolution reverb")
1989 "IR is a low-latency, real-time, high performance signal convolver
1990 especially for creating reverb effects. It supports impulse responses with 1,
1991 2 or 4 channels, in any soundfile format supported by libsndfile.")
1992 (license license:gpl2+)))
1994 (define-public jack-1
2001 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2002 ;; no longer exists (404). Use an unofficial mirror.
2003 (uri (string-append "https://crux.ster.zone/downloads/"
2004 "jack-audio-connection-kit/"
2005 "jack-audio-connection-kit-" version ".tar.gz"))
2007 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2008 (build-system gnu-build-system)
2010 `(#:phases (modify-phases %standard-phases
2011 (add-after 'unpack 'patch-configure
2013 (substitute* "configure"
2014 ;; Install to <out/lib> regardless of platform.
2015 (("libnn=lib64") "libnn=lib"))
2018 `(("alsa-lib" ,alsa-lib)
2019 ("readline" ,readline)))
2020 ;; uuid.h is included in the JACK type headers
2021 ;; db.h is included in the libjack metadata headers
2023 `(("libuuid" ,util-linux "lib")
2026 `(("pkg-config" ,pkg-config)))
2027 (home-page "https://jackaudio.org/")
2028 (synopsis "JACK audio connection kit")
2030 "JACK is a low-latency audio server. It can connect a number of
2031 different applications to an audio device, as well as allowing them to share
2032 audio between themselves. JACK is different from other audio server efforts
2033 in that it has been designed from the ground up to be suitable for
2034 professional audio work. This means that it focuses on two key areas:
2035 synchronous execution of all clients, and low latency operation.")
2036 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2037 ;; licensed under the LGPL in order to allow for proprietary usage.
2038 (license (list license:gpl2+ license:lgpl2.1+))))
2040 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2041 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2042 ;; program for users who might benefit from the D-BUS features.
2043 (define-public jack-2
2044 (package (inherit jack-1)
2049 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
2050 "download/v" version "/jack2-"
2052 (file-name (string-append name "-" version ".tar.gz"))
2055 "0z11hf55a6mi8h50hfz5wry9pshlwl4mzfwgslghdh40cwv342m2"))))
2056 (build-system waf-build-system)
2058 `(#:tests? #f ; no check target
2059 #:configure-flags '("--dbus"
2062 (modify-phases %standard-phases
2063 (add-before 'configure 'set-linkflags
2065 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2066 ;; will not link with undefined reference to symbol
2067 ;; '__gxx_personality_v0@@CXXABI_1.3'
2068 (setenv "LDFLAGS" "-lstdc++")
2069 ;; Add $libdir to the RUNPATH of all the binaries.
2070 (substitute* "wscript"
2071 ((".*CFLAGS.*-Wall.*" m)
2073 " conf.env.append_unique('LINKFLAGS',"
2074 "'-Wl,-rpath=" %output "/lib')\n")))
2076 (add-after 'install 'wrap-python-scripts
2077 (lambda* (#:key inputs outputs #:allow-other-keys)
2078 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2079 (let* ((out (assoc-ref outputs "out"))
2080 (path (getenv "PYTHONPATH")))
2081 (wrap-program (string-append out "/bin/jack_control")
2082 `("PYTHONPATH" ":" prefix (,path))))
2085 `(("alsa-lib" ,alsa-lib)
2088 ("libsamplerate" ,libsamplerate)
2090 ("python-dbus" ,python-dbus)
2091 ("readline" ,readline)))
2093 `(("pkg-config" ,pkg-config)))
2094 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2095 (license (list license:gpl2+ license:lgpl2.1+))))
2103 (uri (string-append "https://download.drobilla.net/jalv-"
2104 version ".tar.bz2"))
2107 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2108 (build-system waf-build-system)
2110 `(#:tests? #f ; no check target
2111 #:python ,python-2))
2122 `(("pkg-config" ,pkg-config)))
2123 (home-page "https://drobilla.net/software/jalv/")
2124 (synopsis "Simple LV2 host for JACK")
2126 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2127 plugins and exposes their ports as JACK ports, essentially making any LV2
2128 plugin function as a JACK application.")
2129 (license license:isc)))
2131 (define-public ladspa
2138 ;; Since the official link is dead,
2139 ;; we download the tarball from Debian or Internet Archive.
2140 (uri (list (string-append "http://http.debian.net"
2141 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2142 version ".orig.tar.gz")
2143 (string-append "https://web.archive.org/web/20140717172251/"
2144 "http://www.ladspa.org/download/ladspa_sdk_"
2148 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2149 (build-system gnu-build-system)
2151 `(#:tests? #f ; the "test" target is a listening test only
2153 (modify-phases %standard-phases
2155 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2157 (let ((out (assoc-ref outputs "out")))
2158 (substitute* "makefile"
2159 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2160 (("/usr/include/") (string-append out "/include/"))
2161 (("/usr/bin/") (string-append out "/bin/"))
2162 (("-mkdirhier") "mkdir -p")
2163 (("^CC.*") "CC = gcc\n")
2164 (("^CPP.*") "CPP = g++\n")))
2167 ;; Since the home page is gone, we provide a link to the archived version.
2169 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2170 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2172 "LADSPA is a standard that allows software audio processors and effects
2173 to be plugged into a wide range of audio synthesis and recording packages.")
2174 (license license:lgpl2.1+)))
2179 (version "0.6.0-rc2")
2182 ;; The tilde is not permitted in the builder name, but is used
2185 "mirror://savannah/lash/lash-"
2186 (string-join (string-split version #\-) "~")
2188 (file-name (string-append name "-" version ".tar.bz2"))
2191 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2192 (build-system gnu-build-system)
2194 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2195 ;; to use libtirpc instead.
2196 #:make-flags (list (string-append "CFLAGS=-I"
2197 (assoc-ref %build-inputs "libtirpc")
2198 "/include/tirpc -ltirpc"))
2200 (modify-phases %standard-phases
2201 ;; lashd embeds an ancient version of sigsegv so we just skip it
2202 (add-after 'unpack 'skip-lashd
2204 (substitute* '("Makefile.am" "Makefile.in")
2207 #:configure-flags '("--disable-static")))
2212 ("libtirpc" ,libtirpc)
2213 ("readline" ,readline)
2214 ("python" ,python-2)))
2215 ;; According to pkg-config, packages depending on lash also need to have
2216 ;; at least the following packages declared as inputs.
2218 `(("alsa-lib" ,alsa-lib)
2220 ("libxml2" ,libxml2)))
2222 `(("pkg-config" ,pkg-config)))
2223 (home-page "https://www.nongnu.org/lash/")
2224 (synopsis "Audio application session manager")
2226 "LASH is a session management system for audio applications. It allows
2227 you to save and restore audio sessions consisting of multiple interconneced
2228 applications, restoring program state (i.e. loaded patches) and the
2229 connections between them.")
2230 (license license:gpl2+)))
2232 (define-public libbs2b
2238 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2239 "/libbs2b-" version ".tar.lzma"))
2242 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2243 (build-system gnu-build-system)
2244 (native-inputs `(("pkg-config" ,pkg-config)))
2245 (inputs `(("libsndfile" ,libsndfile)))
2246 (home-page "https://sourceforge.net/projects/bs2b/")
2247 (synopsis "Bauer stereophonic-to-binaural DSP")
2249 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2250 designed to improve headphone listening of stereo audio records. Recommended
2251 for headphone prolonged listening to disable superstereo fatigue without
2252 essential distortions.")
2253 (license license:expat)))
2255 (define-public ladspa-bs2b
2257 (name "ladspa-bs2b")
2262 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2263 version "/" name "-" version ".tar.gz"))
2266 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2267 (build-system gnu-build-system)
2268 (native-inputs `(("pkg-config" ,pkg-config)))
2269 (inputs `(("ladspa" ,ladspa)
2270 ("libbs2b" ,libbs2b)))
2271 (home-page "https://sourceforge.net/projects/bs2b/")
2272 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2273 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2274 plugins is designed to improve headphone listening of stereo audio records.
2275 Recommended for headphone prolonged listening to disable superstereo fatigue
2276 without essential distortions. This package contains a LADSPA plugin for use
2277 with applications that support them (e.g. PulseAudio).")
2278 (license license:gpl2+)))
2280 (define-public liblo
2286 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2287 "/liblo-" version ".tar.gz"))
2290 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2291 (build-system gnu-build-system)
2293 `(;; liblo test FAILED
2294 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2296 (home-page "http://liblo.sourceforge.net")
2297 (synopsis "Implementation of the Open Sound Control protocol")
2299 "liblo is a lightweight library that provides an easy to use
2300 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2301 (license license:lgpl2.1+)))
2303 (define-public rtaudio
2311 (url "https://github.com/thestk/rtaudio")
2313 (file-name (git-file-name name version))
2315 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2316 (build-system cmake-build-system)
2318 `(("pkg-config" ,pkg-config)))
2320 `(("alsa-lib" ,alsa-lib)
2322 ("pulseaudio" ,pulseaudio)))
2323 (synopsis "Common API for real-time audio I/O")
2325 "RtAudio is a set of C++ classes that provides a common API for real-time
2326 audio input/output. It was designed with the following objectives:
2329 @item object-oriented C++ design
2330 @item simple, common API across all supported platforms
2331 @item only one source and one header file for easy inclusion in programming
2333 @item allow simultaneous multi-api support
2334 @item support dynamic connection of devices
2335 @item provide extensive audio device parameter control
2336 @item allow audio device capability probing
2337 @item automatic internal conversion for data format, channel number
2338 compensation, (de)interleaving, and byte-swapping
2340 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2341 ;; License is expat with a non-binding request to send modifications to
2342 ;; original developer.
2343 (license license:expat)))
2345 (define-public python-pyaudio
2347 (name "python-pyaudio")
2352 (uri (pypi-uri "PyAudio" version))
2355 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2356 (build-system python-build-system)
2358 `(("portaudio" ,portaudio)))
2359 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2360 (synopsis "Bindings for PortAudio v19")
2361 (description "This package provides bindings for PortAudio v19, the
2362 cross-platform audio input/output stream library.")
2363 (license license:expat)))
2365 (define-public python2-pyaudio
2366 (package-with-python2 python-pyaudio))
2368 (define-public python-pyliblo
2370 (name "python-pyliblo")
2374 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2378 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2379 (build-system python-build-system)
2380 (arguments `(#:tests? #f)) ;no tests
2382 `(("python-cython" ,python-cython)))
2384 `(("liblo" ,liblo)))
2385 (home-page "http://das.nasophon.de/pyliblo/")
2386 (synopsis "Python bindings for liblo")
2388 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2389 library. It supports almost the complete functionality of liblo, allowing you
2390 to send and receive OSC messages using a nice and simple Python API. Also
2391 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2392 (license license:lgpl2.1+)))
2394 (define-public python2-pyliblo
2395 (package-with-python2 python-pyliblo))
2403 (uri (string-append "https://download.drobilla.net/lilv-"
2404 version ".tar.bz2"))
2407 "0063i5zgf3d3accwmyx651hw0wh5ik7kji2hvfkcdbl1qia3dp6a"))))
2408 (build-system waf-build-system)
2410 `(#:tests? #f ; no check target
2412 (modify-phases %standard-phases
2413 (add-before 'configure 'set-ldflags
2414 (lambda* (#:key outputs #:allow-other-keys)
2416 (string-append "-Wl,-rpath="
2417 (assoc-ref outputs "out") "/lib"))
2419 (add-after 'unpack 'full-store-path-to-shared-library
2420 (lambda* (#:key outputs #:allow-other-keys)
2421 (with-directory-excursion "bindings/python"
2422 (substitute* "lilv.py"
2423 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2424 "/lib/liblilv-0.so"))))
2426 ;; Required by lilv-0.pc.
2431 ("sratom" ,sratom)))
2433 `(("python" ,python)
2434 ("pkg-config" ,pkg-config)))
2435 (home-page "https://drobilla.net/software/lilv")
2436 (synopsis "Library to simplify use of LV2 plugins in applications")
2438 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2439 for applications. Lilv is the successor to SLV2, rewritten to be
2440 significantly faster and have minimal dependencies.")
2441 (license license:isc)))
2449 (uri (string-append "https://lv2plug.in/spec/lv2-"
2450 version ".tar.bz2"))
2453 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2454 (build-system waf-build-system)
2456 `(#:tests? #f ; no check target
2457 #:configure-flags '("--no-plugins")))
2459 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2460 `(("libsndfile" ,libsndfile)))
2462 `(("pkg-config" ,pkg-config)))
2463 (home-page "https://lv2plug.in/")
2464 (synopsis "LV2 audio plugin specification")
2466 "LV2 is an open specification for audio plugins and host applications.
2467 At its core, LV2 is a simple stable interface, accompanied by extensions which
2468 add functionality to support the needs of increasingly powerful audio
2470 (license license:isc)))
2472 (define-public lv2-mda-piano
2474 (name "lv2-mda-piano")
2479 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2481 (file-name (git-file-name name version))
2484 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2485 (build-system gnu-build-system)
2487 `(#:make-flags (list
2489 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2490 #:tests? #f ; no check target
2491 #:phases (modify-phases %standard-phases (delete 'configure))))
2496 `(("pkg-config" ,pkg-config)))
2497 (native-search-paths
2498 (list (search-path-specification
2499 (variable "LV2_PATH")
2500 (files '("lib/lv2")))))
2501 (home-page "https://elephly.net/lv2/mdapiano.html")
2502 (synopsis "LV2 port of the mda Piano plugin")
2503 (description "An LV2 port of the mda Piano VSTi.")
2504 (license license:gpl3+)))
2506 (define-public lv2-mda-epiano
2507 (package (inherit lv2-mda-piano)
2508 (name "lv2-mda-epiano")
2510 `(#:make-flags (list
2512 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2513 #:tests? #f ; no check target
2514 #:phases (modify-phases %standard-phases (delete 'configure))))
2515 (home-page "https://elephly.net/lv2/mdaepiano.html")
2516 (synopsis "LV2 port of the mda EPiano plugin")
2517 (description "An LV2 port of the mda EPiano VSTi.")))
2526 (url "https://github.com/lvtk/lvtk")
2528 (file-name (git-file-name name version))
2531 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2532 (build-system waf-build-system)
2534 `(#:tests? #f ; no check target
2537 (list (string-append "--boost-includes="
2538 (assoc-ref %build-inputs "boost")
2545 `(("pkg-config" ,pkg-config)))
2546 (home-page "https://github.com/lvtk/lvtk")
2547 (synopsis "C++ libraries for LV2 plugins")
2549 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2550 extensions into easy to use C++ classes. It is the successor of
2552 (license license:gpl3+)))
2554 (define-public openal
2561 "https://openal-soft.org/openal-releases/openal-soft-"
2562 version ".tar.bz2"))
2565 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2566 (build-system cmake-build-system)
2568 `(#:tests? #f ; no check target
2570 (modify-phases %standard-phases
2572 'unpack 'use-full-library-paths
2573 (lambda* (#:key inputs #:allow-other-keys)
2574 (substitute* "alc/backends/pulseaudio.cpp"
2575 (("#define PALIB \"libpulse\\.so\\.0\"")
2576 (string-append "#define PALIB \""
2577 (assoc-ref inputs "pulseaudio")
2578 "/lib/libpulse.so.0"
2580 (substitute* "alc/backends/alsa.cpp"
2581 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2582 (string-append "LoadLib(\""
2583 (assoc-ref inputs "alsa-lib")
2584 "/lib/libasound.so.2"
2588 `(("alsa-lib" ,alsa-lib)
2589 ("pulseaudio" ,pulseaudio)))
2590 (synopsis "3D audio API")
2592 "OpenAL provides capabilities for playing audio in a virtual 3D
2593 environment. Distance attenuation, doppler shift, and directional sound
2594 emitters are among the features handled by the API. More advanced effects,
2595 including air absorption, occlusion, and environmental reverb, are available
2596 through the EFX extension. It also facilitates streaming audio, multi-channel
2597 buffers, and audio capture.")
2598 (home-page "https://openal-soft.org/")
2599 (license license:lgpl2.0+)))
2601 (define-public freealut
2607 ;; Upstream url is unclear, many systems use Fedora, there is also
2608 ;; https://github.com/vancegroup/freealut though the status of it
2609 ;; (official? unofficial?) is not clear.
2611 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2612 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2613 "-" version ".tar.gz"))
2616 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2617 (build-system cmake-build-system)
2619 `(#:tests? #f)) ; no check target
2621 `(("openal" ,openal)))
2622 (synopsis "Free implementation of OpenAL's ALUT standard")
2623 (description "freealut is the OpenAL Utility Toolkit.")
2624 (home-page "https://kcat.strangesoft.net/openal.html")
2625 (license license:lgpl2.0)))
2627 (define-public patchage
2633 (uri (string-append "https://download.drobilla.net/patchage-"
2638 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2639 (build-system waf-build-system)
2641 `(#:tests? #f ; no check target
2642 #:python ,python-2))
2644 `(("alsa-lib" ,alsa-lib)
2650 ("dbus-glib" ,dbus-glib)))
2652 `(("pkg-config" ,pkg-config)))
2653 (home-page "https://drobilla.net/software/patchage/")
2654 (synopsis "Modular patch bay for audio and MIDI systems")
2656 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2658 (license license:gpl3+)))
2660 (define-public pcaudiolib
2664 (home-page "https://github.com/espeak-ng/pcaudiolib")
2667 (uri (git-reference (url home-page) (commit version)))
2668 (file-name (git-file-name name version))
2671 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2672 (build-system gnu-build-system)
2674 `(#:configure-flags '("--disable-static")))
2676 `(("autoconf" ,autoconf)
2677 ("automake" ,automake)
2678 ("libtool" ,libtool)
2679 ("pkg-config" ,pkg-config)
2682 `(("alsa-lib" ,alsa-lib)
2683 ("pulseaudio" ,pulseaudio)))
2684 (synopsis "Portable C audio library")
2686 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2687 different audio devices such as ALSA or PulseAudio.")
2688 (license (list license:gpl3+
2689 ;; The bundled TPCircularBuffer uses a custom license.
2690 (license:non-copyleft
2691 "file://src/TPCircularBuffer/README.markdown")))))
2693 (define-public qjackctl
2699 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2700 version "/qjackctl-" version ".tar.gz"))
2703 "0zbb4jlx56qvcqyhx34mbagkqf3wbxgj84hk0ppf5cmcrxv67d4x"))))
2704 (build-system gnu-build-system)
2706 '(#:tests? #f)) ; no check target
2709 ("alsa-lib" ,alsa-lib)
2710 ("portaudio" ,portaudio)
2712 ("qtx11extras" ,qtx11extras)))
2714 `(("pkg-config" ,pkg-config)
2715 ("qttools" ,qttools)))
2716 (home-page "https://qjackctl.sourceforge.io/")
2717 (synopsis "Jack server control application")
2718 (description "Control a Jack server. Allows you to plug various sources
2719 into various outputs and to start, stop and configure jackd")
2720 (license license:gpl2+)))
2722 (define-public qjackrcd
2729 (url "https://github.com/orouits/qjackrcd")
2730 (commit (string-append "v" version))))
2731 (file-name (git-file-name name version))
2734 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2735 (build-system gnu-build-system)
2738 (modify-phases %standard-phases
2740 (lambda* (#:key outputs #:allow-other-keys)
2742 (string-append "PREFIX="
2743 (assoc-ref outputs "out"))))))))
2745 `(("qtbase" ,qtbase))) ; for qmake
2748 ("libsndfile" ,libsndfile)
2749 ("qtbase" ,qtbase)))
2750 (home-page "https://sourceforge.net/projects/qjackrcd/")
2751 (synopsis "Stereo audio recorder for JACK")
2752 (description "QJackRcd is a simple graphical stereo recorder for JACK
2753 supporting silence processing for automatic pause, file splitting, and
2754 background file post-processing.")
2755 (license license:gpl2+)))
2757 (define-public supercollider
2759 (name "supercollider")
2764 (url "https://github.com/supercollider/supercollider")
2765 (commit (string-append "Version-" version))
2766 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2768 (file-name (git-file-name name version))
2771 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))
2772 (modules '((guix build utils)
2775 ;; The build system doesn't allow us to unbundle the following
2776 ;; libraries. hidapi is also heavily patched and upstream not
2777 ;; actively maintained.
2778 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2779 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2780 (with-directory-excursion "./external_libraries"
2782 delete-file-recursively
2785 (and (eq? (stat:type (stat x)) 'directory)
2786 (not (member (basename x) keep-dirs)))))))
2787 ;; To find the Guix provided ableton-link library.
2788 (substitute* "lang/CMakeLists.txt"
2789 (("include\\(\\.\\./external_libraries/link/\
2790 AbletonLinkConfig\\.cmake\\)")
2791 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2794 (build-system cmake-build-system)
2796 '("out" ;core language
2799 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2800 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2801 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2802 "-DSC_EL=off") ;scel is packaged individually as
2805 (modify-phases %standard-phases
2806 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2807 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2808 ;; The graphical tests also hang without it.
2809 (add-after 'unpack 'set-home-directory
2811 (setenv "HOME" (getcwd))
2813 (add-after 'unpack 'patch-scclass-dir
2814 (lambda* (#:key outputs #:allow-other-keys)
2815 (let* ((out (assoc-ref outputs "out"))
2818 "/share/SuperCollider/SCClassLibrary")))
2819 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2821 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2822 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2823 (string-append "Path(\"" scclass-dir "\")")))
2825 (add-before 'build 'prepare-x
2828 (setenv "DISPLAY" ":0")
2830 (add-before 'install 'install-ide
2831 (lambda* (#:key outputs #:allow-other-keys)
2832 (let* ((out (assoc-ref outputs "out"))
2833 (ide (assoc-ref outputs "ide"))
2834 (scide "editors/sc-ide/scide"))
2836 (string-append ide "/bin"))
2840 `(("ableton-link" ,ableton-link)
2841 ("pkg-config" ,pkg-config)
2842 ("qttools" ,qttools)
2843 ("xorg-server" ,xorg-server-for-tests)))
2846 ("libsndfile" ,libsndfile)
2849 ("readline" ,readline) ;readline support for sclang's CLI
2850 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2851 ("eudev" ,eudev) ;for user interactions with devices
2852 ("avahi" ,avahi) ;zeroconf service discovery support
2855 ("boost-sync" ,boost-sync)
2856 ("yaml-cpp" ,yaml-cpp)
2858 ("qtdeclarative" ,qtdeclarative)
2860 ("qtwebchannel" ,qtwebchannel)
2861 ("qtwebsockets" ,qtwebsockets)))
2862 (propagated-inputs ;to get native-search-path
2863 `(("qtwebengine" ,qtwebengine)))
2864 (home-page "https://github.com/supercollider/supercollider")
2865 (synopsis "Synthesis engine and programming language")
2866 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2867 @code{supernova}) and programming language (@code{sclang}). It can be used
2868 for experimenting with sound synthesis and algorithmic composition.
2870 SuperCollider requires jackd to be installed in your user profile and your
2871 user must be allowed to access the realtime features of the kernel. Search
2872 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2873 using Guix System.")
2874 (license license:gpl2+)))
2882 (uri (string-append "https://download.drobilla.net/raul-"
2883 version ".tar.bz2"))
2886 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2887 (build-system waf-build-system)
2889 `(#:python ,python-2
2890 #:tests? #f)) ; no check target
2895 `(("pkg-config" ,pkg-config)))
2896 (home-page "https://drobilla.net/software/raul/")
2897 (synopsis "Real-time audio utility library")
2899 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2900 aimed at audio/musical applications.")
2901 (license license:gpl2+)))
2903 (define-public raul-devel
2904 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2906 (package (inherit raul)
2908 (version (string-append "0.8.9-" revision "."
2909 (string-take commit 9)))
2913 (url "https://git.drobilla.net/raul.git")
2915 (file-name (string-append name "-" version "-checkout"))
2918 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2920 (define-public resample
2926 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2930 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2931 (build-system gnu-build-system)
2933 `(("autoconf" ,autoconf)
2934 ("automake" ,automake)
2935 ("pkg-config" ,pkg-config)
2936 ("libtool" ,libtool)))
2937 (synopsis "Sampling rate conversion and filter design utilities")
2938 (description "This package contains the @command{resample} and
2939 @command{windowfilter} command line utilities. The @command{resample} command
2940 allows changing the sampling rate of a sound file, while the
2941 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
2942 filters using the so-called @emph{window method}.")
2943 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2944 (license license:lgpl2.1+)))
2946 (define-public rubberband
2953 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2956 (file-name (string-append name "-" version ".tar.bz2"))
2959 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2960 (build-system gnu-build-system)
2962 `(#:tests? #f ; no check target
2964 (modify-phases %standard-phases
2965 (add-after 'unpack 'skip-jni-installation
2966 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2967 ;; which is never built by ‘make all’. Skip it.
2969 (substitute* "Makefile.in"
2970 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2973 `(("ladspa" ,ladspa)
2974 ("libsamplerate" ,libsamplerate)
2977 `(("pkg-config" ,pkg-config)))
2978 (home-page "https://breakfastquay.com/rubberband/")
2979 (synopsis "Audio time-stretching and pitch-shifting library")
2981 "Rubber Band is a library and utility program that permits changing the
2982 tempo and pitch of an audio recording independently of one another.")
2983 (license license:gpl2+)))
2985 (define-public rtmidi
2991 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2992 "/release/rtmidi-" version ".tar.gz"))
2993 (file-name (string-append "rtmidi-" version ".tar.gz"))
2996 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2997 (build-system gnu-build-system)
3000 ("alsa-lib" ,alsa-lib)))
3002 `(("autoconf" ,autoconf)
3003 ("automake" ,automake)
3004 ("libtool" ,libtool)
3005 ("pkg-config" ,pkg-config)))
3006 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3007 (synopsis "Cross-platform MIDI library for C++")
3009 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3010 classes) that provide a common cross-platform API for realtime MIDI
3012 (license license:expat)))
3014 (define-public sratom
3020 (uri (string-append "https://download.drobilla.net/sratom-"
3021 version ".tar.bz2"))
3024 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
3025 (build-system waf-build-system)
3026 (arguments `(#:tests? #f)) ;no check target
3028 ;; In Requires of sratom-0.pc.
3033 `(("pkg-config" ,pkg-config)))
3034 (home-page "https://drobilla.net/software/sratom/")
3035 (synopsis "Library for serialising LV2 atoms to/from RDF")
3037 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3038 the Turtle syntax.")
3039 (license license:isc)))
3047 (uri (string-append "https://download.drobilla.net/suil-"
3048 version ".tar.bz2"))
3051 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
3052 (build-system waf-build-system)
3054 `(#:tests? #f)) ;no check target
3061 `(("pkg-config" ,pkg-config)))
3062 (home-page "https://drobilla.net/software/suil/")
3063 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3065 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3067 Suil makes it possible to load a UI of a toolkit in a host using another
3068 toolkit. The API is designed such that hosts do not need to explicitly
3069 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3070 that toolkit will work in all hosts that use Suil automatically.
3072 Suil currently supports every combination of Gtk, Qt, and X11.")
3073 (license license:isc)))
3075 (define-public libebur128
3083 (url "https://github.com/jiixyj/libebur128")
3084 (commit (string-append "v" version))))
3085 (file-name (git-file-name name version))
3087 (base32 "0n81rnm8dm1zmibkr2v3q79rsd609y0dbbsrbay18njcjva88p0g"))))
3088 (build-system cmake-build-system)
3090 `(;; Tests require proprietary .wav files. See
3091 ;; https://github.com/jiixyj/libebur128/issues/82.
3093 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3094 (home-page "https://github.com/jiixyj/libebur128")
3095 (synopsis "Library implementing the EBU R 128 loudness standard")
3097 "@code{libebur128} is a C library that implements the EBU R 128 standard
3098 for loudness normalisation.")
3099 (license license:expat)))
3101 (define-public timidity++
3107 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3108 "/TiMidity++-" version
3109 "/TiMidity++-" version ".tar.bz2"))
3112 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
3113 (build-system gnu-build-system)
3116 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3120 (string-append "--with-default-path="
3121 (assoc-ref %outputs "out") "/etc/timidity"))
3123 (modify-phases %standard-phases
3124 (add-after 'install 'install-config
3126 (let ((out (string-append (assoc-ref %outputs "out")
3129 (call-with-output-file
3130 (string-append out "/timidity.cfg")
3132 (format port (string-append "source "
3133 (assoc-ref %build-inputs "freepats")
3134 "/share/freepats/freepats.cfg")))))
3137 `(("alsa-lib" ,alsa-lib)
3142 ("libvorbis" ,libvorbis)
3144 ("ncurses" ,ncurses)
3145 ("freepats" ,freepats)))
3147 `(("pkg-config" ,pkg-config)))
3148 (home-page "http://timidity.sourceforge.net/")
3149 (synopsis "Software synthesizer for playing MIDI files")
3151 "TiMidity++ is a software synthesizer. It can play MIDI files by
3152 converting them into PCM waveform data; give it a MIDI data along with digital
3153 instrument data files, then it synthesizes them in real-time, and plays. It
3154 can not only play sounds, but also can save the generated waveforms into hard
3155 disks as various audio file formats.")
3156 (license license:gpl2+)))
3165 "https://code.soundsoftware.ac.uk"
3166 "/attachments/download/1520/vamp-plugin-sdk-"
3170 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3171 (build-system gnu-build-system)
3173 `(#:tests? #f ; no check target
3175 (modify-phases %standard-phases
3176 (add-after 'install 'remove-libvamp-hostsdk.la
3177 (lambda* (#:key outputs #:allow-other-keys)
3178 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3179 (for-each delete-file
3180 (let ((out (assoc-ref outputs "out")))
3181 (list (string-append out "/lib/libvamp-sdk.la")
3182 (string-append out "/lib/libvamp-hostsdk.la"))))
3185 `(("libsndfile" ,libsndfile)))
3187 `(("pkg-config" ,pkg-config)))
3188 (home-page "https://vamp-plugins.org")
3189 (synopsis "Modular and extensible audio processing system")
3191 "Vamp is an audio processing plugin system for plugins that extract
3192 descriptive information from audio data — typically referred to as audio
3193 analysis plugins or audio feature extraction plugins.")
3196 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3198 (define-public libsbsms
3205 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3206 "/libsbsms-" version ".tar.gz"))
3208 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3209 (build-system gnu-build-system)
3210 (native-inputs `(("automake" ,automake)))
3213 ;; Disable the use of SSE unless on x86_64.
3214 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3215 (%current-system))))
3219 (modify-phases %standard-phases
3221 'unpack 'fix-ar-lib-path
3222 (lambda* (#:key inputs #:allow-other-keys)
3223 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3224 (delete-file "ar-lib")
3226 (string-append (assoc-ref inputs "automake") "/share/automake-"
3227 ,(package-version automake) "/ar-lib")
3230 (home-page "http://sbsms.sourceforge.net/")
3231 (synopsis "Library for time stretching and pitch scaling of audio")
3233 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3234 stretching and pitch scaling of audio. This package contains the library.")
3235 ;; There is no explicit declaration of a license, but a COPYING file
3237 (license license:gpl2)))
3239 (define-public wavpack
3247 (url "https://github.com/dbry/WavPack")
3248 (commit "e4e8d191e8dd74cbdbeaef3232c16a7ef517e68d")))
3250 (base32 "1zj8svk6giy1abq3940sz32ygz7zldppxl47852zgn5wfm3l2spx"))
3251 (file-name (git-file-name name version))))
3252 (build-system gnu-build-system)
3255 (list "--disable-static")
3257 (modify-phases %standard-phases
3259 ;; Running ./autogen.sh would cause premature configuration.
3261 (invoke "autoreconf" "-vif")
3264 `(("autoconf" ,autoconf)
3265 ("automake" ,automake)
3266 ("libtool" ,libtool)))
3267 (home-page "http://www.wavpack.com/")
3268 (synopsis "Hybrid lossless audio codec")
3270 "WavPack is an audio compression format with lossless, lossy and hybrid
3271 compression modes. This package contains command-line programs and library to
3272 encode and decode wavpack files.")
3273 (license license:bsd-3)))
3275 (define-public libmodplug
3282 "mirror://sourceforge/modplug-xmms/"
3283 name "/" version "/" name "-" version ".tar.gz"))
3286 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3287 (build-system gnu-build-system)
3288 (home-page "http://modplug-xmms.sourceforge.net/")
3289 (synopsis "Mod file playing library")
3291 "Libmodplug renders mod music files as raw audio data, for playing or
3292 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3293 supported. Optional features include high-quality resampling, bass expansion,
3294 surround and reverb.")
3295 (license license:public-domain)))
3297 (define-public libxmp
3303 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3304 name "-" version ".tar.gz"))
3307 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3308 (build-system gnu-build-system)
3309 (home-page "http://xmp.sourceforge.net/")
3310 (synopsis "Module player library")
3312 "Libxmp is a library that renders module files to PCM data. It supports
3313 over 90 mainstream and obscure module formats including Protracker (MOD),
3314 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3315 (license license:lgpl2.1+)))
3323 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3324 name "-" version ".tar.gz"))
3327 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3328 (build-system gnu-build-system)
3330 `(("pkg-config" ,pkg-config)))
3332 `(("libxmp" ,libxmp)
3333 ("pulseaudio" ,pulseaudio)))
3334 (home-page "http://xmp.sourceforge.net/")
3335 (synopsis "Extended module player")
3337 "Xmp is a portable module player that plays over 90 mainstream and
3338 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3339 Tracker 3 S3M and Impulse Tracker IT files.")
3340 (license license:gpl2+)))
3342 (define-public soundtouch
3350 (url "https://gitlab.com/soundtouch/soundtouch.git")
3352 (file-name (git-file-name name version))
3354 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3355 (build-system gnu-build-system)
3357 `(("autoconf" ,autoconf)
3358 ("automake" ,automake)
3359 ("libtool" ,libtool)
3361 (home-page "https://www.surina.net/soundtouch/")
3363 "Audio processing library for changing tempo, pitch and playback rate")
3365 "SoundTouch is an audio processing library for changing the tempo, pitch
3366 and playback rates of audio streams or audio files. It is intended for
3367 application developers writing sound processing tools that require tempo/pitch
3368 control functionality, or just for playing around with the sound effects.")
3369 (license license:lgpl2.1+)))
3377 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3378 name "-" version ".tar.bz2"))
3381 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3382 (build-system gnu-build-system)
3385 ;; The upstream asks to identify the distribution to diagnose SoX
3387 '("--with-distro=Guix System Distribution")))
3389 `(("pkg-config" ,pkg-config)))
3391 `(("alsa-lib" ,alsa-lib)
3395 ("libid3tag" ,libid3tag)
3396 ("libltdl" ,libltdl)
3399 ("libvorbis" ,libvorbis)
3400 ("pulseaudio" ,pulseaudio)))
3401 (home-page "http://sox.sourceforge.net")
3402 (synopsis "Sound processing utility")
3404 "SoX (Sound eXchange) is a command line utility that can convert
3405 various formats of computer audio files to other formats. It can also
3406 apply various effects to these sound files, and, as an added bonus, SoX
3407 can play and record audio files.")
3408 ;; sox.c is distributed under GPL, while the files that make up
3409 ;; libsox are licensed under LGPL.
3410 (license (list license:gpl2+ license:lgpl2.1+))))
3420 (string-append "mirror://sourceforge/soxr/soxr-" version
3423 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3424 (build-system cmake-build-system)
3425 (arguments '(#:tests? #f)) ;no 'check' target
3426 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3427 (synopsis "One-dimensional sample-rate conversion library")
3429 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3430 conversion. It may be used, for example, to resample PCM-encoded audio.")
3431 (license license:lgpl2.1+)))
3433 (define-public twolame
3440 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3441 "/twolame-" version ".tar.gz"))
3443 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3444 (build-system gnu-build-system)
3446 `(("libsndfile" ,libsndfile)))
3449 ("which" ,which))) ;used in tests/test.pl
3450 (home-page "http://www.twolame.org/")
3451 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3453 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3454 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3456 (license license:lgpl2.1+)))
3458 (define-public portaudio
3461 (version "190600.20161030")
3466 "http://www.portaudio.com/archives/pa_stable_v"
3467 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3470 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3471 (patches (search-patches "portaudio-audacity-compat.patch"))))
3472 (build-system gnu-build-system)
3474 ;; TODO: Add ASIHPI.
3475 `(("alsa-lib" ,alsa-lib)
3477 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3480 `(("autoconf" ,autoconf)
3481 ("automake" ,automake)
3482 ("libtool" ,libtool)
3483 ("pkg-config" ,pkg-config)))
3485 '(#:tests? #f ;no 'check' target
3486 #:parallel-build? #f ;fails on some systems
3487 #:configure-flags '("--with-pic"
3489 ;; XXX: The following prevents a build error
3490 ;; because of missing depcomp when C++ bindings are
3492 "--disable-dependency-tracking")
3494 (modify-phases %standard-phases
3495 ;; This is needed for linking the static libraries
3496 (add-after 'unpack 'build-only-position-independent-code
3498 (substitute* "configure.in"
3499 (("AC_PROG_LIBTOOL" m)
3500 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3501 (delete-file "configure")
3503 ;; Some headers are not installed by default, but are needed by
3504 ;; packages like Kaldi.
3505 (add-after 'install 'install-missing-headers
3506 (lambda* (#:key outputs #:allow-other-keys)
3507 (install-file "src/common/pa_ringbuffer.h"
3508 (string-append (assoc-ref outputs "out") "/include"))
3510 (home-page "http://www.portaudio.com/")
3511 (synopsis "Audio I/O library")
3513 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3514 to record and/or play sound using a callback function or a blocking read/write
3516 (license license:expat)))
3518 (define-public qsynth
3526 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3527 "/qsynth-" version ".tar.gz")
3528 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3529 "/qsynth-" version ".tar.gz")))
3531 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3532 (build-system gnu-build-system)
3534 `(#:tests? #f)) ; no "check" phase
3536 `(("qttools" ,qttools)
3537 ("pkg-config" ,pkg-config)))
3539 `(("fluidsynth" ,fluidsynth)
3541 ("qtx11extras" ,qtx11extras)))
3542 (home-page "https://qsynth.sourceforge.io")
3543 (synopsis "Graphical user interface for FluidSynth")
3545 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3546 synthesizer written in C++.")
3547 (license license:gpl2+)))
3549 (define-public rsound
3557 (url "https://github.com/Themaister/RSound")
3558 (commit (string-append "v" version))))
3559 (file-name (git-file-name name version))
3561 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3562 (build-system gnu-build-system)
3564 `(("alsa-lib" ,alsa-lib)
3567 ("libsamplerate" ,libsamplerate)
3569 ("portaudio" ,portaudio)
3570 ("pulseaudio" ,pulseaudio)))
3573 (modify-phases %standard-phases
3575 (lambda* (#:key outputs #:allow-other-keys)
3577 (invoke "./configure"
3578 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3579 ;; No 'check' target.
3581 (home-page "https://themaister.net/rsound.html")
3582 (synopsis "Networked audio system")
3584 "RSound allows you to send audio from an application and transfer it
3585 directly to a different computer on your LAN network. It is an audio daemon
3586 with a much different focus than most other audio daemons.")
3587 (license license:gpl3+)))
3589 (define-public xjackfreak
3596 (url "https://github.com/johnhldavis/xjackfreak")
3597 (commit (string-append "v" version))))
3598 (file-name (git-file-name name version))
3601 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3602 (build-system gnu-build-system)
3605 (list (string-append "docdir=" (assoc-ref %outputs "out")
3606 "/share/doc/xjackfreak"))))
3611 ("libxext" ,libxext)))
3613 `(("pkg-config" ,pkg-config)))
3614 (home-page "https://github.com/johnhldavis/xjackfreak")
3615 (synopsis "JACK audio frequency analyzer and display")
3617 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3618 Connection Kit. It can display the FFT of any input, modify it and output the
3620 (license license:gpl3+)))
3622 (define-public zita-convolver
3624 (name "zita-convolver")
3629 "http://kokkinizita.linuxaudio.org"
3630 "/linuxaudio/downloads/zita-convolver-"
3631 version ".tar.bz2"))
3633 ;; Don't optimize for a specific processor architecture.
3635 (substitute* "source/Makefile"
3636 (("^CXXFLAGS \\+= -march=native") ""))
3638 (modules '((guix build utils)))
3641 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3642 (build-system gnu-build-system)
3644 `(#:tests? #f ; no "check" target
3646 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3647 (string-append "SUFFIX="))
3649 (modify-phases %standard-phases
3650 (add-after 'unpack 'patch-makefile-and-enter-directory
3652 (substitute* "source/Makefile"
3653 (("ldconfig") "true")
3654 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3657 (add-after 'install 'install-symlink
3659 (symlink "libzita-convolver.so"
3660 (string-append (assoc-ref %outputs "out")
3661 "/lib/libzita-convolver.so.4"))
3663 ;; no configure script
3664 (delete 'configure))))
3665 (inputs `(("fftwf" ,fftwf)))
3666 (home-page "https://kokkinizita.linuxaudio.org")
3667 (synopsis "Fast, partitioned convolution engine library")
3669 "Zita convolver is a C++ library providing a real-time convolution
3671 (license license:gpl3+)))
3673 (define-public zita-resampler
3675 (name "zita-resampler")
3680 "http://kokkinizita.linuxaudio.org"
3681 "/linuxaudio/downloads/zita-resampler-"
3682 version ".tar.bz2"))
3684 ;; Don't optimize for a specific processor architecture.
3686 (substitute* '("apps/Makefile" "source/Makefile")
3687 (("^CXXFLAGS \\+= -march=native") ""))
3689 (modules '((guix build utils)))
3692 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3693 (build-system gnu-build-system)
3695 `(#:tests? #f ; no "check" target
3697 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3698 (string-append "SUFFIX="))
3700 (modify-phases %standard-phases
3702 'unpack 'patch-makefile-and-enter-directory
3704 (substitute* "source/Makefile"
3705 (("ldconfig") "true")
3706 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3710 'install 'install-symlink
3712 (symlink "libzita-resampler.so"
3713 (string-append (assoc-ref %outputs "out")
3714 "/lib/libzita-resampler.so.1"))
3716 ;; no configure script
3717 (delete 'configure))))
3718 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3719 (synopsis "C++ library for resampling audio signals")
3721 "Libzita-resampler is a C++ library for resampling audio signals. It is
3722 designed to be used within a real-time processing context, to be fast, and to
3723 provide high-quality sample rate conversion.")
3724 (license license:gpl3+)))
3726 (define-public zita-alsa-pcmi
3728 (name "zita-alsa-pcmi")
3733 "http://kokkinizita.linuxaudio.org"
3734 "/linuxaudio/downloads/zita-alsa-pcmi-"
3735 version ".tar.bz2"))
3738 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3739 (build-system gnu-build-system)
3741 `(#:tests? #f ; no "check" target
3743 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3744 (string-append "SUFFIX="))
3746 (modify-phases %standard-phases
3747 (add-after 'unpack 'patch-makefile-and-enter-directory
3749 (substitute* "source/Makefile"
3750 (("ldconfig") "true")
3751 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3754 (add-after 'install 'install-symlink
3756 (symlink "libzita-alsa-pcmi.so"
3757 (string-append (assoc-ref %outputs "out")
3758 "/lib/libzita-alsa-pcmi.so.0"))
3760 ;; no configure script
3761 (delete 'configure))))
3763 `(("alsa-lib" ,alsa-lib)
3765 (home-page "https://kokkinizita.linuxaudio.org")
3766 (synopsis "C++ wrapper around the ALSA API")
3768 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3769 access to ALSA PCM devices, taking care of the many functions required to
3770 open, initialise and use a hw: device in mmap mode, and providing floating
3772 (license license:gpl3+)))
3774 (define-public cuetools
3781 (url "https://github.com/svend/cuetools")
3783 (file-name (git-file-name name version))
3786 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3787 (build-system gnu-build-system)
3788 ;; The source checkout is not bootstrapped.
3790 `(("autoconf" ,autoconf)
3791 ("automake" ,automake)
3794 (synopsis "Cue and toc file parsers and utilities")
3795 (description "Cuetools is a set of programs that are useful for manipulating
3796 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3797 files are a way to represent the layout of a data or audio CD in a
3798 machine-readable ASCII format.")
3799 (home-page "https://github.com/svend/cuetools")
3800 (license license:gpl2+)))
3802 (define-public shntool
3809 (string-append "http://etree.org/shnutils/shntool/dist/src/"
3810 "shntool-" version ".tar.gz")
3811 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
3812 version ".orig.tar.gz")))
3815 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3816 (build-system gnu-build-system)
3817 (synopsis "WAVE audio data processing tool")
3818 (description "shntool is a multi-purpose WAVE data processing and reporting
3819 utility. File formats are abstracted from its core, so it can process any file
3820 that contains WAVE data, compressed or not---provided there exists a format
3821 module to handle that particular file type. It can also generate CUE files, and
3822 use them split WAVE data into multiple files.")
3823 (home-page "http://etree.org/shnutils/shntool/")
3824 ;; 'install-sh' bears the x11 license
3825 (license (list license:gpl2+ license:x11))))
3827 (define-public dcadec
3834 (url "https://github.com/foo86/dcadec")
3835 (commit (string-append "v" version))))
3836 (file-name (git-file-name name version))
3839 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3840 (build-system gnu-build-system)
3842 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3845 (list (string-append "CC=" ,(cc-for-target))
3846 ;; Build shared library.
3848 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3849 ;; Set proper runpath.
3850 (string-append "LDFLAGS=-Wl,-rpath="
3851 (assoc-ref %outputs "out")
3854 (modify-phases %standard-phases
3855 ;; No configure script, just a hand-written Makefile.
3856 (delete 'configure))))
3857 (synopsis "DTS Coherent Acoustics decoder")
3858 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3859 with support for HD extensions.")
3860 (home-page "https://github.com/foo86/dcadec")
3861 (license license:lgpl2.1+)))
3863 (define-public bs1770gain
3867 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3871 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3872 version "/bs1770gain-" version ".tar.gz"))
3874 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3875 (modules '((guix build utils)))
3879 (substitute* (find-files "." "\\.[ch]$")
3880 (("^ \\* N..o.*") ""))
3881 (substitute* "libbg/bgx.c"
3882 (("#define BG.* ") "#define BS ")
3883 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3884 (("\"( #|N).*\"") "\"\""))
3885 (substitute* (list "config.h"
3888 (("https?://bs1770gain[^/]*/")
3891 (build-system gnu-build-system)
3892 (inputs `(("ffmpeg" ,ffmpeg)
3894 (synopsis "Tool to adjust loudness of media files")
3896 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3897 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3898 loudness of audio and video files to the same level.")
3899 (license license:gpl2+)))
3901 (define-public filteraudio
3902 (let ((revision "1")
3903 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3905 (name "filteraudio")
3906 (version (string-append "0.0.0-" revision "."
3907 (string-take commit 7)))
3912 (url "https://github.com/irungentoo/filter_audio")
3914 (file-name (string-append name "-" version "-checkout"))
3917 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3918 (build-system gnu-build-system)
3920 `(#:make-flags (list (string-append "PREFIX=" %output)
3921 (string-append "CC=" ,(cc-for-target)))
3922 #:tests? #f ; No tests
3924 (modify-phases %standard-phases
3925 ;; No configure script
3926 (delete 'configure))))
3927 (synopsis "Lightweight audio filtering library")
3928 (description "An easy to use audio filtering library made from webrtc
3929 code, used in @code{libtoxcore}.")
3930 (home-page "https://github.com/irungentoo/filter_audio")
3931 (license license:bsd-3))))
3941 (string-append "http://www.quut.com/" name "/" name
3942 "-" version ".tar.gz"))
3945 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3946 (build-system gnu-build-system)
3948 `(#:test-target "tst"
3949 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3951 (modify-phases %standard-phases
3952 (add-after 'unpack 'add-fpic-ccflag
3954 ;; The -fPIC compiler option is needed when building
3956 (substitute* "Makefile"
3958 (string-append all "CCFLAGS += -fPIC\n")))
3960 (add-before 'install 'pre-install
3962 (let ((out (assoc-ref %outputs "out")))
3963 (mkdir-p (string-append out "/inc"))
3964 (mkdir-p (string-append out "/man"))
3965 (mkdir-p (string-append out "/man/man1"))
3966 (mkdir-p (string-append out "/man/man3"))
3967 (mkdir-p (string-append out "/bin"))
3968 (mkdir-p (string-append out "/lib")))
3970 (add-after 'install 'post-install
3972 (let ((out (assoc-ref %outputs "out")))
3973 (rename-file (string-append out "/inc")
3974 (string-append out "/include"))
3975 (mkdir-p (string-append out "/include/gsm"))
3976 (copy-recursively "inc"
3977 (string-append out "/include/gsm")))
3979 (delete 'configure)))) ; no configure script
3980 (synopsis "GSM 06.10 lossy speech compression library")
3981 (description "This C library provides an encoder and a decoder for the GSM
3982 06.10 RPE-LTP lossy speech compression algorithm.")
3983 (home-page "http://quut.com/gsm/")
3984 (license (license:non-copyleft "file://COPYRIGHT"))))
3986 (define-public python-pyalsaaudio
3988 (name "python-pyalsaaudio")
3992 (uri (pypi-uri "pyalsaaudio" version))
3995 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3996 (build-system python-build-system)
3998 `(#:tests? #f)) ; tests require access to ALSA devices.
4000 `(("alsa-lib" ,alsa-lib)))
4001 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4002 (synopsis "ALSA wrappers for Python")
4004 "This package contains wrappers for accessing the ALSA API from Python.
4005 It is currently fairly complete for PCM devices, and has some support for
4007 (license license:psfl)))
4009 (define-public python2-pyalsaaudio
4010 (package-with-python2 python-pyalsaaudio))
4012 (define-public ldacbt
4018 (uri (string-append "https://github.com/EHfive/ldacBT"
4019 "/releases/download/v" version
4020 "/ldacBT-" version ".tar.gz"))
4023 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4024 (build-system cmake-build-system)
4025 (arguments `(#:tests? #f)) ; no check target
4026 (home-page "https://github.com/EHfive/ldacBT/")
4027 (synopsis "LDAC Bluetooth encoder and ABR library")
4028 (description "This package provides an encoder for the LDAC
4029 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4030 kbps at 24 bit/96 kHz.")
4031 (license license:asl2.0)))
4033 (define-public bluez-alsa
4038 ;; The tarballs are mere snapshots and don't contain a
4039 ;; bootstrapped build system.
4042 (url "https://github.com/Arkq/bluez-alsa")
4043 (commit (string-append "v" version))))
4044 (file-name (git-file-name name version))
4047 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4048 (build-system gnu-build-system)
4051 (list "--enable-ldac"
4052 (string-append "--with-alsaplugindir="
4053 (assoc-ref %outputs "out")
4055 (string-append "--with-dbusconfdir="
4056 (assoc-ref %outputs "out")
4057 "/etc/dbus-1/system.d"))))
4059 `(("autoconf" ,autoconf)
4060 ("automake" ,automake)
4061 ("libtool" ,libtool)
4062 ("pkg-config" ,pkg-config)))
4064 `(("alsa-lib" ,alsa-lib)
4070 ("ncurses" ,ncurses)
4073 (home-page "https://github.com/Arkq/bluez-alsa")
4074 (synopsis "Bluetooth ALSA backend")
4075 (description "This project is a rebirth of a direct integration between
4076 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
4077 in favor of 3rd party audio applications. From now on, Bluez acts as a
4078 middleware between an audio application, which implements Bluetooth audio
4079 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4080 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4081 capabilities) can be connected. In order to access the audio stream, one has
4082 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4083 on the ALSA software PCM plugin.")
4084 (license license:expat)))
4092 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4093 "snd-" version ".tar.gz"))
4096 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4097 (build-system glib-or-gtk-build-system)
4099 `(#:tests? #f ; no tests
4100 #:out-of-source? #f ; for the 'install-doc' phase
4102 (let* ((out (assoc-ref %outputs "out"))
4103 (docdir (string-append out "/share/doc/"
4104 ,name "-" ,version)))
4105 (list "--with-alsa" "--with-jack" "--with-gmp"
4106 (string-append "--with-doc-dir=" docdir)))
4108 (modify-phases %standard-phases
4109 (add-after 'install 'install-doc
4110 (lambda* (#:key outputs #:allow-other-keys)
4111 (let* ((out (assoc-ref outputs "out"))
4112 (doc (string-append out "/share/doc/"
4113 ,name "-" ,version)))
4116 (install-file f doc))
4117 (find-files "." "\\.html$"))
4118 (copy-recursively "pix" (string-append doc "/pix"))
4121 `(("pkg-config" ,pkg-config)))
4123 `(("alsa-lib" ,alsa-lib)
4130 ("libsamplerate" ,libsamplerate)
4135 ("timidity++" ,timidity++)
4136 ("vorbis-tools" ,vorbis-tools)
4137 ("wavpack" ,wavpack)))
4138 (synopsis "Sound editor")
4139 (home-page "https://ccrma.stanford.edu/software/snd/")
4141 "Snd is a sound editor modelled loosely after Emacs. It can be
4142 customized and extended using either the s7 Scheme implementation (included in
4143 the Snd sources), Ruby, or Forth.")
4144 (license (license:non-copyleft "file://COPYING"))))
4146 (define-public noise-repellent
4148 (name "noise-repellent")
4153 (url "https://github.com/lucianodato/noise-repellent")
4155 (file-name (string-append name "-" version "-checkout"))
4158 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4159 (build-system meson-build-system)
4162 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4168 `(("pkg-config" ,pkg-config)))
4169 (home-page "https://github.com/lucianodato/noise-repellent")
4170 (synopsis "LV2 plugin for broadband noise reduction")
4171 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4172 the following features:
4175 @item Spectral gating and spectral subtraction suppression rule
4176 @item Adaptive and manual noise thresholds estimation
4177 @item Adjustable noise floor
4178 @item Adjustable offset of thresholds to perform over-subtraction
4179 @item Time smoothing and a masking estimation to reduce artifacts
4180 @item Basic onset detector to avoid transients suppression
4181 @item Whitening of the noise floor to mask artifacts and to recover higher
4183 @item Option to listen to the residual signal
4185 @item Noise profile saved with the session
4188 (license license:lgpl3+)))
4190 (define-public cli-visualizer
4192 (name "cli-visualizer")
4198 (url "https://github.com/dpayne/cli-visualizer")
4199 (commit (string-append "v" version))))
4200 (file-name (git-file-name name version))
4202 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4203 (build-system cmake-build-system)
4205 ;; TODO: Try using the latest googletest for versions > 1.8.
4206 `( ;; ("googletest" ,googletest-1.8)
4210 ("ncurses" ,ncurses)
4211 ("pulseaudio" ,pulseaudio)))
4214 ;; XXX Enable tests after patching them to use the system googletest.
4215 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4217 (modify-phases %standard-phases
4218 (add-after 'install 'install-examples
4219 (lambda* (#:key outputs #:allow-other-keys)
4220 (with-directory-excursion "../source/examples"
4221 (delete-file "mac_osx_config")
4222 (for-each (lambda (file)
4225 (assoc-ref outputs "out")
4229 (home-page "https://github.com/dpayne/cli-visualizer/")
4230 (synopsis "Command-line audio visualizer")
4231 (description "@code{cli-visualizer} displays fast-Fourier
4232 transforms (FFTs) of the sound being played, as well as other graphical
4234 (license license:expat)))
4243 (url "https://github.com/karlstav/cava")
4245 (file-name (git-file-name name version))
4248 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
4249 (build-system gnu-build-system)
4251 `(("autoconf" ,autoconf)
4252 ("automake" ,automake)
4253 ("libtool" ,libtool)))
4256 ("ncurses" ,ncurses)
4257 ("pulseaudio" ,pulseaudio)))
4260 (list (string-append "PREFIX=" %output)
4261 (string-append "FONT_DIR=" %output "/share/consolefonts"))
4263 (let ((lib (string-append %output "/lib")))
4264 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
4266 (modify-phases %standard-phases
4268 (lambda* (#:key outputs #:allow-other-keys)
4269 (setenv "HOME" (getcwd))
4270 (invoke "sh" "autogen.sh")))
4271 (add-before 'build 'make-cava-ldflags
4272 (lambda* (#:key outputs #:allow-other-keys)
4273 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
4275 (add-after 'install 'data
4276 (lambda* (#:key outputs #:allow-other-keys)
4277 (for-each (lambda (file)
4279 (string-append (assoc-ref outputs "out")
4280 "/share/doc/examples")))
4281 (find-files "example_files"))
4283 (home-page "https://karlstav.github.io/cava/")
4284 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4285 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4286 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4287 (license license:expat)))
4289 (define-public fluid-3
4290 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4297 ;; Only one file is required, but the release bundles the whole
4298 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4299 ;; directly links the soundfont release to the github file download.
4300 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4301 commit "/share/sound/FluidR3Mono_GM.sf3"))
4302 (file-name (string-append name "-" version ".sf3"))
4305 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4306 (build-system trivial-build-system)
4308 `(#:modules ((guix build utils))
4311 (use-modules (guix build utils))
4312 (let ((file (assoc-ref %build-inputs "source"))
4313 (out (string-append %output "/share/soundfonts")))
4315 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4317 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4318 (synopsis "Pro-quality GM soundfont")
4319 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4320 (license license:expat))))
4322 (define-public libfdk
4330 (url "https://github.com/mstorsjo/fdk-aac")
4331 (commit (string-append "v" version))))
4332 (file-name (git-file-name name version))
4335 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4336 (build-system gnu-build-system)
4338 `(("autoconf" ,autoconf)
4339 ("automake" ,automake)
4340 ("libtool" ,libtool)))
4341 (home-page "https://github.com/mstorsjo/fdk-aac")
4342 (synopsis "Fraunhofer FDK AAC library")
4343 (description "FDK is a library for encoding and decoding Advanced Audio
4344 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4345 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4346 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4347 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4348 library supports sample rates up to 96 kHz and up to eight channels (7.1
4350 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4351 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4353 (define-public libopenshot-audio
4355 (name "libopenshot-audio")
4360 (url "https://github.com/OpenShot/libopenshot-audio")
4361 (commit (string-append "v" version))))
4362 (file-name (git-file-name name version))
4365 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
4366 (build-system cmake-build-system)
4368 `(("alsa-lib" ,alsa-lib)
4369 ;; The following are for JUCE GUI components:
4371 ("freetype" ,freetype)
4372 ("libxrandr" ,libxrandr)
4373 ("libxinerama" ,libxinerama)
4374 ("libxcursor" ,libxcursor)))
4376 `(#:tests? #f ;there are no tests
4378 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4379 (assoc-ref %build-inputs "freetype")
4380 "/include/freetype2"))))
4381 (home-page "https://openshot.org")
4382 (synopsis "Audio editing and playback for OpenShot")
4383 (description "OpenShot Audio Library (libopenshot-audio) allows
4384 high-quality editing and playback of audio, and is based on the JUCE
4386 (license license:lgpl3+)))
4388 (define-public faudio
4396 (url "https://github.com/FNA-XNA/FAudio")
4398 (file-name (git-file-name name version))
4400 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
4402 '(#:tests? #f ; No tests.
4403 #:configure-flags '("-DFFMPEG=ON")))
4404 (build-system cmake-build-system)
4405 (native-inputs `(("pkg-config" ,pkg-config)))
4406 (inputs `(("ffmpeg" ,ffmpeg)
4408 (home-page "https://github.com/FNA-XNA/FAudio")
4409 (synopsis "XAudio reimplementation")
4410 (description "FAudio is an XAudio reimplementation that focuses solely on
4411 developing fully accurate DirectX Audio runtime libraries.")
4412 (license license:zlib)))
4414 (define-public gnaural
4417 (version "20110606")
4421 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4425 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4426 (build-system gnu-build-system)
4428 `(("alsa-lib" ,alsa-lib)
4430 ("libsndfile" ,libsndfile)
4431 ("portaudio" ,portaudio)))
4433 `(("pkg-config" ,pkg-config)))
4434 (home-page "http://gnaural.sourceforge.net/")
4435 (synopsis "Binaural beat synthesizer")
4436 (description "Gnaural is a programmable auditory binaural beat synthesizer
4437 intended to be used for brainwave entrainment. Gnaural supports creation of
4438 binaural beat tracks of different frequencies and exporting of tracks into
4439 different audio formats. Gnaural can also be linked over the internet with
4440 other Gnaural instances, allowing synchronous sessions between many users.")
4441 (license license:gpl2+)))
4443 (define-public darkice
4449 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4450 "download/v" version "/darkice-"
4454 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4455 (build-system gnu-build-system)
4456 (native-inputs `(("pkg-config" ,pkg-config)))
4457 (inputs `(("lame" ,lame)
4458 ("libvorbis" ,libvorbis)
4460 ("twolame" ,twolame)
4461 ("alsa-lib" ,alsa-lib)
4462 ("pulseaudio" ,pulseaudio)
4464 ("libsamplerate" ,libsamplerate)))
4467 (list (string-append "--with-lame-prefix="
4468 (assoc-ref %build-inputs "lame")))))
4469 (home-page "http://www.darkice.org/")
4470 (synopsis "Live audio streamer")
4471 (description "DarkIce is a live audio streamer. It takes audio input from
4472 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4473 stream to one or more IceCast and/or ShoutCast servers.")
4474 (license license:gpl3+)))
4476 (define-public libltc
4484 (string-append "https://github.com/x42/libltc/releases/download/v"
4485 version "/libltc-" version ".tar.gz"))
4488 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4489 (build-system gnu-build-system)
4491 `(#:parallel-tests? #f)) ;tests fail otherwise
4493 `(("doxygen" ,doxygen)
4494 ("pkg-config" ,pkg-config)))
4495 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4496 (description "Libltc is a POSIX-C Library for handling
4497 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4498 (home-page "https://x42.github.io/libltc/")
4499 (license license:lgpl3+)))
4501 (define-public ttaenc
4508 (uri (string-append "mirror://sourceforge/tta/"
4510 "/ttaenc-" version "-src.tgz"))
4513 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4514 (build-system gnu-build-system)
4516 `(#:tests? #f ;no tests
4518 (list (string-append "CC=" ,(cc-for-target))
4519 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4521 (modify-phases %standard-phases
4522 (delete 'configure) ; no configure
4523 (add-before 'install 'make-bindir
4524 (lambda* (#:key outputs #:allow-other-keys)
4525 (let* ((out (assoc-ref outputs "out")))
4526 (mkdir-p (string-append out "/bin"))
4528 (synopsis "TTA lossless audio encoder")
4530 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4531 data of the Wav audio files. Being lossless means that no data-
4532 quality is lost in the compression - when uncompressed, the data will
4533 be identical to the original. The compression ratios of TTA depend on
4534 the type of music file being compressed, but the compression size
4535 will generally range between 30% - 70% of the original. TTA format
4536 supports both of ID3v1/v2 and APEv2 tags.")
4537 (home-page "http://tausoft.org/")
4538 (license license:gpl2+)))
4540 (define-public libsoundio
4548 (url "https://github.com/andrewrk/libsoundio")
4550 (file-name (git-file-name name version))
4553 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
4554 (build-system cmake-build-system)
4556 `(#:tests? #f)) ;no tests included
4558 `(("alsa-lib" ,alsa-lib)
4560 ("pulseaudio" ,pulseaudio)))
4562 `(("pkg-config" ,pkg-config)))
4563 (home-page "http://libsound.io")
4564 (synopsis "C library for real-time audio input and output")
4565 (description "@code{libsoundio} is a C library providing audio input and
4566 output. The API is suitable for real-time software such as digital audio
4567 workstations as well as consumer software such as music players.")
4568 (license license:expat)))
4570 (define-public redkite
4578 (url "https://gitlab.com/geontime/redkite.git")
4579 (commit (string-append "v" version))))
4580 (file-name (git-file-name name version))
4582 (base32 "1m2db7c791fi33snkjwnvlxapmf879g5r8azlkx7sr6vp2s0jq2k"))))
4583 (build-system cmake-build-system)
4585 `(#:tests? #f)) ;no tests included
4587 `(("cairo" ,cairo)))
4589 `(("pkg-config" ,pkg-config)))
4590 (synopsis "Small GUI toolkit")
4591 (description "Redkite is a small GUI toolkit developed in C++17 and
4592 inspired from other well known GUI toolkits such as Qt and GTK. It is
4593 minimal on purpose and is intended to be statically linked to applications,
4594 therefore satisfying any requirements they may have to be self contained,
4595 as is the case with audio plugins.")
4596 (home-page "https://gitlab.com/geontime/redkite")
4597 (license license:gpl3+)))
4599 (define-public carla
4608 (url "https://github.com/falkTX/Carla")
4609 (commit (string-append "v" version))))
4610 (file-name (git-file-name name version))
4613 "0c3y4a6cgi4bv1mg57i3qn5ia6pqjqlaylvkapj6bmpsw71ig22g"))))
4614 (build-system gnu-build-system)
4616 `(#:tests? #f ; no "check" target
4618 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4620 (modify-phases %standard-phases
4621 (delete 'configure) ; no configure script
4622 (add-before 'build 'set-CC-variable-and-show-features
4625 (invoke "make" "features")))
4626 (add-after 'install 'make-carla-executable
4627 (lambda* (#:key outputs #:allow-other-keys)
4628 (let ((out (assoc-ref outputs "out")))
4629 (chmod (string-append out "/share/carla/carla") #o555)
4631 (add-after 'install 'wrap-executables
4632 (lambda* (#:key outputs #:allow-other-keys)
4633 (let ((out (assoc-ref outputs "out")))
4634 (wrap-script (string-append out "/bin/carla")
4635 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4638 `(("alsa-lib" ,alsa-lib)
4640 ("fluidsynth" ,fluidsynth)
4643 ("libsndfile" ,libsndfile)
4644 ("gtk2" ,gtk+-2) ;needed for bridging GTK2 plugins in GTK3 hosts
4646 ("python-pyliblo" ,python-pyliblo)
4647 ("python-pyqt" ,python-pyqt)
4648 ("python-rdflib" ,python-rdflib)
4649 ;; python-pyqt shows the following error without python-wrapper:
4650 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4651 ;; (ModuleNotFoundError: No module named 'PyQt5')
4652 ("python-wrapper" ,python-wrapper)
4657 ;; For WRAP-SCRIPT above.
4658 ("guile" ,guile-2.2)))
4660 `(("pkg-config" ,pkg-config)))
4661 (home-page "https://kx.studio/Applications:Carla")
4662 (synopsis "Audio plugin host")
4663 (description "Carla is a modular audio plugin host, with features like
4664 transport control, automation of parameters via MIDI CC and remote control
4665 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4666 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4667 default and preferred audio driver but also supports native drivers like ALSA.")
4668 (license license:gpl2+)))
4670 (define-public ecasound
4676 (uri (string-append "https://nosignal.fi/download/ecasound-"
4679 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4680 (build-system gnu-build-system)
4681 (native-inputs `(("pkg-config" ,pkg-config)))
4682 ;; It would be nice to add mikmod to inputs if that gets packaged
4684 (inputs `(("alsa-lib" ,alsa-lib)
4688 ("vorbis-tools" ,vorbis-tools)
4691 ("timidity++" ,timidity++)
4692 ("libsndfile" ,libsndfile)
4693 ("libsamplerate" ,libsamplerate)
4694 ("ncurses" ,ncurses)
4697 (home-page "https://nosignal.fi/ecasound/index.php")
4698 (synopsis "Multitrack audio processing")
4699 (description "Ecasound is a software package designed for multitrack audio
4700 processing. It can be used for simple tasks like audio playback, recording and
4701 format conversions, as well as for multitrack effect processing, mixing,
4702 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4703 outputs and effect algorithms. Effects and audio objects can be combined in
4704 various ways, and their parameters can be controlled by operator objects like
4705 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4707 ;; As an exception to the above, the C, C++ and python implementations
4708 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4709 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4710 ;; that are not licensed under GPL.
4711 (license (list license:gpl2 license:lgpl2.1))))
4713 (define-public libaudec
4721 (url "https://git.zrythm.org/git/libaudec")
4722 (commit (string-append "v" version))))
4723 (file-name (git-file-name name version))
4726 "04hw61db8wscj28qjyiaiafx8xl87njgmvqszxyhs4gmg8xgjip7"))))
4727 (build-system meson-build-system)
4730 `(#:configure-flags `("-Dtests=true")))
4732 `(("libsamplerate" ,libsamplerate)
4733 ("libsndfile" ,libsndfile)))
4735 `(("pkg-config" ,pkg-config)))
4736 (synopsis "Library for reading and resampling audio files")
4737 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4738 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4739 @code{audio_decoder} code.")
4740 (home-page "https://git.zrythm.org/cgit/libaudec")
4741 (license license:agpl3+)))
4743 (define-public lv2lint
4751 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4753 (file-name (git-file-name name version))
4756 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
4757 (build-system meson-build-system)
4760 `("-Delf-tests=true" ; for checking symbol visibility
4761 "-Donline-tests=true"))) ; for checking URI existence
4767 `(("pkg-config" ,pkg-config)))
4768 (synopsis "LV2 plugin lint tool")
4769 (description "lv2lint is an LV2 lint-like tool that checks whether a
4770 given plugin and its UI(s) match up with the provided metadata and adhere
4771 to well-known best practices.")
4772 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4773 (license license:artistic2.0)))
4775 (define-public lv2toweb
4783 (url "https://github.com/x42/lv2toweb")
4784 (commit (string-append "v" version))))
4785 (file-name (git-file-name name version))
4788 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4789 (build-system gnu-build-system)
4791 `(#:tests? #f ; no "check" target
4792 #:make-flags (list "CC=gcc"
4793 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4795 (modify-phases %standard-phases
4796 (delete 'configure))))
4801 `(("help2man" ,help2man)
4802 ("pkg-config" ,pkg-config)))
4803 (synopsis "Documentation generator for LV2 plugins")
4805 "lv2toweb allows the user to create an xhtml page with information
4806 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4807 with the provided metadata and adhere to well-known best practices.")
4808 (home-page "https://github.com/x42/lv2toweb")
4809 (license (list license:isc license:gpl2))))
4811 (define-public ztoolkit
4819 (url "https://git.zrythm.org/git/ztoolkit")
4820 (commit (string-append "v" version))))
4821 (file-name (git-file-name name version))
4824 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4825 (build-system meson-build-system)
4828 ("libx11" ,libx11)))
4830 `(("pkg-config" ,pkg-config)))
4831 (synopsis "GUI toolkit for LV2 plugins")
4832 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4833 inspired by GTK. It handles events and low level drawing on behalf of
4834 the user and provides a high-level API for managing the UI and custom
4835 widgets. ZToolkit is written in C and was created to be used for building
4836 audio plugin UIs, where the dependencies often need to be kept to a
4838 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4839 (license license:agpl3+)))
4841 (define-public libinstpatch
4843 (name "libinstpatch")
4849 (url "https://github.com/swami/libinstpatch")
4850 (commit (string-append "v" version))))
4851 (file-name (git-file-name name version))
4853 (base32 "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb"))))
4854 (build-system cmake-build-system)
4856 `(#:tests? #f)) ;there are no tests
4858 `(("glib:bin" ,glib "bin")
4859 ("pkg-config" ,pkg-config)))
4862 ("libsndfile" ,libsndfile)))
4863 (home-page "http://www.swamiproject.org/")
4864 (synopsis "Instrument file software library")
4866 "libInstPatch is a library for processing digital sample based MIDI
4867 instrument \"patch\" files. The types of files libInstPatch supports are used
4868 for creating instrument sounds for wavetable synthesis. libInstPatch provides
4869 an object framework (based on GObject) to load patch files, which can then be
4870 edited, converted, compressed and saved.")
4871 (license license:lgpl2.1)))
4873 (define-public ztoolkit-rsvg
4876 (name "ztoolkit-rsvg")
4878 `(#:configure-flags `("-Denable_rsvg=true")))
4880 `(("librsvg" ,librsvg)
4881 ,@(package-inputs ztoolkit)))
4882 (synopsis "ZToolkit with SVG support")))
4884 (define-public lsp-dsp-lib
4886 (name "lsp-dsp-lib")
4891 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
4892 "releases/download/lsp-dsp-lib-" version
4893 "/lsp-dsp-lib-" version "-src.tar.gz"))
4896 "07w3d2i0z0xmvi1ngcgs7lc5a0da8jvf7rv4dnjk01md43b7fkh1"))))
4897 (build-system gnu-build-system)
4899 `(#:tests? #f ; no tests
4901 (list (string-append "CC=" ,(cc-for-target)))
4903 (modify-phases %standard-phases
4905 (lambda* (#:key outputs #:allow-other-keys)
4906 (invoke "make" "config"
4907 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
4908 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
4909 (synopsis "Digital signal processing library")
4910 (description "The LSP DSP library provides a set of functions that perform
4911 SIMD-optimized computing on several hardware architectures. All functions
4912 currently operate on IEEE-754 single-precision floating-point numbers.")
4913 (license license:lgpl3+)))
4915 (define-public codec2
4923 (url "https://github.com/drowe67/codec2")
4924 (commit (string-append "v" version))))
4925 (file-name (git-file-name name version))
4927 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4928 (build-system cmake-build-system)
4932 ("valgrind" ,valgrind)))
4934 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4936 (modify-phases %standard-phases
4937 (add-before 'check 'set-test-environment
4939 (setenv "HOME" "/tmp")
4941 (synopsis "Speech codec")
4943 "Codec 2 is a speech codec designed for communications quality speech
4944 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4946 (home-page "https://www.rowetel.com/?page_id=452")
4947 (license license:lgpl2.1)))
4949 (define-public ableton-link
4951 (name "ableton-link")
4956 (url "https://github.com/Ableton/link")
4957 (commit (string-append "Link-" version))))
4958 (file-name (git-file-name name version))
4961 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4962 (modules '((guix build utils)))
4964 (search-patches "ableton-link-system-libraries-debian.patch"))
4967 ;; Tests assume that CMake's "build" directory is a
4968 ;; sub-directory of the source tree, so we fix it.
4969 (substitute* "ci/run-tests.py"
4970 (("root_dir,") "root_dir, os.pardir,"))
4971 ;; Unbundle dependencies.
4972 (delete-file-recursively "third_party")
4973 (delete-file-recursively "modules")
4975 (build-system cmake-build-system)
4977 `(("catch" ,catch-framework)
4978 ("python" ,python) ;for running tests
4979 ("portaudio" ,portaudio) ;for portaudio examples
4980 ("qtbase" ,qtbase) ;for Qt examples
4981 ("qtdeclarative" ,qtdeclarative)
4982 ("qttools" ,qttools)))
4984 `(("jack" ,jack-1) ;for JACK examples
4985 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4987 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4988 ;; contains '#include <asio.hpp>'.
4992 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4993 "-DLINK_BUILD_JACK=ON")
4995 (modify-phases %standard-phases
4997 (lambda* (#:key inputs #:allow-other-keys)
4998 (let* ((python (string-append (assoc-ref inputs "python")
5000 (run-tests (string-append "../ableton-link-"
5002 "-checkout/ci/run-tests.py")))
5003 (invoke python run-tests "--target" "LinkCoreTest")
5004 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
5005 (add-before 'install 'patch-cmake
5006 (lambda* (#:key inputs #:allow-other-keys)
5007 (let* ((source (string-append "../ableton-link-"
5010 (substitute* (string-append source
5011 "cmake_include/AsioStandaloneConfig.cmake")
5012 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5013 "modules/asio-standalone/asio/include"))
5014 (string-append (assoc-ref inputs "asio")
5016 (substitute* (string-append source "AbletonLinkConfig.cmake")
5017 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5018 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5019 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5020 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
5023 (lambda* (#:key outputs #:allow-other-keys)
5024 (let* ((out (assoc-ref outputs "out"))
5025 (bin (string-append out "/bin"))
5026 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5027 (source (string-append "../ableton-link-" ,version "-checkout")))
5028 (for-each (lambda (test-file)
5029 (delete-file test-file))
5030 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5031 (copy-recursively "bin" bin)
5032 (copy-recursively (string-append source "/include/ableton")
5033 (string-append out "/include/ableton"))
5034 (install-file (string-append source "/AbletonLinkConfig.cmake")
5036 (install-file (string-append source
5037 "/cmake_include/AsioStandaloneConfig.cmake")
5038 (string-append lib-cmake "/cmake_include"))
5040 (home-page "https://github.com/Ableton/link")
5041 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5043 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5044 across multiple applications running on one or more devices. Applications on devices
5045 connected to a local network discover each other automatically and form a musical
5046 session in which each participant can perform independently: anyone can start or stop
5047 while still staying in time.")
5048 (license license:gpl2+)))