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 build-tools)
62 #:use-module (gnu packages boost)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages curl)
66 #:use-module (gnu packages dbm)
67 #:use-module (gnu packages documentation)
68 #:use-module (gnu packages elf)
69 #:use-module (gnu packages emacs)
70 #:use-module (gnu packages file)
71 #:use-module (gnu packages flex)
72 #:use-module (gnu packages fltk)
73 #:use-module (gnu packages fontutils)
74 #:use-module (gnu packages gcc)
75 #:use-module (gnu packages gettext)
76 #:use-module (gnu packages gl)
77 #:use-module (gnu packages glib)
78 #:use-module (gnu packages gnome)
79 #:use-module (gnu packages gnunet) ; libmicrohttpd
80 #:use-module (gnu packages gperf)
81 #:use-module (gnu packages gtk)
82 #:use-module (gnu packages guile)
83 #:use-module (gnu packages icu4c)
84 #:use-module (gnu packages image)
85 #:use-module (gnu packages libbsd)
86 #:use-module (gnu packages libusb)
87 #:use-module (gnu packages linux)
88 #:use-module (gnu packages llvm)
89 #:use-module (gnu packages man)
90 #:use-module (gnu packages maths)
91 #:use-module (gnu packages mp3) ;taglib
92 #:use-module (gnu packages multiprecision)
93 #:use-module (gnu packages music)
94 #:use-module (gnu packages ncurses)
95 #:use-module (gnu packages networking)
96 #:use-module (gnu packages onc-rpc)
97 #:use-module (gnu packages perl)
98 #:use-module (gnu packages pkg-config)
99 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
100 #:use-module (gnu packages python)
101 #:use-module (gnu packages python-xyz)
102 #:use-module (gnu packages qt)
103 #:use-module (gnu packages rdf)
104 #:use-module (gnu packages readline)
105 #:use-module (gnu packages sdl)
106 #:use-module (gnu packages serialization)
107 #:use-module (gnu packages telephony)
108 #:use-module (gnu packages linphone)
109 #:use-module (gnu packages tls)
110 #:use-module (gnu packages valgrind)
111 #:use-module (gnu packages video)
112 #:use-module (gnu packages vim) ;xxd
113 #:use-module (gnu packages web)
114 #:use-module (gnu packages webkit)
115 #:use-module (gnu packages wxwidgets)
116 #:use-module (gnu packages xiph)
117 #:use-module (gnu packages xml)
118 #:use-module (gnu packages xorg)
119 #:use-module (guix build-system cmake)
120 #:use-module (guix build-system copy)
121 #:use-module (guix build-system glib-or-gtk)
122 #:use-module (guix build-system gnu)
123 #:use-module (guix build-system meson)
124 #:use-module (guix build-system python)
125 #:use-module (guix build-system trivial)
126 #:use-module (guix build-system waf)
127 #:use-module (guix download)
128 #:use-module (guix git-download)
129 #:use-module ((guix licenses) #:prefix license:)
130 #:use-module (guix packages)
131 #:use-module (guix utils)
132 #:use-module (srfi srfi-1)
133 #:use-module (srfi srfi-26))
135 (define-public opensles
144 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry")
145 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
146 (file-name (git-file-name name version))
148 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
150 (search-patches "opensles-add-license-file.patch"))))
151 (build-system copy-build-system)
154 (modify-phases %standard-phases
155 (add-after 'install 'clean
156 (lambda* (#:key outputs #:allow-other-keys)
157 (let* ((out (assoc-ref outputs "out")))
158 (mkdir-p (string-append out "/etc"))
159 (mkdir-p (string-append out "/include"))
160 (mkdir-p (string-append out "/share"))
162 (string-append out "/api/1.1/OpenSLES_IID.c")
163 (string-append out "/etc/OpenSLES_IID.c"))
165 (string-append out "/api/1.1/OpenSLES.h")
166 (string-append out "/include/OpenSLES.h"))
168 (string-append out "/api/1.1/OpenSLES_Platform.h")
169 (string-append out "/include/OpenSLES_Platform.h"))
171 (string-append out "/api/1.1/README.txt")
172 (string-append out "/share/README.txt"))
174 (string-append out "/LICENSE.txt")
175 (string-append out "/share/LICENSE.txt"))
176 (for-each delete-file-recursively
178 (string-append out "/api")
179 (string-append out "/specs")))
180 (for-each delete-file
182 (string-append out "/CODE_OF_CONDUCT.md")
183 (string-append out "/index.php")
184 (string-append out "/README.md"))))
186 (synopsis "Embedded Audio Acceleration")
187 (description "OpenSLES is a royalty-free, cross-platform,
188 hardware-accelerated audio API tuned for embedded systems. It provides a
189 standardized, high-performance, low-latency method to access audio
190 functionality for developers of native applications on embedded mobile
191 multimedia devices, enabling straightforward cross-platform deployment of
192 hardware and software audio capabilities, reducing implementation effort, and
193 promoting the market for advanced audio.")
194 (home-page "https://www.khronos.org/opensles/")
195 (license (license:non-copyleft "file:///LICENSE.txt"))))
197 (define-public wildmidi
206 (url "https://github.com/Mindwerks/wildmidi")
207 (commit (string-append name "-" version))))
208 (file-name (git-file-name name version))
210 (base32 "01f4a9c5xlap5a4pkfnlgkzk5pjlk43zkq6fnw615ghya04g6hrl"))))
211 (build-system cmake-build-system)
213 `(#:tests? #f ; No target
218 "-DWANT_OPENAL=ON")))
222 (synopsis "Software Synthesizer")
223 (description "WildMIDI is a simple software midi player which has a core
224 softsynth library that can be use with other applications.")
225 (home-page "https://www.mindwerks.net/projects/wildmidi/")
233 (define-public webrtc-audio-processing
235 (name "webrtc-audio-processing")
241 (string-append "http://freedesktop.org/software/pulseaudio/"
242 name "/" name "-" version ".tar.xz"))
244 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
245 (build-system gnu-build-system)
246 (synopsis "WebRTC's Audio Processing Library")
247 (description "WebRTC-Audio-Processing library based on Google's
248 implementation of WebRTC.")
250 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
251 (license (license:non-copyleft "file:///COPYING"))))
253 (define-public vo-aacenc
261 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
262 name "/" name "-" version ".tar.gz"))
264 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
265 (build-system gnu-build-system)
266 (synopsis "VisualOn AAC Encoder")
267 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
268 Coding (AAC) encoder.")
269 (home-page "https://sourceforge.net/projects/opencore-amr/")
270 (license license:asl2.0)))
272 (define-public tinyalsa
281 (url "https://github.com/tinyalsa/tinyalsa")
283 (file-name (git-file-name name version))
285 (base32 "0ajyvml5bnzvhiyyrn42gqwgg23ssxkfh09rvsnywhzxhd0xai4h"))))
286 (build-system gnu-build-system)
288 `(#:tests? #f ; No target
290 (modify-phases %standard-phases
294 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
295 (synopsis "ALSA interfacing library")
296 (description "TinyALSA is a small library to interface with ALSA in the
298 (home-page "https://github.com/tinyalsa/tinyalsa")
299 (license (license:non-copyleft "file:///NOTICE"))))
301 (define-public libopenmpt
309 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
310 "libopenmpt-" version "+release.autotools.tar.gz"))
312 (base32 "1f155yf5v57dwhzb7z0kh67lckr3yq4x8040dm54qgbxw582la77"))))
313 (build-system gnu-build-system)
316 (list (string-append "--docdir=" (assoc-ref %outputs "out")
317 "/share/doc/" ,name "-" ,version))
319 (modify-phases %standard-phases
320 (add-after 'install 'delete-static-libraries
321 (lambda* (#:key outputs #:allow-other-keys)
322 (let* ((out (assoc-ref outputs "out"))
323 (lib (string-append out "/lib")))
324 (for-each delete-file (find-files lib "\\.a$"))
327 `(("doxygen" ,doxygen)
329 ("pkg-config" ,pkg-config)))
334 ("portaudio" ,portaudio)
335 ("pulseaudio" ,pulseaudio)
337 ("sndfile" ,libsndfile)
338 ("vorbis" ,libvorbis)
340 (synopsis "Audio tracking library")
341 (description "LibOpenMPT is a cross-platform C++ and C module playback
342 library. It is based on the player code of the Open ModPlug Tracker project.")
343 (home-page "https://openmpt.org/")
344 (license (license:non-copyleft "file:///LICENSE"))))
346 (define-public libofa
354 (string-append "https://storage.googleapis.com/"
355 "google-code-archive-downloads/v2/code.google.com/"
356 "musicip-libofa/" name "-" version ".tar.gz"))
358 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
361 "libofa-ftbfs-1.diff"
363 "libofa-ftbfs-2.diff"))))
364 (build-system gnu-build-system)
366 `(("pkg-config" ,pkg-config)))
372 (synopsis "Open Fingerprint Architecture")
373 (description "LibOFA is an audio fingerprint library, created and provided
375 (home-page "https://code.google.com/archive/p/musicip-libofa/")
376 (license license:gpl2+)))
386 (string-append "https://sourceforge.net/projects/faac/files/faac-src/"
387 "faac-1.30/faac-1_30.tar.gz/download"))
389 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
390 (build-system gnu-build-system)
392 `(("autoconf" ,autoconf)
393 ("automake" ,automake)
395 ("pkg-config" ,pkg-config)))
396 (synopsis "Freeware Advanced Audio Coder")
397 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
398 (home-page "https://www.audiocoding.com/faac.html")
401 ;; ISO MPEG-4 reference code.
406 (define-public libtimidity
414 (string-append "https://sourceforge.net/projects/" name "/files/"
415 name "/" version "/" name "-" version ".tar.gz"))
417 (base32 "0p2px0m907gi1zpdr0l9adq25jl89j85c11ag9s2g4yc6n1nhgfm"))))
418 (build-system gnu-build-system)
420 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
422 `(("pkg-config" ,pkg-config)))
425 (synopsis "MIDI to WAVE converter library")
426 (description "LibTiMidity is a MIDI to WAVE converter library that uses
427 Gravis Ultrasound-compatible patch files to generate digital audio data from
428 General MIDI files.")
429 (home-page "http://libtimidity.sourceforge.net/")
431 ;; This project is dual-licensed.
432 ;; Either of the following licenses can be exercised.
435 license:artistic2.0))))
437 (define-public vo-amrwbenc
445 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
446 name "/" name "-" version ".tar.gz"))
448 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
449 (build-system gnu-build-system)
450 (synopsis "Adaptive Multi Rate Codec")
451 (description "VO-AMR is a library of VisualOn implementation of
452 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
453 (home-page "https://sourceforge.net/projects/opencore-amr/")
454 (license license:asl2.0)))
456 (define-public opencore-amr
458 (name "opencore-amr")
464 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
465 name "/" name "-" version ".tar.gz"))
467 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
468 (build-system gnu-build-system)
469 (synopsis "Adaptive Multi Rate Codec")
470 (description "OpenCore-AMR is a library of OpenCORE Framework
471 implementation of Adaptive Multi Rate Narrowband and Wideband
472 (AMR-NB and AMR-WB) speech codec.")
473 (home-page "https://sourceforge.net/projects/opencore-amr/")
474 (license license:asl2.0)))
476 (define-public alsa-modular-synth
478 (name "alsa-modular-synth")
482 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
483 "/" version "/ams-" version ".tar.bz2"))
486 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))
488 (search-patches "alsa-modular-synth-fix-vocoder.patch"))))
489 (build-system gnu-build-system)
493 "CXXFLAGS=-std=gnu++11")
495 (modify-phases %standard-phases
496 (add-after 'set-paths 'hide-default-gcc
497 (lambda* (#:key inputs #:allow-other-keys)
498 (let ((gcc (assoc-ref inputs "gcc")))
499 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
500 ;; conflicts with the GCC 5 input.
501 (setenv "CPLUS_INCLUDE_PATH"
503 (delete (string-append gcc "/include/c++")
504 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
507 ;; Insert an extra space between linker flags.
508 (add-before 'configure 'add-missing-space
510 (substitute* "configure"
511 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
512 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
515 `(("alsa-lib" ,alsa-lib)
516 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
517 ;; license incompatibility.
518 ("clalsadrv" ,clalsadrv)
525 `(("pkg-config" ,pkg-config)
528 (home-page "http://alsamodular.sourceforge.net/")
529 (synopsis "Realtime modular synthesizer and effect processor")
531 "AlsaModularSynth is a digital implementation of a classical analog
532 modular synthesizer system. It uses virtual control voltages to control the
533 parameters of the modules. The control voltages which control the frequency
534 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
535 Filter) modules follow the convention of 1V / Octave.")
536 (license license:gpl2)))
545 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
548 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
549 (build-system waf-build-system)
551 `(#:tests? #f ; no check target
554 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
558 "--enable-samplerate"
563 ("libsndfile" ,libsndfile)
564 ("libsamplerate" ,libsamplerate)
566 ("ffmpeg" ,ffmpeg))) ; for libavcodec
568 `(("pkg-config" ,pkg-config)))
569 (home-page "https://aubio.org/")
570 (synopsis "Library for audio labelling")
572 "aubio is a tool designed for the extraction of annotations from audio
573 signals. Its features include segmenting a sound file before each of its
574 attacks, performing pitch detection, tapping the beat and producing MIDI
575 streams from live audio.")
576 (license license:gpl3+)))
578 (define (ardour-rpath-phase major-version)
579 `(lambda* (#:key outputs #:allow-other-keys)
580 (let ((libdir (string-append (assoc-ref outputs "out")
581 "/lib/ardour" ,major-version)))
582 (substitute* "wscript"
583 (("linker_flags = \\[\\]")
584 (string-append "linker_flags = [\""
587 libdir "/backends" ":"
588 libdir "/engines" ":"
589 libdir "/panners" ":"
590 libdir "/surfaces" ":"
591 libdir "/vamp" "\"]"))))
594 (define-public ardour
601 (url "https://git.ardour.org/ardour/ardour.git")
604 ;; Ardour expects this file to exist at build time. The revision
606 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
607 `(call-with-output-file
608 "libs/ardour/revision.cc"
610 (format port ,(string-append "#include \"ardour/revision.h\"
611 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
615 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
616 (file-name (string-append name "-" version))))
617 (build-system waf-build-system)
619 `(#:configure-flags '("--cxx11" ; required by gtkmm
620 "--no-phone-home" ; don't contact ardour.org
621 "--freedesktop" ; build .desktop file
622 "--test") ; build unit tests
624 (modify-phases %standard-phases
625 (add-after 'unpack 'set-rpath-in-LDFLAGS
626 ,(ardour-rpath-phase (version-major version)))
627 (add-after 'install 'install-freedesktop-files
628 (lambda* (#:key outputs #:allow-other-keys)
629 (let* ((out (assoc-ref outputs "out"))
630 (share (string-append out "/share"))
631 (ver ,(version-major version)))
634 (let ((dir (string-append share "/icons/hicolor/"
635 size "x" size "/apps")))
638 (string-append "gtk2_ardour/resources/Ardour-icon_"
640 (string-append dir "/ardour" ver ".png"))))
641 '("16" "22" "32" "48" "256"))
642 (install-file (string-append "build/gtk2_ardour/ardour"
644 (string-append share "/applications/"))
645 (install-file (string-append "build/gtk2_ardour/ardour"
647 (string-append share "/appdata/")))
652 `(("alsa-lib" ,alsa-lib)
665 ("libarchive" ,libarchive)
666 ("libart-lgpl" ,libart-lgpl)
667 ("libgnomecanvasmm" ,libgnomecanvasmm)
670 ("libsamplerate" ,libsamplerate)
671 ("libsndfile" ,libsndfile)
673 ("libvorbis" ,libvorbis)
679 ("python-rdflib" ,python-rdflib)
680 ("readline" ,readline)
682 ("rubberband" ,rubberband)
690 `(("cppunit" ,cppunit)
691 ("gettext" ,gettext-minimal)
694 ("pkg-config" ,pkg-config)))
695 (home-page "https://ardour.org")
696 (synopsis "Digital audio workstation")
698 "Ardour is a multi-channel digital audio workstation, allowing users to
699 record, edit, mix and master audio and MIDI projects. It is targeted at audio
700 engineers, musicians, soundtrack editors and composers.")
701 (license license:gpl2+)))
703 (define-public audacity
711 (url "https://github.com/audacity/audacity")
712 (commit (string-append "Audacity-" version))))
713 (file-name (git-file-name name version))
716 "1xk0piv72d2xd3p7igr916fhcbrm76fhjr418k1rlqdzzg1hfljn"))
717 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
718 (modules '((guix build utils)))
720 ;; Remove bundled libraries.
724 (delete-file-recursively (string-append "lib-src/" dir)))
725 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
726 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
727 "portaudio-v19" "portmidi" "soundtouch" "twolame"
728 ;; FIXME: these libraries have not been packaged yet:
736 ;; FIXME: we have this library, but it differs in that the Slide
737 ;; class does not have a member "getInverseStretchedTime".
741 (build-system glib-or-gtk-build-system)
743 `(("wxwidgets" ,wxwidgets)
745 ("alsa-lib" ,alsa-lib)
751 ("libid3tag" ,libid3tag)
753 ;;("libsbsms" ,libsbsms) ;bundled version is modified
754 ("libsndfile" ,libsndfile)
755 ("soundtouch" ,soundtouch)
756 ("soxr" ,soxr) ;replaces libsamplerate
759 ("libvorbis" ,libvorbis)
761 ("lilv" ,lilv) ;for lv2
762 ("suil" ,suil) ;for lv2
763 ("portaudio" ,portaudio)
764 ("portmidi" ,portmidi)))
766 `(("autoconf" ,autoconf)
767 ("automake" ,automake)
768 ("gettext" ,gettext-minimal) ;for msgfmt
770 ("pkg-config" ,pkg-config)
775 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
776 (libmad (assoc-ref %build-inputs "libmad"))
777 (portmidi (assoc-ref %build-inputs "portmidi")))
779 ;; Loading FFmpeg dynamically is problematic.
780 "--disable-dynamic-loading"
781 ;; SSE instructions are available on Intel systems only.
782 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
786 '("--enable-sse=no"))
787 ;; portmidi, libid3tag and libmad provide no .pc files, so
788 ;; pkg-config fails to find them. Force their inclusion.
789 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
790 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
791 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
792 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
793 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
794 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
795 "EXPAT_USE_SYSTEM=yes"
796 "FFMPEG_USE_SYSTEM=yes"
797 "LAME_USE_SYSTEM=yes"
798 "LIBFLAC_USE_SYSTEM=yes"
799 "LIBID3TAG_USE_SYSTEM=yes"
800 "LIBMAD_USE_SYSTEM=yes"
801 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
802 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
803 "LIBSNDFILE_USE_SYSTEM=yes"
804 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
805 "LIBSOXR_USE_SYSTEM=yes"
806 "LIBTWOLAME_USE_SYSTEM=yes"
807 "LIBVAMP_USE_SYSTEM=yes"
808 "LIBVORBIS_USE_SYSTEM=yes"
810 "PORTAUDIO_USE_SYSTEM=yes"))
812 (modify-phases %standard-phases
813 (add-after 'unpack 'fix-sbsms-check
815 ;; This check is wrong: there is no 2.2.0 release; not even the
816 ;; bundled sources match this release string.
817 (substitute* '("m4/audacity_checklib_libsbsms.m4"
819 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
821 (add-after 'unpack 'use-upstream-headers
822 (lambda* (#:key inputs #:allow-other-keys)
823 (substitute* '("src/NoteTrack.cpp"
826 "src/AudioIOBase.cpp")
827 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
828 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
829 (substitute* "src/prefs/MidiIOPrefs.cpp"
830 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
832 ;; The test suite is not "well exercised" according to the developers,
833 ;; and fails with various errors. See
834 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
836 (home-page "https://www.audacityteam.org/")
837 (synopsis "Software for recording and editing sounds")
839 "Audacity is a multi-track audio editor designed for recording, playing
840 and editing digital audio. It features digital effects and spectrum analysis
842 (license license:gpl2+)))
844 (define-public audiofile
852 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
854 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
856 ;; CVE references according to nixpgs
858 "audiofile-fix-datatypes-in-tests.patch"
859 "audiofile-fix-sign-conversion.patch"
860 "audiofile-hurd.patch"
861 "audiofile-CVE-2015-7747.patch"
863 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
864 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
866 "audiofile-check-number-of-coefficients.patch"
868 "audiofile-overflow-in-MSADPCM.patch"
869 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
870 "audiofile-multiply-overflow.patch"
871 "audiofile-function-signature.patch"
873 "audiofile-Fail-on-error-in-parseFormat.patch"
875 "audiofile-division-by-zero.patch"
876 "audiofile-CVE-2018-13440.patch"
877 "audiofile-CVE-2018-17095.patch"))))
878 (properties `((lint-hidden-cve . ("CVE-2017-6829"
880 "CVE-2017-6827" "CVE-2017-6828"
881 "CVE-2017-6832" "CVE-2017-6835"
886 "CVE-2017-6830" "CVE-2017-6834"
887 "CVE-2017-6836" "CVE-2017-6838"
889 "CVE-2017-6831" "CVE-2017-6833"))))
890 (build-system gnu-build-system)
892 `(("alsa-lib" ,alsa-lib)))
893 (home-page "https://audiofile.68k.org/")
894 (synopsis "Library to handle various audio file formats")
895 (description "This is an open-source version of SGI's audiofile library.
896 It provides a uniform programming interface for processing of audio data to
897 and from audio files of many common formats.
899 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
900 .snd/.au, BICS, and raw data. Supported compression formats are currently
901 G.711 mu-law and A-law.")
902 (license license:lgpl2.1+)))
904 (define-public autotalent
910 (uri (string-append "http://tombaran.info/autotalent-"
914 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
915 (build-system gnu-build-system)
917 `(#:tests? #f ; no check target
919 (modify-phases %standard-phases
920 ;; no configure script
922 (add-before 'install 'prepare-target-directory
923 (lambda* (#:key outputs #:allow-other-keys)
924 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
926 (add-after 'unpack 'override-target-directory
927 (lambda* (#:key outputs #:allow-other-keys)
928 (substitute* "Makefile"
929 (("/usr/lib64/ladspa")
930 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
933 `(("ladspa" ,ladspa)))
934 (home-page "http://tombaran.info/autotalent.html")
935 (synopsis "Pitch-correction LADSPA audio plugin")
937 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
938 controls are allowable notes, strength of correction, LFO for vibrato and
940 ;; All code except the FFT routine is licensed under GPLv2+.
941 ;; The FFT routine is under BSD-3.
942 (license license:gpl2+)))
950 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
955 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
956 (patches (search-patches "azr3.patch"))))
957 (build-system gnu-build-system)
959 `(#:tests? #f ; no check target
962 (string-append "prefix=" %output)
963 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
965 (modify-phases %standard-phases
966 (add-before 'install 'fix-timestamp
968 (let ((early-1980 315619200)) ; 1980-01-02 UTC
969 (utime "azr3.1" early-1980 early-1980))
977 `(("pkg-config" ,pkg-config)))
978 (home-page "http://ll-plugins.nongnu.org/azr3/")
979 (synopsis "Tonewheel organ synthesizer")
981 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
982 with drawbars, distortion and rotating speakers. The organ has three
983 sections, two polyphonic sections with nine drawbars each and one monophonic
984 bass section with five drawbars. A standalone JACK application and LV2
985 plugins are provided.")
986 (license license:gpl2)))
994 (uri (string-append "https://calf-studio-gear.org/files/calf-"
998 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
999 (build-system gnu-build-system)
1001 `(("fluidsynth" ,fluidsynth)
1012 `(("pkg-config" ,pkg-config)))
1013 (native-search-paths
1014 (list (search-path-specification
1015 (variable "LV2_PATH")
1016 (files '("lib/lv2")))))
1017 (home-page "http://calf.sourceforge.net/")
1018 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1020 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1021 The suite contains lots of effects (delay, modulation, signal processing,
1022 filters, equalizers, dynamics, distortion and mastering effects),
1023 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1024 tools (analyzer, mono/stereo tools, crossovers).")
1025 ;; calfjackhost is released under GPLv2+
1026 ;; The plugins are released under LGPLv2.1+
1027 (license (list license:lgpl2.1+ license:gpl2+))))
1029 (define-public caps-plugins-lv2
1031 (name "caps-plugins-lv2")
1032 (version "0.9.24") ; version that has been ported.
1035 ;; The Github project hasn't tagged a release.
1038 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
1039 ;; missing fixes for newer glibc, so using the origin of a pull
1040 ;; request regarding this issue:
1041 (url "https://github.com/jujudusud/caps-lv2")
1042 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
1043 (file-name (git-file-name name version))
1046 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
1047 (build-system gnu-build-system)
1049 `(#:tests? #f ; no check target
1051 (modify-phases %standard-phases
1052 ;; no configure script
1054 (add-after 'unpack 'override-target-directory
1055 (lambda* (#:key outputs #:allow-other-keys)
1056 (substitute* (find-files "plugins" "Makefile")
1057 (("/usr/local")(assoc-ref outputs "out")))
1061 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1062 (home-page "https://github.com/moddevices/caps-lv2")
1063 (synopsis "LV2 port of the CAPS audio plugin collection")
1065 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1066 guitar amplification and a small range of classic effects, signal processors and
1067 generators of mostly elementary and occasionally exotic nature.")
1068 (license license:gpl3+)))
1070 (define-public infamous-plugins
1072 (name "infamous-plugins")
1077 (url "https://github.com/ssj71/infamousPlugins")
1078 (commit (string-append "v" version))))
1079 (file-name (git-file-name name version))
1082 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
1083 (build-system cmake-build-system)
1085 `(#:tests? #f ; there are no tests
1087 (modify-phases %standard-phases
1088 (add-after 'unpack 'remove-compiler-flags
1090 (substitute* (find-files "." "CMakeLists.txt")
1091 (("-msse2 -mfpmath=sse") ""))
1098 ("zita-resampler" ,zita-resampler)))
1100 `(("pkg-config" ,pkg-config)))
1101 (home-page "https://ssj71.github.io/infamousPlugins")
1102 (synopsis "LV2 plugins for live use")
1104 "The infamous plugins are a collection of LV2 audio plugins for live
1105 performances. The plugins include a cellular automaton synthesizer, an
1106 envelope follower, distortion effects, tape effects and more.")
1107 (license license:gpl2+)))
1109 (define-public swh-plugins
1111 (name "swh-plugins")
1116 (url "https://github.com/swh/ladspa")
1117 (commit (string-append "v" version))))
1118 (file-name (git-file-name name version))
1121 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1123 `(("autoconf" ,autoconf)
1124 ("automake" ,automake)
1125 ("gettext" ,gettext-minimal) ;for autopoint
1126 ("libtool" ,libtool)
1128 ("pkg-config" ,pkg-config)
1132 ("perl-xml-parser" ,perl-xml-parser)))
1133 (build-system gnu-build-system)
1134 (home-page "http://plugin.org.uk")
1135 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1136 (description "This package provides Steve Harris's LADSPA plugins.")
1137 (license license:gpl2+)))
1139 (define-public swh-plugins-lv2
1141 (name "swh-plugins-lv2")
1146 (url "https://github.com/swh/lv2")
1147 (commit (string-append "v" version))))
1148 (file-name (git-file-name name version))
1151 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1152 (build-system gnu-build-system)
1154 `(#:tests? #f ; no check target
1155 #:make-flags (list "CC=gcc"
1156 (string-append "PREFIX="
1157 (assoc-ref %outputs "out")))
1159 (modify-phases %standard-phases
1160 ;; no configure script
1162 (add-after 'unpack 'patch-makefile-and-enter-directory
1163 ;; The default install target doesn't install, but the
1164 ;; "install-system" target does.
1166 (substitute* "Makefile"
1167 (("install:") "install: install-system"))
1173 `(("libxslt" ,libxslt)
1174 ("pkg-config" ,pkg-config)))
1175 (home-page "http://plugin.org.uk")
1176 (synopsis "SWH plugins in LV2 format")
1178 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1179 classes include: dynamics (compressor, limiter), time (delay, chorus,
1180 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1181 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1182 (license license:gpl3+)))
1187 (version "1.0-beta-10May2006")
1190 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1192 "tao-" version ".tar.gz"))
1195 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1197 (search-patches "tao-add-missing-headers.patch"
1198 "tao-fix-parser-types.patch"))
1199 (modules '((guix build utils)))
1202 (substitute* "configure"
1203 (("SHELL=/bin/sh") ""))
1205 (build-system gnu-build-system)
1207 '(#:configure-flags '("TAO_RELEASE=-beta")
1209 (modify-phases %standard-phases
1210 (add-after 'unpack 'fix-references
1211 (lambda* (#:key outputs #:allow-other-keys)
1212 (substitute* "user-scripts/tao.in"
1214 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1215 (("grep") (which "grep"))
1216 (("sed -f \\$distdir/user-scripts/")
1217 (string-append (which "sed") " -f $distdir/"))
1219 (string-append "distdir="
1220 (assoc-ref outputs "out") "/share/tao")))
1222 (add-after 'install 'install-extra-files
1223 (lambda* (#:key outputs #:allow-other-keys)
1224 (let* ((out (assoc-ref outputs "out"))
1225 (share (string-append out "/share/tao/"))
1226 (inc (string-append out "/include/tao/")))
1229 (install-file "user-scripts/error.parse" share)
1230 (copy-recursively "examples" (string-append share "examples"))
1231 (for-each (lambda (file) (install-file file inc))
1232 (find-files "include" "\\.h"))
1235 `(("audiofile" ,audiofile)
1244 (home-page "http://taopm.sourceforge.net/")
1245 (synopsis "Sound Synthesis with Physical Models")
1246 (description "Tao is a software package for sound synthesis using physical
1247 models. It provides a virtual acoustic material constructed from masses and
1248 springs which can be used as the basis for building quite complex virtual
1249 musical instruments. Tao comes with a synthesis language for creating and
1250 playing instruments and a C++ API for those who would like to use it as an
1252 (license license:gpl2+)))
1254 (define-public csound
1262 (url "https://github.com/csound/csound")
1264 (file-name (git-file-name name version))
1266 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1267 (build-system cmake-build-system)
1271 ("gettext" ,gettext-minimal)
1274 `(("alsa-lib" ,alsa-lib)
1279 ("libsndfile" ,libsndfile)
1280 ("pulseaudio" ,pulseaudio)))
1281 (home-page "https://csound.com/")
1282 (synopsis "Sound and music computing system")
1284 "Csound is a user-programmable and user-extensible sound processing
1285 language and software synthesizer.")
1286 (license license:lgpl2.1+)))
1288 (define-public clalsadrv
1295 "http://kokkinizita.linuxaudio.org"
1296 "/linuxaudio/downloads/clalsadrv-"
1297 version ".tar.bz2"))
1300 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1301 (build-system gnu-build-system)
1303 `(#:tests? #f ; no "check" target
1304 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1306 (modify-phases %standard-phases
1307 (add-after 'unpack 'patch-makefile-and-enter-directory
1309 (substitute* "libs/Makefile"
1310 (("/sbin/ldconfig") "true")
1311 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1314 (add-after 'install 'install-symlink
1316 (symlink "libclalsadrv.so"
1317 (string-append (assoc-ref %outputs "out")
1318 "/lib/libclalsadrv.so.2"))
1320 ;; no configure script
1321 (delete 'configure))))
1323 `(("alsa-lib" ,alsa-lib)
1325 (home-page "https://kokkinizita.linuxaudio.org")
1326 (synopsis "C++ wrapper around the ALSA API")
1328 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1330 (license license:gpl2+)))
1332 (define-public amb-plugins
1334 (name "amb-plugins")
1339 "http://kokkinizita.linuxaudio.org"
1340 "/linuxaudio/downloads/AMB-plugins-"
1341 version ".tar.bz2"))
1344 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1345 (build-system gnu-build-system)
1347 `(#:tests? #f ; no "check" target
1349 (modify-phases %standard-phases
1350 ;; no configure script
1352 (add-before 'install 'prepare-target-directory
1353 (lambda* (#:key outputs #:allow-other-keys)
1354 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1356 (add-after 'unpack 'override-target-directory-and-tool-paths
1357 (lambda* (#:key outputs #:allow-other-keys)
1358 (substitute* "Makefile"
1359 (("/usr/lib/ladspa")
1360 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1361 (("/usr/bin/install") (which "install"))
1364 (home-page "https://kokkinizita.linuxaudio.org")
1365 (synopsis "LADSPA ambisonics plugins")
1367 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1368 used within Ardour. Features include: mono and stereo to B-format panning,
1369 horizontal rotator, square, hexagon and cube decoders.")
1370 (license license:gpl2+)))
1372 (define-public mcp-plugins
1374 (name "mcp-plugins")
1379 "http://kokkinizita.linuxaudio.org"
1380 "/linuxaudio/downloads/MCP-plugins-"
1381 version ".tar.bz2"))
1384 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1385 (build-system gnu-build-system)
1387 `(#:tests? #f ; no "check" target
1389 (modify-phases %standard-phases
1390 ;; no configure script
1392 (add-before 'install 'prepare-target-directory
1393 (lambda* (#:key outputs #:allow-other-keys)
1394 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1396 (add-after 'unpack 'override-target-directory
1397 (lambda* (#:key outputs #:allow-other-keys)
1398 (substitute* "Makefile"
1399 (("/usr") (assoc-ref outputs "out")))
1401 (home-page "https://kokkinizita.linuxaudio.org")
1402 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1404 "This package provides various LADSPA plugins. @code{cs_chorus} and
1405 @code{cs_phaser} provide chorus and phaser effects, respectively;
1406 @code{mvclpf24} provides four implementations of the low-pass filter used in
1407 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1408 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1409 the non-linear circuit elements of their original analog counterparts.")
1410 (license license:gpl2+)))
1412 (define-public rev-plugins
1414 (name "rev-plugins")
1419 "http://kokkinizita.linuxaudio.org"
1420 "/linuxaudio/downloads/REV-plugins-"
1421 version ".tar.bz2"))
1424 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1425 (build-system gnu-build-system)
1427 `(#:tests? #f ; no "check" target
1429 (modify-phases %standard-phases
1430 ;; no configure script
1432 (add-before 'install 'prepare-target-directory
1433 (lambda* (#:key outputs #:allow-other-keys)
1434 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1436 (add-after 'unpack 'override-target-directory
1437 (lambda* (#:key outputs #:allow-other-keys)
1438 (substitute* "Makefile"
1439 (("/usr") (assoc-ref outputs "out")))
1441 (home-page "https://kokkinizita.linuxaudio.org")
1442 (synopsis "LADSPA reverb plugin")
1444 "This package provides a stereo reverb LADSPA plugin based on the
1445 well-known greverb.")
1446 (license license:gpl2+)))
1448 (define-public fil-plugins
1450 (name "fil-plugins")
1455 "http://kokkinizita.linuxaudio.org"
1456 "/linuxaudio/downloads/FIL-plugins-"
1457 version ".tar.bz2"))
1460 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1461 (build-system gnu-build-system)
1463 `(#:tests? #f ; no "check" target
1465 (modify-phases %standard-phases
1466 ;; no configure script
1468 (add-before 'install 'prepare-target-directory
1469 (lambda* (#:key outputs #:allow-other-keys)
1470 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1472 (add-after 'unpack 'override-target-directory
1473 (lambda* (#:key outputs #:allow-other-keys)
1474 (substitute* "Makefile"
1475 (("/usr") (assoc-ref outputs "out")))
1477 (home-page "https://kokkinizita.linuxaudio.org")
1478 (synopsis "LADSPA four-band parametric equalizer plugin")
1480 "This package provides a LADSPA plugin for a four-band parametric
1481 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1482 gain controls. There is also a global bypass switch and gain control.
1484 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1485 lattice filter, which is stable even while parameters are being changed.
1487 All switches and controls are internally smoothed, so they can be used @code{live}
1488 without any clicks or zipper noises. This makes this plugin suitable for use
1489 in systems that allow automation of plugin control ports, such as Ardour, or
1491 (license license:gpl2+)))
1493 (define-public ste-plugins
1495 (name "ste-plugins")
1500 "http://kokkinizita.linuxaudio.org"
1501 "/linuxaudio/downloads/STE-plugins-"
1502 version ".tar.bz2"))
1505 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1506 (build-system gnu-build-system)
1508 `(#:tests? #f ; no "check" target
1510 (modify-phases %standard-phases
1511 ;; no configure script
1513 (add-before 'install 'prepare-target-directory
1514 (lambda* (#:key outputs #:allow-other-keys)
1515 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1517 (add-after 'unpack 'override-target-directory
1518 (lambda* (#:key outputs #:allow-other-keys)
1519 (substitute* "Makefile"
1520 (("/usr") (assoc-ref outputs "out")))
1522 (home-page "https://kokkinizita.linuxaudio.org")
1523 (synopsis "LADSPA stereo width plugin")
1525 "This package provides a LADSPA plugin to manipulate the stereo width of
1527 (license license:gpl2+)))
1529 (define-public vco-plugins
1531 (name "vco-plugins")
1536 "http://kokkinizita.linuxaudio.org"
1537 "/linuxaudio/downloads/VCO-plugins-"
1538 version ".tar.bz2"))
1541 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1542 (build-system gnu-build-system)
1544 `(#:tests? #f ; no "check" target
1546 (modify-phases %standard-phases
1547 ;; no configure script
1549 (add-before 'install 'prepare-target-directory
1550 (lambda* (#:key outputs #:allow-other-keys)
1551 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1553 (add-after 'unpack 'override-target-directory
1554 (lambda* (#:key outputs #:allow-other-keys)
1555 (substitute* "Makefile"
1556 (("/usr") (assoc-ref outputs "out"))
1557 (("/bin/cp") (which "cp")))
1559 (home-page "https://kokkinizita.linuxaudio.org")
1560 (synopsis "LADSPA plugin for synthesizer oscillators")
1562 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1565 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1566 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1567 @item Rec-VCO, a square / rectangle oscillator
1570 All oscillators are low-pass filtered to provide waveforms similar to the
1571 output of analog synthesizers such as the Moog Voyager.")
1572 (license license:gpl2+)))
1574 (define-public wah-plugins
1576 (name "wah-plugins")
1581 "http://kokkinizita.linuxaudio.org"
1582 "/linuxaudio/downloads/WAH-plugins-"
1583 version ".tar.bz2"))
1586 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1587 (build-system gnu-build-system)
1589 `(#:tests? #f ; no "check" target
1591 (modify-phases %standard-phases
1592 ;; no configure script
1594 (add-before 'install 'prepare-target-directory
1595 (lambda* (#:key outputs #:allow-other-keys)
1596 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1598 (add-after 'unpack 'override-target-directory
1599 (lambda* (#:key outputs #:allow-other-keys)
1600 (substitute* "Makefile"
1601 (("/usr") (assoc-ref outputs "out")))
1603 (home-page "https://kokkinizita.linuxaudio.org")
1604 (synopsis "LADSPA Autowah effect plugin")
1606 "This package provides a LADSPA plugin for a Wah effect with envelope
1608 (license license:gpl2+)))
1610 (define-public g2reverb
1617 "http://kokkinizita.linuxaudio.org"
1618 "/linuxaudio/downloads/g2reverb-"
1619 version ".tar.bz2"))
1622 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1623 (build-system gnu-build-system)
1625 `(#:tests? #f ; no "check" target
1627 (modify-phases %standard-phases
1628 ;; no configure script
1630 (add-before 'install 'prepare-target-directory
1631 (lambda* (#:key outputs #:allow-other-keys)
1632 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1634 (add-after 'unpack 'override-target-directory
1635 (lambda* (#:key outputs #:allow-other-keys)
1636 (substitute* "Makefile"
1637 (("/usr") (assoc-ref outputs "out")))
1639 (home-page "https://kokkinizita.linuxaudio.org")
1640 (synopsis "LADSPA stereo reverb plugin")
1642 "This package provides a LADSPA plugin for a stereo reverb effect.")
1643 (license license:gpl2+)))
1645 (define-public fluidsynth
1652 (url "https://github.com/FluidSynth/fluidsynth")
1653 (commit (string-append "v" version))))
1654 (file-name (git-file-name name version))
1657 "0ccpq4p1h1g53ng3961g3lh590qnwvpzwdzpl6ai4j6iazq0bh73"))))
1658 (build-system cmake-build-system)
1660 '(#:tests? #f ; no check target
1662 (modify-phases %standard-phases
1663 (add-after 'unpack 'fix-libdir
1665 ;; Install libraries to /lib, not /lib64.
1666 (substitute* "CMakeLists.txt"
1667 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1671 `(("libsndfile" ,libsndfile)
1672 ("alsa-lib" ,alsa-lib)
1676 ("readline" ,readline)
1679 `(("pkg-config" ,pkg-config)))
1680 (home-page "http://www.fluidsynth.org/")
1681 (synopsis "SoundFont synthesizer")
1683 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1684 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1685 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1686 also play midifiles using a Soundfont.")
1687 (license license:lgpl2.1+)))
1689 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1691 (define-public fluidsynth-1
1693 (inherit fluidsynth)
1696 (inherit (package-source fluidsynth))
1698 (url "https://github.com/FluidSynth/fluidsynth")
1699 (commit (string-append "v" version))))
1700 (file-name (git-file-name "fluidsynth" version))
1703 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1705 (define-public faad2
1713 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1714 (version-major+minor version) ".0/"
1715 "faad2-" version ".tar.gz"))
1717 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1718 (build-system gnu-build-system)
1719 (home-page "https://www.audiocoding.com/faad2.html")
1720 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1722 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1723 (license license:gpl2+)))
1725 (define-public faust
1732 (url "https://github.com/grame-cncm/faust")
1733 (commit (string-append "v"
1734 (string-map (lambda (c)
1735 (if (char=? c #\.) #\- c))
1737 (file-name (string-append "faust-" version "-checkout"))
1740 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1741 (build-system gnu-build-system)
1743 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1746 (modify-phases %standard-phases
1747 ;; no "configure" script
1749 ;; Files appear under $out/share/faust that are read-only. The
1750 ;; install phase tries to overwrite them and fails, so we change
1751 ;; the permissions first.
1752 (add-before 'install 'fix-permissions
1754 (for-each (lambda (file)
1756 (find-files "architecture/max-msp" ".*"))
1759 `(("unzip" ,unzip)))
1760 (home-page "https://faust.grame.fr/")
1761 (synopsis "Signal processing language")
1763 "Faust is a programming language for realtime audio signal processing.")
1764 (license license:gpl2+)))
1766 (define-public faust-2
1772 (uri (string-append "https://github.com/grame-cncm/faust/"
1773 "releases/download/" version
1774 "/faust-" version ".tar.gz"))
1777 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1778 (build-system gnu-build-system)
1780 (substitute-keyword-arguments (package-arguments faust)
1781 ((#:make-flags flags)
1782 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1785 `(("llvm" ,llvm-3.8)
1788 ("ctags" ,emacs-minimal) ; for ctags
1789 ("pkg-config" ,pkg-config)))
1791 `(("libsndfile" ,libsndfile)
1792 ("libmicrohttpd" ,libmicrohttpd)
1793 ("ncurses" ,ncurses)
1794 ("openssl" ,openssl)
1797 (define-public freepats
1800 (version "20060219")
1803 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1804 version ".tar.bz2"))
1807 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1808 (build-system trivial-build-system)
1810 `(#:modules ((guix build utils))
1812 (use-modules (guix build utils))
1813 (let ((out (string-append %output "/share/freepats")))
1814 (setenv "PATH" (string-append
1815 (assoc-ref %build-inputs "bzip2") "/bin:"
1816 (assoc-ref %build-inputs "tar") "/bin"))
1817 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1819 ;; Use absolute pattern references
1820 (substitute* "freepats.cfg"
1821 (("Tone_000") (string-append out "/Tone_000"))
1822 (("Drum_000") (string-append out "/Drum_000")))
1824 (copy-recursively "." out)
1829 (home-page "http://freepats.zenvoid.org")
1830 (synopsis "GUS compatible patches for MIDI players")
1832 "FreePats is a project to create a free and open set of GUS compatible
1833 patches that can be used with softsynths such as Timidity and WildMidi.")
1834 ;; GPLv2+ with exception for compositions using these patches.
1835 (license license:gpl2+)))
1837 (define-public guitarix
1844 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1848 "0qsfbyrrpb3bbdyq68k28mjql7kglxh8nqcw9jvja28x6x9ik5a0"))))
1849 (build-system waf-build-system)
1851 `(#:tests? #f ; no "check" target
1854 ;; Add the output lib directory to the RUNPATH.
1855 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
1857 `(("libsndfile" ,libsndfile)
1870 ("zita-resampler" ,zita-resampler)
1871 ("zita-convolver" ,zita-convolver)))
1875 ("intltool" ,intltool)
1876 ("gettext" ,gettext-minimal)
1877 ("pkg-config" ,pkg-config)
1879 (native-search-paths
1880 (list (search-path-specification
1881 (variable "LV2_PATH")
1882 (files '("lib/lv2")))))
1883 (home-page "https://guitarix.org/")
1884 (synopsis "Virtual guitar amplifier")
1885 (description "Guitarix is a virtual guitar amplifier running JACK.
1886 Guitarix takes the signal from your guitar as a mono-signal from your sound
1887 card. The input is processed by a main amp and a rack-section. Both can be
1888 routed separately and deliver a processed stereo-signal via JACK. You may
1889 fill the rack with effects from more than 25 built-in modules including stuff
1890 from a simple noise gate to modulation effects like flanger, phaser or
1892 (license license:gpl2+)))
1894 (define-public guitarix-lv2
1895 (package (inherit guitarix)
1896 (name "guitarix-lv2")
1898 (substitute-keyword-arguments (package-arguments guitarix)
1899 ((#:configure-flags flags)
1900 `(cons "--no-standalone" ,flags))))))
1902 (define-public rakarrack
1908 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1909 "rakarrack-" version "/rakarrack-"
1910 version ".tar.bz2"))
1913 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1914 (modules '((guix build utils)))
1917 (substitute* '("src/process.C"
1919 (("#include <Fl/") "#include <FL/"))
1921 (build-system gnu-build-system)
1923 `(("alsa-utils" ,alsa-utils)
1926 ("libxext" ,libxext)
1927 ("libxfixes" ,libxfixes)
1929 ("libxrender" ,libxrender)
1931 ("fontconfig" ,fontconfig)
1932 ("freetype" ,freetype)
1934 ("alsa-lib" ,alsa-lib)
1935 ("libsndfile" ,libsndfile)
1936 ("libsamplerate" ,libsamplerate)
1938 (home-page "http://rakarrack.sourceforge.net/")
1939 (synopsis "Audio effects processor")
1941 "Rakarrack is a richly featured multi-effects processor emulating a
1942 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1943 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1944 distortion modules and many more. Most of the effects engine is built from
1945 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1946 user interface are optimized for guitar, but Rakarrack processes signals in
1947 stereo while it does not apply internal band-limiting filtering, and thus is
1948 well suited to all musical instruments and vocals.")
1949 ;; The code is explicitly licensed under the GPL version 2 only.
1950 (license license:gpl2)))
1959 (url "https://github.com/tomszilagyi/ir.lv2")
1961 (file-name (git-file-name name version))
1964 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1965 (build-system gnu-build-system)
1967 `(#:tests? #f ; no tests
1969 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1970 (string-append "INSTDIR="
1971 (assoc-ref %outputs "out") "/lib/lv2"))
1972 #:phases (modify-phases %standard-phases
1973 (delete 'configure)))) ; no configure script
1975 `(("libsndfile" ,libsndfile)
1976 ("libsamplerate" ,libsamplerate)
1980 ("zita-convolver" ,zita-convolver)))
1982 `(("pkg-config" ,pkg-config)))
1983 (native-search-paths
1984 (list (search-path-specification
1985 (variable "LV2_PATH")
1986 (files '("lib/lv2")))))
1987 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1988 (synopsis "LV2 convolution reverb")
1990 "IR is a low-latency, real-time, high performance signal convolver
1991 especially for creating reverb effects. It supports impulse responses with 1,
1992 2 or 4 channels, in any soundfile format supported by libsndfile.")
1993 (license license:gpl2+)))
1995 (define-public jack-1
2002 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2003 ;; no longer exists (404). Use an unofficial mirror.
2004 (uri (string-append "https://crux.ster.zone/downloads/"
2005 "jack-audio-connection-kit/"
2006 "jack-audio-connection-kit-" version ".tar.gz"))
2008 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2009 (build-system gnu-build-system)
2011 `(#:phases (modify-phases %standard-phases
2012 (add-after 'unpack 'patch-configure
2014 (substitute* "configure"
2015 ;; Install to <out/lib> regardless of platform.
2016 (("libnn=lib64") "libnn=lib"))
2019 `(("alsa-lib" ,alsa-lib)
2020 ("readline" ,readline)))
2021 ;; uuid.h is included in the JACK type headers
2022 ;; db.h is included in the libjack metadata headers
2024 `(("libuuid" ,util-linux "lib")
2027 `(("pkg-config" ,pkg-config)))
2028 (home-page "https://jackaudio.org/")
2029 (synopsis "JACK audio connection kit")
2031 "JACK is a low-latency audio server. It can connect a number of
2032 different applications to an audio device, as well as allowing them to share
2033 audio between themselves. JACK is different from other audio server efforts
2034 in that it has been designed from the ground up to be suitable for
2035 professional audio work. This means that it focuses on two key areas:
2036 synchronous execution of all clients, and low latency operation.")
2037 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2038 ;; licensed under the LGPL in order to allow for proprietary usage.
2039 (license (list license:gpl2+ license:lgpl2.1+))))
2041 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2042 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2043 ;; program for users who might benefit from the D-BUS features.
2044 (define-public jack-2
2045 (package (inherit jack-1)
2050 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
2051 "download/v" version "/jack2-"
2053 (file-name (string-append name "-" version ".tar.gz"))
2056 "0z11hf55a6mi8h50hfz5wry9pshlwl4mzfwgslghdh40cwv342m2"))))
2057 (build-system waf-build-system)
2059 `(#:tests? #f ; no check target
2060 #:configure-flags '("--dbus"
2063 (modify-phases %standard-phases
2064 (add-before 'configure 'set-linkflags
2066 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2067 ;; will not link with undefined reference to symbol
2068 ;; '__gxx_personality_v0@@CXXABI_1.3'
2069 (setenv "LDFLAGS" "-lstdc++")
2070 ;; Add $libdir to the RUNPATH of all the binaries.
2071 (substitute* "wscript"
2072 ((".*CFLAGS.*-Wall.*" m)
2074 " conf.env.append_unique('LINKFLAGS',"
2075 "'-Wl,-rpath=" %output "/lib')\n")))
2077 (add-after 'install 'wrap-python-scripts
2078 (lambda* (#:key inputs outputs #:allow-other-keys)
2079 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2080 (let* ((out (assoc-ref outputs "out"))
2081 (path (getenv "PYTHONPATH")))
2082 (wrap-program (string-append out "/bin/jack_control")
2083 `("PYTHONPATH" ":" prefix (,path))))
2086 `(("alsa-lib" ,alsa-lib)
2089 ("libsamplerate" ,libsamplerate)
2091 ("python-dbus" ,python-dbus)
2092 ("readline" ,readline)))
2094 `(("pkg-config" ,pkg-config)))
2095 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2096 (license (list license:gpl2+ license:lgpl2.1+))))
2104 (uri (string-append "https://download.drobilla.net/jalv-"
2105 version ".tar.bz2"))
2108 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2109 (build-system waf-build-system)
2111 `(#:tests? #f ; no check target
2112 #:python ,python-2))
2123 `(("pkg-config" ,pkg-config)))
2124 (home-page "https://drobilla.net/software/jalv/")
2125 (synopsis "Simple LV2 host for JACK")
2127 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2128 plugins and exposes their ports as JACK ports, essentially making any LV2
2129 plugin function as a JACK application.")
2130 (license license:isc)))
2132 (define-public ladspa
2139 ;; Since the official link is dead,
2140 ;; we download the tarball from Debian or Internet Archive.
2141 (uri (list (string-append "http://http.debian.net"
2142 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2143 version ".orig.tar.gz")
2144 (string-append "https://web.archive.org/web/20140717172251/"
2145 "http://www.ladspa.org/download/ladspa_sdk_"
2149 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2150 (build-system gnu-build-system)
2152 `(#:tests? #f ; the "test" target is a listening test only
2154 (modify-phases %standard-phases
2156 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2158 (let ((out (assoc-ref outputs "out")))
2159 (substitute* "makefile"
2160 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2161 (("/usr/include/") (string-append out "/include/"))
2162 (("/usr/bin/") (string-append out "/bin/"))
2163 (("-mkdirhier") "mkdir -p")
2164 (("^CC.*") "CC = gcc\n")
2165 (("^CPP.*") "CPP = g++\n")))
2168 ;; Since the home page is gone, we provide a link to the archived version.
2170 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2171 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2173 "LADSPA is a standard that allows software audio processors and effects
2174 to be plugged into a wide range of audio synthesis and recording packages.")
2175 (license license:lgpl2.1+)))
2180 (version "0.6.0-rc2")
2183 ;; The tilde is not permitted in the builder name, but is used
2186 "mirror://savannah/lash/lash-"
2187 (string-join (string-split version #\-) "~")
2189 (file-name (string-append name "-" version ".tar.bz2"))
2192 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2193 (build-system gnu-build-system)
2195 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2196 ;; to use libtirpc instead.
2197 #:make-flags (list (string-append "CFLAGS=-I"
2198 (assoc-ref %build-inputs "libtirpc")
2199 "/include/tirpc -ltirpc"))
2201 (modify-phases %standard-phases
2202 ;; lashd embeds an ancient version of sigsegv so we just skip it
2203 (add-after 'unpack 'skip-lashd
2205 (substitute* '("Makefile.am" "Makefile.in")
2208 #:configure-flags '("--disable-static")))
2213 ("libtirpc" ,libtirpc)
2214 ("readline" ,readline)
2215 ("python" ,python-2)))
2216 ;; According to pkg-config, packages depending on lash also need to have
2217 ;; at least the following packages declared as inputs.
2219 `(("alsa-lib" ,alsa-lib)
2221 ("libxml2" ,libxml2)))
2223 `(("pkg-config" ,pkg-config)))
2224 (home-page "https://www.nongnu.org/lash/")
2225 (synopsis "Audio application session manager")
2227 "LASH is a session management system for audio applications. It allows
2228 you to save and restore audio sessions consisting of multiple interconneced
2229 applications, restoring program state (i.e. loaded patches) and the
2230 connections between them.")
2231 (license license:gpl2+)))
2233 (define-public libbs2b
2239 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2240 "/libbs2b-" version ".tar.lzma"))
2243 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2244 (build-system gnu-build-system)
2245 (native-inputs `(("pkg-config" ,pkg-config)))
2246 (inputs `(("libsndfile" ,libsndfile)))
2247 (home-page "https://sourceforge.net/projects/bs2b/")
2248 (synopsis "Bauer stereophonic-to-binaural DSP")
2250 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2251 designed to improve headphone listening of stereo audio records. Recommended
2252 for headphone prolonged listening to disable superstereo fatigue without
2253 essential distortions.")
2254 (license license:expat)))
2256 (define-public ladspa-bs2b
2258 (name "ladspa-bs2b")
2263 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2264 version "/" name "-" version ".tar.gz"))
2267 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2268 (build-system gnu-build-system)
2269 (native-inputs `(("pkg-config" ,pkg-config)))
2270 (inputs `(("ladspa" ,ladspa)
2271 ("libbs2b" ,libbs2b)))
2272 (home-page "https://sourceforge.net/projects/bs2b/")
2273 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2274 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2275 plugins is designed to improve headphone listening of stereo audio records.
2276 Recommended for headphone prolonged listening to disable superstereo fatigue
2277 without essential distortions. This package contains a LADSPA plugin for use
2278 with applications that support them (e.g. PulseAudio).")
2279 (license license:gpl2+)))
2281 (define-public liblo
2287 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2288 "/liblo-" version ".tar.gz"))
2291 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2292 (build-system gnu-build-system)
2294 `(;; liblo test FAILED
2295 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2297 (home-page "http://liblo.sourceforge.net")
2298 (synopsis "Implementation of the Open Sound Control protocol")
2300 "liblo is a lightweight library that provides an easy to use
2301 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2302 (license license:lgpl2.1+)))
2304 (define-public rtaudio
2312 (url "https://github.com/thestk/rtaudio")
2314 (file-name (git-file-name name version))
2316 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2317 (build-system cmake-build-system)
2319 `(("pkg-config" ,pkg-config)))
2321 `(("alsa-lib" ,alsa-lib)
2323 ("pulseaudio" ,pulseaudio)))
2324 (synopsis "Common API for real-time audio I/O")
2326 "RtAudio is a set of C++ classes that provides a common API for real-time
2327 audio input/output. It was designed with the following objectives:
2330 @item object-oriented C++ design
2331 @item simple, common API across all supported platforms
2332 @item only one source and one header file for easy inclusion in programming
2334 @item allow simultaneous multi-api support
2335 @item support dynamic connection of devices
2336 @item provide extensive audio device parameter control
2337 @item allow audio device capability probing
2338 @item automatic internal conversion for data format, channel number
2339 compensation, (de)interleaving, and byte-swapping
2341 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2342 ;; License is expat with a non-binding request to send modifications to
2343 ;; original developer.
2344 (license license:expat)))
2346 (define-public python-pyaudio
2348 (name "python-pyaudio")
2353 (uri (pypi-uri "PyAudio" version))
2356 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2357 (build-system python-build-system)
2359 `(("portaudio" ,portaudio)))
2360 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2361 (synopsis "Bindings for PortAudio v19")
2362 (description "This package provides bindings for PortAudio v19, the
2363 cross-platform audio input/output stream library.")
2364 (license license:expat)))
2366 (define-public python2-pyaudio
2367 (package-with-python2 python-pyaudio))
2369 (define-public python-pyliblo
2371 (name "python-pyliblo")
2375 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2379 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2380 (build-system python-build-system)
2381 (arguments `(#:tests? #f)) ;no tests
2383 `(("python-cython" ,python-cython)))
2385 `(("liblo" ,liblo)))
2386 (home-page "http://das.nasophon.de/pyliblo/")
2387 (synopsis "Python bindings for liblo")
2389 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2390 library. It supports almost the complete functionality of liblo, allowing you
2391 to send and receive OSC messages using a nice and simple Python API. Also
2392 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2393 (license license:lgpl2.1+)))
2395 (define-public python2-pyliblo
2396 (package-with-python2 python-pyliblo))
2404 (uri (string-append "https://download.drobilla.net/lilv-"
2405 version ".tar.bz2"))
2408 "0063i5zgf3d3accwmyx651hw0wh5ik7kji2hvfkcdbl1qia3dp6a"))))
2409 (build-system waf-build-system)
2411 `(#:tests? #f ; no check target
2413 (modify-phases %standard-phases
2414 (add-before 'configure 'set-ldflags
2415 (lambda* (#:key outputs #:allow-other-keys)
2417 (string-append "-Wl,-rpath="
2418 (assoc-ref outputs "out") "/lib"))
2420 (add-after 'unpack 'full-store-path-to-shared-library
2421 (lambda* (#:key outputs #:allow-other-keys)
2422 (with-directory-excursion "bindings/python"
2423 (substitute* "lilv.py"
2424 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2425 "/lib/liblilv-0.so"))))
2427 ;; Required by lilv-0.pc.
2432 ("sratom" ,sratom)))
2434 `(("python" ,python)
2435 ("pkg-config" ,pkg-config)))
2436 (home-page "https://drobilla.net/software/lilv")
2437 (synopsis "Library to simplify use of LV2 plugins in applications")
2439 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2440 for applications. Lilv is the successor to SLV2, rewritten to be
2441 significantly faster and have minimal dependencies.")
2442 (license license:isc)))
2450 (uri (string-append "https://lv2plug.in/spec/lv2-"
2451 version ".tar.bz2"))
2454 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2455 (build-system waf-build-system)
2457 `(#:tests? #f ; no check target
2458 #:configure-flags '("--no-plugins")))
2460 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2461 `(("libsndfile" ,libsndfile)))
2463 `(("pkg-config" ,pkg-config)))
2464 (home-page "https://lv2plug.in/")
2465 (synopsis "LV2 audio plugin specification")
2467 "LV2 is an open specification for audio plugins and host applications.
2468 At its core, LV2 is a simple stable interface, accompanied by extensions which
2469 add functionality to support the needs of increasingly powerful audio
2471 (license license:isc)))
2473 (define-public lv2-mda-piano
2475 (name "lv2-mda-piano")
2480 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2482 (file-name (git-file-name name version))
2485 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2486 (build-system gnu-build-system)
2488 `(#:make-flags (list
2490 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2491 #:tests? #f ; no check target
2492 #:phases (modify-phases %standard-phases (delete 'configure))))
2497 `(("pkg-config" ,pkg-config)))
2498 (native-search-paths
2499 (list (search-path-specification
2500 (variable "LV2_PATH")
2501 (files '("lib/lv2")))))
2502 (home-page "https://elephly.net/lv2/mdapiano.html")
2503 (synopsis "LV2 port of the mda Piano plugin")
2504 (description "An LV2 port of the mda Piano VSTi.")
2505 (license license:gpl3+)))
2507 (define-public lv2-mda-epiano
2508 (package (inherit lv2-mda-piano)
2509 (name "lv2-mda-epiano")
2511 `(#:make-flags (list
2513 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2514 #:tests? #f ; no check target
2515 #:phases (modify-phases %standard-phases (delete 'configure))))
2516 (home-page "https://elephly.net/lv2/mdaepiano.html")
2517 (synopsis "LV2 port of the mda EPiano plugin")
2518 (description "An LV2 port of the mda EPiano VSTi.")))
2527 (url "https://github.com/lvtk/lvtk")
2529 (file-name (git-file-name name version))
2532 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2533 (build-system waf-build-system)
2535 `(#:tests? #f ; no check target
2538 (list (string-append "--boost-includes="
2539 (assoc-ref %build-inputs "boost")
2546 `(("pkg-config" ,pkg-config)))
2547 (home-page "https://github.com/lvtk/lvtk")
2548 (synopsis "C++ libraries for LV2 plugins")
2550 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2551 extensions into easy to use C++ classes. It is the successor of
2553 (license license:gpl3+)))
2555 (define-public openal
2562 "https://openal-soft.org/openal-releases/openal-soft-"
2563 version ".tar.bz2"))
2566 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2567 (build-system cmake-build-system)
2569 `(#:tests? #f ; no check target
2571 (modify-phases %standard-phases
2573 'unpack 'use-full-library-paths
2574 (lambda* (#:key inputs #:allow-other-keys)
2575 (substitute* "alc/backends/pulseaudio.cpp"
2576 (("#define PALIB \"libpulse\\.so\\.0\"")
2577 (string-append "#define PALIB \""
2578 (assoc-ref inputs "pulseaudio")
2579 "/lib/libpulse.so.0"
2581 (substitute* "alc/backends/alsa.cpp"
2582 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2583 (string-append "LoadLib(\""
2584 (assoc-ref inputs "alsa-lib")
2585 "/lib/libasound.so.2"
2589 `(("alsa-lib" ,alsa-lib)
2590 ("pulseaudio" ,pulseaudio)))
2591 (synopsis "3D audio API")
2593 "OpenAL provides capabilities for playing audio in a virtual 3D
2594 environment. Distance attenuation, doppler shift, and directional sound
2595 emitters are among the features handled by the API. More advanced effects,
2596 including air absorption, occlusion, and environmental reverb, are available
2597 through the EFX extension. It also facilitates streaming audio, multi-channel
2598 buffers, and audio capture.")
2599 (home-page "https://openal-soft.org/")
2600 (license license:lgpl2.0+)))
2602 (define-public freealut
2608 ;; Upstream url is unclear, many systems use Fedora, there is also
2609 ;; https://github.com/vancegroup/freealut though the status of it
2610 ;; (official? unofficial?) is not clear.
2612 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2613 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2614 "-" version ".tar.gz"))
2617 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2618 (build-system cmake-build-system)
2620 `(#:tests? #f)) ; no check target
2622 `(("openal" ,openal)))
2623 (synopsis "Free implementation of OpenAL's ALUT standard")
2624 (description "freealut is the OpenAL Utility Toolkit.")
2625 (home-page "https://kcat.strangesoft.net/openal.html")
2626 (license license:lgpl2.0)))
2628 (define-public patchage
2634 (uri (string-append "https://download.drobilla.net/patchage-"
2639 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2640 (build-system waf-build-system)
2642 `(#:tests? #f ; no check target
2643 #:python ,python-2))
2645 `(("alsa-lib" ,alsa-lib)
2651 ("dbus-glib" ,dbus-glib)))
2653 `(("pkg-config" ,pkg-config)))
2654 (home-page "https://drobilla.net/software/patchage/")
2655 (synopsis "Modular patch bay for audio and MIDI systems")
2657 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2659 (license license:gpl3+)))
2661 (define-public pcaudiolib
2665 (home-page "https://github.com/espeak-ng/pcaudiolib")
2668 (uri (git-reference (url home-page) (commit version)))
2669 (file-name (git-file-name name version))
2672 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2673 (build-system gnu-build-system)
2675 `(#:configure-flags '("--disable-static")))
2677 `(("autoconf" ,autoconf)
2678 ("automake" ,automake)
2679 ("libtool" ,libtool)
2680 ("pkg-config" ,pkg-config)
2683 `(("alsa-lib" ,alsa-lib)
2684 ("pulseaudio" ,pulseaudio)))
2685 (synopsis "Portable C audio library")
2687 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2688 different audio devices such as ALSA or PulseAudio.")
2689 (license (list license:gpl3+
2690 ;; The bundled TPCircularBuffer uses a custom license.
2691 (license:non-copyleft
2692 "file://src/TPCircularBuffer/README.markdown")))))
2694 (define-public qjackctl
2700 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2701 version "/qjackctl-" version ".tar.gz"))
2704 "0zbb4jlx56qvcqyhx34mbagkqf3wbxgj84hk0ppf5cmcrxv67d4x"))))
2705 (build-system gnu-build-system)
2707 '(#:tests? #f)) ; no check target
2710 ("alsa-lib" ,alsa-lib)
2711 ("portaudio" ,portaudio)
2713 ("qtx11extras" ,qtx11extras)))
2715 `(("pkg-config" ,pkg-config)
2716 ("qttools" ,qttools)))
2717 (home-page "https://qjackctl.sourceforge.io/")
2718 (synopsis "Jack server control application")
2719 (description "Control a Jack server. Allows you to plug various sources
2720 into various outputs and to start, stop and configure jackd")
2721 (license license:gpl2+)))
2723 (define-public qjackrcd
2730 (url "https://github.com/orouits/qjackrcd")
2731 (commit (string-append "v" version))))
2732 (file-name (git-file-name name version))
2735 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2736 (build-system gnu-build-system)
2739 (modify-phases %standard-phases
2741 (lambda* (#:key outputs #:allow-other-keys)
2743 (string-append "PREFIX="
2744 (assoc-ref outputs "out"))))))))
2746 `(("qtbase" ,qtbase))) ; for qmake
2749 ("libsndfile" ,libsndfile)
2750 ("qtbase" ,qtbase)))
2751 (home-page "https://sourceforge.net/projects/qjackrcd/")
2752 (synopsis "Stereo audio recorder for JACK")
2753 (description "QJackRcd is a simple graphical stereo recorder for JACK
2754 supporting silence processing for automatic pause, file splitting, and
2755 background file post-processing.")
2756 (license license:gpl2+)))
2758 (define-public supercollider
2760 (name "supercollider")
2765 (url "https://github.com/supercollider/supercollider")
2766 (commit (string-append "Version-" version))
2767 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2769 (file-name (git-file-name name version))
2772 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))
2773 (modules '((guix build utils)
2776 ;; The build system doesn't allow us to unbundle the following
2777 ;; libraries. hidapi is also heavily patched and upstream not
2778 ;; actively maintained.
2779 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2780 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2781 (with-directory-excursion "./external_libraries"
2783 delete-file-recursively
2786 (and (eq? (stat:type (stat x)) 'directory)
2787 (not (member (basename x) keep-dirs)))))))
2788 ;; To find the Guix provided ableton-link library.
2789 (substitute* "lang/CMakeLists.txt"
2790 (("include\\(\\.\\./external_libraries/link/\
2791 AbletonLinkConfig\\.cmake\\)")
2792 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2795 (build-system cmake-build-system)
2797 '("out" ;core language
2800 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2801 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2802 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2803 "-DSC_EL=off") ;scel is packaged individually as
2806 (modify-phases %standard-phases
2807 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2808 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2809 ;; The graphical tests also hang without it.
2810 (add-after 'unpack 'set-home-directory
2812 (setenv "HOME" (getcwd))
2814 (add-after 'unpack 'patch-scclass-dir
2815 (lambda* (#:key outputs #:allow-other-keys)
2816 (let* ((out (assoc-ref outputs "out"))
2819 "/share/SuperCollider/SCClassLibrary")))
2820 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2822 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2823 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2824 (string-append "Path(\"" scclass-dir "\")")))
2826 (add-before 'build 'prepare-x
2829 (setenv "DISPLAY" ":0")
2831 (add-before 'install 'install-ide
2832 (lambda* (#:key outputs #:allow-other-keys)
2833 (let* ((out (assoc-ref outputs "out"))
2834 (ide (assoc-ref outputs "ide"))
2835 (scide "editors/sc-ide/scide"))
2837 (string-append ide "/bin"))
2841 `(("ableton-link" ,ableton-link)
2842 ("pkg-config" ,pkg-config)
2843 ("qttools" ,qttools)
2844 ("xorg-server" ,xorg-server-for-tests)))
2847 ("libsndfile" ,libsndfile)
2850 ("readline" ,readline) ;readline support for sclang's CLI
2851 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2852 ("eudev" ,eudev) ;for user interactions with devices
2853 ("avahi" ,avahi) ;zeroconf service discovery support
2856 ("boost-sync" ,boost-sync)
2857 ("yaml-cpp" ,yaml-cpp)
2859 ("qtdeclarative" ,qtdeclarative)
2861 ("qtwebchannel" ,qtwebchannel)
2862 ("qtwebsockets" ,qtwebsockets)))
2863 (propagated-inputs ;to get native-search-path
2864 `(("qtwebengine" ,qtwebengine)))
2865 (home-page "https://github.com/supercollider/supercollider")
2866 (synopsis "Synthesis engine and programming language")
2867 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2868 @code{supernova}) and programming language (@code{sclang}). It can be used
2869 for experimenting with sound synthesis and algorithmic composition.
2871 SuperCollider requires jackd to be installed in your user profile and your
2872 user must be allowed to access the realtime features of the kernel. Search
2873 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2874 using Guix System.")
2875 (license license:gpl2+)))
2883 (uri (string-append "https://download.drobilla.net/raul-"
2884 version ".tar.bz2"))
2887 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2888 (build-system waf-build-system)
2890 `(#:python ,python-2
2891 #:tests? #f)) ; no check target
2896 `(("pkg-config" ,pkg-config)))
2897 (home-page "https://drobilla.net/software/raul/")
2898 (synopsis "Real-time audio utility library")
2900 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2901 aimed at audio/musical applications.")
2902 (license license:gpl2+)))
2904 (define-public raul-devel
2905 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2907 (package (inherit raul)
2909 (version (string-append "0.8.9-" revision "."
2910 (string-take commit 9)))
2914 (url "https://git.drobilla.net/raul.git")
2916 (file-name (string-append name "-" version "-checkout"))
2919 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2921 (define-public resample
2927 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2931 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2932 (build-system gnu-build-system)
2934 `(("autoconf" ,autoconf)
2935 ("automake" ,automake)
2936 ("pkg-config" ,pkg-config)
2937 ("libtool" ,libtool)))
2938 (synopsis "Sampling rate conversion and filter design utilities")
2939 (description "This package contains the @command{resample} and
2940 @command{windowfilter} command line utilities. The @command{resample} command
2941 allows changing the sampling rate of a sound file, while the
2942 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
2943 filters using the so-called @emph{window method}.")
2944 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2945 (license license:lgpl2.1+)))
2947 (define-public rubberband
2954 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2957 (file-name (string-append name "-" version ".tar.bz2"))
2960 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2961 (build-system gnu-build-system)
2963 `(#:tests? #f ; no check target
2965 (modify-phases %standard-phases
2966 (add-after 'unpack 'skip-jni-installation
2967 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2968 ;; which is never built by ‘make all’. Skip it.
2970 (substitute* "Makefile.in"
2971 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2974 `(("ladspa" ,ladspa)
2975 ("libsamplerate" ,libsamplerate)
2978 `(("pkg-config" ,pkg-config)))
2979 (home-page "https://breakfastquay.com/rubberband/")
2980 (synopsis "Audio time-stretching and pitch-shifting library")
2982 "Rubber Band is a library and utility program that permits changing the
2983 tempo and pitch of an audio recording independently of one another.")
2984 (license license:gpl2+)))
2986 (define-public rtmidi
2992 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2993 "/release/rtmidi-" version ".tar.gz"))
2994 (file-name (string-append "rtmidi-" version ".tar.gz"))
2997 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2998 (build-system gnu-build-system)
3001 ("alsa-lib" ,alsa-lib)))
3003 `(("autoconf" ,autoconf)
3004 ("automake" ,automake)
3005 ("libtool" ,libtool)
3006 ("pkg-config" ,pkg-config)))
3007 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3008 (synopsis "Cross-platform MIDI library for C++")
3010 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3011 classes) that provide a common cross-platform API for realtime MIDI
3013 (license license:expat)))
3015 (define-public sratom
3021 (uri (string-append "https://download.drobilla.net/sratom-"
3022 version ".tar.bz2"))
3025 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
3026 (build-system waf-build-system)
3027 (arguments `(#:tests? #f)) ;no check target
3029 ;; In Requires of sratom-0.pc.
3034 `(("pkg-config" ,pkg-config)))
3035 (home-page "https://drobilla.net/software/sratom/")
3036 (synopsis "Library for serialising LV2 atoms to/from RDF")
3038 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3039 the Turtle syntax.")
3040 (license license:isc)))
3048 (uri (string-append "https://download.drobilla.net/suil-"
3049 version ".tar.bz2"))
3052 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
3053 (build-system waf-build-system)
3055 `(#:tests? #f)) ;no check target
3062 `(("pkg-config" ,pkg-config)))
3063 (home-page "https://drobilla.net/software/suil/")
3064 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3066 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3068 Suil makes it possible to load a UI of a toolkit in a host using another
3069 toolkit. The API is designed such that hosts do not need to explicitly
3070 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3071 that toolkit will work in all hosts that use Suil automatically.
3073 Suil currently supports every combination of Gtk, Qt, and X11.")
3074 (license license:isc)))
3076 (define-public libebur128
3084 (url "https://github.com/jiixyj/libebur128")
3085 (commit (string-append "v" version))))
3086 (file-name (git-file-name name version))
3088 (base32 "0n81rnm8dm1zmibkr2v3q79rsd609y0dbbsrbay18njcjva88p0g"))))
3089 (build-system cmake-build-system)
3091 `(;; Tests require proprietary .wav files. See
3092 ;; https://github.com/jiixyj/libebur128/issues/82.
3094 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3095 (home-page "https://github.com/jiixyj/libebur128")
3096 (synopsis "Library implementing the EBU R 128 loudness standard")
3098 "@code{libebur128} is a C library that implements the EBU R 128 standard
3099 for loudness normalisation.")
3100 (license license:expat)))
3102 (define-public timidity++
3108 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3109 "/TiMidity++-" version
3110 "/TiMidity++-" version ".tar.bz2"))
3113 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
3114 (build-system gnu-build-system)
3117 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3121 (string-append "--with-default-path="
3122 (assoc-ref %outputs "out") "/etc/timidity"))
3124 (modify-phases %standard-phases
3125 (add-after 'install 'install-config
3127 (let ((out (string-append (assoc-ref %outputs "out")
3130 (call-with-output-file
3131 (string-append out "/timidity.cfg")
3133 (format port (string-append "source "
3134 (assoc-ref %build-inputs "freepats")
3135 "/share/freepats/freepats.cfg")))))
3138 `(("alsa-lib" ,alsa-lib)
3143 ("libvorbis" ,libvorbis)
3145 ("ncurses" ,ncurses)
3146 ("freepats" ,freepats)))
3148 `(("pkg-config" ,pkg-config)))
3149 (home-page "http://timidity.sourceforge.net/")
3150 (synopsis "Software synthesizer for playing MIDI files")
3152 "TiMidity++ is a software synthesizer. It can play MIDI files by
3153 converting them into PCM waveform data; give it a MIDI data along with digital
3154 instrument data files, then it synthesizes them in real-time, and plays. It
3155 can not only play sounds, but also can save the generated waveforms into hard
3156 disks as various audio file formats.")
3157 (license license:gpl2+)))
3166 "https://code.soundsoftware.ac.uk"
3167 "/attachments/download/1520/vamp-plugin-sdk-"
3171 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3172 (build-system gnu-build-system)
3174 `(#:tests? #f ; no check target
3176 (modify-phases %standard-phases
3177 (add-after 'install 'remove-libvamp-hostsdk.la
3178 (lambda* (#:key outputs #:allow-other-keys)
3179 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3180 (for-each delete-file
3181 (let ((out (assoc-ref outputs "out")))
3182 (list (string-append out "/lib/libvamp-sdk.la")
3183 (string-append out "/lib/libvamp-hostsdk.la"))))
3186 `(("libsndfile" ,libsndfile)))
3188 `(("pkg-config" ,pkg-config)))
3189 (home-page "https://vamp-plugins.org")
3190 (synopsis "Modular and extensible audio processing system")
3192 "Vamp is an audio processing plugin system for plugins that extract
3193 descriptive information from audio data — typically referred to as audio
3194 analysis plugins or audio feature extraction plugins.")
3197 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3199 (define-public libsbsms
3206 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3207 "/libsbsms-" version ".tar.gz"))
3209 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3210 (build-system gnu-build-system)
3211 (native-inputs `(("automake" ,automake)))
3214 ;; Disable the use of SSE unless on x86_64.
3215 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3216 (%current-system))))
3220 (modify-phases %standard-phases
3222 'unpack 'fix-ar-lib-path
3223 (lambda* (#:key inputs #:allow-other-keys)
3224 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3225 (delete-file "ar-lib")
3227 (string-append (assoc-ref inputs "automake") "/share/automake-"
3228 ,(package-version automake) "/ar-lib")
3231 (home-page "http://sbsms.sourceforge.net/")
3232 (synopsis "Library for time stretching and pitch scaling of audio")
3234 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3235 stretching and pitch scaling of audio. This package contains the library.")
3236 ;; There is no explicit declaration of a license, but a COPYING file
3238 (license license:gpl2)))
3240 (define-public wavpack
3248 (url "https://github.com/dbry/WavPack")
3249 (commit "e4e8d191e8dd74cbdbeaef3232c16a7ef517e68d")))
3251 (base32 "1zj8svk6giy1abq3940sz32ygz7zldppxl47852zgn5wfm3l2spx"))
3252 (file-name (git-file-name name version))))
3253 (build-system gnu-build-system)
3256 (list "--disable-static")
3258 (modify-phases %standard-phases
3260 ;; Running ./autogen.sh would cause premature configuration.
3262 (invoke "autoreconf" "-vif")
3265 `(("autoconf" ,autoconf)
3266 ("automake" ,automake)
3267 ("libtool" ,libtool)))
3268 (home-page "http://www.wavpack.com/")
3269 (synopsis "Hybrid lossless audio codec")
3271 "WavPack is an audio compression format with lossless, lossy and hybrid
3272 compression modes. This package contains command-line programs and library to
3273 encode and decode wavpack files.")
3274 (license license:bsd-3)))
3276 (define-public libmodplug
3283 "mirror://sourceforge/modplug-xmms/"
3284 name "/" version "/" name "-" version ".tar.gz"))
3287 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3288 (build-system gnu-build-system)
3289 (home-page "http://modplug-xmms.sourceforge.net/")
3290 (synopsis "Mod file playing library")
3292 "Libmodplug renders mod music files as raw audio data, for playing or
3293 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3294 supported. Optional features include high-quality resampling, bass expansion,
3295 surround and reverb.")
3296 (license license:public-domain)))
3298 (define-public libxmp
3304 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3305 name "-" version ".tar.gz"))
3308 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3309 (build-system gnu-build-system)
3310 (home-page "http://xmp.sourceforge.net/")
3311 (synopsis "Module player library")
3313 "Libxmp is a library that renders module files to PCM data. It supports
3314 over 90 mainstream and obscure module formats including Protracker (MOD),
3315 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3316 (license license:lgpl2.1+)))
3324 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3325 name "-" version ".tar.gz"))
3328 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3329 (build-system gnu-build-system)
3331 `(("pkg-config" ,pkg-config)))
3333 `(("libxmp" ,libxmp)
3334 ("pulseaudio" ,pulseaudio)))
3335 (home-page "http://xmp.sourceforge.net/")
3336 (synopsis "Extended module player")
3338 "Xmp is a portable module player that plays over 90 mainstream and
3339 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3340 Tracker 3 S3M and Impulse Tracker IT files.")
3341 (license license:gpl2+)))
3343 (define-public soundtouch
3351 (url "https://gitlab.com/soundtouch/soundtouch.git")
3353 (file-name (git-file-name name version))
3355 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3356 (build-system gnu-build-system)
3358 `(("autoconf" ,autoconf)
3359 ("automake" ,automake)
3360 ("libtool" ,libtool)
3362 (home-page "https://www.surina.net/soundtouch/")
3364 "Audio processing library for changing tempo, pitch and playback rate")
3366 "SoundTouch is an audio processing library for changing the tempo, pitch
3367 and playback rates of audio streams or audio files. It is intended for
3368 application developers writing sound processing tools that require tempo/pitch
3369 control functionality, or just for playing around with the sound effects.")
3370 (license license:lgpl2.1+)))
3378 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3379 name "-" version ".tar.bz2"))
3382 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3383 (build-system gnu-build-system)
3386 ;; The upstream asks to identify the distribution to diagnose SoX
3388 '("--with-distro=Guix System Distribution")))
3390 `(("pkg-config" ,pkg-config)))
3392 `(("alsa-lib" ,alsa-lib)
3396 ("libid3tag" ,libid3tag)
3397 ("libltdl" ,libltdl)
3400 ("libvorbis" ,libvorbis)
3401 ("pulseaudio" ,pulseaudio)))
3402 (home-page "http://sox.sourceforge.net")
3403 (synopsis "Sound processing utility")
3405 "SoX (Sound eXchange) is a command line utility that can convert
3406 various formats of computer audio files to other formats. It can also
3407 apply various effects to these sound files, and, as an added bonus, SoX
3408 can play and record audio files.")
3409 ;; sox.c is distributed under GPL, while the files that make up
3410 ;; libsox are licensed under LGPL.
3411 (license (list license:gpl2+ license:lgpl2.1+))))
3421 (string-append "mirror://sourceforge/soxr/soxr-" version
3424 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3425 (build-system cmake-build-system)
3426 (arguments '(#:tests? #f)) ;no 'check' target
3427 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3428 (synopsis "One-dimensional sample-rate conversion library")
3430 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3431 conversion. It may be used, for example, to resample PCM-encoded audio.")
3432 (license license:lgpl2.1+)))
3434 (define-public twolame
3441 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3442 "/twolame-" version ".tar.gz"))
3444 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3445 (build-system gnu-build-system)
3447 `(("libsndfile" ,libsndfile)))
3450 ("which" ,which))) ;used in tests/test.pl
3451 (home-page "http://www.twolame.org/")
3452 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3454 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3455 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3457 (license license:lgpl2.1+)))
3459 (define-public portaudio
3462 (version "190600.20161030")
3467 "http://www.portaudio.com/archives/pa_stable_v"
3468 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3471 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3472 (patches (search-patches "portaudio-audacity-compat.patch"))))
3473 (build-system gnu-build-system)
3475 ;; TODO: Add ASIHPI.
3476 `(("alsa-lib" ,alsa-lib)
3478 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3481 `(("autoconf" ,autoconf)
3482 ("automake" ,automake)
3483 ("libtool" ,libtool)
3484 ("pkg-config" ,pkg-config)))
3486 '(#:tests? #f ;no 'check' target
3487 #:parallel-build? #f ;fails on some systems
3488 #:configure-flags '("--with-pic"
3490 ;; XXX: The following prevents a build error
3491 ;; because of missing depcomp when C++ bindings are
3493 "--disable-dependency-tracking")
3495 (modify-phases %standard-phases
3496 ;; This is needed for linking the static libraries
3497 (add-after 'unpack 'build-only-position-independent-code
3499 (substitute* "configure.in"
3500 (("AC_PROG_LIBTOOL" m)
3501 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3502 (delete-file "configure")
3504 ;; Some headers are not installed by default, but are needed by
3505 ;; packages like Kaldi.
3506 (add-after 'install 'install-missing-headers
3507 (lambda* (#:key outputs #:allow-other-keys)
3508 (install-file "src/common/pa_ringbuffer.h"
3509 (string-append (assoc-ref outputs "out") "/include"))
3511 (home-page "http://www.portaudio.com/")
3512 (synopsis "Audio I/O library")
3514 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3515 to record and/or play sound using a callback function or a blocking read/write
3517 (license license:expat)))
3519 (define-public qsynth
3527 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3528 "/qsynth-" version ".tar.gz")
3529 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3530 "/qsynth-" version ".tar.gz")))
3532 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3533 (build-system gnu-build-system)
3535 `(#:tests? #f)) ; no "check" phase
3537 `(("qttools" ,qttools)
3538 ("pkg-config" ,pkg-config)))
3540 `(("fluidsynth" ,fluidsynth)
3542 ("qtx11extras" ,qtx11extras)))
3543 (home-page "https://qsynth.sourceforge.io")
3544 (synopsis "Graphical user interface for FluidSynth")
3546 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3547 synthesizer written in C++.")
3548 (license license:gpl2+)))
3550 (define-public rsound
3558 (url "https://github.com/Themaister/RSound")
3559 (commit (string-append "v" version))))
3560 (file-name (git-file-name name version))
3562 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3563 (build-system gnu-build-system)
3565 `(("alsa-lib" ,alsa-lib)
3568 ("libsamplerate" ,libsamplerate)
3570 ("portaudio" ,portaudio)
3571 ("pulseaudio" ,pulseaudio)))
3574 (modify-phases %standard-phases
3576 (lambda* (#:key outputs #:allow-other-keys)
3578 (invoke "./configure"
3579 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3580 ;; No 'check' target.
3582 (home-page "https://themaister.net/rsound.html")
3583 (synopsis "Networked audio system")
3585 "RSound allows you to send audio from an application and transfer it
3586 directly to a different computer on your LAN network. It is an audio daemon
3587 with a much different focus than most other audio daemons.")
3588 (license license:gpl3+)))
3590 (define-public xjackfreak
3597 (url "https://github.com/johnhldavis/xjackfreak")
3598 (commit (string-append "v" version))))
3599 (file-name (git-file-name name version))
3602 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3603 (build-system gnu-build-system)
3606 (list (string-append "docdir=" (assoc-ref %outputs "out")
3607 "/share/doc/xjackfreak"))))
3612 ("libxext" ,libxext)))
3614 `(("pkg-config" ,pkg-config)))
3615 (home-page "https://github.com/johnhldavis/xjackfreak")
3616 (synopsis "JACK audio frequency analyzer and display")
3618 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3619 Connection Kit. It can display the FFT of any input, modify it and output the
3621 (license license:gpl3+)))
3623 (define-public zita-convolver
3625 (name "zita-convolver")
3630 "http://kokkinizita.linuxaudio.org"
3631 "/linuxaudio/downloads/zita-convolver-"
3632 version ".tar.bz2"))
3634 ;; Don't optimize for a specific processor architecture.
3636 (substitute* "source/Makefile"
3637 (("^CXXFLAGS \\+= -march=native") ""))
3639 (modules '((guix build utils)))
3642 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3643 (build-system gnu-build-system)
3645 `(#:tests? #f ; no "check" target
3647 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3648 (string-append "SUFFIX="))
3650 (modify-phases %standard-phases
3651 (add-after 'unpack 'patch-makefile-and-enter-directory
3653 (substitute* "source/Makefile"
3654 (("ldconfig") "true")
3655 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3658 (add-after 'install 'install-symlink
3660 (symlink "libzita-convolver.so"
3661 (string-append (assoc-ref %outputs "out")
3662 "/lib/libzita-convolver.so.4"))
3664 ;; no configure script
3665 (delete 'configure))))
3666 (inputs `(("fftwf" ,fftwf)))
3667 (home-page "https://kokkinizita.linuxaudio.org")
3668 (synopsis "Fast, partitioned convolution engine library")
3670 "Zita convolver is a C++ library providing a real-time convolution
3672 (license license:gpl3+)))
3674 (define-public zita-resampler
3676 (name "zita-resampler")
3681 "http://kokkinizita.linuxaudio.org"
3682 "/linuxaudio/downloads/zita-resampler-"
3683 version ".tar.bz2"))
3685 ;; Don't optimize for a specific processor architecture.
3687 (substitute* '("apps/Makefile" "source/Makefile")
3688 (("^CXXFLAGS \\+= -march=native") ""))
3690 (modules '((guix build utils)))
3693 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3694 (build-system gnu-build-system)
3696 `(#:tests? #f ; no "check" target
3698 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3699 (string-append "SUFFIX="))
3701 (modify-phases %standard-phases
3703 'unpack 'patch-makefile-and-enter-directory
3705 (substitute* "source/Makefile"
3706 (("ldconfig") "true")
3707 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3711 'install 'install-symlink
3713 (symlink "libzita-resampler.so"
3714 (string-append (assoc-ref %outputs "out")
3715 "/lib/libzita-resampler.so.1"))
3717 ;; no configure script
3718 (delete 'configure))))
3719 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3720 (synopsis "C++ library for resampling audio signals")
3722 "Libzita-resampler is a C++ library for resampling audio signals. It is
3723 designed to be used within a real-time processing context, to be fast, and to
3724 provide high-quality sample rate conversion.")
3725 (license license:gpl3+)))
3727 (define-public zita-alsa-pcmi
3729 (name "zita-alsa-pcmi")
3734 "http://kokkinizita.linuxaudio.org"
3735 "/linuxaudio/downloads/zita-alsa-pcmi-"
3736 version ".tar.bz2"))
3739 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3740 (build-system gnu-build-system)
3742 `(#:tests? #f ; no "check" target
3744 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3745 (string-append "SUFFIX="))
3747 (modify-phases %standard-phases
3748 (add-after 'unpack 'patch-makefile-and-enter-directory
3750 (substitute* "source/Makefile"
3751 (("ldconfig") "true")
3752 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3755 (add-after 'install 'install-symlink
3757 (symlink "libzita-alsa-pcmi.so"
3758 (string-append (assoc-ref %outputs "out")
3759 "/lib/libzita-alsa-pcmi.so.0"))
3761 ;; no configure script
3762 (delete 'configure))))
3764 `(("alsa-lib" ,alsa-lib)
3766 (home-page "https://kokkinizita.linuxaudio.org")
3767 (synopsis "C++ wrapper around the ALSA API")
3769 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3770 access to ALSA PCM devices, taking care of the many functions required to
3771 open, initialise and use a hw: device in mmap mode, and providing floating
3773 (license license:gpl3+)))
3775 (define-public cuetools
3782 (url "https://github.com/svend/cuetools")
3784 (file-name (git-file-name name version))
3787 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3788 (build-system gnu-build-system)
3789 ;; The source checkout is not bootstrapped.
3791 `(("autoconf" ,autoconf)
3792 ("automake" ,automake)
3795 (synopsis "Cue and toc file parsers and utilities")
3796 (description "Cuetools is a set of programs that are useful for manipulating
3797 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3798 files are a way to represent the layout of a data or audio CD in a
3799 machine-readable ASCII format.")
3800 (home-page "https://github.com/svend/cuetools")
3801 (license license:gpl2+)))
3803 (define-public shntool
3810 (string-append "http://etree.org/shnutils/shntool/dist/src/"
3811 "shntool-" version ".tar.gz")
3812 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
3813 version ".orig.tar.gz")))
3816 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3817 (build-system gnu-build-system)
3818 (synopsis "WAVE audio data processing tool")
3819 (description "shntool is a multi-purpose WAVE data processing and reporting
3820 utility. File formats are abstracted from its core, so it can process any file
3821 that contains WAVE data, compressed or not---provided there exists a format
3822 module to handle that particular file type. It can also generate CUE files, and
3823 use them split WAVE data into multiple files.")
3824 (home-page "http://etree.org/shnutils/shntool/")
3825 ;; 'install-sh' bears the x11 license
3826 (license (list license:gpl2+ license:x11))))
3828 (define-public dcadec
3835 (url "https://github.com/foo86/dcadec")
3836 (commit (string-append "v" version))))
3837 (file-name (git-file-name name version))
3840 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3841 (build-system gnu-build-system)
3843 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3846 (list (string-append "CC=" ,(cc-for-target))
3847 ;; Build shared library.
3849 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3850 ;; Set proper runpath.
3851 (string-append "LDFLAGS=-Wl,-rpath="
3852 (assoc-ref %outputs "out")
3855 (modify-phases %standard-phases
3856 ;; No configure script, just a hand-written Makefile.
3857 (delete 'configure))))
3858 (synopsis "DTS Coherent Acoustics decoder")
3859 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3860 with support for HD extensions.")
3861 (home-page "https://github.com/foo86/dcadec")
3862 (license license:lgpl2.1+)))
3864 (define-public bs1770gain
3868 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3872 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3873 version "/bs1770gain-" version ".tar.gz"))
3875 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3876 (modules '((guix build utils)))
3880 (substitute* (find-files "." "\\.[ch]$")
3881 (("^ \\* N..o.*") ""))
3882 (substitute* "libbg/bgx.c"
3883 (("#define BG.* ") "#define BS ")
3884 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3885 (("\"( #|N).*\"") "\"\""))
3886 (substitute* (list "config.h"
3889 (("https?://bs1770gain[^/]*/")
3892 (build-system gnu-build-system)
3893 (inputs `(("ffmpeg" ,ffmpeg)
3895 (synopsis "Tool to adjust loudness of media files")
3897 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3898 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3899 loudness of audio and video files to the same level.")
3900 (license license:gpl2+)))
3902 (define-public filteraudio
3903 (let ((revision "1")
3904 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3906 (name "filteraudio")
3907 (version (string-append "0.0.0-" revision "."
3908 (string-take commit 7)))
3913 (url "https://github.com/irungentoo/filter_audio")
3915 (file-name (string-append name "-" version "-checkout"))
3918 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3919 (build-system gnu-build-system)
3921 `(#:make-flags (list (string-append "PREFIX=" %output)
3922 (string-append "CC=" ,(cc-for-target)))
3923 #:tests? #f ; No tests
3925 (modify-phases %standard-phases
3926 ;; No configure script
3927 (delete 'configure))))
3928 (synopsis "Lightweight audio filtering library")
3929 (description "An easy to use audio filtering library made from webrtc
3930 code, used in @code{libtoxcore}.")
3931 (home-page "https://github.com/irungentoo/filter_audio")
3932 (license license:bsd-3))))
3942 (string-append "http://www.quut.com/" name "/" name
3943 "-" version ".tar.gz"))
3946 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3947 (build-system gnu-build-system)
3949 `(#:test-target "tst"
3950 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3952 (modify-phases %standard-phases
3953 (add-after 'unpack 'add-fpic-ccflag
3955 ;; The -fPIC compiler option is needed when building
3957 (substitute* "Makefile"
3959 (string-append all "CCFLAGS += -fPIC\n")))
3961 (add-before 'install 'pre-install
3963 (let ((out (assoc-ref %outputs "out")))
3964 (mkdir-p (string-append out "/inc"))
3965 (mkdir-p (string-append out "/man"))
3966 (mkdir-p (string-append out "/man/man1"))
3967 (mkdir-p (string-append out "/man/man3"))
3968 (mkdir-p (string-append out "/bin"))
3969 (mkdir-p (string-append out "/lib")))
3971 (add-after 'install 'post-install
3973 (let ((out (assoc-ref %outputs "out")))
3974 (rename-file (string-append out "/inc")
3975 (string-append out "/include"))
3976 (mkdir-p (string-append out "/include/gsm"))
3977 (copy-recursively "inc"
3978 (string-append out "/include/gsm")))
3980 (delete 'configure)))) ; no configure script
3981 (synopsis "GSM 06.10 lossy speech compression library")
3982 (description "This C library provides an encoder and a decoder for the GSM
3983 06.10 RPE-LTP lossy speech compression algorithm.")
3984 (home-page "http://quut.com/gsm/")
3985 (license (license:non-copyleft "file://COPYRIGHT"))))
3987 (define-public python-pyalsaaudio
3989 (name "python-pyalsaaudio")
3993 (uri (pypi-uri "pyalsaaudio" version))
3996 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3997 (build-system python-build-system)
3999 `(#:tests? #f)) ; tests require access to ALSA devices.
4001 `(("alsa-lib" ,alsa-lib)))
4002 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4003 (synopsis "ALSA wrappers for Python")
4005 "This package contains wrappers for accessing the ALSA API from Python.
4006 It is currently fairly complete for PCM devices, and has some support for
4008 (license license:psfl)))
4010 (define-public python2-pyalsaaudio
4011 (package-with-python2 python-pyalsaaudio))
4013 (define-public ldacbt
4019 (uri (string-append "https://github.com/EHfive/ldacBT"
4020 "/releases/download/v" version
4021 "/ldacBT-" version ".tar.gz"))
4024 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4025 (build-system cmake-build-system)
4026 (arguments `(#:tests? #f)) ; no check target
4027 (home-page "https://github.com/EHfive/ldacBT/")
4028 (synopsis "LDAC Bluetooth encoder and ABR library")
4029 (description "This package provides an encoder for the LDAC
4030 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4031 kbps at 24 bit/96 kHz.")
4032 (license license:asl2.0)))
4034 (define-public bluez-alsa
4039 ;; The tarballs are mere snapshots and don't contain a
4040 ;; bootstrapped build system.
4043 (url "https://github.com/Arkq/bluez-alsa")
4044 (commit (string-append "v" version))))
4045 (file-name (git-file-name name version))
4048 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4049 (build-system gnu-build-system)
4052 (list "--enable-ldac"
4053 (string-append "--with-alsaplugindir="
4054 (assoc-ref %outputs "out")
4056 (string-append "--with-dbusconfdir="
4057 (assoc-ref %outputs "out")
4058 "/etc/dbus-1/system.d"))))
4060 `(("autoconf" ,autoconf)
4061 ("automake" ,automake)
4062 ("libtool" ,libtool)
4063 ("pkg-config" ,pkg-config)))
4065 `(("alsa-lib" ,alsa-lib)
4071 ("ncurses" ,ncurses)
4074 (home-page "https://github.com/Arkq/bluez-alsa")
4075 (synopsis "Bluetooth ALSA backend")
4076 (description "This project is a rebirth of a direct integration between
4077 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
4078 in favor of 3rd party audio applications. From now on, Bluez acts as a
4079 middleware between an audio application, which implements Bluetooth audio
4080 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4081 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4082 capabilities) can be connected. In order to access the audio stream, one has
4083 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4084 on the ALSA software PCM plugin.")
4085 (license license:expat)))
4093 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4094 "snd-" version ".tar.gz"))
4097 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4098 (build-system glib-or-gtk-build-system)
4100 `(#:tests? #f ; no tests
4101 #:out-of-source? #f ; for the 'install-doc' phase
4103 (let* ((out (assoc-ref %outputs "out"))
4104 (docdir (string-append out "/share/doc/"
4105 ,name "-" ,version)))
4106 (list "--with-alsa" "--with-jack" "--with-gmp"
4107 (string-append "--with-doc-dir=" docdir)))
4109 (modify-phases %standard-phases
4110 (add-after 'install 'install-doc
4111 (lambda* (#:key outputs #:allow-other-keys)
4112 (let* ((out (assoc-ref outputs "out"))
4113 (doc (string-append out "/share/doc/"
4114 ,name "-" ,version)))
4117 (install-file f doc))
4118 (find-files "." "\\.html$"))
4119 (copy-recursively "pix" (string-append doc "/pix"))
4122 `(("pkg-config" ,pkg-config)))
4124 `(("alsa-lib" ,alsa-lib)
4131 ("libsamplerate" ,libsamplerate)
4136 ("timidity++" ,timidity++)
4137 ("vorbis-tools" ,vorbis-tools)
4138 ("wavpack" ,wavpack)))
4139 (synopsis "Sound editor")
4140 (home-page "https://ccrma.stanford.edu/software/snd/")
4142 "Snd is a sound editor modelled loosely after Emacs. It can be
4143 customized and extended using either the s7 Scheme implementation (included in
4144 the Snd sources), Ruby, or Forth.")
4145 (license (license:non-copyleft "file://COPYING"))))
4147 (define-public noise-repellent
4149 (name "noise-repellent")
4154 (url "https://github.com/lucianodato/noise-repellent")
4156 (file-name (string-append name "-" version "-checkout"))
4159 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4160 (build-system meson-build-system)
4163 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4169 `(("pkg-config" ,pkg-config)))
4170 (home-page "https://github.com/lucianodato/noise-repellent")
4171 (synopsis "LV2 plugin for broadband noise reduction")
4172 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4173 the following features:
4176 @item Spectral gating and spectral subtraction suppression rule
4177 @item Adaptive and manual noise thresholds estimation
4178 @item Adjustable noise floor
4179 @item Adjustable offset of thresholds to perform over-subtraction
4180 @item Time smoothing and a masking estimation to reduce artifacts
4181 @item Basic onset detector to avoid transients suppression
4182 @item Whitening of the noise floor to mask artifacts and to recover higher
4184 @item Option to listen to the residual signal
4186 @item Noise profile saved with the session
4189 (license license:lgpl3+)))
4191 (define-public cli-visualizer
4193 (name "cli-visualizer")
4199 (url "https://github.com/dpayne/cli-visualizer")
4200 (commit (string-append "v" version))))
4201 (file-name (git-file-name name version))
4203 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4204 (build-system cmake-build-system)
4206 ;; TODO: Try using the latest googletest for versions > 1.8.
4207 `( ;; ("googletest" ,googletest-1.8)
4211 ("ncurses" ,ncurses)
4212 ("pulseaudio" ,pulseaudio)))
4215 ;; XXX Enable tests after patching them to use the system googletest.
4216 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4218 (modify-phases %standard-phases
4219 (add-after 'install 'install-examples
4220 (lambda* (#:key outputs #:allow-other-keys)
4221 (with-directory-excursion "../source/examples"
4222 (delete-file "mac_osx_config")
4223 (for-each (lambda (file)
4226 (assoc-ref outputs "out")
4230 (home-page "https://github.com/dpayne/cli-visualizer/")
4231 (synopsis "Command-line audio visualizer")
4232 (description "@code{cli-visualizer} displays fast-Fourier
4233 transforms (FFTs) of the sound being played, as well as other graphical
4235 (license license:expat)))
4244 (url "https://github.com/karlstav/cava")
4246 (file-name (git-file-name name version))
4249 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
4250 (build-system gnu-build-system)
4252 `(("autoconf" ,autoconf)
4253 ("automake" ,automake)
4254 ("libtool" ,libtool)))
4257 ("ncurses" ,ncurses)
4258 ("pulseaudio" ,pulseaudio)))
4261 (list (string-append "PREFIX=" %output)
4262 (string-append "FONT_DIR=" %output "/share/consolefonts"))
4264 (let ((lib (string-append %output "/lib")))
4265 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
4267 (modify-phases %standard-phases
4269 (lambda* (#:key outputs #:allow-other-keys)
4270 (setenv "HOME" (getcwd))
4271 (invoke "sh" "autogen.sh")))
4272 (add-before 'build 'make-cava-ldflags
4273 (lambda* (#:key outputs #:allow-other-keys)
4274 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
4276 (add-after 'install 'data
4277 (lambda* (#:key outputs #:allow-other-keys)
4278 (for-each (lambda (file)
4280 (string-append (assoc-ref outputs "out")
4281 "/share/doc/examples")))
4282 (find-files "example_files"))
4284 (home-page "https://karlstav.github.io/cava/")
4285 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4286 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4287 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4288 (license license:expat)))
4290 (define-public fluid-3
4291 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4298 ;; Only one file is required, but the release bundles the whole
4299 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4300 ;; directly links the soundfont release to the github file download.
4301 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4302 commit "/share/sound/FluidR3Mono_GM.sf3"))
4303 (file-name (string-append name "-" version ".sf3"))
4306 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4307 (build-system trivial-build-system)
4309 `(#:modules ((guix build utils))
4312 (use-modules (guix build utils))
4313 (let ((file (assoc-ref %build-inputs "source"))
4314 (out (string-append %output "/share/soundfonts")))
4316 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4318 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4319 (synopsis "Pro-quality GM soundfont")
4320 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4321 (license license:expat))))
4323 (define-public libfdk
4331 (url "https://github.com/mstorsjo/fdk-aac")
4332 (commit (string-append "v" version))))
4333 (file-name (git-file-name name version))
4336 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4337 (build-system gnu-build-system)
4339 `(("autoconf" ,autoconf)
4340 ("automake" ,automake)
4341 ("libtool" ,libtool)))
4342 (home-page "https://github.com/mstorsjo/fdk-aac")
4343 (synopsis "Fraunhofer FDK AAC library")
4344 (description "FDK is a library for encoding and decoding Advanced Audio
4345 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4346 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4347 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4348 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4349 library supports sample rates up to 96 kHz and up to eight channels (7.1
4351 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4352 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4354 (define-public libopenshot-audio
4356 (name "libopenshot-audio")
4361 (url "https://github.com/OpenShot/libopenshot-audio")
4362 (commit (string-append "v" version))))
4363 (file-name (git-file-name name version))
4366 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
4367 (build-system cmake-build-system)
4369 `(("alsa-lib" ,alsa-lib)
4370 ;; The following are for JUCE GUI components:
4372 ("freetype" ,freetype)
4373 ("libxrandr" ,libxrandr)
4374 ("libxinerama" ,libxinerama)
4375 ("libxcursor" ,libxcursor)))
4377 `(#:tests? #f ;there are no tests
4379 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4380 (assoc-ref %build-inputs "freetype")
4381 "/include/freetype2"))))
4382 (home-page "https://openshot.org")
4383 (synopsis "Audio editing and playback for OpenShot")
4384 (description "OpenShot Audio Library (libopenshot-audio) allows
4385 high-quality editing and playback of audio, and is based on the JUCE
4387 (license license:lgpl3+)))
4389 (define-public faudio
4397 (url "https://github.com/FNA-XNA/FAudio")
4399 (file-name (git-file-name name version))
4401 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
4403 '(#:tests? #f ; No tests.
4404 #:configure-flags '("-DFFMPEG=ON")))
4405 (build-system cmake-build-system)
4406 (native-inputs `(("pkg-config" ,pkg-config)))
4407 (inputs `(("ffmpeg" ,ffmpeg)
4409 (home-page "https://github.com/FNA-XNA/FAudio")
4410 (synopsis "XAudio reimplementation")
4411 (description "FAudio is an XAudio reimplementation that focuses solely on
4412 developing fully accurate DirectX Audio runtime libraries.")
4413 (license license:zlib)))
4415 (define-public gnaural
4418 (version "20110606")
4422 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4426 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4427 (build-system gnu-build-system)
4429 `(("alsa-lib" ,alsa-lib)
4431 ("libsndfile" ,libsndfile)
4432 ("portaudio" ,portaudio)))
4434 `(("pkg-config" ,pkg-config)))
4435 (home-page "http://gnaural.sourceforge.net/")
4436 (synopsis "Binaural beat synthesizer")
4437 (description "Gnaural is a programmable auditory binaural beat synthesizer
4438 intended to be used for brainwave entrainment. Gnaural supports creation of
4439 binaural beat tracks of different frequencies and exporting of tracks into
4440 different audio formats. Gnaural can also be linked over the internet with
4441 other Gnaural instances, allowing synchronous sessions between many users.")
4442 (license license:gpl2+)))
4444 (define-public darkice
4450 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4451 "download/v" version "/darkice-"
4455 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4456 (build-system gnu-build-system)
4457 (native-inputs `(("pkg-config" ,pkg-config)))
4458 (inputs `(("lame" ,lame)
4459 ("libvorbis" ,libvorbis)
4461 ("twolame" ,twolame)
4462 ("alsa-lib" ,alsa-lib)
4463 ("pulseaudio" ,pulseaudio)
4465 ("libsamplerate" ,libsamplerate)))
4468 (list (string-append "--with-lame-prefix="
4469 (assoc-ref %build-inputs "lame")))))
4470 (home-page "http://www.darkice.org/")
4471 (synopsis "Live audio streamer")
4472 (description "DarkIce is a live audio streamer. It takes audio input from
4473 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4474 stream to one or more IceCast and/or ShoutCast servers.")
4475 (license license:gpl3+)))
4477 (define-public libltc
4485 (string-append "https://github.com/x42/libltc/releases/download/v"
4486 version "/libltc-" version ".tar.gz"))
4489 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4490 (build-system gnu-build-system)
4492 `(#:parallel-tests? #f)) ;tests fail otherwise
4494 `(("doxygen" ,doxygen)
4495 ("pkg-config" ,pkg-config)))
4496 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4497 (description "Libltc is a POSIX-C Library for handling
4498 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4499 (home-page "https://x42.github.io/libltc/")
4500 (license license:lgpl3+)))
4502 (define-public ttaenc
4509 (uri (string-append "mirror://sourceforge/tta/"
4511 "/ttaenc-" version "-src.tgz"))
4514 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4515 (build-system gnu-build-system)
4517 `(#:tests? #f ;no tests
4519 (list (string-append "CC=" ,(cc-for-target))
4520 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4522 (modify-phases %standard-phases
4523 (delete 'configure) ; no configure
4524 (add-before 'install 'make-bindir
4525 (lambda* (#:key outputs #:allow-other-keys)
4526 (let* ((out (assoc-ref outputs "out")))
4527 (mkdir-p (string-append out "/bin"))
4529 (synopsis "TTA lossless audio encoder")
4531 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4532 data of the Wav audio files. Being lossless means that no data-
4533 quality is lost in the compression - when uncompressed, the data will
4534 be identical to the original. The compression ratios of TTA depend on
4535 the type of music file being compressed, but the compression size
4536 will generally range between 30% - 70% of the original. TTA format
4537 supports both of ID3v1/v2 and APEv2 tags.")
4538 (home-page "http://tausoft.org/")
4539 (license license:gpl2+)))
4541 (define-public libsoundio
4549 (url "https://github.com/andrewrk/libsoundio")
4551 (file-name (git-file-name name version))
4554 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
4555 (build-system cmake-build-system)
4557 `(#:tests? #f)) ;no tests included
4559 `(("alsa-lib" ,alsa-lib)
4561 ("pulseaudio" ,pulseaudio)))
4563 `(("pkg-config" ,pkg-config)))
4564 (home-page "http://libsound.io")
4565 (synopsis "C library for real-time audio input and output")
4566 (description "@code{libsoundio} is a C library providing audio input and
4567 output. The API is suitable for real-time software such as digital audio
4568 workstations as well as consumer software such as music players.")
4569 (license license:expat)))
4571 (define-public redkite
4579 (url "https://gitlab.com/geontime/redkite.git")
4580 (commit (string-append "v" version))))
4581 (file-name (git-file-name name version))
4583 (base32 "1m2db7c791fi33snkjwnvlxapmf879g5r8azlkx7sr6vp2s0jq2k"))))
4584 (build-system cmake-build-system)
4586 `(#:tests? #f)) ;no tests included
4588 `(("cairo" ,cairo)))
4590 `(("pkg-config" ,pkg-config)))
4591 (synopsis "Small GUI toolkit")
4592 (description "Redkite is a small GUI toolkit developed in C++17 and
4593 inspired from other well known GUI toolkits such as Qt and GTK. It is
4594 minimal on purpose and is intended to be statically linked to applications,
4595 therefore satisfying any requirements they may have to be self contained,
4596 as is the case with audio plugins.")
4597 (home-page "https://gitlab.com/geontime/redkite")
4598 (license license:gpl3+)))
4600 (define-public carla
4609 (url "https://github.com/falkTX/Carla")
4610 (commit (string-append "v" version))))
4611 (file-name (git-file-name name version))
4614 "0c3y4a6cgi4bv1mg57i3qn5ia6pqjqlaylvkapj6bmpsw71ig22g"))))
4615 (build-system gnu-build-system)
4617 `(#:tests? #f ; no "check" target
4619 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4621 (modify-phases %standard-phases
4622 (delete 'configure) ; no configure script
4623 (add-before 'build 'set-CC-variable-and-show-features
4626 (invoke "make" "features")))
4627 (add-after 'install 'make-carla-executable
4628 (lambda* (#:key outputs #:allow-other-keys)
4629 (let ((out (assoc-ref outputs "out")))
4630 (chmod (string-append out "/share/carla/carla") #o555)
4632 (add-after 'install 'wrap-executables
4633 (lambda* (#:key outputs #:allow-other-keys)
4634 (let ((out (assoc-ref outputs "out")))
4635 (wrap-script (string-append out "/bin/carla")
4636 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4639 `(("alsa-lib" ,alsa-lib)
4641 ("fluidsynth" ,fluidsynth)
4644 ("libsndfile" ,libsndfile)
4645 ("gtk2" ,gtk+-2) ;needed for bridging GTK2 plugins in GTK3 hosts
4647 ("python-pyliblo" ,python-pyliblo)
4648 ("python-pyqt" ,python-pyqt)
4649 ("python-rdflib" ,python-rdflib)
4650 ;; python-pyqt shows the following error without python-wrapper:
4651 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4652 ;; (ModuleNotFoundError: No module named 'PyQt5')
4653 ("python-wrapper" ,python-wrapper)
4658 ;; For WRAP-SCRIPT above.
4659 ("guile" ,guile-2.2)))
4661 `(("pkg-config" ,pkg-config)))
4662 (home-page "https://kx.studio/Applications:Carla")
4663 (synopsis "Audio plugin host")
4664 (description "Carla is a modular audio plugin host, with features like
4665 transport control, automation of parameters via MIDI CC and remote control
4666 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4667 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4668 default and preferred audio driver but also supports native drivers like ALSA.")
4669 (license license:gpl2+)))
4671 (define-public ecasound
4677 (uri (string-append "https://nosignal.fi/download/ecasound-"
4680 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4681 (build-system gnu-build-system)
4682 (native-inputs `(("pkg-config" ,pkg-config)))
4683 ;; It would be nice to add mikmod to inputs if that gets packaged
4685 (inputs `(("alsa-lib" ,alsa-lib)
4689 ("vorbis-tools" ,vorbis-tools)
4692 ("timidity++" ,timidity++)
4693 ("libsndfile" ,libsndfile)
4694 ("libsamplerate" ,libsamplerate)
4695 ("ncurses" ,ncurses)
4698 (home-page "https://nosignal.fi/ecasound/index.php")
4699 (synopsis "Multitrack audio processing")
4700 (description "Ecasound is a software package designed for multitrack audio
4701 processing. It can be used for simple tasks like audio playback, recording and
4702 format conversions, as well as for multitrack effect processing, mixing,
4703 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4704 outputs and effect algorithms. Effects and audio objects can be combined in
4705 various ways, and their parameters can be controlled by operator objects like
4706 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4708 ;; As an exception to the above, the C, C++ and python implementations
4709 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4710 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4711 ;; that are not licensed under GPL.
4712 (license (list license:gpl2 license:lgpl2.1))))
4714 (define-public libaudec
4722 (url "https://git.zrythm.org/git/libaudec")
4723 (commit (string-append "v" version))))
4724 (file-name (git-file-name name version))
4727 "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz"))))
4728 (build-system meson-build-system)
4730 `(#:meson ,meson-0.55
4735 `(("libsamplerate" ,libsamplerate)
4736 ("libsndfile" ,libsndfile)))
4738 `(("pkg-config" ,pkg-config)))
4739 (synopsis "Library for reading and resampling audio files")
4740 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4741 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4742 @code{audio_decoder} code.")
4743 (home-page "https://git.zrythm.org/cgit/libaudec")
4744 (license license:agpl3+)))
4746 (define-public lv2lint
4754 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4756 (file-name (git-file-name name version))
4759 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
4760 (build-system meson-build-system)
4763 `("-Delf-tests=true" ; for checking symbol visibility
4764 "-Donline-tests=true"))) ; for checking URI existence
4770 `(("pkg-config" ,pkg-config)))
4771 (synopsis "LV2 plugin lint tool")
4772 (description "lv2lint is an LV2 lint-like tool that checks whether a
4773 given plugin and its UI(s) match up with the provided metadata and adhere
4774 to well-known best practices.")
4775 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4776 (license license:artistic2.0)))
4778 (define-public lv2toweb
4786 (url "https://github.com/x42/lv2toweb")
4787 (commit (string-append "v" version))))
4788 (file-name (git-file-name name version))
4791 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4792 (build-system gnu-build-system)
4794 `(#:tests? #f ; no "check" target
4795 #:make-flags (list "CC=gcc"
4796 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4798 (modify-phases %standard-phases
4799 (delete 'configure))))
4804 `(("help2man" ,help2man)
4805 ("pkg-config" ,pkg-config)))
4806 (synopsis "Documentation generator for LV2 plugins")
4808 "lv2toweb allows the user to create an xhtml page with information
4809 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4810 with the provided metadata and adhere to well-known best practices.")
4811 (home-page "https://github.com/x42/lv2toweb")
4812 (license (list license:isc license:gpl2))))
4814 (define-public ztoolkit
4822 (url "https://git.zrythm.org/git/ztoolkit")
4823 (commit (string-append "v" version))))
4824 (file-name (git-file-name name version))
4827 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4828 (build-system meson-build-system)
4831 ("libx11" ,libx11)))
4833 `(("pkg-config" ,pkg-config)))
4834 (synopsis "GUI toolkit for LV2 plugins")
4835 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4836 inspired by GTK. It handles events and low level drawing on behalf of
4837 the user and provides a high-level API for managing the UI and custom
4838 widgets. ZToolkit is written in C and was created to be used for building
4839 audio plugin UIs, where the dependencies often need to be kept to a
4841 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4842 (license license:agpl3+)))
4844 (define-public libinstpatch
4846 (name "libinstpatch")
4852 (url "https://github.com/swami/libinstpatch")
4853 (commit (string-append "v" version))))
4854 (file-name (git-file-name name version))
4856 (base32 "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb"))))
4857 (build-system cmake-build-system)
4859 `(#:tests? #f)) ;there are no tests
4861 `(("glib:bin" ,glib "bin")
4862 ("pkg-config" ,pkg-config)))
4865 ("libsndfile" ,libsndfile)))
4866 (home-page "http://www.swamiproject.org/")
4867 (synopsis "Instrument file software library")
4869 "libInstPatch is a library for processing digital sample based MIDI
4870 instrument \"patch\" files. The types of files libInstPatch supports are used
4871 for creating instrument sounds for wavetable synthesis. libInstPatch provides
4872 an object framework (based on GObject) to load patch files, which can then be
4873 edited, converted, compressed and saved.")
4874 (license license:lgpl2.1)))
4876 (define-public ztoolkit-rsvg
4879 (name "ztoolkit-rsvg")
4881 `(#:configure-flags `("-Denable_rsvg=true")))
4883 `(("librsvg" ,librsvg)
4884 ,@(package-inputs ztoolkit)))
4885 (synopsis "ZToolkit with SVG support")))
4887 (define-public lsp-dsp-lib
4889 (name "lsp-dsp-lib")
4894 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
4895 "releases/download/lsp-dsp-lib-" version
4896 "/lsp-dsp-lib-" version "-src.tar.gz"))
4899 "07w3d2i0z0xmvi1ngcgs7lc5a0da8jvf7rv4dnjk01md43b7fkh1"))))
4900 (build-system gnu-build-system)
4902 `(#:tests? #f ; no tests
4904 (list (string-append "CC=" ,(cc-for-target)))
4906 (modify-phases %standard-phases
4908 (lambda* (#:key outputs #:allow-other-keys)
4909 (invoke "make" "config"
4910 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
4911 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
4912 (synopsis "Digital signal processing library")
4913 (description "The LSP DSP library provides a set of functions that perform
4914 SIMD-optimized computing on several hardware architectures. All functions
4915 currently operate on IEEE-754 single-precision floating-point numbers.")
4916 (license license:lgpl3+)))
4918 (define-public codec2
4926 (url "https://github.com/drowe67/codec2")
4927 (commit (string-append "v" version))))
4928 (file-name (git-file-name name version))
4930 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4931 (build-system cmake-build-system)
4935 ("valgrind" ,valgrind)))
4937 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4939 (modify-phases %standard-phases
4940 (add-before 'check 'set-test-environment
4942 (setenv "HOME" "/tmp")
4944 (synopsis "Speech codec")
4946 "Codec 2 is a speech codec designed for communications quality speech
4947 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4949 (home-page "https://www.rowetel.com/?page_id=452")
4950 (license license:lgpl2.1)))
4952 (define-public ableton-link
4954 (name "ableton-link")
4959 (url "https://github.com/Ableton/link")
4960 (commit (string-append "Link-" version))))
4961 (file-name (git-file-name name version))
4964 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4965 (modules '((guix build utils)))
4967 (search-patches "ableton-link-system-libraries-debian.patch"))
4970 ;; Tests assume that CMake's "build" directory is a
4971 ;; sub-directory of the source tree, so we fix it.
4972 (substitute* "ci/run-tests.py"
4973 (("root_dir,") "root_dir, os.pardir,"))
4974 ;; Unbundle dependencies.
4975 (delete-file-recursively "third_party")
4976 (delete-file-recursively "modules")
4978 (build-system cmake-build-system)
4980 `(("catch" ,catch-framework)
4981 ("python" ,python) ;for running tests
4982 ("portaudio" ,portaudio) ;for portaudio examples
4983 ("qtbase" ,qtbase) ;for Qt examples
4984 ("qtdeclarative" ,qtdeclarative)
4985 ("qttools" ,qttools)))
4987 `(("jack" ,jack-1) ;for JACK examples
4988 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4990 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4991 ;; contains '#include <asio.hpp>'.
4995 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4996 "-DLINK_BUILD_JACK=ON")
4998 (modify-phases %standard-phases
5000 (lambda* (#:key inputs #:allow-other-keys)
5001 (let* ((python (string-append (assoc-ref inputs "python")
5003 (run-tests (string-append "../ableton-link-"
5005 "-checkout/ci/run-tests.py")))
5006 (invoke python run-tests "--target" "LinkCoreTest")
5007 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
5008 (add-before 'install 'patch-cmake
5009 (lambda* (#:key inputs #:allow-other-keys)
5010 (let* ((source (string-append "../ableton-link-"
5013 (substitute* (string-append source
5014 "cmake_include/AsioStandaloneConfig.cmake")
5015 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5016 "modules/asio-standalone/asio/include"))
5017 (string-append (assoc-ref inputs "asio")
5019 (substitute* (string-append source "AbletonLinkConfig.cmake")
5020 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5021 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5022 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5023 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
5026 (lambda* (#:key outputs #:allow-other-keys)
5027 (let* ((out (assoc-ref outputs "out"))
5028 (bin (string-append out "/bin"))
5029 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5030 (source (string-append "../ableton-link-" ,version "-checkout")))
5031 (for-each (lambda (test-file)
5032 (delete-file test-file))
5033 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5034 (copy-recursively "bin" bin)
5035 (copy-recursively (string-append source "/include/ableton")
5036 (string-append out "/include/ableton"))
5037 (install-file (string-append source "/AbletonLinkConfig.cmake")
5039 (install-file (string-append source
5040 "/cmake_include/AsioStandaloneConfig.cmake")
5041 (string-append lib-cmake "/cmake_include"))
5043 (home-page "https://github.com/Ableton/link")
5044 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5046 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5047 across multiple applications running on one or more devices. Applications on devices
5048 connected to a local network discover each other automatically and form a musical
5049 session in which each participant can perform independently: anyone can start or stop
5050 while still staying in time.")
5051 (license license:gpl2+)))