1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 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, 2021, 2022 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–2022 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, 2022 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, 2021 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, 2021 Pierre Langlois <pierre.langlois@gmx.com>
22 ;;; Copyright © 2019, 2021 Leo Famulari <leo@famulari.name>
23 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2019, 2021 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 Christine 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, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
31 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
32 ;;; Copyright © 2020, 2021 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, 2021 Vinicius Monego <monego@posteo.net>
36 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
37 ;;; Copyright © 2021 jgart <jgart@dismail.de>
38 ;;; Copyright © 2021 Aleksandr Vityazev <avityazev@posteo.org>
39 ;;; Copyright © 2022 Arjan Adriaanse <arjan@adriaan.se>
40 ;;; Copyright © 2022 Juliana Sims <jtsims@protonmail.com>
41 ;;; Copyright © 2022 Simon Streit <simon@netpanic.org>
43 ;;; This file is part of GNU Guix.
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
58 (define-module (gnu packages audio)
59 #:use-module (gnu packages)
60 #:use-module (gnu packages algebra)
61 #:use-module (gnu packages autotools)
62 #:use-module (gnu packages avahi)
63 #:use-module (gnu packages backup)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages bison)
66 #:use-module (gnu packages build-tools)
67 #:use-module (gnu packages boost)
68 #:use-module (gnu packages check)
69 #:use-module (gnu packages compression)
70 #:use-module (gnu packages curl)
71 #:use-module (gnu packages dbm)
72 #:use-module (gnu packages documentation)
73 #:use-module (gnu packages elf)
74 #:use-module (gnu packages emacs)
75 #:use-module (gnu packages file)
76 #:use-module (gnu packages flex)
77 #:use-module (gnu packages fltk)
78 #:use-module (gnu packages fontutils)
79 #:use-module (gnu packages gcc)
80 #:use-module (gnu packages gettext)
81 #:use-module (gnu packages gl)
82 #:use-module (gnu packages glib)
83 #:use-module (gnu packages gnome)
84 #:use-module (gnu packages gnunet) ; libmicrohttpd
85 #:use-module (gnu packages gperf)
86 #:use-module (gnu packages groff)
87 #:use-module (gnu packages gstreamer)
88 #:use-module (gnu packages gtk)
89 #:use-module (gnu packages guile)
90 #:use-module (gnu packages icu4c)
91 #:use-module (gnu packages image)
92 #:use-module (gnu packages libbsd)
93 #:use-module (gnu packages libffi)
94 #:use-module (gnu packages libusb)
95 #:use-module (gnu packages linux)
96 #:use-module (gnu packages llvm)
97 #:use-module (gnu packages machine-learning)
98 #:use-module (gnu packages man)
99 #:use-module (gnu packages maths)
100 #:use-module (gnu packages mp3) ;taglib
101 #:use-module (gnu packages multiprecision)
102 #:use-module (gnu packages music)
103 #:use-module (gnu packages ncurses)
104 #:use-module (gnu packages networking)
105 #:use-module (gnu packages onc-rpc)
106 #:use-module (gnu packages perl)
107 #:use-module (gnu packages pkg-config)
108 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
109 #:use-module (gnu packages python)
110 #:use-module (gnu packages python-science)
111 #:use-module (gnu packages python-xyz)
112 #:use-module (gnu packages qt)
113 #:use-module (gnu packages rdf)
114 #:use-module (gnu packages readline)
115 #:use-module (gnu packages samba)
116 #:use-module (gnu packages sdl)
117 #:use-module (gnu packages serialization)
118 #:use-module (gnu packages sqlite)
119 #:use-module (gnu packages telephony)
120 #:use-module (gnu packages linphone)
121 #:use-module (gnu packages linux)
122 #:use-module (gnu packages tls)
123 #:use-module (gnu packages valgrind)
124 #:use-module (gnu packages video)
125 #:use-module (gnu packages vim) ;xxd
126 #:use-module (gnu packages web)
127 #:use-module (gnu packages webkit)
128 #:use-module (gnu packages wxwidgets)
129 #:use-module (gnu packages xdisorg)
130 #:use-module (gnu packages xiph)
131 #:use-module (gnu packages xml)
132 #:use-module (gnu packages xorg)
133 #:use-module (guix build-system cmake)
134 #:use-module (guix build-system copy)
135 #:use-module (guix build-system glib-or-gtk)
136 #:use-module (guix build-system gnu)
137 #:use-module (guix build-system meson)
138 #:use-module (guix build-system python)
139 #:use-module (guix build-system trivial)
140 #:use-module (guix build-system waf)
141 #:use-module (guix download)
142 #:use-module (guix git-download)
143 #:use-module (guix gexp)
144 #:use-module ((guix licenses) #:prefix license:)
145 #:use-module (guix packages)
146 #:use-module (guix utils)
147 #:use-module (srfi srfi-1)
148 #:use-module (srfi srfi-26))
150 (define-public opensles
159 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry")
160 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
161 (file-name (git-file-name name version))
163 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
165 (search-patches "opensles-add-license-file.patch"))))
166 (build-system copy-build-system)
169 (modify-phases %standard-phases
170 (add-after 'install 'clean
171 (lambda* (#:key outputs #:allow-other-keys)
172 (let* ((out (assoc-ref outputs "out")))
173 (mkdir-p (string-append out "/etc"))
174 (mkdir-p (string-append out "/include"))
175 (mkdir-p (string-append out "/share"))
177 (string-append out "/api/1.1/OpenSLES_IID.c")
178 (string-append out "/etc/OpenSLES_IID.c"))
180 (string-append out "/api/1.1/OpenSLES.h")
181 (string-append out "/include/OpenSLES.h"))
183 (string-append out "/api/1.1/OpenSLES_Platform.h")
184 (string-append out "/include/OpenSLES_Platform.h"))
186 (string-append out "/api/1.1/README.txt")
187 (string-append out "/share/README.txt"))
189 (string-append out "/LICENSE.txt")
190 (string-append out "/share/LICENSE.txt"))
191 (for-each delete-file-recursively
193 (string-append out "/api")
194 (string-append out "/specs")))
195 (for-each delete-file
197 (string-append out "/CODE_OF_CONDUCT.md")
198 (string-append out "/index.php")
199 (string-append out "/README.md"))))
201 (synopsis "Embedded Audio Acceleration")
202 (description "OpenSLES is a royalty-free, cross-platform,
203 hardware-accelerated audio API tuned for embedded systems. It provides a
204 standardized, high-performance, low-latency method to access audio
205 functionality for developers of native applications on embedded mobile
206 multimedia devices, enabling straightforward cross-platform deployment of
207 hardware and software audio capabilities, reducing implementation effort, and
208 promoting the market for advanced audio.")
209 (home-page "https://www.khronos.org/opensles/")
210 (license (license:non-copyleft "file:///LICENSE.txt"))))
212 (define-public wildmidi
221 (url "https://github.com/Mindwerks/wildmidi")
222 (commit (string-append name "-" version))))
223 (file-name (git-file-name name version))
225 (base32 "08fbbsvw6pkwwqarjwcvdp8mq4zn5sgahf025hynwc6rvf4sp167"))))
226 (build-system cmake-build-system)
228 `(#:tests? #f ; No target
233 "-DWANT_OPENAL=ON")))
237 (synopsis "Software Synthesizer")
238 (description "WildMIDI is a simple software midi player which has a core
239 softsynth library that can be used with other applications.")
240 (home-page "https://www.mindwerks.net/projects/wildmidi/")
248 (define-public webrtc-audio-processing
250 (name "webrtc-audio-processing")
256 (string-append "http://freedesktop.org/software/pulseaudio/"
257 name "/" name "-" version ".tar.xz"))
259 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
260 (build-system gnu-build-system)
262 ;; TODO: Move this to a snippet/patch or remove with the upgrade to 1.0.
263 (if (or (target-riscv64?)
267 #~(modify-phases %standard-phases
268 (add-after 'unpack 'patch-source
269 (lambda* (#:key inputs #:allow-other-keys)
273 "webrtc-audio-processing-big-endian.patch"))))
274 (invoke "patch" "--force" "-p1" "-i" patch-file)
275 (substitute* "webrtc/typedefs.h"
276 (("defined\\(__aarch64__\\)" all)
279 "(defined(__PPC__) && __SIZEOF_SIZE_T__ == 4)\n"
280 "#define WEBRTC_ARCH_32_BITS\n"
281 "#define WEBRTC_ARCH_BIG_ENDIAN\n"
283 "#elif (defined(__PPC64__) && defined(_BIG_ENDIAN))\n"
284 "#define WEBRTC_ARCH_64_BITS\n"
285 "#define WEBRTC_ARCH_BIG_ENDIAN\n"
289 " || (defined(__riscv) && __riscv_xlen == 64)"
291 " || (defined(__PPC64__) && defined(_LITTLE_ENDIAN))"))))))))
294 (if (or (target-riscv64?)
297 (local-file (search-patch "webrtc-audio-processing-big-endian.patch"))
300 (synopsis "WebRTC's Audio Processing Library")
301 (description "WebRTC-Audio-Processing library based on Google's
302 implementation of WebRTC.")
304 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
305 (license (license:non-copyleft "file:///COPYING"))))
307 (define-public vo-aacenc
315 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
316 name "/" name "-" version ".tar.gz"))
318 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
319 (build-system gnu-build-system)
320 (synopsis "VisualOn AAC Encoder")
321 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
322 Coding (AAC) encoder.")
323 (home-page "https://sourceforge.net/projects/opencore-amr/")
324 (license license:asl2.0)))
326 (define-public tinyalsa
335 (url "https://github.com/tinyalsa/tinyalsa")
336 (commit (string-append "v" version))))
337 (file-name (git-file-name name version))
339 (base32 "1p9khz3bdpdcrnc9p6w522a0ankdchj4nxd3ki41z9401rxmnljq"))))
340 (build-system gnu-build-system)
342 `(#:tests? #f ; No target
344 (modify-phases %standard-phases
348 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
349 (synopsis "ALSA interfacing library")
350 (description "TinyALSA is a small library to interface with ALSA in the
352 (home-page "https://github.com/tinyalsa/tinyalsa")
353 (license (license:non-copyleft "file:///NOTICE"))))
355 (define-public libgme
361 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
362 "downloads/game-music-emu-" version
366 "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb"))))
367 (build-system cmake-build-system)
369 '(#:tests? #f ;no check target
371 ;; XXX: Building with '-fsanitize=undefined' leads to embedded C++ STL
372 ;; header file names in libgme.so, meaning that libgme retains a
373 ;; reference to GCC. Disable UBSAN to avoid that.
374 #:configure-flags '("-DENABLE_UBSAN=OFF")))
375 (home-page "https://bitbucket.org/mpyne/game-music-emu")
376 (synopsis "Video game music file playback library")
378 "Game-music-emu is a collection of video game music file emulators that
379 support the following formats and systems:
382 ZX Spectrum/Asmtrad CPC
386 Sega Genesis/Mega Drive
388 NEC TurboGrafx-16/PC Engine
390 MSX Home Computer/other Z80 systems (doesn't support FM sound)
392 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
394 Atari systems using POKEY sound chip
396 Super Nintendo/Super Famicom
398 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
400 (license (list license:lgpl2.1+
401 ;; demo and player directories are under the Expat license
404 (define-public libopenmpt
412 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
413 "libopenmpt-" version "+release.autotools.tar.gz"))
415 (base32 "0h86p8mnpm98vc4v6jbvrmm02fch7dnn332i26fg3a2s1738m04d"))))
416 (build-system gnu-build-system)
419 (list (string-append "--docdir=" (assoc-ref %outputs "out")
420 "/share/doc/" ,name "-" ,version))
422 (modify-phases %standard-phases
423 (add-after 'install 'delete-static-libraries
424 (lambda* (#:key outputs #:allow-other-keys)
425 (let* ((out (assoc-ref outputs "out"))
426 (lib (string-append out "/lib")))
427 (for-each delete-file (find-files lib "\\.a$"))
430 (list doxygen perl pkg-config))
434 ("portaudio" ,portaudio)
435 ("pulseaudio" ,pulseaudio)
437 ("sndfile" ,libsndfile)))
439 ;; In Requires.private
440 (list libogg libvorbis mpg123 zlib))
441 (synopsis "Audio tracking library")
442 (description "LibOpenMPT is a cross-platform C++ and C module playback
443 library. It is based on the player code of the Open ModPlug Tracker project.")
444 (home-page "https://openmpt.org/")
445 (license (license:non-copyleft "file:///LICENSE"))))
447 (define-public libofa
455 (string-append "https://storage.googleapis.com/"
456 "google-code-archive-downloads/v2/code.google.com/"
457 "musicip-libofa/" name "-" version ".tar.gz"))
459 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
462 "libofa-ftbfs-1.diff"
464 "libofa-ftbfs-2.diff"))))
465 (build-system gnu-build-system)
472 (synopsis "Open Fingerprint Architecture")
473 (description "LibOFA is an audio fingerprint library, created and provided
475 (home-page "https://code.google.com/archive/p/musicip-libofa/")
476 (license license:gpl2+)))
478 (define-public libtimidity
486 (string-append "https://sourceforge.net/projects/" name "/files/"
487 name "/" version "/" name "-" version ".tar.gz"))
489 (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16"))))
490 (build-system gnu-build-system)
492 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
497 (synopsis "MIDI to WAVE converter library")
498 (description "LibTiMidity is a MIDI to WAVE converter library that uses
499 Gravis Ultrasound-compatible patch files to generate digital audio data from
500 General MIDI files.")
501 (home-page "http://libtimidity.sourceforge.net/")
503 ;; This project is dual-licensed.
504 ;; Either of the following licenses can be exercised.
507 license:artistic2.0))))
509 (define-public vo-amrwbenc
517 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
518 name "/" name "-" version ".tar.gz"))
520 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
521 (build-system gnu-build-system)
522 (synopsis "Adaptive Multi Rate Codec")
523 (description "VO-AMR is a library of VisualOn implementation of
524 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
525 (home-page "https://sourceforge.net/projects/opencore-amr/")
526 (license license:asl2.0)))
528 (define-public opencore-amr
530 (name "opencore-amr")
536 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
537 name "/" name "-" version ".tar.gz"))
539 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
540 (build-system gnu-build-system)
541 (synopsis "Adaptive Multi Rate Codec")
542 (description "OpenCore-AMR is a library of OpenCORE Framework
543 implementation of Adaptive Multi Rate Narrowband and Wideband
544 (AMR-NB and AMR-WB) speech codec.")
545 (home-page "https://sourceforge.net/projects/opencore-amr/")
546 (license license:asl2.0)))
548 (define-public alsa-modular-synth
550 (name "alsa-modular-synth")
554 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
555 "/" version "/ams-" version ".tar.bz2"))
558 "056dn6b9c5nsw2jdww7z1kxrjqqfvxjzxhsd5x9gi4wkwyiv21nz"))))
559 (build-system gnu-build-system)
562 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
563 ;; license incompatibility.
571 (list pkg-config qttools-5))
572 (home-page "http://alsamodular.sourceforge.net/")
573 (synopsis "Realtime modular synthesizer and effect processor")
575 "AlsaModularSynth is a digital implementation of a classical analog
576 modular synthesizer system. It uses virtual control voltages to control the
577 parameters of the modules. The control voltages which control the frequency
578 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
579 Filter) modules follow the convention of 1V / Octave.")
580 (license license:gpl2)))
589 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
592 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
593 (build-system waf-build-system)
595 `(#:tests? #f ; no check target
598 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
602 "--enable-samplerate"
603 "--enable-avcodec")))
605 (list jack-1 libsndfile libsamplerate fftwf ffmpeg)) ; for libavcodec
608 (home-page "https://aubio.org/")
609 (synopsis "Library for audio labelling")
611 "aubio is a tool designed for the extraction of annotations from audio
612 signals. Its features include segmenting a sound file before each of its
613 attacks, performing pitch detection, tapping the beat and producing MIDI
614 streams from live audio.")
615 (license license:gpl3+)))
617 (define (ardour-rpath-phase major-version)
618 `(lambda* (#:key outputs #:allow-other-keys)
619 (let ((libdir (string-append (assoc-ref outputs "out")
620 "/lib/ardour" ,major-version)))
621 (substitute* "wscript"
622 (("linker_flags = \\[\\]")
623 (string-append "linker_flags = [\""
626 libdir "/backends" ":"
627 libdir "/engines" ":"
628 libdir "/panners" ":"
629 libdir "/surfaces" ":"
630 libdir "/vamp" "\"]"))))
633 (define-public ardour
640 (url "git://git.ardour.org/ardour/ardour.git")
643 ;; Ardour expects this file to exist at build time. The revision
645 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
646 `(call-with-output-file
647 "libs/ardour/revision.cc"
649 (format port ,(string-append "#include \"ardour/revision.h\"
650 namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }"))
654 "0vlcbd70y0an881zv87kc3akmaiz4w7whsy3yaiiqqjww35jg1mm"))
655 (file-name (string-append name "-" version))))
656 (build-system waf-build-system)
658 `(#:configure-flags '("--cxx11" ; required by gtkmm
660 "--no-phone-home" ; don't contact ardour.org
661 "--freedesktop" ; build .desktop file
662 "--test") ; build unit tests
664 (modify-phases %standard-phases
665 (add-after 'unpack 'set-rpath-in-LDFLAGS
666 ,(ardour-rpath-phase (version-major version)))
667 (add-after 'install 'install-freedesktop-files
668 (lambda* (#:key outputs #:allow-other-keys)
669 (let* ((out (assoc-ref outputs "out"))
670 (share (string-append out "/share"))
671 (ver ,(version-major version)))
674 (let ((dir (string-append share "/icons/hicolor/"
675 size "x" size "/apps")))
678 (string-append "gtk2_ardour/resources/Ardour-icon_"
680 (string-append dir "/ardour" ver ".png"))))
681 '("16" "22" "32" "48" "256"))
682 (install-file (string-append "build/gtk2_ardour/ardour"
684 (string-append share "/applications/"))
685 (install-file (string-append "build/gtk2_ardour/ardour"
687 (string-append share "/appdata/")))
689 #:test-target "test"))
719 openssl ; Required by libwebsockets.
734 `(("cppunit" ,cppunit)
735 ("gettext" ,gettext-minimal)
738 ("pkg-config" ,pkg-config)))
739 (home-page "https://ardour.org")
740 (synopsis "Digital audio workstation")
742 "Ardour is a multi-channel digital audio workstation, allowing users to
743 record, edit, mix and master audio and MIDI projects. It is targeted at audio
744 engineers, musicians, soundtrack editors and composers.")
745 (license license:gpl2+)))
747 (define-public audacity
753 ;; If built from the release tag, Audacity will describe itself
754 ;; as an "Alpha test version" and suggest to users that they use
755 ;; the "latest stable released version".
757 (uri (string-append "https://github.com/audacity/audacity/releases/download/"
758 "Audacity-" version "/audacity-" version
762 "189agx11361k9j958s6q5bngnnfx0rwaf0dwbjxy6fwvsb1wv3px"))
763 (patches (search-patches "audacity-ffmpeg-fallback.patch"))
764 (modules '((guix build utils)))
766 ;; Remove bundled libraries.
770 (delete-file-recursively (string-append "lib-src/" dir)))
771 '("libsoxr" "libvamp" "lv2" "soundtouch" "sqlite" "twolame"
772 ;; FIXME: these libraries have not been packaged yet:
779 ;; FIXME: we have this library, but it differs in that the Slide
780 ;; class does not have a member "getInverseStretchedTime".
784 (build-system cmake-build-system)
798 ;;("libsbsms" ,libsbsms) ;bundled version is modified
801 soxr ;replaces libsamplerate
812 `(("autoconf" ,autoconf)
813 ("automake" ,automake)
814 ("gettext" ,gettext-minimal) ;for msgfmt
816 ("pkg-config" ,pkg-config)
822 "-Daudacity_conan_enabled=off"
823 "-Daudacity_lib_preference=system"
824 ;; TODO: enable this flag once we've packaged all dependencies
825 ;; "-Daudacity_obey_system_dependencies=on"
826 ;; disable crash reports, updates, ..., anything that phones home
827 "-Daudacity_has_networking=off")
828 #:imported-modules ((guix build glib-or-gtk-build-system)
829 ,@%cmake-build-system-modules)
832 (guix build cmake-build-system)
833 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
835 (modify-phases %standard-phases
836 (add-after 'unpack 'fix-cmake-rpath
837 (lambda* (#:key outputs #:allow-other-keys)
838 (substitute* "CMakeLists.txt"
839 (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}")
840 (string-append (assoc-ref outputs "out") "/lib/audacity"))
841 (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*")
842 "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE")
843 (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*")
844 "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE"))
845 (substitute* "src/CMakeLists.txt"
846 (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags"))))
847 (add-after 'unpack 'comment-out-revision-ident
849 (substitute* "src/CMakeLists.txt"
850 (("file\\( TOUCH \".*RevisionIdent\\.h\" \\)" directive)
851 (string-append "# " directive)))
852 (substitute* "src/AboutDialog.cpp"
853 (("(.*RevisionIdent\\.h.*)" include-line)
854 (string-append "// " include-line)))))
855 (add-after 'unpack 'use-upstream-headers
856 (lambda* (#:key inputs #:allow-other-keys)
857 (substitute* '("libraries/lib-files/FileNames.cpp")
858 (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>"))))
859 (add-after 'install 'delete-gratuitous-script
860 (lambda* (#:key outputs #:allow-other-keys)
861 (delete-file (string-append (assoc-ref outputs "out")
863 (add-after 'wrap-program 'glib-or-gtk-wrap
864 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
865 ;; The test suite is not "well exercised" according to the developers,
866 ;; and fails with various errors. See
867 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
870 (list (search-path-specification
871 (variable "AUDACITY_MODULES_PATH")
872 (files '("lib/audacity/modules")))
873 (search-path-specification
874 (variable "AUDACITY_PATH")
875 (files '("share/audacity")))))
876 (home-page "https://www.audacityteam.org/")
877 (synopsis "Software for recording and editing sounds")
879 "Audacity is a multi-track audio editor designed for recording, playing
880 and editing digital audio. It features digital effects and spectrum analysis
882 (license license:gpl2+)))
884 (define-public audiofile
892 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
894 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
896 ;; CVE references according to nixpgs
898 "audiofile-fix-datatypes-in-tests.patch"
899 "audiofile-fix-sign-conversion.patch"
900 "audiofile-hurd.patch"
901 "audiofile-CVE-2015-7747.patch"
903 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
904 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
906 "audiofile-check-number-of-coefficients.patch"
908 "audiofile-overflow-in-MSADPCM.patch"
909 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
910 "audiofile-multiply-overflow.patch"
911 "audiofile-function-signature.patch"
913 "audiofile-Fail-on-error-in-parseFormat.patch"
915 "audiofile-division-by-zero.patch"
916 "audiofile-CVE-2018-13440.patch"
917 "audiofile-CVE-2018-17095.patch"))))
918 (properties `((lint-hidden-cve . ("CVE-2017-6829"
920 "CVE-2017-6827" "CVE-2017-6828"
921 "CVE-2017-6832" "CVE-2017-6835"
926 "CVE-2017-6830" "CVE-2017-6834"
927 "CVE-2017-6836" "CVE-2017-6838"
929 "CVE-2017-6831" "CVE-2017-6833"))))
930 (build-system gnu-build-system)
933 (home-page "https://audiofile.68k.org/")
934 (synopsis "Library to handle various audio file formats")
935 (description "This is an open-source version of SGI's audiofile library.
936 It provides a uniform programming interface for processing of audio data to
937 and from audio files of many common formats.
939 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
940 .snd/.au, BICS, and raw data. Supported compression formats are currently
941 G.711 mu-law and A-law.")
942 (license license:lgpl2.1+)))
944 (define-public autotalent
950 (uri (string-append "http://tombaran.info/autotalent-"
954 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
955 (build-system gnu-build-system)
957 `(#:tests? #f ; no check target
959 (modify-phases %standard-phases
960 ;; no configure script
962 (add-before 'install 'prepare-target-directory
963 (lambda* (#:key outputs #:allow-other-keys)
964 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
966 (add-after 'unpack 'override-target-directory
967 (lambda* (#:key outputs #:allow-other-keys)
968 (substitute* "Makefile"
969 (("/usr/lib64/ladspa")
970 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
974 (home-page "http://tombaran.info/autotalent.html")
975 (synopsis "Pitch-correction LADSPA audio plugin")
977 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
978 controls are allowable notes, strength of correction, LFO for vibrato and
980 ;; All code except the FFT routine is licensed under GPLv2+.
981 ;; The FFT routine is under BSD-3.
982 (license license:gpl2+)))
990 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
995 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
996 (patches (search-patches "azr3.patch"))))
997 (build-system gnu-build-system)
999 `(#:tests? #f ; no check target
1001 (list "LV2PEG=ttl2c"
1002 (string-append "prefix=" %output)
1003 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
1005 (modify-phases %standard-phases
1006 (add-before 'install 'fix-timestamp
1008 (let ((early-1980 315619200)) ; 1980-01-02 UTC
1009 (utime "azr3.1" early-1980 early-1980))
1012 (list gtkmm-2 lvtk jack-1 lash))
1015 (home-page "http://ll-plugins.nongnu.org/azr3/")
1016 (synopsis "Tonewheel organ synthesizer")
1018 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
1019 with drawbars, distortion and rotating speakers. The organ has three
1020 sections, two polyphonic sections with nine drawbars each and one monophonic
1021 bass section with five drawbars. A standalone JACK application and LV2
1022 plugins are provided.")
1023 (license license:gpl2)))
1031 (uri (string-append "https://calf-studio-gear.org/files/calf-"
1035 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
1036 (build-system gnu-build-system)
1050 (native-search-paths
1051 (list (search-path-specification
1052 (variable "LV2_PATH")
1053 (files '("lib/lv2")))))
1054 (home-page "http://calf.sourceforge.net/")
1055 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1057 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1058 The suite contains lots of effects (delay, modulation, signal processing,
1059 filters, equalizers, dynamics, distortion and mastering effects),
1060 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1061 tools (analyzer, mono/stereo tools, crossovers).")
1062 ;; calfjackhost is released under GPLv2+
1063 ;; The plugins are released under LGPLv2.1+
1064 (license (list license:lgpl2.1+ license:gpl2+))))
1066 (define-public caps-plugins-lv2
1068 (name "caps-plugins-lv2")
1072 ;; The Github project hasn't tagged a release.
1075 (url "https://github.com/moddevices/caps-lv2.git")
1076 (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9")))
1077 (file-name (git-file-name name version))
1080 "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa"))))
1081 (build-system gnu-build-system)
1083 `(#:tests? #f ; no check target
1085 (modify-phases %standard-phases
1086 ;; no configure script
1088 (add-after 'unpack 'override-target-directory
1089 (lambda* (#:key outputs #:allow-other-keys)
1090 (substitute* (find-files "plugins" "Makefile")
1091 (("/usr/local")(assoc-ref outputs "out")))
1095 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1096 (home-page "https://github.com/moddevices/caps-lv2")
1097 (synopsis "LV2 port of the CAPS audio plugin collection")
1099 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1100 guitar amplification and a small range of classic effects, signal processors and
1101 generators of mostly elementary and occasionally exotic nature.")
1102 (license license:gpl3+)))
1112 (url "https://github.com/berndporr/iir1")
1114 (file-name (git-file-name name version))
1116 (base32 "0wbh804as740kjvmyaqx4rwvwwrbwh0fnj979dvv1ljlx1p50bk0"))))
1117 (build-system cmake-build-system)
1121 #~(modify-phases %standard-phases
1122 (add-after 'install 'delete-static-library
1123 (lambda* (#:key outputs #:allow-other-keys)
1124 (let ((out (assoc-ref outputs "out")))
1125 (delete-file (string-append out "/lib/libiir_static.a"))))))))
1126 (home-page "https://berndporr.github.io/iir1/")
1128 "Real-time C++ @acronym{IIR, infinite impulse response} filter library")
1130 "This C++ library implements the Butterworth, RBJ, and Chebychev
1131 @acronym{IIR, infinite impulse response} filters. Samples are processed one by
1132 one, in real time. It can easily import coefficients generated with Python
1133 (@code{scipy}). It also avoids memory leaks by allocating memory at compile
1134 time, using templates, instead of calling @code{malloc()} or @code{new}.")
1135 (license license:expat)))
1137 (define-public infamous-plugins
1139 (name "infamous-plugins")
1144 (url "https://github.com/ssj71/infamousPlugins")
1145 (commit (string-append "v" version))))
1146 (file-name (git-file-name name version))
1149 "1r72agk5nxf5k0mghcc2j90z43j5d9i7rqjmf49jfyqnd443isip"))))
1150 (build-system cmake-build-system)
1152 `(#:tests? #f ; there are no tests
1154 (modify-phases %standard-phases
1155 (add-after 'unpack 'remove-compiler-flags
1157 (substitute* (find-files "." "CMakeLists.txt")
1158 (("-msse2 -mfpmath=sse") ""))
1160 (add-after 'unpack 'fix-build-with-newer-lv2
1162 ;; https://github.com/ssj71/infamousPlugins/commit/4c7275b1fa8ea3296446421cbd29ec2df66588c0
1163 (substitute* (find-files "src" ".*\\.cxx")
1164 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
1167 (list cairo fftwf lv2 ntk zita-resampler))
1170 (home-page "https://ssj71.github.io/infamousPlugins")
1171 (synopsis "LV2 plugins for live use")
1173 "The infamous plugins are a collection of LV2 audio plugins for live
1174 performances. The plugins include a cellular automaton synthesizer, an
1175 envelope follower, distortion effects, tape effects and more.")
1176 (license license:gpl2+)))
1178 (define-public snapcast
1185 (url "https://github.com/badaix/snapcast")
1186 (commit (string-append "v" version))))
1187 (file-name (git-file-name name version))
1190 "091gf3k1xv3k0m0kf2apr9bwiifw2czjcksd3vzwy544sfgrya08"))))
1191 (build-system cmake-build-system)
1193 '(#:tests? #f)) ; no included tests
1205 (home-page "https://github.com/badaix/snapcast")
1206 (synopsis "Synchronous multiroom audio player")
1208 "Snapcast is a multi-room client-server audio player. Clients are time
1209 synchronized with the server to play synced audio.")
1210 (license license:gpl3+)))
1212 (define-public swh-plugins
1214 (name "swh-plugins")
1219 (url "https://github.com/swh/ladspa")
1220 (commit (string-append "v" version))))
1221 (file-name (git-file-name name version))
1224 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1228 gettext-minimal ;for autopoint
1234 (list fftwf perl-xml-parser))
1235 (build-system gnu-build-system)
1236 (home-page "http://plugin.org.uk")
1237 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1238 (description "This package provides Steve Harris's LADSPA plugins.")
1239 (license license:gpl2+)))
1241 (define-public swh-plugins-lv2
1243 (name "swh-plugins-lv2")
1248 (url "https://github.com/swh/lv2")
1249 (commit (string-append "v" version))))
1250 (file-name (git-file-name name version))
1253 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1254 (build-system gnu-build-system)
1256 `(#:tests? #f ; no check target
1257 #:make-flags (list "CC=gcc"
1258 (string-append "PREFIX="
1259 (assoc-ref %outputs "out")))
1261 (modify-phases %standard-phases
1262 ;; no configure script
1264 (add-after 'unpack 'patch-makefile-and-enter-directory
1265 ;; The default install target doesn't install, but the
1266 ;; "install-system" target does.
1268 (substitute* "Makefile"
1269 (("install:") "install: install-system"))
1274 (list libxslt pkg-config))
1275 (home-page "http://plugin.org.uk")
1276 (synopsis "SWH plugins in LV2 format")
1278 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1279 classes include: dynamics (compressor, limiter), time (delay, chorus,
1280 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1281 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1282 (license license:gpl3+)))
1284 (define-public libdjinterop
1286 (name "libdjinterop")
1292 (url "https://github.com/xsco/libdjinterop")
1294 (file-name (git-file-name name version))
1296 (base32 "16nrqpr90vb9ggmp9j73m0hspd7pmfdhh0g6iyp8vd7kx7g17qnk"))))
1297 (build-system meson-build-system)
1300 (modify-phases %standard-phases
1301 ;; crate_test writes a database file to the source tree.
1302 (add-after 'unpack 'make-git-checkout-writable
1304 (for-each make-file-writable (find-files ".")))))))
1306 (list boost pkg-config))
1309 (home-page "https://github.com/xsco/libdjinterop")
1310 (synopsis "C++ library for access to DJ record libraries")
1312 "@code{libdjinterop} is a C++ library that allows access to database
1313 formats used to store information about DJ record libraries.")
1314 (license license:lgpl3+)))
1319 (version "1.0-beta-10May2006")
1322 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1324 "tao-" version ".tar.gz"))
1327 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1329 (search-patches "tao-add-missing-headers.patch"
1330 "tao-fix-parser-types.patch"))
1331 (modules '((guix build utils)))
1333 '(substitute* "configure"
1334 (("SHELL=/bin/sh") "")))))
1335 (build-system gnu-build-system)
1337 '(#:configure-flags '("TAO_RELEASE=-beta")
1339 (modify-phases %standard-phases
1340 (add-after 'unpack 'fix-references
1341 (lambda* (#:key outputs #:allow-other-keys)
1342 (substitute* "user-scripts/tao.in"
1344 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1345 (("grep") (which "grep"))
1346 (("sed -f \\$distdir/user-scripts/")
1347 (string-append (which "sed") " -f $distdir/"))
1349 (string-append "distdir="
1350 (assoc-ref outputs "out") "/share/tao")))))
1351 (add-after 'install 'install-extra-files
1352 (lambda* (#:key outputs #:allow-other-keys)
1353 (let* ((out (assoc-ref outputs "out"))
1354 (share (string-append out "/share/tao/"))
1355 (inc (string-append out "/include/tao/")))
1358 (install-file "user-scripts/error.parse" share)
1359 (copy-recursively "examples" (string-append share "examples"))
1360 (for-each (lambda (file) (install-file file inc))
1361 (find-files "include" "\\.h"))))))))
1372 (home-page "http://taopm.sourceforge.net/")
1373 (synopsis "Sound Synthesis with Physical Models")
1374 (description "Tao is a software package for sound synthesis using physical
1375 models. It provides a virtual acoustic material constructed from masses and
1376 springs which can be used as the basis for building quite complex virtual
1377 musical instruments. Tao comes with a synthesis language for creating and
1378 playing instruments and a C++ API for those who would like to use it as an
1380 (license license:gpl2+)))
1382 (define-public tao-synth
1383 (let ((commit "f3aedd81efbc775574e591081b57ae1c08427064")
1387 (version (git-version "0" revision commit))
1391 (url "https://github.com/lucasw/tao_synth")
1393 (file-name (git-file-name name version))
1396 "1jds2l3cb96b02jxd7lmrjjl9s7mylnrvg6fpw0j8c141bk8vyg3"))))
1397 (build-system cmake-build-system)
1398 (arguments (list #:tests? #false)) ;there are no tests
1400 (list glfw freeglut))
1403 (home-page "https://github.com/lucasw/tao_synth")
1404 (synopsis "Sound synthesis with physical models")
1405 (description "Tao is a software package for sound synthesis using physical
1406 models. It provides a virtual acoustic material constructed from masses and
1407 springs which can be used as the basis for building quite complex virtual
1408 musical instruments. Tao comes with a synthesis language for creating and
1409 playing instruments and a C++ API for those who would like to use it as an
1411 (license license:lgpl2.0+))))
1413 (define-public csound
1421 (url "https://github.com/csound/csound")
1423 (file-name (git-file-name name version))
1425 (base32 "1lgasyk8j4cl9178vci1dph63nks3cgwhf8y1d04z9dc8gg15dyn"))))
1426 (build-system cmake-build-system)
1428 (list bison flex gettext-minimal zlib))
1437 (home-page "https://csound.com/")
1438 (synopsis "Sound and music computing system")
1440 "Csound is a user-programmable and user-extensible sound processing
1441 language and software synthesizer.")
1442 (license license:lgpl2.1+)))
1444 (define-public midicomp
1445 ;; The latest tagged release is 9 years old and there have been
1446 ;; unreleased fixes, so we take the last commit.
1447 (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68")
1451 (version (git-version "0.0.8" revision commit))
1456 (url "https://github.com/markc/midicomp")
1458 (file-name (git-file-name name version))
1461 "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf"))))
1462 (build-system cmake-build-system)
1464 `(#:tests? #f)) ; no "check" target
1465 (synopsis "Convert SMF MIDI files to and from plain text")
1467 "midicomp can manipulate SMF (Standard MIDI File) files. It can both
1468 read and write SMF files in 0 or format 1 and also read and write its own
1469 plain text format. This means a SMF file can be turned into easily
1470 parseable text, edited with any text editor or filtered through any script
1471 language, and recompiled back into a binary SMF file.")
1472 (home-page "https://github.com/markc/midicomp")
1473 (license license:agpl3))))
1475 (define-public clalsadrv
1482 "http://kokkinizita.linuxaudio.org"
1483 "/linuxaudio/downloads/clalsadrv-"
1484 version ".tar.bz2"))
1487 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1488 (build-system gnu-build-system)
1490 `(#:tests? #f ; no "check" target
1491 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1493 (modify-phases %standard-phases
1494 (add-after 'unpack 'patch-makefile-and-enter-directory
1496 (substitute* "libs/Makefile"
1497 (("/sbin/ldconfig") "true")
1498 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1501 (add-after 'install 'install-symlink
1503 (symlink "libclalsadrv.so"
1504 (string-append (assoc-ref %outputs "out")
1505 "/lib/libclalsadrv.so.2"))
1507 ;; no configure script
1508 (delete 'configure))))
1510 (list alsa-lib fftw))
1511 (home-page "https://kokkinizita.linuxaudio.org")
1512 (synopsis "C++ wrapper around the ALSA API")
1514 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1516 (license license:gpl2+)))
1518 (define-public amb-plugins
1520 (name "amb-plugins")
1525 "http://kokkinizita.linuxaudio.org"
1526 "/linuxaudio/downloads/AMB-plugins-"
1527 version ".tar.bz2"))
1530 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1531 (build-system gnu-build-system)
1533 `(#:tests? #f ; no "check" target
1535 (modify-phases %standard-phases
1536 ;; no configure script
1538 (add-before 'install 'prepare-target-directory
1539 (lambda* (#:key outputs #:allow-other-keys)
1540 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1542 (add-after 'unpack 'override-target-directory-and-tool-paths
1543 (lambda* (#:key outputs #:allow-other-keys)
1544 (substitute* "Makefile"
1545 (("/usr/lib/ladspa")
1546 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1547 (("/usr/bin/install") (which "install"))
1550 (home-page "https://kokkinizita.linuxaudio.org")
1551 (synopsis "LADSPA ambisonics plugins")
1553 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1554 used within Ardour. Features include: mono and stereo to B-format panning,
1555 horizontal rotator, square, hexagon and cube decoders.")
1556 (license license:gpl2+)))
1558 (define-public mcp-plugins
1560 (name "mcp-plugins")
1565 "http://kokkinizita.linuxaudio.org"
1566 "/linuxaudio/downloads/MCP-plugins-"
1567 version ".tar.bz2"))
1570 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1571 (build-system gnu-build-system)
1573 `(#:tests? #f ; no "check" target
1575 (modify-phases %standard-phases
1576 ;; no configure script
1578 (add-before 'install 'prepare-target-directory
1579 (lambda* (#:key outputs #:allow-other-keys)
1580 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1582 (add-after 'unpack 'override-target-directory
1583 (lambda* (#:key outputs #:allow-other-keys)
1584 (substitute* "Makefile"
1585 (("/usr") (assoc-ref outputs "out")))
1587 (home-page "https://kokkinizita.linuxaudio.org")
1588 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1590 "This package provides various LADSPA plugins. @code{cs_chorus} and
1591 @code{cs_phaser} provide chorus and phaser effects, respectively;
1592 @code{mvclpf24} provides four implementations of the low-pass filter used in
1593 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1594 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1595 the non-linear circuit elements of their original analog counterparts.")
1596 (license license:gpl2+)))
1598 (define-public rev-plugins
1600 (name "rev-plugins")
1605 "http://kokkinizita.linuxaudio.org"
1606 "/linuxaudio/downloads/REV-plugins-"
1607 version ".tar.bz2"))
1610 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1611 (build-system gnu-build-system)
1613 `(#:tests? #f ; no "check" target
1615 (modify-phases %standard-phases
1616 ;; no configure script
1618 (add-before 'install 'prepare-target-directory
1619 (lambda* (#:key outputs #:allow-other-keys)
1620 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1622 (add-after 'unpack 'override-target-directory
1623 (lambda* (#:key outputs #:allow-other-keys)
1624 (substitute* "Makefile"
1625 (("/usr") (assoc-ref outputs "out")))
1627 (home-page "https://kokkinizita.linuxaudio.org")
1628 (synopsis "LADSPA reverb plugin")
1630 "This package provides a stereo reverb LADSPA plugin based on the
1631 well-known greverb.")
1632 (license license:gpl2+)))
1634 (define-public fil-plugins
1636 (name "fil-plugins")
1641 "http://kokkinizita.linuxaudio.org"
1642 "/linuxaudio/downloads/FIL-plugins-"
1643 version ".tar.bz2"))
1646 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1647 (build-system gnu-build-system)
1649 `(#:tests? #f ; no "check" target
1651 (modify-phases %standard-phases
1652 ;; no configure script
1654 (add-before 'install 'prepare-target-directory
1655 (lambda* (#:key outputs #:allow-other-keys)
1656 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1658 (add-after 'unpack 'override-target-directory
1659 (lambda* (#:key outputs #:allow-other-keys)
1660 (substitute* "Makefile"
1661 (("/usr") (assoc-ref outputs "out")))
1663 (home-page "https://kokkinizita.linuxaudio.org")
1664 (synopsis "LADSPA four-band parametric equalizer plugin")
1666 "This package provides a LADSPA plugin for a four-band parametric
1667 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1668 gain controls. There is also a global bypass switch and gain control.
1670 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1671 lattice filter, which is stable even while parameters are being changed.
1673 All switches and controls are internally smoothed, so they can be used @code{live}
1674 without any clicks or zipper noises. This makes this plugin suitable for use
1675 in systems that allow automation of plugin control ports, such as Ardour, or
1677 (license license:gpl2+)))
1679 (define-public ste-plugins
1681 (name "ste-plugins")
1686 "http://kokkinizita.linuxaudio.org"
1687 "/linuxaudio/downloads/STE-plugins-"
1688 version ".tar.bz2"))
1691 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1692 (build-system gnu-build-system)
1694 `(#:tests? #f ; no "check" target
1696 (modify-phases %standard-phases
1697 ;; no configure script
1699 (add-before 'install 'prepare-target-directory
1700 (lambda* (#:key outputs #:allow-other-keys)
1701 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1703 (add-after 'unpack 'override-target-directory
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (substitute* "Makefile"
1706 (("/usr") (assoc-ref outputs "out")))
1708 (home-page "https://kokkinizita.linuxaudio.org")
1709 (synopsis "LADSPA stereo width plugin")
1711 "This package provides a LADSPA plugin to manipulate the stereo width of
1713 (license license:gpl2+)))
1715 (define-public vco-plugins
1717 (name "vco-plugins")
1722 "http://kokkinizita.linuxaudio.org"
1723 "/linuxaudio/downloads/VCO-plugins-"
1724 version ".tar.bz2"))
1727 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1728 (build-system gnu-build-system)
1730 `(#:tests? #f ; no "check" target
1732 (modify-phases %standard-phases
1733 ;; no configure script
1735 (add-before 'install 'prepare-target-directory
1736 (lambda* (#:key outputs #:allow-other-keys)
1737 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1739 (add-after 'unpack 'override-target-directory
1740 (lambda* (#:key outputs #:allow-other-keys)
1741 (substitute* "Makefile"
1742 (("/usr") (assoc-ref outputs "out"))
1743 (("/bin/cp") (which "cp")))
1745 (home-page "https://kokkinizita.linuxaudio.org")
1746 (synopsis "LADSPA plugin for synthesizer oscillators")
1748 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1751 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1752 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1753 @item Rec-VCO, a square / rectangle oscillator
1756 All oscillators are low-pass filtered to provide waveforms similar to the
1757 output of analog synthesizers such as the Moog Voyager.")
1758 (license license:gpl2+)))
1760 (define-public wah-plugins
1762 (name "wah-plugins")
1767 "http://kokkinizita.linuxaudio.org"
1768 "/linuxaudio/downloads/WAH-plugins-"
1769 version ".tar.bz2"))
1772 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1773 (build-system gnu-build-system)
1775 `(#:tests? #f ; no "check" target
1777 (modify-phases %standard-phases
1778 ;; no configure script
1780 (add-before 'install 'prepare-target-directory
1781 (lambda* (#:key outputs #:allow-other-keys)
1782 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1784 (add-after 'unpack 'override-target-directory
1785 (lambda* (#:key outputs #:allow-other-keys)
1786 (substitute* "Makefile"
1787 (("/usr") (assoc-ref outputs "out")))
1789 (home-page "https://kokkinizita.linuxaudio.org")
1790 (synopsis "LADSPA Autowah effect plugin")
1792 "This package provides a LADSPA plugin for a Wah effect with envelope
1794 (license license:gpl2+)))
1796 (define-public g2reverb
1803 "http://kokkinizita.linuxaudio.org"
1804 "/linuxaudio/downloads/g2reverb-"
1805 version ".tar.bz2"))
1808 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1809 (build-system gnu-build-system)
1811 `(#:tests? #f ; no "check" target
1813 (modify-phases %standard-phases
1814 ;; no configure script
1816 (add-before 'install 'prepare-target-directory
1817 (lambda* (#:key outputs #:allow-other-keys)
1818 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1820 (add-after 'unpack 'override-target-directory
1821 (lambda* (#:key outputs #:allow-other-keys)
1822 (substitute* "Makefile"
1823 (("/usr") (assoc-ref outputs "out")))
1825 (home-page "https://kokkinizita.linuxaudio.org")
1826 (synopsis "LADSPA stereo reverb plugin")
1828 "This package provides a LADSPA plugin for a stereo reverb effect.")
1829 (license license:gpl2+)))
1831 (define-public fluidsynth
1838 (url "https://github.com/FluidSynth/fluidsynth")
1839 (commit (string-append "v" version))))
1840 (file-name (git-file-name name version))
1843 "1061rdj69503spkd8vmfl3fqvyg4l41k5xcc4gw7niy31hnpnjmn"))))
1844 (build-system cmake-build-system)
1846 '(#:tests? #f ; no check target
1848 (modify-phases %standard-phases
1849 (add-after 'unpack 'fix-libdir
1851 ;; Install libraries to /lib, not /lib64.
1852 (substitute* "CMakeLists.txt"
1853 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1854 "LIB_SUFFIX \"\"")))))))
1860 ;; In Libs.private of fluidsynth.pc.
1867 (home-page "https://www.fluidsynth.org/")
1868 (synopsis "SoundFont synthesizer")
1870 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1871 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1872 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1873 also play midifiles using a Soundfont.")
1874 (license license:lgpl2.1+)))
1876 (define-public faad2
1884 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1885 (version-major+minor version) ".0/"
1886 "faad2-" version ".tar.gz"))
1888 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1889 (build-system gnu-build-system)
1890 (home-page "https://www.audiocoding.com/faad2.html")
1891 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1893 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1894 (license license:gpl2+)))
1896 (define-public faust
1903 (url "https://github.com/grame-cncm/faust")
1904 (commit (string-append "v"
1905 (string-map (lambda (c)
1906 (if (char=? c #\.) #\- c))
1908 (file-name (string-append "faust-" version "-checkout"))
1911 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1912 (build-system gnu-build-system)
1914 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1917 (modify-phases %standard-phases
1918 ;; no "configure" script
1920 ;; Files appear under $out/share/faust that are read-only. The
1921 ;; install phase tries to overwrite them and fails, so we change
1922 ;; the permissions first.
1923 (add-before 'install 'fix-permissions
1925 (for-each (lambda (file)
1927 (find-files "architecture/max-msp" ".*"))
1931 (home-page "https://faust.grame.fr/")
1932 (synopsis "Signal processing language")
1934 "Faust is a programming language for realtime audio signal processing.")
1935 (license license:gpl2+)))
1937 ;; This version is needed to build older synths that require the lv2synth.cpp
1938 ;; architecture file, such as sorcer.
1939 (define-public faust-0.9.67
1947 (url "https://github.com/grame-cncm/faust")
1948 (commit (string-append "v"
1949 (string-map (lambda (c)
1950 (if (char=? c #\.) #\- c))
1952 (file-name (git-file-name name version))
1955 "0856x666s6ymzk8v15f9gy402dbr8c9v2s40hyfadhraqljmqrm0"))
1957 ;; Remove prebuilt library
1958 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
1959 (build-system gnu-build-system)
1963 #~(list (string-append "prefix=" #$output))
1966 '(modify-phases %standard-phases
1967 ;; no "configure" script
1968 (delete 'configure))))
1969 (native-inputs (list unzip))))
1971 (define-public faust-2
1977 (uri (string-append "https://github.com/grame-cncm/faust/"
1978 "releases/download/" version
1979 "/faust-" version ".tar.gz"))
1982 "0gk8ifxrbykq7ay0nvjns8fjryhp0wfhv5npgrl8xpgw9wfmw53j"))))
1983 (build-system cmake-build-system)
1985 `(#:tests? #f ; no tests
1987 (modify-phases %standard-phases
1988 ;; The upstream package uses make to run cmake during the build stage.
1989 ;; Here we ignore the Makefile and call cmake directly.
1993 (invoke "cmake" "-C" "backends/all.cmake"
1994 (string-append "-DCMAKE_INSTALL_PREFIX="
1995 (assoc-ref %outputs "out")))))
1996 ;; The sound2faust tool would be built in the Makefile's "world" target
1997 (add-after 'install 'sound2faust
1999 (chdir "../tools/sound2faust")
2000 (setenv "PREFIX" (assoc-ref %outputs "out"))
2002 (invoke "make" "install"))))))
2007 ("ctags" ,emacs-minimal) ; for ctags
2008 ("pkg-config" ,pkg-config)))
2010 (list libsndfile libmicrohttpd ncurses openssl zlib))))
2012 (define-public freepats
2015 (version "20060219")
2018 (uri (string-append "http://freepats.zenvoid.org/freepats-"
2019 version ".tar.bz2"))
2022 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
2023 (build-system trivial-build-system)
2025 `(#:modules ((guix build utils))
2027 (use-modules (guix build utils))
2028 (let ((out (string-append %output "/share/freepats")))
2029 (setenv "PATH" (string-append
2030 (assoc-ref %build-inputs "bzip2") "/bin:"
2031 (assoc-ref %build-inputs "tar") "/bin"))
2032 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2034 ;; Use absolute pattern references
2035 (substitute* "freepats.cfg"
2036 (("Tone_000") (string-append out "/Tone_000"))
2037 (("Drum_000") (string-append out "/Drum_000")))
2039 (copy-recursively "." out)
2043 (home-page "http://freepats.zenvoid.org")
2044 (synopsis "GUS compatible patches for MIDI players")
2046 "FreePats is a project to create a free and open set of GUS compatible
2047 patches that can be used with softsynths such as Timidity and WildMidi.")
2048 ;; GPLv2+ with exception for compositions using these patches.
2049 (license license:gpl2+)))
2051 (define-public freepats-gm
2053 (name "freepats-gm")
2054 (version "20210329")
2057 (uri (string-append "https://freepats.zenvoid.org/SoundSets/"
2058 "FreePats-GeneralMIDI/FreePatsGM-SF2-" version ".7z"))
2061 "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc"))))
2062 (build-system trivial-build-system)
2064 `(("p7zip" ,p7zip)))
2066 `(#:modules ((guix build utils))
2068 (let ((dir (string-append "FreePatsGM-SF2-" ,version))
2069 (file (string-append "FreePatsGM-" ,version ".sf2"))
2070 (out (string-append %output "/share/soundfonts"))
2071 (doc (string-append %output "/share/doc/freepats-gm-" ,version)))
2072 (use-modules (guix build utils))
2073 (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")
2074 "e" (assoc-ref %build-inputs "source")
2075 (string-append dir "/" file)
2076 (string-append dir "/gpl.txt")
2077 (string-append dir "/cc0.txt")
2078 (string-append dir "/readme.txt"))
2080 (copy-file file (string-append out "/FreePatsGM.sf2"))
2084 (copy-file file (string-append doc "/" file)))
2085 (find-files "." "\\.txt$"))
2087 (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html")
2088 (synopsis "General MIDI sound set")
2089 (description "FreePats is a project to create a free (as in free software)
2090 collection of digital instruments for music production. This sound bank is a
2091 partial release of the General MIDI sound set.")
2093 license:gpl3+ ; with sampling exception
2096 (define-public guitarix
2103 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
2107 "1bsjlfd7x09p3iiljilyfbns6hpqn9cgp6psl4ccd6i1lwascfrm"))))
2108 (build-system waf-build-system)
2110 `(#:tests? #f ; no "check" target
2113 ;; Add the output lib directory to the RUNPATH.
2114 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
2134 ("intltool" ,intltool)
2135 ("gettext" ,gettext-minimal)
2136 ("pkg-config" ,pkg-config)
2138 (native-search-paths
2139 (list (search-path-specification
2140 (variable "LV2_PATH")
2141 (files '("lib/lv2")))))
2142 (home-page "https://guitarix.org/")
2143 (synopsis "Virtual guitar amplifier")
2144 (description "Guitarix is a virtual guitar amplifier running JACK.
2145 Guitarix takes the signal from your guitar as a mono-signal from your sound
2146 card. The input is processed by a main amp and a rack-section. Both can be
2147 routed separately and deliver a processed stereo-signal via JACK. You may
2148 fill the rack with effects from more than 25 built-in modules including stuff
2149 from a simple noise gate to modulation effects like flanger, phaser or
2151 (license license:gpl2+)))
2153 (define-public guitarix-lv2
2154 (package (inherit guitarix)
2155 (name "guitarix-lv2")
2157 (substitute-keyword-arguments (package-arguments guitarix)
2158 ((#:configure-flags flags)
2159 `(cons "--no-standalone" ,flags))))))
2161 (define-public rakarrack
2167 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
2168 "rakarrack-" version "/rakarrack-"
2169 version ".tar.bz2"))
2172 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
2173 (modules '((guix build utils)))
2176 (substitute* '("src/process.C"
2178 (("#include <Fl/") "#include <FL/"))
2180 (build-system gnu-build-system)
2197 (home-page "http://rakarrack.sourceforge.net/")
2198 (synopsis "Audio effects processor")
2200 "Rakarrack is a richly featured multi-effects processor emulating a
2201 guitar effects pedalboard. Effects include compressor, expander, noise gate,
2202 equalizers, exciter, flangers, chorus, various delay and reverb effects,
2203 distortion modules and many more. Most of the effects engine is built from
2204 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
2205 user interface are optimized for guitar, but Rakarrack processes signals in
2206 stereo while it does not apply internal band-limiting filtering, and thus is
2207 well suited to all musical instruments and vocals.")
2208 ;; The code is explicitly licensed under the GPL version 2 only.
2209 (license license:gpl2)))
2218 (url "https://github.com/tomszilagyi/ir.lv2")
2220 (file-name (git-file-name name version))
2223 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
2224 (build-system gnu-build-system)
2226 `(#:tests? #f ; no tests
2228 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2229 (string-append "INSTDIR="
2230 (assoc-ref %outputs "out") "/lib/lv2"))
2232 (modify-phases %standard-phases
2233 (delete 'configure) ; no configure script
2234 ;; See https://github.com/tomszilagyi/ir.lv2/pull/20
2235 (add-after 'unpack 'fix-type
2237 (substitute* '("ir_gui.cc" "lv2_ui.h")
2238 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
2249 (native-search-paths
2250 (list (search-path-specification
2251 (variable "LV2_PATH")
2252 (files '("lib/lv2")))))
2253 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
2254 (synopsis "LV2 convolution reverb")
2256 "IR is a low-latency, real-time, high performance signal convolver
2257 especially for creating reverb effects. It supports impulse responses with 1,
2258 2 or 4 channels, in any soundfile format supported by libsndfile.")
2259 (license license:gpl2+)))
2261 (define-public jack-1
2268 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2269 ;; no longer exists (404). Use an unofficial mirror.
2270 (uri (string-append "https://crux.ster.zone/downloads/"
2271 "jack-audio-connection-kit/"
2272 "jack-audio-connection-kit-" version ".tar.gz"))
2274 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2275 (build-system gnu-build-system)
2277 `(#:phases (modify-phases %standard-phases
2278 (add-after 'unpack 'patch-configure
2280 (substitute* "configure"
2281 ;; Install to <out/lib> regardless of platform.
2282 (("libnn=lib64") "libnn=lib"))
2285 (list alsa-lib readline))
2286 ;; uuid.h is included in the JACK type headers
2287 ;; db.h is included in the libjack metadata headers
2289 `(("libuuid" ,util-linux "lib")
2293 (home-page "https://jackaudio.org/")
2294 (synopsis "JACK audio connection kit")
2296 "JACK is a low-latency audio server. It can connect a number of
2297 different applications to an audio device, as well as allowing them to share
2298 audio between themselves. JACK is different from other audio server efforts
2299 in that it has been designed from the ground up to be suitable for
2300 professional audio work. This means that it focuses on two key areas:
2301 synchronous execution of all clients, and low latency operation.")
2302 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2303 ;; licensed under the LGPL in order to allow for proprietary usage.
2304 (license (list license:gpl2+ license:lgpl2.1+))))
2306 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2307 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2308 ;; program for users who might benefit from the D-BUS features.
2309 (define-public jack-2
2317 (url "https://github.com/jackaudio/jack2")
2318 (commit (string-append "v" version))))
2319 (file-name (git-file-name name version))
2322 "0sbrffmdbajvrk7iqvsvrnwnpvmicvbjyq3f52r6ashdsznsz03b"))))
2323 (build-system waf-build-system)
2325 `(#:tests? #f ; no check target
2326 #:configure-flags '("--dbus" "--alsa")
2328 (modify-phases %standard-phases
2329 (add-before 'configure 'set-linkflags
2331 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2332 ;; will not link with undefined reference to symbol
2333 ;; '__gxx_personality_v0@@CXXABI_1.3'
2334 (setenv "LDFLAGS" "-lstdc++")
2335 ;; Add $libdir to the RUNPATH of all the binaries.
2336 (substitute* "wscript"
2337 ((".*CFLAGS.*-Wall.*" m)
2339 " conf.env.append_unique('LINKFLAGS',"
2340 "'-Wl,-rpath=" %output "/lib')\n")))))
2341 (add-after 'install 'wrap-python-scripts
2342 (lambda* (#:key outputs #:allow-other-keys)
2343 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2344 (wrap-program (search-input-file outputs "bin/jack_control")
2345 `("GUIX_PYTHONPATH" ":"
2346 prefix (,(getenv "GUIX_PYTHONPATH")))))))))
2357 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2358 (license (list license:gpl2+ license:lgpl2.1+))))
2366 (uri (string-append "https://download.drobilla.net/jalv-"
2367 version ".tar.bz2"))
2370 "05lycfq0f06zjp5xqvzjz9hx9kmqx72yng1lghh76hv63dw43lcj"))))
2371 (build-system waf-build-system)
2373 `(#:tests? #f)) ; no check target
2384 (home-page "https://drobilla.net/software/jalv/")
2385 (synopsis "Simple LV2 host for JACK")
2387 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2388 plugins and exposes their ports as JACK ports, essentially making any LV2
2389 plugin function as a JACK application.")
2390 (license license:isc)))
2392 (define-public ladspa
2399 ;; Since the official link is dead,
2400 ;; we download the tarball from Debian or Internet Archive.
2401 (uri (list (string-append "http://http.debian.net"
2402 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2403 version ".orig.tar.gz")
2404 (string-append "https://web.archive.org/web/20140717172251/"
2405 "http://www.ladspa.org/download/ladspa_sdk_"
2409 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2410 (build-system gnu-build-system)
2412 `(#:tests? #f ; the "test" target is a listening test only
2414 (modify-phases %standard-phases
2416 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2418 (let ((out (assoc-ref outputs "out")))
2419 (substitute* "makefile"
2420 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2421 (("/usr/include/") (string-append out "/include/"))
2422 (("/usr/bin/") (string-append out "/bin/"))
2423 (("-mkdirhier") "mkdir -p")
2424 (("^CC.*") "CC = gcc\n")
2425 (("^CPP.*") "CPP = g++\n")))
2428 ;; Since the home page is gone, we provide a link to the archived version.
2430 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2431 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2433 "LADSPA is a standard that allows software audio processors and effects
2434 to be plugged into a wide range of audio synthesis and recording packages.")
2435 (license license:lgpl2.1+)))
2440 (version "0.6.0-rc2")
2443 ;; The tilde is not permitted in the builder name, but is used
2446 "mirror://savannah/lash/lash-"
2447 (string-join (string-split version #\-) "~")
2449 (file-name (string-append name "-" version ".tar.bz2"))
2452 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2453 (build-system gnu-build-system)
2455 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2456 ;; to use libtirpc instead.
2457 #:make-flags (list (string-append "CFLAGS=-I"
2458 (assoc-ref %build-inputs "libtirpc")
2459 "/include/tirpc -ltirpc"))
2461 (modify-phases %standard-phases
2462 ;; lashd embeds an ancient version of sigsegv so we just skip it
2463 (add-after 'unpack 'skip-lashd
2465 (substitute* '("Makefile.am" "Makefile.in")
2468 #:configure-flags '("--disable-static")))
2473 ("libtirpc" ,libtirpc)
2474 ("readline" ,readline)
2475 ("python" ,python-2)))
2476 ;; According to pkg-config, packages depending on lash also need to have
2477 ;; at least the following packages declared as inputs.
2479 (list alsa-lib dbus libxml2))
2482 (home-page "https://www.nongnu.org/lash/")
2483 (synopsis "Audio application session manager")
2485 "LASH is a session management system for audio applications. It allows
2486 you to save and restore audio sessions consisting of multiple interconneced
2487 applications, restoring program state (i.e. loaded patches) and the
2488 connections between them.")
2489 (license license:gpl2+)))
2491 (define-public libbs2b
2497 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2498 "/libbs2b-" version ".tar.lzma"))
2501 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2502 (build-system gnu-build-system)
2503 (native-inputs (list pkg-config))
2504 (inputs (list libsndfile))
2505 (home-page "https://sourceforge.net/projects/bs2b/")
2506 (synopsis "Bauer stereophonic-to-binaural DSP")
2508 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2509 designed to improve headphone listening of stereo audio records. Recommended
2510 for headphone prolonged listening to disable superstereo fatigue without
2511 essential distortions.")
2512 (license license:expat)))
2514 (define-public ladspa-bs2b
2516 (name "ladspa-bs2b")
2521 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2522 version "/" name "-" version ".tar.gz"))
2525 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2526 (build-system gnu-build-system)
2527 (native-inputs (list pkg-config))
2528 (inputs (list ladspa libbs2b))
2529 (home-page "https://sourceforge.net/projects/bs2b/")
2530 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2531 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2532 plugins is designed to improve headphone listening of stereo audio records.
2533 Recommended for headphone prolonged listening to disable superstereo fatigue
2534 without essential distortions. This package contains a LADSPA plugin for use
2535 with applications that support them (e.g. PulseAudio).")
2536 (license license:gpl2+)))
2538 (define-public liblo
2544 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2545 "/liblo-" version ".tar.gz"))
2548 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2549 (build-system gnu-build-system)
2551 `(;; liblo test FAILED
2552 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2554 (home-page "http://liblo.sourceforge.net")
2555 (synopsis "Implementation of the Open Sound Control protocol")
2557 "liblo is a lightweight library that provides an easy to use
2558 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2559 (license license:lgpl2.1+)))
2561 (define-public rtaudio
2569 (url "https://github.com/thestk/rtaudio")
2571 (file-name (git-file-name name version))
2573 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2574 (build-system cmake-build-system)
2577 (modify-phases %standard-phases
2578 ;; The header that pkg-config expects is include/rtaudio/RtAudio.h,
2579 ;; but this package installs it as include/RtAudio.h by default.
2580 (add-after 'install 'fix-inc-path
2581 (lambda* (#:key outputs #:allow-other-keys)
2582 (let* ((out (assoc-ref outputs "out"))
2583 (inc (string-append out "/include")))
2584 (mkdir-p (string-append inc "/rtaudio"))
2585 (rename-file (string-append inc "/RtAudio.h")
2586 (string-append inc "/rtaudio/RtAudio.h"))))))))
2590 (list alsa-lib jack-1 pulseaudio))
2591 (synopsis "Common API for real-time audio I/O")
2593 "RtAudio is a set of C++ classes that provides a common API for real-time
2594 audio input/output. It was designed with the following objectives:
2597 @item object-oriented C++ design
2598 @item simple, common API across all supported platforms
2599 @item only one source and one header file for easy inclusion in programming
2601 @item allow simultaneous multi-api support
2602 @item support dynamic connection of devices
2603 @item provide extensive audio device parameter control
2604 @item allow audio device capability probing
2605 @item automatic internal conversion for data format, channel number
2606 compensation, (de)interleaving, and byte-swapping
2608 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2609 ;; License is expat with a non-binding request to send modifications to
2610 ;; original developer.
2611 (license license:expat)))
2613 (define-public python-pyaudio
2615 (name "python-pyaudio")
2620 (uri (pypi-uri "PyAudio" version))
2623 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2624 (build-system python-build-system)
2627 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2628 (synopsis "Bindings for PortAudio v19")
2629 (description "This package provides bindings for PortAudio v19, the
2630 cross-platform audio input/output stream library.")
2631 (license license:expat)))
2633 (define-public python-pyliblo
2635 (name "python-pyliblo")
2639 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2643 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2644 (build-system python-build-system)
2645 (arguments `(#:tests? #f)) ;no tests
2647 (list python-cython))
2650 (home-page "http://das.nasophon.de/pyliblo/")
2651 (synopsis "Python bindings for liblo")
2653 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2654 library. It supports almost the complete functionality of liblo, allowing you
2655 to send and receive OSC messages using a nice and simple Python API. Also
2656 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2657 (license license:lgpl2.1+)))
2659 (define-public python-soundfile
2661 (name "python-soundfile")
2662 (version "0.10.3.post1")
2666 (uri (pypi-uri "SoundFile" version))
2669 "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
2670 (build-system python-build-system)
2672 (list python-cffi python-numpy libsndfile))
2674 (list python-pytest))
2676 `(#:tests? #f ; missing OGG support
2678 (modify-phases %standard-phases
2679 (add-after 'unpack 'patch
2680 (lambda* (#:key inputs #:allow-other-keys)
2681 (substitute* "soundfile.py"
2682 (("_find_library\\('sndfile'\\)")
2683 (string-append "\"" (assoc-ref inputs "libsndfile")
2684 "/lib/libsndfile.so\""))))))))
2685 (home-page "https://github.com/bastibe/SoundFile")
2686 (synopsis "Python bindings for libsndfile")
2687 (description "This package provides python bindings for libsndfile based on
2689 (license license:expat)))
2691 (define-public python-python3-midi
2693 (name "python-python3-midi")
2698 (uri (pypi-uri "python3_midi" version))
2701 "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
2702 (build-system python-build-system)
2703 (home-page "https://github.com/NFJones/python3-midi")
2704 (synopsis "Python MIDI API")
2705 (description "This package provides a python API to read and write MIDI
2707 (license license:expat)))
2709 (define-public audio-to-midi
2711 (name "audio-to-midi")
2717 (url "https://github.com/NFJones/audio-to-midi")
2718 (commit (string-append "v" version))))
2719 (file-name (git-file-name name version))
2722 "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
2723 (build-system python-build-system)
2736 (modify-phases %standard-phases
2737 (add-after 'unpack 'fix-versions
2739 (substitute* "requirements.txt" (("==") ">=")))))))
2740 (home-page "https://github.com/NFJones/audio-to-midi")
2741 (synopsis "Convert audio to multichannel MIDI")
2742 (description "@command{audio-to-midi} converts audio files to multichannel
2743 MIDI files. It accomplishes this by performing FFTs on all channels of the
2744 audio data at user-specified time steps. It then separates the resulting
2745 frequency analysis into equivalence classes which correspond to the twelve tone
2746 scale; the volume of each class being the average volume of its constituent
2747 frequencies. This data is then formatted to MIDI and written to disk.")
2748 (license license:expat)))
2756 (uri (string-append "https://download.drobilla.net/lilv-"
2757 version ".tar.bz2"))
2760 "0qchfsyrsrp2pdpd59025kllycr04ddpzd03ha1iz70ci687g8r6"))))
2761 (build-system waf-build-system)
2763 `(#:tests? #f ; no check target
2765 (modify-phases %standard-phases
2766 (add-before 'configure 'set-ldflags
2767 (lambda* (#:key outputs #:allow-other-keys)
2769 (string-append "-Wl,-rpath="
2770 (assoc-ref outputs "out") "/lib"))))
2771 (add-after 'unpack 'full-store-path-to-shared-library
2772 (lambda* (#:key outputs #:allow-other-keys)
2773 (with-directory-excursion "bindings/python"
2774 (substitute* "lilv.py"
2775 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2776 "/lib/liblilv-0.so")))))))))
2777 ;; Required by lilv-0.pc.
2779 (list lv2 serd sord sratom))
2781 (list python pkg-config))
2782 (home-page "https://drobilla.net/software/lilv")
2783 (synopsis "Library to simplify use of LV2 plugins in applications")
2785 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2786 for applications. Lilv is the successor to SLV2, rewritten to be
2787 significantly faster and have minimal dependencies.")
2788 (license license:isc)))
2796 (uri (string-append "https://lv2plug.in/spec/lv2-"
2797 version ".tar.bz2"))
2800 "0pp0n9x1rg8d4fw853z9cvfifjdi4bl85yjxxddqa1acfjy1z2af"))))
2801 (build-system waf-build-system)
2803 `(#:tests? #f ; no check target
2804 #:configure-flags '("--no-plugins")))
2806 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2810 (home-page "https://lv2plug.in/")
2811 (synopsis "LV2 audio plugin specification")
2813 "LV2 is an open specification for audio plugins and host applications.
2814 At its core, LV2 is a simple stable interface, accompanied by extensions which
2815 add functionality to support the needs of increasingly powerful audio
2817 (license license:isc)))
2819 (define-public ttl2c
2826 (url "https://github.com/lvtk/ttl2c")
2828 (file-name (git-file-name name version))
2831 "0aybx8i5i0sridi9130a3937xgmfmjkk8m48f9whvhlhbzwy3xbl"))))
2832 (build-system waf-build-system)
2835 #:tests? #false ;no check target
2837 `(modify-phases %standard-phases
2838 (add-before 'configure 'setup-waf
2839 (lambda* (#:key inputs #:allow-other-keys)
2840 (let ((waf (assoc-ref inputs "python-waf")))
2841 (copy-file (string-append waf "/bin/waf") "waf")))))))
2842 (inputs (list boost))
2843 (native-inputs (list python-waf))
2844 (home-page "https://github.com/lvtk/ttl2c")
2845 (synopsis "Turtle to C header conversion utility for LV2 plugins")
2847 "This package provides a conversion utility for LV2 Plugin developers to
2848 generate C headers from Turtle files.")
2849 (license license:gpl3+)))
2851 (define-public lv2-mda-piano
2853 (name "lv2-mda-piano")
2858 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2860 (file-name (git-file-name name version))
2863 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2864 (build-system gnu-build-system)
2866 `(#:make-flags (list
2868 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2869 #:tests? #f ; no check target
2870 #:phases (modify-phases %standard-phases (delete 'configure))))
2874 (list pkg-config ttl2c))
2875 (native-search-paths
2876 (list (search-path-specification
2877 (variable "LV2_PATH")
2878 (files '("lib/lv2")))))
2879 (home-page "https://elephly.net/lv2/mdapiano.html")
2880 (synopsis "LV2 port of the mda Piano plugin")
2881 (description "An LV2 port of the mda Piano VSTi.")
2882 (license license:gpl3+)))
2884 (define-public lv2-mda-epiano
2885 (package (inherit lv2-mda-piano)
2886 (name "lv2-mda-epiano")
2888 `(#:make-flags (list
2890 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2891 #:tests? #f ; no check target
2892 #:phases (modify-phases %standard-phases (delete 'configure))))
2893 (home-page "https://elephly.net/lv2/mdaepiano.html")
2894 (synopsis "LV2 port of the mda EPiano plugin")
2895 (description "An LV2 port of the mda EPiano VSTi.")))
2897 (define-public lvtk-2
2898 ;; Use the latest commit, as the latest release was made in 2014 and depends
2900 (let ((commit "a73feabe772f9650aa071e6a4df660e549ab7c48")
2904 (version (git-version "2" revision commit))
2908 (url "https://github.com/lvtk/lvtk")
2910 (file-name (git-file-name name version))
2913 "0scmv8b4jlm88d21dqqchjy98wb93zclc9x960h213gdi871vsaj"))))
2914 (build-system waf-build-system)
2915 (arguments (list #:tests? #f)) ;no check target
2916 (inputs (list boost gtkmm lv2))
2917 (native-inputs (list pkg-config))
2918 (home-page "https://github.com/lvtk/lvtk")
2919 (synopsis "C++ libraries for LV2 plugins")
2921 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2922 extensions into easy to use C++ classes. It is the successor of
2924 (license license:isc))))
2926 (define-public lvtk-1
2927 ;; Use the latest commit, as the latest release was made in 2014 and depends
2929 (let ((commit "23dd99531d88d7821b69f6f0d60516ef322a6729")
2933 (version (git-version "1.2.0" revision commit))
2937 (url "https://github.com/lvtk/lvtk")
2939 (file-name (git-file-name name version))
2942 "0iw7skvsn3whw69dhcxbbdns7mssaf6z6iyzxjav53607ibyfr8d"))))
2943 (build-system waf-build-system)
2946 #:tests? #false ;no check target
2948 #~(list (string-append "--boost-includes="
2949 #$(this-package-input "boost")
2952 `(modify-phases %standard-phases
2953 (add-before 'configure 'setup-waf
2954 (lambda* (#:key inputs #:allow-other-keys)
2955 (let ((waf (assoc-ref inputs "python-waf")))
2956 (copy-file (string-append waf "/bin/waf") "waf")))))))
2957 (inputs (list boost gtkmm lv2))
2958 (native-inputs (list pkg-config python-waf))
2959 (home-page "https://github.com/lvtk/lvtk")
2960 (synopsis "C++ libraries for LV2 plugins")
2962 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2963 extensions into easy to use C++ classes. It is the successor of
2965 (license license:isc))))
2967 (define-public lvtk lvtk-1)
2969 (define-public openal
2976 "https://openal-soft.org/openal-releases/openal-soft-"
2977 version ".tar.bz2"))
2980 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2981 (build-system cmake-build-system)
2983 `(#:tests? #f ; no check target
2985 (modify-phases %standard-phases
2987 'unpack 'use-full-library-paths
2988 (lambda* (#:key inputs #:allow-other-keys)
2989 (substitute* "alc/backends/pulseaudio.cpp"
2990 (("#define PALIB \"libpulse\\.so\\.0\"")
2991 (string-append "#define PALIB \""
2992 (assoc-ref inputs "pulseaudio")
2993 "/lib/libpulse.so.0"
2995 (substitute* "alc/backends/alsa.cpp"
2996 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2997 (string-append "LoadLib(\""
2998 (assoc-ref inputs "alsa-lib")
2999 "/lib/libasound.so.2"
3003 (list alsa-lib pulseaudio))
3004 (synopsis "3D audio API")
3006 "OpenAL provides capabilities for playing audio in a virtual 3D
3007 environment. Distance attenuation, doppler shift, and directional sound
3008 emitters are among the features handled by the API. More advanced effects,
3009 including air absorption, occlusion, and environmental reverb, are available
3010 through the EFX extension. It also facilitates streaming audio, multi-channel
3011 buffers, and audio capture.")
3012 (home-page "https://openal-soft.org/")
3013 (license license:lgpl2.0+)))
3015 (define-public freealut
3021 ;; Upstream url is unclear, many systems use Fedora, there is also
3022 ;; https://github.com/vancegroup/freealut though the status of it
3023 ;; (official? unofficial?) is not clear.
3025 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
3026 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
3027 "-" version ".tar.gz"))
3030 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
3031 (build-system cmake-build-system)
3033 `(#:tests? #f)) ; no check target
3036 (synopsis "Free implementation of OpenAL's ALUT standard")
3037 (description "freealut is the OpenAL Utility Toolkit.")
3038 (home-page "https://kcat.strangesoft.net/openal.html")
3039 (license license:lgpl2.0)))
3041 (define-public patchage
3047 (uri (string-append "https://download.drobilla.net/patchage-"
3052 "0gbakiw3mikgbvy3pssrmqmn7z5c7kp4vyaxj5rs4jnkscxgw9vw"))))
3053 (build-system waf-build-system)
3055 `(#:tests? #f)) ; no check target
3066 (home-page "https://drobilla.net/software/patchage.html")
3067 (synopsis "Modular patch bay for audio and MIDI systems")
3069 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
3071 (license license:gpl3+)))
3073 (define-public pcaudiolib
3077 (home-page "https://github.com/espeak-ng/pcaudiolib")
3080 (uri (git-reference (url home-page) (commit version)))
3081 (file-name (git-file-name name version))
3084 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
3085 (build-system gnu-build-system)
3087 `(#:configure-flags '("--disable-static")))
3089 (list autoconf automake libtool pkg-config which))
3091 (list alsa-lib pulseaudio))
3092 (synopsis "Portable C audio library")
3094 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
3095 different audio devices such as ALSA or PulseAudio.")
3096 (license (list license:gpl3+
3097 ;; The bundled TPCircularBuffer uses a custom license.
3098 (license:non-copyleft
3099 "file://src/TPCircularBuffer/README.markdown")))))
3101 (define-public qjackctl
3107 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
3108 version "/qjackctl-" version ".tar.gz"))
3111 "1rvxgxd7bbv7yazcpw3ily0jlra8ms5c0kkf7cybgivahw59zk87"))))
3112 (build-system cmake-build-system)
3114 '(#:tests? #f)) ; no check target
3122 (list pkg-config qttools-5))
3123 (home-page "https://qjackctl.sourceforge.io/")
3124 (synopsis "Jack server control application")
3125 (description "Control a Jack server. Allows you to plug various sources
3126 into various outputs and to start, stop and configure jackd")
3127 (license license:gpl2+)))
3129 (define-public qjackrcd
3136 (url "https://github.com/orouits/qjackrcd")
3137 (commit (string-append "v" version))))
3138 (file-name (git-file-name name version))
3141 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
3142 (build-system gnu-build-system)
3145 (modify-phases %standard-phases
3147 (lambda* (#:key outputs #:allow-other-keys)
3149 (string-append "PREFIX="
3150 (assoc-ref outputs "out"))))))))
3152 (list qtbase-5)) ; for qmake
3154 (list jack-1 libsndfile qtbase-5))
3155 (home-page "https://sourceforge.net/projects/qjackrcd/")
3156 (synopsis "Stereo audio recorder for JACK")
3157 (description "QJackRcd is a simple graphical stereo recorder for JACK
3158 supporting silence processing for automatic pause, file splitting, and
3159 background file post-processing.")
3160 (license license:gpl2+)))
3162 (define-public supercollider
3164 (name "supercollider")
3170 (url "https://github.com/supercollider/supercollider")
3171 (commit (string-append "Version-" version))
3172 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
3174 (file-name (git-file-name name version))
3177 "0id522338a464j1slcspajwc7klypbc9qpigw5mqjhrw970wij5z"))
3178 (modules '((guix build utils)
3181 ;; The build system doesn't allow us to unbundle the following
3182 ;; libraries. hidapi is also heavily patched and upstream not
3183 ;; actively maintained.
3184 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
3185 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
3186 (with-directory-excursion "./external_libraries"
3188 delete-file-recursively
3191 (and (eq? (stat:type (stat x)) 'directory)
3192 (not (member (basename x) keep-dirs)))))))
3193 ;; To find the Guix provided ableton-link library.
3194 (substitute* "lang/CMakeLists.txt"
3195 (("include\\(\\.\\./external_libraries/link/\
3196 AbletonLinkConfig\\.cmake\\)")
3197 "find_package(AbletonLink NAMES AbletonLink ableton-link \
3198 link REQUIRED)"))))))
3199 (build-system cmake-build-system)
3201 '("out" ;core language
3204 `(#:configure-flags '("-DSYSTEM_BOOST=ON"
3205 "-DSYSTEM_YAMLCPP=ON"
3207 "-DCMAKE_BUILD_TYPE=Release"
3209 ;; "-DLIBSCSYNTH=ON" ; TODO: Re-enable?
3210 "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel
3212 (modify-phases %standard-phases
3213 ;; HOME must be defined otherwise supercollider throws a "ERROR:
3214 ;; Primitive '_FileMkDir' failed." error when generating the doc.
3215 ;; The graphical tests also hang without it.
3216 (add-after 'unpack 'set-home-directory
3218 (setenv "HOME" (getcwd))))
3219 (add-after 'unpack 'patch-scclass-dir
3220 (lambda* (#:key outputs #:allow-other-keys)
3221 (let* ((out (assoc-ref outputs "out"))
3224 "/share/SuperCollider/SCClassLibrary")))
3225 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
3227 "SC_Filesystem::instance\\(\\)\\.getDirectory"
3228 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
3229 (string-append "Path(\"" scclass-dir "\")"))))))
3230 (add-before 'build 'prepare-x
3233 (setenv "DISPLAY" ":0")))
3234 (add-before 'install 'install-ide
3235 (lambda* (#:key outputs #:allow-other-keys)
3236 (let* ((out (assoc-ref outputs "out"))
3237 (ide (assoc-ref outputs "ide"))
3238 (scide "editors/sc-ide/scide"))
3240 (string-append ide "/bin"))
3241 (delete-file scide)))))))
3243 (list ableton-link pkg-config qttools-5 xorg-server-for-tests))
3244 (inputs (list jack-1
3248 readline ;readline support for sclang's CLI
3249 alsa-lib ;for sclang's MIDI interface
3250 eudev ;for user interactions with devices
3251 avahi ;zeroconf service discovery support
3261 (propagated-inputs ;to get native-search-path
3262 (list qtwebengine-5))
3263 (home-page "https://github.com/supercollider/supercollider")
3264 (synopsis "Synthesis engine and programming language")
3265 (description "SuperCollider is a synthesis engine (@code{scsynth} or
3266 @code{supernova}) and programming language (@code{sclang}). It can be used
3267 for experimenting with sound synthesis and algorithmic composition.
3269 SuperCollider requires jackd to be installed in your user profile and your
3270 user must be allowed to access the realtime features of the kernel. Search
3271 for \"realtime\" in the index of the Guix manual to learn how to achieve this
3272 using Guix System.")
3273 (license license:gpl2+)))
3275 (define-public libshout-idjc
3277 (name "libshout-idjc")
3282 (uri (string-append "mirror://sourceforge/libshoutidjc.idjc.p"
3283 "/libshout-idjc-" version ".tar.gz"))
3285 (base32 "1r9z8ggxylr2ab0isaljbm574rplnlcb12758j994h54nh2vikwb"))))
3286 (build-system gnu-build-system)
3290 (list libogg libtheora libvorbis speex))
3291 (home-page "http://idjc.sourceforge.net/")
3292 (synopsis "Broadcast streaming library with IDJC extensions")
3293 (description "This package provides libshout plus IDJC extensions.")
3294 ;; GNU Library (not Lesser) General Public License.
3295 (license license:lgpl2.0+)))
3297 (define-public resample
3303 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
3307 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
3308 (build-system gnu-build-system)
3310 (list autoconf automake pkg-config libtool))
3311 (synopsis "Sampling rate conversion and filter design utilities")
3312 (description "This package contains the @command{resample} and
3313 @command{windowfilter} command line utilities. The @command{resample} command
3314 allows changing the sampling rate of a sound file, while the
3315 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
3316 filters using the so-called @emph{window method}.")
3317 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
3318 (license license:lgpl2.1+)))
3320 (define-public rubberband
3327 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
3330 (file-name (string-append name "-" version ".tar.bz2"))
3333 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
3334 (build-system gnu-build-system)
3336 `(#:tests? #f ; no check target
3338 (modify-phases %standard-phases
3339 (add-after 'unpack 'skip-jni-installation
3340 ;; ‘make install’ unconditionally installs librubberband-jni.so,
3341 ;; which is never built by ‘make all’. Skip it.
3343 (substitute* "Makefile.in"
3344 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
3347 (list ladspa libsamplerate vamp))
3350 (home-page "https://breakfastquay.com/rubberband/")
3351 (synopsis "Audio time-stretching and pitch-shifting library")
3353 "Rubber Band is a library and utility program that permits changing the
3354 tempo and pitch of an audio recording independently of one another.")
3355 (license license:gpl2+)))
3357 (define-public rtmidi
3363 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3364 "/release/rtmidi-" version ".tar.gz"))
3365 (file-name (string-append "rtmidi-" version ".tar.gz"))
3368 "1ff2yfq3k4l209fr71v3w98fpjjv1chs09vkbmxj03lcikahxns8"))))
3369 (build-system gnu-build-system)
3371 (list jack-1 alsa-lib))
3373 (list autoconf automake libtool pkg-config))
3374 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3375 (synopsis "Cross-platform MIDI library for C++")
3377 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3378 classes) that provide a common cross-platform API for realtime MIDI
3380 (license license:expat)))
3382 (define-public rtmidi-4.0
3388 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3389 "/release/rtmidi-" version ".tar.gz"))
3390 (file-name (string-append "rtmidi-" version ".tar.gz"))
3393 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))))
3395 (define-public sratom
3401 (uri (string-append "https://download.drobilla.net/sratom-"
3402 version ".tar.bz2"))
3405 "178v90qvsp6lw4sqdmdz0bzyjkgwhv9m75ph1d1z8say5bv0p4gv"))))
3406 (build-system waf-build-system)
3407 (arguments `(#:tests? #f)) ;no check target
3409 ;; In Requires of sratom-0.pc.
3410 (list lv2 serd sord))
3413 (home-page "https://drobilla.net/software/sratom/")
3414 (synopsis "Library for serialising LV2 atoms to/from RDF")
3416 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3417 the Turtle syntax.")
3418 (license license:isc)))
3426 (uri (string-append "https://download.drobilla.net/suil-"
3427 version ".tar.bz2"))
3430 "1ysbazqlbyxlzyr9zk7dj2mgb6pn0amllj2cd5g1m56wnzk0h3vm"))))
3431 (build-system waf-build-system)
3433 `(#:tests? #f)) ;no check target
3441 (home-page "https://drobilla.net/software/suil/")
3442 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3444 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3446 Suil makes it possible to load a UI of a toolkit in a host using another
3447 toolkit. The API is designed such that hosts do not need to explicitly
3448 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3449 that toolkit will work in all hosts that use Suil automatically.
3451 Suil currently supports every combination of Gtk, Qt, and X11.")
3452 (license license:isc)))
3454 (define-public libebur128
3462 (url "https://github.com/jiixyj/libebur128")
3463 (commit (string-append "v" version))))
3464 (file-name (git-file-name name version))
3466 (base32 "0xkpz5rzz1j1srhprbh89669gw8z5f1njpvcnxqgf7qax69vd8sh"))))
3467 (build-system cmake-build-system)
3469 `(;; Tests require proprietary .wav files. See
3470 ;; https://github.com/jiixyj/libebur128/issues/82.
3472 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3473 (home-page "https://github.com/jiixyj/libebur128")
3474 (synopsis "Library implementing the EBU R 128 loudness standard")
3476 "@code{libebur128} is a C library that implements the EBU R 128 standard
3477 for loudness normalisation.")
3478 (license license:expat)))
3480 (define-public timidity++
3486 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3487 "/TiMidity++-" version
3488 "/TiMidity++-" version ".tar.bz2"))
3491 "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn"))))
3492 (build-system gnu-build-system)
3495 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3499 (string-append "--with-default-path="
3500 (assoc-ref %outputs "out") "/etc/timidity"))
3502 (modify-phases %standard-phases
3503 (add-after 'install 'install-config
3505 (let ((out (string-append (assoc-ref %outputs "out")
3508 (call-with-output-file
3509 (string-append out "/timidity.cfg")
3511 (format port (string-append "source "
3512 (assoc-ref %build-inputs "freepats")
3513 "/share/freepats/freepats.cfg")))))
3527 (home-page "http://timidity.sourceforge.net/")
3528 (synopsis "Software synthesizer for playing MIDI files")
3530 "TiMidity++ is a software synthesizer. It can play MIDI files by
3531 converting them into PCM waveform data; give it a MIDI data along with digital
3532 instrument data files, then it synthesizes them in real-time, and plays. It
3533 can not only play sounds, but also can save the generated waveforms into hard
3534 disks as various audio file formats.")
3535 (license license:gpl2+)))
3544 "https://code.soundsoftware.ac.uk"
3545 "/attachments/download/1520/vamp-plugin-sdk-"
3549 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3550 (build-system gnu-build-system)
3552 `(#:tests? #f ; no check target
3554 (modify-phases %standard-phases
3555 (add-after 'install 'remove-libvamp-hostsdk.la
3556 (lambda* (#:key outputs #:allow-other-keys)
3557 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3558 (for-each delete-file
3559 (let ((out (assoc-ref outputs "out")))
3560 (list (string-append out "/lib/libvamp-sdk.la")
3561 (string-append out "/lib/libvamp-hostsdk.la"))))
3567 (home-page "https://vamp-plugins.org")
3568 (synopsis "Modular and extensible audio processing system")
3570 "Vamp is an audio processing plugin system for plugins that extract
3571 descriptive information from audio data — typically referred to as audio
3572 analysis plugins or audio feature extraction plugins.")
3575 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3577 (define-public libsbsms
3584 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3585 "/libsbsms-" version ".tar.gz"))
3587 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3588 (build-system gnu-build-system)
3589 (native-inputs (list automake))
3592 ;; Disable the use of SSE unless on x86_64.
3593 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3594 (%current-system))))
3598 (modify-phases %standard-phases
3600 'unpack 'fix-ar-lib-path
3601 (lambda* (#:key inputs #:allow-other-keys)
3602 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3603 (delete-file "ar-lib")
3605 (search-input-file inputs
3606 (string-append "/share/automake-"
3607 ,(package-version automake)
3611 (home-page "http://sbsms.sourceforge.net/")
3612 (synopsis "Library for time stretching and pitch scaling of audio")
3614 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3615 stretching and pitch scaling of audio. This package contains the library.")
3616 ;; There is no explicit declaration of a license, but a COPYING file
3618 (license license:gpl2)))
3620 (define-public libkeyfinder
3622 (name "libkeyfinder")
3628 (url "https://github.com/mixxxdj/libkeyfinder")
3630 (file-name (git-file-name name version))
3632 (base32 "0nvhdzy0m3bchk3dpnspv2f518p2v9fjcrv36z1sva1pv9a2g35w"))))
3633 (build-system cmake-build-system)
3638 (home-page "https://mixxxdj.github.io/libkeyfinder/")
3639 (synopsis "Musical key detection for digital audio")
3641 "@code{libkeyfinder} is a small C++11 library for estimating the musical
3642 key of digital audio.")
3643 (license license:gpl3+)))
3645 (define-public wavpack
3652 (uri (string-append "https://github.com/dbry/WavPack/releases/download/"
3653 version "/wavpack-" version ".tar.xz"))
3655 (base32 "0ycbqarw25x7208jilh86vwwiqklr7f617jps9mllqc659mnmpjb"))))
3656 (build-system gnu-build-system)
3659 (list "--disable-static"
3662 (modify-phases %standard-phases
3664 (lambda* (#:key tests? #:allow-other-keys)
3666 (invoke "./cli/wvtest" "--default" "--short"))
3668 (home-page "https://www.wavpack.com/")
3669 (synopsis "Hybrid lossless audio codec")
3671 "WavPack is an audio compression format with lossless, lossy and hybrid
3672 compression modes. This package contains command-line programs and library to
3673 encode and decode wavpack files.")
3674 (license license:bsd-3)))
3676 (define-public libmodplug
3683 "mirror://sourceforge/modplug-xmms/"
3684 name "/" version "/" name "-" version ".tar.gz"))
3687 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3688 (build-system gnu-build-system)
3689 (home-page "http://modplug-xmms.sourceforge.net/")
3690 (synopsis "Mod file playing library")
3692 "Libmodplug renders mod music files as raw audio data, for playing or
3693 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3694 supported. Optional features include high-quality resampling, bass expansion,
3695 surround and reverb.")
3696 (license license:public-domain)))
3698 (define-public libxmp
3704 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3705 name "-" version ".tar.gz"))
3708 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3709 (build-system gnu-build-system)
3710 (home-page "http://xmp.sourceforge.net/")
3711 (synopsis "Module player library")
3713 "Libxmp is a library that renders module files to PCM data. It supports
3714 over 90 mainstream and obscure module formats including Protracker (MOD),
3715 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3716 (license license:lgpl2.1+)))
3724 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3725 name "-" version ".tar.gz"))
3728 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3729 (build-system gnu-build-system)
3733 (list libxmp pulseaudio))
3734 (home-page "http://xmp.sourceforge.net/")
3735 (synopsis "Extended module player")
3737 "Xmp is a portable module player that plays over 90 mainstream and
3738 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3739 Tracker 3 S3M and Impulse Tracker IT files.")
3740 (license license:gpl2+)))
3742 (define-public soundtouch
3750 (url "https://gitlab.com/soundtouch/soundtouch.git")
3752 (file-name (git-file-name name version))
3754 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3755 (build-system gnu-build-system)
3757 (list autoconf automake libtool file))
3758 (home-page "https://www.surina.net/soundtouch/")
3760 "Audio processing library for changing tempo, pitch and playback rate")
3762 "SoundTouch is an audio processing library for changing the tempo, pitch
3763 and playback rates of audio streams or audio files. It is intended for
3764 application developers writing sound processing tools that require tempo/pitch
3765 control functionality, or just for playing around with the sound effects.")
3766 (license license:lgpl2.1+)))
3774 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3775 name "-" version ".tar.bz2"))
3778 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3779 (build-system gnu-build-system)
3782 ;; The upstream asks to identify the distribution to diagnose SoX
3784 '("--with-distro=Guix System Distribution")))
3798 (home-page "http://sox.sourceforge.net")
3799 (synopsis "Sound processing utility")
3801 "SoX (Sound eXchange) is a command line utility that can convert
3802 various formats of computer audio files to other formats. It can also
3803 apply various effects to these sound files, and, as an added bonus, SoX
3804 can play and record audio files.")
3805 ;; sox.c is distributed under GPL, while the files that make up
3806 ;; libsox are licensed under LGPL.
3807 (license (list license:gpl2+ license:lgpl2.1+))))
3817 (string-append "mirror://sourceforge/soxr/soxr-" version
3820 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3821 (build-system cmake-build-system)
3822 (arguments '(#:tests? #f)) ;no 'check' target
3823 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3824 (synopsis "One-dimensional sample-rate conversion library")
3826 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3827 conversion. It may be used, for example, to resample PCM-encoded audio.")
3828 (license license:lgpl2.1+)))
3830 (define-public twolame
3837 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3838 "/twolame-" version ".tar.gz"))
3840 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3841 (build-system gnu-build-system)
3845 (list perl which)) ;used in tests/test.pl
3846 (home-page "https://www.twolame.org/")
3847 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3849 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3850 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3852 (license license:lgpl2.1+)))
3854 (define-public portaudio
3857 (version "190600.20161030")
3862 "http://www.portaudio.com/archives/pa_stable_v"
3863 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3866 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3867 (patches (search-patches "portaudio-audacity-compat.patch"))))
3868 (build-system gnu-build-system)
3870 ;; TODO: Add ASIHPI.
3871 (list alsa-lib jack-1))
3872 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3875 (list autoconf automake libtool pkg-config))
3877 '(#:tests? #f ;no 'check' target
3878 #:parallel-build? #f ;fails on some systems
3879 #:configure-flags '("--with-pic"
3881 ;; XXX: The following prevents a build error
3882 ;; because of missing depcomp when C++ bindings are
3884 "--disable-dependency-tracking")
3886 (modify-phases %standard-phases
3887 ;; This is needed for linking the static libraries
3888 (add-after 'unpack 'build-only-position-independent-code
3890 (substitute* "configure.in"
3891 (("AC_PROG_LIBTOOL" m)
3892 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3893 (delete-file "configure")
3895 ;; Some headers are not installed by default, but are needed by
3896 ;; packages like Kaldi.
3897 (add-after 'install 'install-missing-headers
3898 (lambda* (#:key outputs #:allow-other-keys)
3899 (install-file "src/common/pa_ringbuffer.h"
3900 (string-append (assoc-ref outputs "out") "/include"))
3902 (home-page "http://www.portaudio.com/")
3903 (synopsis "Audio I/O library")
3905 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3906 to record and/or play sound using a callback function or a blocking read/write
3908 (license license:expat)))
3910 (define-public qsynth
3918 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3919 "/qsynth-" version ".tar.gz")
3920 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3921 "/qsynth-" version ".tar.gz")))
3923 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3924 (build-system gnu-build-system)
3926 `(#:tests? #f)) ; no "check" phase
3928 (list qttools-5 pkg-config))
3930 (list fluidsynth qtbase-5 qtx11extras))
3931 (home-page "https://qsynth.sourceforge.io")
3932 (synopsis "Graphical user interface for FluidSynth")
3934 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3935 synthesizer written in C++.")
3936 (license license:gpl2+)))
3938 (define-public rsound
3946 (url "https://github.com/Themaister/RSound")
3947 (commit (string-append "v" version))))
3948 (file-name (git-file-name name version))
3950 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3951 (build-system gnu-build-system)
3962 (modify-phases %standard-phases
3964 (lambda* (#:key outputs #:allow-other-keys)
3966 (invoke "./configure"
3967 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3968 ;; No 'check' target.
3970 (home-page "https://themaister.net/rsound.html")
3971 (synopsis "Networked audio system")
3973 "RSound allows you to send audio from an application and transfer it
3974 directly to a different computer on your LAN network. It is an audio daemon
3975 with a much different focus than most other audio daemons.")
3976 (license license:gpl3+)))
3978 (define-public xjackfreak
3985 (url "https://github.com/johnhldavis/xjackfreak")
3986 (commit (string-append "v" version))))
3987 (file-name (git-file-name name version))
3990 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3991 (build-system gnu-build-system)
3994 (list (string-append "docdir=" (assoc-ref %outputs "out")
3995 "/share/doc/xjackfreak"))))
3997 (list jack-1 libx11 libxt libxext))
4000 (home-page "https://github.com/johnhldavis/xjackfreak")
4001 (synopsis "JACK audio frequency analyzer and display")
4003 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
4004 Connection Kit. It can display the FFT of any input, modify it and output the
4006 (license license:gpl3+)))
4008 (define-public zita-convolver
4010 (name "zita-convolver")
4015 "http://kokkinizita.linuxaudio.org"
4016 "/linuxaudio/downloads/zita-convolver-"
4017 version ".tar.bz2"))
4019 ;; Don't optimize for a specific processor architecture.
4021 (substitute* "source/Makefile"
4022 (("^CXXFLAGS \\+= -march=native") ""))
4024 (modules '((guix build utils)))
4027 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
4028 (build-system gnu-build-system)
4030 `(#:tests? #f ; no "check" target
4032 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4033 (string-append "SUFFIX="))
4035 (modify-phases %standard-phases
4036 (add-after 'unpack 'patch-makefile-and-enter-directory
4038 (substitute* "source/Makefile"
4039 (("ldconfig") "true")
4040 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4043 (add-after 'install 'install-symlink
4045 (symlink "libzita-convolver.so"
4046 (string-append (assoc-ref %outputs "out")
4047 "/lib/libzita-convolver.so.4"))
4049 ;; no configure script
4050 (delete 'configure))))
4051 (inputs (list fftwf))
4052 (home-page "https://kokkinizita.linuxaudio.org")
4053 (synopsis "Fast, partitioned convolution engine library")
4055 "Zita convolver is a C++ library providing a real-time convolution
4057 (license license:gpl3+)))
4059 (define-public zita-resampler
4061 (name "zita-resampler")
4066 "http://kokkinizita.linuxaudio.org"
4067 "/linuxaudio/downloads/zita-resampler-"
4068 version ".tar.bz2"))
4070 ;; Don't optimize for a specific processor architecture.
4072 (substitute* '("apps/Makefile" "source/Makefile")
4073 (("^CXXFLAGS \\+= -march=native") ""))
4075 (modules '((guix build utils)))
4078 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
4079 (build-system gnu-build-system)
4081 `(#:tests? #f ; no "check" target
4083 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4084 (string-append "SUFFIX="))
4086 (modify-phases %standard-phases
4088 'unpack 'patch-makefile-and-enter-directory
4090 (substitute* "source/Makefile"
4091 (("ldconfig") "true")
4092 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4096 'install 'install-symlink
4098 (symlink "libzita-resampler.so"
4099 (string-append (assoc-ref %outputs "out")
4100 "/lib/libzita-resampler.so.1"))
4102 ;; no configure script
4103 (delete 'configure))))
4104 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
4105 (synopsis "C++ library for resampling audio signals")
4107 "Libzita-resampler is a C++ library for resampling audio signals. It is
4108 designed to be used within a real-time processing context, to be fast, and to
4109 provide high-quality sample rate conversion.")
4110 (license license:gpl3+)))
4112 (define-public zita-alsa-pcmi
4114 (name "zita-alsa-pcmi")
4119 "http://kokkinizita.linuxaudio.org"
4120 "/linuxaudio/downloads/zita-alsa-pcmi-"
4121 version ".tar.bz2"))
4124 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
4125 (build-system gnu-build-system)
4127 `(#:tests? #f ; no "check" target
4129 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4130 (string-append "SUFFIX="))
4132 (modify-phases %standard-phases
4133 (add-after 'unpack 'patch-makefile-and-enter-directory
4135 (substitute* "source/Makefile"
4136 (("ldconfig") "true")
4137 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4140 (add-after 'install 'install-symlink
4142 (symlink "libzita-alsa-pcmi.so"
4143 (string-append (assoc-ref %outputs "out")
4144 "/lib/libzita-alsa-pcmi.so.0"))
4146 ;; no configure script
4147 (delete 'configure))))
4149 (list alsa-lib fftw))
4150 (home-page "https://kokkinizita.linuxaudio.org")
4151 (synopsis "C++ wrapper around the ALSA API")
4153 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
4154 access to ALSA PCM devices, taking care of the many functions required to
4155 open, initialise and use a hw: device in mmap mode, and providing floating
4157 (license license:gpl3+)))
4159 (define-public cuetools
4166 (url "https://github.com/svend/cuetools")
4168 (file-name (git-file-name name version))
4171 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
4172 (build-system gnu-build-system)
4173 ;; The source checkout is not bootstrapped.
4175 (list autoconf automake flex bison))
4176 (synopsis "Cue and toc file parsers and utilities")
4177 (description "Cuetools is a set of programs that are useful for manipulating
4178 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
4179 files are a way to represent the layout of a data or audio CD in a
4180 machine-readable ASCII format.")
4181 (home-page "https://github.com/svend/cuetools")
4182 (license license:gpl2+)))
4184 (define-public mp3guessenc
4186 (name "mp3guessenc")
4191 (uri (string-append "mirror://sourceforge/mp3guessenc/mp3guessenc-"
4192 (version-major+minor version) "/mp3guessenc-"
4195 (base32 "1fa3sbwwn4p2v1749lzy040bfy1xfd574mf2frwgg9ikgk3vlb3c"))))
4196 (build-system gnu-build-system)
4198 `(#:tests? #f ; no tests
4200 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4202 (modify-phases %standard-phases
4203 (delete 'configure)))) ; no configure phase
4204 (home-page "https://mp3guessenc.sourceforge.io")
4205 (synopsis "Analyze MPEG layer I/II/III files")
4206 (description "mp3guessenc is a command line utility that tries to detect the
4207 encoder used for an MPEG Layer III (MP3) file, as well as scan any MPEG audio
4208 file (any layer) and print a lot of useful information.")
4209 (license license:lgpl2.1+)))
4211 (define-public shntool
4218 (string-append "http://etree.org/shnutils/shntool/dist/src/"
4219 "shntool-" version ".tar.gz")
4220 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
4221 version ".orig.tar.gz")))
4224 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
4225 (build-system gnu-build-system)
4226 (synopsis "WAVE audio data processing tool")
4227 (description "shntool is a multi-purpose WAVE data processing and reporting
4228 utility. File formats are abstracted from its core, so it can process any file
4229 that contains WAVE data, compressed or not---provided there exists a format
4230 module to handle that particular file type. It can also generate CUE files, and
4231 use them split WAVE data into multiple files.")
4232 (home-page "http://etree.org/shnutils/shntool/")
4233 ;; 'install-sh' bears the x11 license
4234 (license (list license:gpl2+ license:x11))))
4236 (define-public dcadec
4243 (url "https://github.com/foo86/dcadec")
4244 (commit (string-append "v" version))))
4245 (file-name (git-file-name name version))
4248 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
4249 (build-system gnu-build-system)
4251 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
4254 (list (string-append "CC=" ,(cc-for-target))
4255 ;; Build shared library.
4257 (string-append "PREFIX=" (assoc-ref %outputs "out"))
4258 ;; Set proper runpath.
4259 (string-append "LDFLAGS=-Wl,-rpath="
4260 (assoc-ref %outputs "out")
4263 (modify-phases %standard-phases
4264 ;; No configure script, just a hand-written Makefile.
4265 (delete 'configure))))
4266 (synopsis "DTS Coherent Acoustics decoder")
4267 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
4268 with support for HD extensions.")
4269 (home-page "https://github.com/foo86/dcadec")
4270 (license license:lgpl2.1+)))
4279 (uri (string-append "mirror://sourceforge/drc-fir/drc-fir/"
4280 version "/drc-" version ".tar.gz"))
4283 "08ljj4776pjx119zjmfqa8w56bf7x0m7spmi27yk1m455bmiglrj"))))
4284 (build-system gnu-build-system)
4287 #:tests? #false ;there are none
4289 #~(list (string-append "INSTALL_PREFIX=" #$output)
4292 '(modify-phases %standard-phases
4293 (delete 'configure))))
4294 (inputs (list fftw))
4295 (home-page "http://drc-fir.sourceforge.net/")
4296 (synopsis "Digital room correction")
4298 "DRC is a program used to generate correction filters for acoustic
4299 compensation of HiFi and audio systems in general, including listening room
4300 compensation. DRC generates just the FIR correction filters, which can be
4301 used with a real time or offline convolver to provide real time or offline
4302 correction. DRC doesn't provide convolution features, and provides only some
4303 simplified, although really accurate, measuring tools.")
4304 (license license:gpl2+)))
4306 (define-public bs1770gain
4310 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
4314 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
4315 version "/bs1770gain-" version ".tar.gz"))
4317 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
4318 (modules '((guix build utils)))
4322 (substitute* (find-files "." "\\.[ch]$")
4323 (("^ \\* N..o.*") ""))
4324 (substitute* "libbg/bgx.c"
4325 (("#define BG.* ") "#define BS ")
4326 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
4327 (("\"( #|N).*\"") "\"\""))
4328 (substitute* (list "config.h"
4331 (("https?://bs1770gain[^/]*/")
4334 (build-system gnu-build-system)
4335 (inputs (list ffmpeg sox))
4336 (synopsis "Tool to adjust loudness of media files")
4338 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
4339 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
4340 loudness of audio and video files to the same level.")
4341 (license license:gpl2+)))
4343 (define-public filteraudio
4344 (let ((revision "1")
4345 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
4347 (name "filteraudio")
4348 (version (string-append "0.0.0-" revision "."
4349 (string-take commit 7)))
4354 (url "https://github.com/irungentoo/filter_audio")
4356 (file-name (string-append name "-" version "-checkout"))
4359 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
4360 (build-system gnu-build-system)
4362 `(#:make-flags (list (string-append "PREFIX=" %output)
4363 (string-append "CC=" ,(cc-for-target)))
4364 #:tests? #f ; No tests
4366 (modify-phases %standard-phases
4367 ;; No configure script
4368 (delete 'configure))))
4369 (synopsis "Lightweight audio filtering library")
4370 (description "An easy to use audio filtering library made from webrtc
4371 code, used in @code{libtoxcore}.")
4372 (home-page "https://github.com/irungentoo/filter_audio")
4373 (license license:bsd-3))))
4383 (string-append "http://www.quut.com/" name "/" name
4384 "-" version ".tar.gz"))
4386 (base32 "1gwhmqs24c14gc9qr91iqb2jkbr3qqy4dvf27yf8j7mq322w65b3"))))
4387 (build-system gnu-build-system)
4389 `(#:test-target "tst"
4390 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
4392 (modify-phases %standard-phases
4393 (add-after 'unpack 'add-fpic-ccflag
4395 ;; The -fPIC compiler option is needed when building
4397 (substitute* "Makefile"
4399 (string-append all "CCFLAGS += -fPIC\n")))))
4400 (add-before 'install 'pre-install
4402 (let ((out (assoc-ref %outputs "out")))
4403 (mkdir-p (string-append out "/inc"))
4404 (mkdir-p (string-append out "/man"))
4405 (mkdir-p (string-append out "/man/man1"))
4406 (mkdir-p (string-append out "/man/man3"))
4407 (mkdir-p (string-append out "/bin"))
4408 (mkdir-p (string-append out "/lib")))))
4409 (add-after 'install 'post-install
4411 (let ((out (assoc-ref %outputs "out")))
4412 (rename-file (string-append out "/inc")
4413 (string-append out "/include"))
4414 (mkdir-p (string-append out "/include/gsm"))
4415 (copy-recursively "inc"
4416 (string-append out "/include/gsm")))))
4417 (delete 'configure)))) ; no configure script
4418 (synopsis "GSM 06.10 lossy speech compression library")
4419 (description "This C library provides an encoder and a decoder for the GSM
4420 06.10 RPE-LTP lossy speech compression algorithm.")
4421 (home-page "http://quut.com/gsm/")
4422 (license (license:non-copyleft "file://COPYRIGHT"))))
4424 (define-public python-pyalsaaudio
4426 (name "python-pyalsaaudio")
4430 (uri (pypi-uri "pyalsaaudio" version))
4433 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
4434 (build-system python-build-system)
4436 `(#:tests? #f)) ; tests require access to ALSA devices.
4439 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4440 (synopsis "ALSA wrappers for Python")
4442 "This package contains wrappers for accessing the ALSA API from Python.
4443 It is currently fairly complete for PCM devices, and has some support for
4445 (license license:psfl)))
4447 (define-public ldacbt
4453 (uri (string-append "https://github.com/EHfive/ldacBT"
4454 "/releases/download/v" version
4455 "/ldacBT-" version ".tar.gz"))
4458 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4459 (build-system cmake-build-system)
4460 (arguments `(#:tests? #f)) ; no check target
4461 (home-page "https://github.com/EHfive/ldacBT/")
4462 (synopsis "LDAC Bluetooth encoder and ABR library")
4463 (description "This package provides an encoder for the LDAC
4464 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4465 kbps at 24 bit/96 kHz.")
4466 (license license:asl2.0)))
4468 (define-public bluez-alsa
4473 ;; The tarballs are mere snapshots and don't contain a
4474 ;; bootstrapped build system.
4477 (url "https://github.com/Arkq/bluez-alsa")
4478 (commit (string-append "v" version))))
4479 (file-name (git-file-name name version))
4482 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4483 (build-system gnu-build-system)
4486 (list "--enable-ldac"
4487 (string-append "--with-alsaplugindir="
4488 (assoc-ref %outputs "out")
4490 (string-append "--with-dbusconfdir="
4491 (assoc-ref %outputs "out")
4492 "/etc/dbus-1/system.d"))))
4494 (list autoconf automake libtool pkg-config))
4505 (home-page "https://github.com/Arkq/bluez-alsa")
4506 (synopsis "Bluetooth ALSA backend")
4507 (description "This project is a rebirth of a direct integration between
4508 Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed
4509 in favor of 3rd party audio applications. From now on, Bluez acts as a
4510 middleware between an audio application, which implements Bluetooth audio
4511 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4512 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4513 capabilities) can be connected. In order to access the audio stream, one has
4514 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4515 on the ALSA software PCM plugin.")
4516 (license license:expat)))
4524 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4525 "snd-" version ".tar.gz"))
4528 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4529 (build-system glib-or-gtk-build-system)
4531 `(#:tests? #f ; no tests
4532 #:out-of-source? #f ; for the 'install-doc' phase
4534 (let* ((out (assoc-ref %outputs "out"))
4535 (docdir (string-append out "/share/doc/"
4536 ,name "-" ,version)))
4537 (list "--with-alsa" "--with-jack" "--with-gmp"
4538 (string-append "--with-doc-dir=" docdir)))
4540 (modify-phases %standard-phases
4541 (add-after 'install 'install-doc
4542 (lambda* (#:key outputs #:allow-other-keys)
4543 (let* ((out (assoc-ref outputs "out"))
4544 (doc (string-append out "/share/doc/"
4545 ,name "-" ,version)))
4548 (install-file f doc))
4549 (find-files "." "\\.html$"))
4550 (copy-recursively "pix" (string-append doc "/pix"))
4570 (synopsis "Sound editor")
4571 (home-page "https://ccrma.stanford.edu/software/snd/")
4573 "Snd is a sound editor modelled loosely after Emacs. It can be
4574 customized and extended using either the s7 Scheme implementation (included in
4575 the Snd sources), Ruby, or Forth.")
4576 (license (license:non-copyleft "file://COPYING"))))
4578 (define-public noise-repellent
4580 (name "noise-repellent")
4585 (url "https://github.com/lucianodato/noise-repellent")
4587 (file-name (string-append name "-" version "-checkout"))
4590 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4591 (build-system meson-build-system)
4594 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4600 (home-page "https://github.com/lucianodato/noise-repellent")
4601 (synopsis "LV2 plugin for broadband noise reduction")
4602 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4603 the following features:
4606 @item Spectral gating and spectral subtraction suppression rule
4607 @item Adaptive and manual noise thresholds estimation
4608 @item Adjustable noise floor
4609 @item Adjustable offset of thresholds to perform over-subtraction
4610 @item Time smoothing and a masking estimation to reduce artifacts
4611 @item Basic onset detector to avoid transients suppression
4612 @item Whitening of the noise floor to mask artifacts and to recover higher
4614 @item Option to listen to the residual signal
4616 @item Noise profile saved with the session
4619 (license license:lgpl3+)))
4621 (define-public lv2-speech-denoiser
4622 (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f")
4625 (name "lv2-speech-denoiser")
4626 (version (git-version "0" revision commit))
4631 (url "https://github.com/lucianodato/speech-denoiser/")
4633 (file-name (git-file-name name version))
4635 (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4"))))
4636 (build-system meson-build-system)
4638 `(;; Using a "release" build is recommended for performance
4639 #:build-type "release"
4641 (modify-phases %standard-phases
4642 (add-after 'unpack 'patch-meson-build
4644 (substitute* "meson.build"
4645 (("install_folder = 'sdenoise.lv2'")
4646 "install_folder = 'lib/lv2/sdenoise.lv2'")
4647 (("build/manifest.ttl") "../build/manifest.ttl"))
4649 (add-after 'unpack 'build-rnnoise
4651 (with-directory-excursion "rnnoise"
4652 (let ((old-CFLAGS (getenv "CFLAGS")))
4653 (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL")
4654 (setenv "CONFIG_SHELL" (which "bash"))
4655 (invoke "autoreconf" "-vif")
4656 (invoke "sh" "configure"
4657 "--disable-examples"
4662 (setenv "CFLAGS" old-CFLAGS))))))))
4666 (list autoconf automake libtool pkg-config))
4667 (home-page "https://github.com/werman/noise-suppression-for-voice")
4668 (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library")
4669 (description "RNNoise is a library that uses deep learning to apply
4670 noise suppression to audio sources with voice presence. This package provides
4671 an LV2 audio plugin.")
4672 (license license:lgpl3+))))
4674 (define-public cli-visualizer
4676 (name "cli-visualizer")
4682 (url "https://github.com/dpayne/cli-visualizer")
4683 (commit (string-append "v" version))))
4684 (file-name (git-file-name name version))
4686 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4687 (build-system cmake-build-system)
4689 ;; TODO: Try using the latest googletest for versions > 1.8.
4690 (list ;; ("googletest" ,googletest-1.8)
4693 (list fftw ncurses pulseaudio))
4696 ;; XXX Enable tests after patching them to use the system googletest.
4697 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4699 (modify-phases %standard-phases
4700 (add-after 'install 'install-examples
4701 (lambda* (#:key outputs #:allow-other-keys)
4702 (with-directory-excursion "../source/examples"
4703 (delete-file "mac_osx_config")
4704 (for-each (lambda (file)
4707 (assoc-ref outputs "out")
4711 (home-page "https://github.com/dpayne/cli-visualizer/")
4712 (synopsis "Command-line audio visualizer")
4713 (description "@code{cli-visualizer} displays fast-Fourier
4714 transforms (FFTs) of the sound being played, as well as other graphical
4716 (license license:expat)))
4725 (url "https://github.com/karlstav/cava")
4727 (file-name (git-file-name name version))
4730 "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))
4731 (modules '((guix build utils)))
4734 (delete-file-recursively "iniparser")
4735 (substitute* "configure.ac"
4736 (("AC_CONFIG_FILES\\(iniparser/Makefile\\)") ""))
4737 (substitute* "Makefile.am"
4738 (("SUBDIRS = iniparser") ""))))))
4739 (build-system gnu-build-system)
4740 (native-inputs (list autoconf automake libtool))
4741 (inputs (list fftw ncurses pulseaudio iniparser))
4743 (list #:configure-flags
4744 #~(list (string-append "PREFIX="
4746 (string-append "FONT_DIR="
4747 #$output "/share/consolefonts"))
4749 #~(let ((lib (string-append #$output "/lib")))
4750 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt")))
4752 #~(modify-phases %standard-phases
4757 (invoke "sh" "autogen.sh")))
4758 (add-before 'build 'make-cava-ldflags
4760 (mkdir-p (string-append #$output "/lib"))))
4761 (add-after 'install 'data
4763 (for-each (lambda (file)
4765 (string-append #$output
4766 "/share/doc/examples")))
4767 (find-files "example_files")))))))
4768 (home-page "https://karlstav.github.io/cava/")
4769 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4770 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4771 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4772 (license license:expat)))
4774 (define-public fluid-3
4775 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4782 ;; Only one file is required, but the release bundles the whole
4783 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4784 ;; directly links the soundfont release to the github file download.
4785 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4786 commit "/share/sound/FluidR3Mono_GM.sf3"))
4787 (file-name (string-append name "-" version ".sf3"))
4790 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4791 (build-system trivial-build-system)
4793 `(#:modules ((guix build utils))
4796 (use-modules (guix build utils))
4797 (let ((file (assoc-ref %build-inputs "source"))
4798 (out (string-append %output "/share/soundfonts")))
4800 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4802 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4803 (synopsis "Pro-quality GM soundfont")
4804 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4805 (license license:expat))))
4807 (define-public libfdk
4815 (url "https://github.com/mstorsjo/fdk-aac")
4816 (commit (string-append "v" version))))
4817 (file-name (git-file-name name version))
4820 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4821 (build-system gnu-build-system)
4823 (list autoconf automake libtool))
4824 (home-page "https://github.com/mstorsjo/fdk-aac")
4825 (synopsis "Fraunhofer FDK AAC library")
4826 (description "FDK is a library for encoding and decoding Advanced Audio
4827 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4828 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4829 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4830 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4831 library supports sample rates up to 96 kHz and up to eight channels (7.1
4833 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4834 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4836 (define-public libopenshot-audio
4838 (name "libopenshot-audio")
4843 (url "https://github.com/OpenShot/libopenshot-audio")
4844 (commit (string-append "v" version))))
4845 (file-name (git-file-name name version))
4848 "03dygh85riljk7dpn5a5a0d22a2kz45fs13gzwqgnbzzr1k17p2y"))))
4849 (build-system cmake-build-system)
4852 ;; The following are for JUCE GUI components:
4859 `(#:tests? #f ;there are no tests
4861 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4862 (assoc-ref %build-inputs "freetype")
4863 "/include/freetype2"))))
4864 (home-page "https://openshot.org")
4865 (synopsis "Audio editing and playback for OpenShot")
4866 (description "OpenShot Audio Library (libopenshot-audio) allows
4867 high-quality editing and playback of audio, and is based on the JUCE
4869 (license license:lgpl3+)))
4871 (define-public faudio
4879 (url "https://github.com/FNA-XNA/FAudio")
4881 (file-name (git-file-name name version))
4883 (base32 "0l9bicg8v1shsyq9k48zh4wv5kwfs6lfjmm9blzd13xrgmhd07w2"))))
4885 '(#:tests? #f ; No tests.
4886 #:configure-flags '("-DGSTREAMER=ON")))
4887 (build-system cmake-build-system)
4888 (native-inputs (list pkg-config))
4889 (inputs (list gstreamer gst-plugins-base sdl2))
4890 (home-page "https://github.com/FNA-XNA/FAudio")
4891 (synopsis "XAudio reimplementation")
4892 (description "FAudio is an XAudio reimplementation that focuses solely on
4893 developing fully accurate DirectX Audio runtime libraries.")
4896 ;; stb & utils/{ui,wav}common are dual-licenced under either of:
4898 license:public-domain))))
4900 (define-public gnaural
4903 (version "20110606")
4907 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4911 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4912 (build-system gnu-build-system)
4914 (list alsa-lib gtk+-2 libsndfile portaudio))
4917 (home-page "http://gnaural.sourceforge.net/")
4918 (synopsis "Binaural beat synthesizer")
4919 (description "Gnaural is a programmable auditory binaural beat synthesizer
4920 intended to be used for brainwave entrainment. Gnaural supports creation of
4921 binaural beat tracks of different frequencies and exporting of tracks into
4922 different audio formats. Gnaural can also be linked over the internet with
4923 other Gnaural instances, allowing synchronous sessions between many users.")
4924 (license license:gpl2+)))
4926 (define-public darkice
4932 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4933 "download/v" version "/darkice-"
4937 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4938 (build-system gnu-build-system)
4939 (native-inputs (list pkg-config))
4950 (list (string-append "--with-lame-prefix="
4951 (assoc-ref %build-inputs "lame")))))
4952 (home-page "http://www.darkice.org/")
4953 (synopsis "Live audio streamer")
4954 (description "DarkIce is a live audio streamer. It takes audio input from
4955 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4956 stream to one or more IceCast and/or ShoutCast servers.")
4957 (license license:gpl3+)))
4959 (define-public libltc
4967 (string-append "https://github.com/x42/libltc/releases/download/v"
4968 version "/libltc-" version ".tar.gz"))
4971 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4972 (build-system gnu-build-system)
4974 `(#:parallel-tests? #f)) ;tests fail otherwise
4976 (list doxygen pkg-config))
4977 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4978 (description "Libltc is a POSIX-C Library for handling
4979 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4980 (home-page "https://x42.github.io/libltc/")
4981 (license license:lgpl3+)))
4983 (define-public ttaenc
4990 (uri (string-append "mirror://sourceforge/tta/"
4992 "/ttaenc-" version "-src.tgz"))
4995 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4996 (build-system gnu-build-system)
4998 `(#:tests? #f ;no tests
5000 (list (string-append "CC=" ,(cc-for-target))
5001 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
5003 (modify-phases %standard-phases
5004 (delete 'configure) ; no configure
5005 (add-before 'install 'make-bindir
5006 (lambda* (#:key outputs #:allow-other-keys)
5007 (let* ((out (assoc-ref outputs "out")))
5008 (mkdir-p (string-append out "/bin"))
5010 (synopsis "TTA lossless audio encoder")
5012 "TTA performs lossless compression on multichannel 8,16 and 24 bits
5013 data of the Wav audio files. Being lossless means that no data-
5014 quality is lost in the compression - when uncompressed, the data will
5015 be identical to the original. The compression ratios of TTA depend on
5016 the type of music file being compressed, but the compression size
5017 will generally range between 30% - 70% of the original. TTA format
5018 supports both of ID3v1/v2 and APEv2 tags.")
5019 (home-page "http://tausoft.org/")
5020 (license license:gpl2+)))
5022 (define-public libsoundio
5030 (url "https://github.com/andrewrk/libsoundio")
5032 (file-name (git-file-name name version))
5035 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
5036 (build-system cmake-build-system)
5038 `(#:tests? #f)) ;no tests included
5040 (list alsa-lib jack-1 pulseaudio))
5043 (home-page "http://libsound.io")
5044 (synopsis "C library for real-time audio input and output")
5045 (description "@code{libsoundio} is a C library providing audio input and
5046 output. The API is suitable for real-time software such as digital audio
5047 workstations as well as consumer software such as music players.")
5048 (license license:expat)))
5050 (define-public redkite
5053 (version "1.3.1") ;marked unmaintained as of Oct. 2021
5058 (url "https://github.com/free-sm/redkite")
5059 (commit (string-append "v" version))))
5060 (file-name (git-file-name name version))
5062 (base32 "1zb2k2a4m7z2ravqrjn8fq8lic20wbr2m8kja3p3113jsk7j9zvd"))))
5063 (build-system cmake-build-system)
5065 `(#:tests? #f)) ;no tests included
5070 (synopsis "Small GUI toolkit")
5071 (description "Redkite is a small GUI toolkit developed in C++17 and
5072 inspired from other well known GUI toolkits such as Qt and GTK. It is
5073 minimal on purpose and is intended to be statically linked to applications,
5074 therefore satisfying any requirements they may have to be self contained,
5075 as is the case with audio plugins.")
5076 (home-page "https://gitlab.com/geontime/redkite")
5077 (license license:gpl3+)))
5079 (define-public carla
5088 (url "https://github.com/falkTX/Carla")
5089 (commit (string-append "v" version))))
5090 (file-name (git-file-name name version))
5092 (base32 "01ngkmfcxyg1bb4qmfvlkkjbx4lx62akxqhizl8zmqnhfcy4p9bx"))))
5093 (build-system gnu-build-system)
5095 (list #:tests? #f ; no "check" target
5097 #~(list (string-append "PREFIX=" #$output))
5099 #~(modify-phases %standard-phases
5100 (delete 'configure) ; no configure script
5101 (add-before 'build 'set-CC-variable-and-show-features
5103 (setenv "CC" #$(cc-for-target))
5104 (invoke "make" "features")))
5105 (add-after 'install 'make-carla-executable
5107 (chmod (string-append #$output "/share/carla/carla") #o555)))
5108 (add-after 'install 'wrap-executables
5109 (lambda* (#:key inputs #:allow-other-keys)
5110 (wrap-script (string-append #$output "/bin/carla")
5111 #:guile (search-input-file inputs "bin/guile")
5112 `("GUIX_PYTHONPATH" ":" prefix
5113 (,(getenv "GUIX_PYTHONPATH")))))))))
5122 gtk+-2 ;needed for bridging GTK2 plugins in GTK3 hosts
5127 ;; python-pyqt shows the following error without python-wrapper:
5128 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
5129 ;; (ModuleNotFoundError: No module named 'PyQt5')
5134 ;; For WRAP-SCRIPT above.
5138 (home-page "https://kx.studio/Applications:Carla")
5139 (synopsis "Audio plugin host")
5140 (description "Carla is a modular audio plugin host, with features like
5141 transport control, automation of parameters via MIDI CC and remote control
5142 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
5143 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
5144 default and preferred audio driver but also supports native drivers like ALSA.")
5145 (license license:gpl2+)))
5147 (define-public ecasound
5153 (uri (string-append "https://nosignal.fi/download/ecasound-"
5156 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
5157 (build-system gnu-build-system)
5158 (native-inputs (list pkg-config))
5159 ;; It would be nice to add mikmod to inputs if that gets packaged
5161 (inputs (list alsa-lib
5174 (home-page "https://nosignal.fi/ecasound/index.php")
5175 (synopsis "Multitrack audio processing")
5176 (description "Ecasound is a software package designed for multitrack audio
5177 processing. It can be used for simple tasks like audio playback, recording and
5178 format conversions, as well as for multitrack effect processing, mixing,
5179 recording and signal recycling. Ecasound supports a wide range of audio inputs,
5180 outputs and effect algorithms. Effects and audio objects can be combined in
5181 various ways, and their parameters can be controlled by operator objects like
5182 oscillators and MIDI-CCs. A versatile console mode user-interface is included
5184 ;; As an exception to the above, the C, C++ and python implementations
5185 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
5186 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
5187 ;; that are not licensed under GPL.
5188 (license (list license:gpl2 license:lgpl2.1))))
5190 (define-public libaudec
5198 (url "https://git.zrythm.org/zrythm/libaudec")
5199 (commit (string-append "v" version))))
5200 (file-name (git-file-name name version))
5203 "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz"))))
5204 (build-system meson-build-system)
5210 (list libsamplerate libsndfile))
5213 (synopsis "Library for reading and resampling audio files")
5214 (description "libaudec is a wrapper library over ffmpeg, sndfile and
5215 libsamplerate for reading and resampling audio files, based on Robin Gareus'
5216 @code{audio_decoder} code.")
5217 (home-page "https://git.zrythm.org/zrythm/libaudec")
5218 (license license:agpl3+)))
5220 (define-public lv2lint
5228 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
5230 (file-name (git-file-name name version))
5233 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
5234 (build-system meson-build-system)
5237 `("-Delf-tests=true" ; for checking symbol visibility
5238 "-Donline-tests=true"))) ; for checking URI existence
5240 (list curl libelf lilv))
5243 (synopsis "LV2 plugin lint tool")
5244 (description "lv2lint is an LV2 lint-like tool that checks whether a
5245 given plugin and its UI(s) match up with the provided metadata and adhere
5246 to well-known best practices.")
5247 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
5248 (license license:artistic2.0)))
5250 (define-public lv2toweb
5258 (url "https://github.com/x42/lv2toweb")
5259 (commit (string-append "v" version))))
5260 (file-name (git-file-name name version))
5263 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
5264 (build-system gnu-build-system)
5266 `(#:tests? #f ; no "check" target
5267 #:make-flags (list "CC=gcc"
5268 (string-append "PREFIX=" (assoc-ref %outputs "out")))
5270 (modify-phases %standard-phases
5271 (delete 'configure))))
5275 (list help2man pkg-config))
5276 (synopsis "Documentation generator for LV2 plugins")
5278 "lv2toweb allows the user to create an xhtml page with information
5279 about the given LV2 plugin, provided that the plugin and its UI(s) match up
5280 with the provided metadata and adhere to well-known best practices.")
5281 (home-page "https://github.com/x42/lv2toweb")
5282 (license (list license:isc license:gpl2))))
5284 (define-public ztoolkit
5292 (url "https://git.zrythm.org/zrythm/ztoolkit")
5293 (commit (string-append "v" version))))
5294 (file-name (git-file-name name version))
5297 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
5298 (build-system meson-build-system)
5301 ;; These are listed as propagated inputs because they are dependencies
5304 (list cairo libx11))
5305 (synopsis "GUI toolkit for LV2 plugins")
5306 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
5307 inspired by GTK. It handles events and low level drawing on behalf of
5308 the user and provides a high-level API for managing the UI and custom
5309 widgets. ZToolkit is written in C and was created to be used for building
5310 audio plugin UIs, where the dependencies often need to be kept to a
5312 (home-page "https://git.zrythm.org/zrythm/ztoolkit")
5313 (license license:agpl3+)))
5315 (define-public libinstpatch
5317 (name "libinstpatch")
5323 (url "https://github.com/swami/libinstpatch")
5324 (commit (string-append "v" version))))
5325 (file-name (git-file-name name version))
5327 (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir"))))
5328 (build-system cmake-build-system)
5330 `(#:tests? #f)) ;there are no tests
5332 `(("glib:bin" ,glib "bin")
5333 ("pkg-config" ,pkg-config)))
5335 (list glib libsndfile))
5336 (home-page "http://www.swamiproject.org/")
5337 (synopsis "Instrument file software library")
5339 "libInstPatch is a library for processing digital sample based MIDI
5340 instrument \"patch\" files. The types of files libInstPatch supports are used
5341 for creating instrument sounds for wavetable synthesis. libInstPatch provides
5342 an object framework (based on GObject) to load patch files, which can then be
5343 edited, converted, compressed and saved.")
5344 (license license:lgpl2.1)))
5346 (define-public ztoolkit-rsvg
5347 (package/inherit ztoolkit
5348 (name "ztoolkit-rsvg")
5350 `(#:configure-flags `("-Denable_rsvg=true")))
5352 `(("librsvg" ,librsvg)
5353 ,@(package-propagated-inputs ztoolkit)))
5354 (synopsis "ZToolkit with SVG support")))
5356 (define-public lsp-dsp-lib
5358 (name "lsp-dsp-lib")
5363 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
5364 "releases/download/" version
5365 "/lsp-dsp-lib-" version "-src.tar.gz"))
5367 (base32 "1gcznkyybywbgdi2fhx27i8sckhy6ahvxax72b213g1lr5aaw7bq"))))
5368 (build-system gnu-build-system)
5370 (list #:tests? #f ; no tests
5372 #~(list (string-append "CC=" #$(cc-for-target)))
5374 #~(modify-phases %standard-phases
5375 (add-after 'unpack 'omit-static-library
5377 (substitute* "src/Makefile"
5378 ((".*cp \\$\\(ARTIFACT_SLIB\\).*") "") ; don't install it
5379 ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it
5382 (invoke "make" "config"
5383 (string-append "PREFIX=" #$output)))))))
5384 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
5385 (synopsis "Digital signal processing library")
5386 (description "The LSP DSP library provides a set of functions that perform
5387 SIMD-optimized computing on several hardware architectures. All functions
5388 currently operate on IEEE-754 single-precision floating-point numbers.")
5389 (license license:lgpl3+)))
5391 (define-public codec2
5399 (url "https://github.com/drowe67/codec2")
5400 (commit (string-append "v" version))))
5401 (file-name (git-file-name name version))
5403 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
5404 (build-system cmake-build-system)
5406 (list bc octave valgrind))
5408 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
5410 (modify-phases %standard-phases
5411 (add-before 'check 'set-test-environment
5413 (setenv "HOME" "/tmp")
5415 (synopsis "Speech codec")
5417 "Codec 2 is a speech codec designed for communications quality speech
5418 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
5420 (home-page "https://www.rowetel.com/?page_id=452")
5421 (license license:lgpl2.1)))
5423 (define-public mbelib
5424 ;; No release since 2016, use commit directly.
5425 (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f")
5429 (version (git-version "1.3.0" revision commit))
5434 (url "https://github.com/szechyjs/mbelib")
5436 (file-name (git-file-name name version))
5438 (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h"))))
5439 (build-system cmake-build-system)
5440 (home-page "https://github.com/szechyjs/mbelib")
5441 (synopsis "P25 Phase 1 and ProVoice vocoder")
5443 "The mbelib library provides support for the 7200x4400 bit/s codec used
5444 in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half
5445 Rate} 3600x2250 bit/s vocoder used in various radio systems.")
5446 (license (list license:bsd-3 ; test/ framework
5447 license:isc))))) ; the rest
5449 (define-public ableton-link
5451 (name "ableton-link")
5456 (url "https://github.com/Ableton/link")
5457 (commit (string-append "Link-" version))))
5458 (file-name (git-file-name name version))
5461 "1wplqj11ww64gmw2kzlxpvfs3v04m2036f7k5ndm34zcv12b91fa"))
5462 (modules '((guix build utils)))
5464 (search-patches "ableton-link-system-libraries-debian.patch"))
5467 ;; Tests assume that CMake's "build" directory is a
5468 ;; sub-directory of the source tree, so we fix it.
5469 (substitute* "ci/run-tests.py"
5470 (("root_dir,") "root_dir, os.pardir,"))
5471 ;; Unbundle dependencies.
5472 (delete-file-recursively "third_party")
5473 (delete-file-recursively "modules")))))
5474 (build-system cmake-build-system)
5476 (list catch-framework
5477 python ;for running tests
5478 portaudio ;for portaudio examples
5479 qtbase-5 ;for Qt examples
5483 (list jack-1 ;for JACK examples
5484 qtquickcontrols-5)) ;for Qt examples
5486 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
5487 ;; contains '#include <asio.hpp>'.
5491 '("-DLINK_BUILD_QT_EXAMPLES=ON"
5492 "-DLINK_BUILD_JACK=ON")
5494 (modify-phases %standard-phases
5496 (lambda* (#:key inputs tests? #:allow-other-keys)
5498 (let* ((python (search-input-file inputs "/bin/python3"))
5499 (run-tests "../source/ci/run-tests.py"))
5500 (invoke python run-tests "--target" "LinkCoreTest")
5501 (invoke python run-tests "--target" "LinkDiscoveryTest")))))
5502 (add-before 'install 'patch-cmake
5503 (lambda* (#:key inputs #:allow-other-keys)
5504 (let* ((source "../source/"))
5505 (substitute* (string-append source
5506 "cmake_include/AsioStandaloneConfig.cmake")
5507 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5508 "modules/asio-standalone/asio/include"))
5509 (string-append (assoc-ref inputs "asio")
5511 (substitute* (string-append source "AbletonLinkConfig.cmake")
5512 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5513 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5514 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5515 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp")))))
5517 (lambda* (#:key outputs #:allow-other-keys)
5518 (let* ((out (assoc-ref outputs "out"))
5519 (bin (string-append out "/bin"))
5520 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5521 (source "../source"))
5522 (for-each (lambda (test-file)
5523 (delete-file test-file))
5524 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5525 (copy-recursively "bin" bin)
5526 (copy-recursively (string-append source "/include/ableton")
5527 (string-append out "/include/ableton"))
5528 (install-file (string-append source "/AbletonLinkConfig.cmake")
5530 (install-file (string-append source
5531 "/cmake_include/AsioStandaloneConfig.cmake")
5532 (string-append lib-cmake "/cmake_include"))))))))
5533 (home-page "https://github.com/Ableton/link")
5534 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5536 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5537 across multiple applications running on one or more devices. Applications on devices
5538 connected to a local network discover each other automatically and form a musical
5539 session in which each participant can perform independently: anyone can start or stop
5540 while still staying in time.")
5541 (license license:gpl2+)))
5549 (uri (string-append "mirror://sourceforge/butt/butt/butt-"
5550 version "/butt-" version ".tar.gz"))
5553 "0zd1g1673pv8z437y34fllxska8dzpd7mygpham35pzwpdyc5c1p"))
5554 (modules '((guix build utils)))
5556 '(substitute* "src/butt.cpp"
5557 ((".*zica.*") "")))))
5558 (build-system gnu-build-system)
5561 #~(modify-phases %standard-phases
5562 (add-after 'install 'install-documentation
5564 (let ((doc (string-append #$output "/share/doc/" #$name)))
5565 (install-file "README" doc)
5566 (copy-file #$(this-package-native-input "manual")
5567 (string-append doc "/butt-manual.pdf"))))))))
5569 `(("pkg-config" ,pkg-config)
5573 (uri (string-append "https://danielnoethen.de/butt/butt-"
5574 version "_manual.pdf"))
5576 (base32 "0kadqzzbk25n0aqxgbqhg4mq4hsbjq44phzcx5qj1b8847yzz8si"))))))
5594 (home-page "https://danielnoethen.de/butt/")
5595 (synopsis "Audio streaming tool")
5596 (description "Butt is a tool to stream audio to a ShoutCast or
5598 (license license:gpl2+)))
5600 (define-public siggen
5608 (url "https://github.com/bleskodev/siggen")
5609 (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210")))
5610 (file-name (git-file-name name version))
5613 "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb"))))
5614 (build-system gnu-build-system)
5616 `(#:make-flags (list (string-append "INSDIR=" %output "/bin")
5617 (string-append "MANDIR=" %output "/share/man"))
5618 #:tests? #f ; no tests
5620 (modify-phases %standard-phases
5621 ;; Patch misc.c to prevent a segfault.
5622 (add-after 'unpack 'patch-segfault
5624 (substitute* "misc.c"
5625 (("#include <stdio.h>\n" all)
5626 (string-append all "#include <string.h>\n")))))
5629 (lambda* (#:key make-flags outputs #:allow-other-keys)
5630 (let ((out (assoc-ref outputs "out")))
5631 (for-each (lambda (dir)
5632 (mkdir-p (string-append out dir)))
5633 (list "/bin" "/share/man/man1" "/share/man/man5"))
5634 (apply invoke "make" "sysinstall" make-flags)))))))
5638 `(("groff" ,groff-minimal) ; for nroff
5639 ("util-linux" ,util-linux))) ; for col
5640 (home-page "https://github.com/bleskodev/siggen")
5641 (synopsis "Signal generation tools")
5642 (description "siggen is a set of tools for imitating a laboratory signal
5643 generator, generating audio signals out of Linux's /dev/dsp audio
5644 device. There is support for mono and/or stereo and 8 or 16 bit samples.")
5645 (license license:gpl2)))
5647 (define-public python-pysox
5648 ;; PyPi does not include the data folder containing audio files for testing.
5649 (let ((commit "3d0053381c24ae3490f759d4de87194b85789d36")
5652 (name "python-pysox")
5653 (version (git-version "1.4.2" revision commit))
5658 (url "https://github.com/rabitt/pysox")
5660 (file-name (git-file-name name version))
5663 "0i62jx92vfpcr2z7lp69yzqdi9idfs3pifl3rzm2akc2c4cr1mac"))))
5664 (build-system python-build-system)
5667 (modify-phases %standard-phases
5668 (add-after 'unpack 'patch-sox
5669 (lambda* (#:key inputs #:allow-other-keys)
5670 (let* ((sox-store-path (assoc-ref inputs "sox"))
5671 (sox-bin (string-append sox-store-path "/bin/sox")))
5672 (substitute* "sox/__init__.py"
5674 (string-append sox-bin " -h")))
5675 (substitute* "sox/core.py"
5677 (string-append "['" sox-bin))))))
5679 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5681 (add-installed-pythonpath inputs outputs)
5682 (invoke "pytest")))))))
5684 (list python-numpy python-typing-extensions))
5686 (list sox python-pytest python-pytest-cov python-soundfile))
5687 (home-page "https://github.com/rabitt/pysox")
5688 (synopsis "Python wrapper around SoX")
5689 (description "@code{python-pysox} is a wrapper around the @command{sox}
5690 command line tool. The API offers @code{Transformer} and @code{Combiner}
5691 classes that allow the user to incrementally build up effects and audio
5692 manipulations. @code{python-pysox} also provides methods for querying audio
5693 information such as sample rate, determining whether an audio file is silent,
5695 (license license:bsd-3))))
5697 (define-public python-resampy
5699 (name "python-resampy")
5706 ;; PyPi does not include tests.
5707 (url "https://github.com/bmcfee/resampy")
5709 (file-name (git-file-name name version))
5711 (base32 "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs"))))
5712 (build-system python-build-system)
5715 (modify-phases %standard-phases
5717 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5719 (add-installed-pythonpath inputs outputs)
5720 (invoke "pytest" "tests")))))))
5722 (list python-numba python-numpy python-scipy python-six))
5724 (list python-pytest python-pytest-cov))
5725 (home-page "https://github.com/bmcfee/resampy")
5726 (synopsis "Efficient signal resampling")
5728 "@code{python-resampy} implements the band-limited sinc interpolation
5729 method for sampling rate conversion as described by Julius O. Smith at the
5730 @url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling
5732 (license license:isc)))
5734 (define-public python-librosa
5736 (name "python-librosa")
5741 (uri (pypi-uri "librosa" version))
5743 (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5"))))
5744 (build-system python-build-system)
5746 ;; Tests require internet connection to download MATLAB scripts for
5747 ;; generating the testing data.
5750 (list python-audioread
5761 (home-page "https://librosa.org")
5762 (synopsis "Python module for audio and music processing")
5764 "@code{librosa} is a python package for music and audio analysis. It
5765 provides the building blocks necessary to create music information retrieval
5767 (license license:isc)))
5769 (define-public mda-lv2
5776 (uri (string-append "http://download.drobilla.net/mda-lv2-"
5777 version ".tar.bz2"))
5779 (base32 "1nspk2j11l65m5r9z5isw8j749vh9a89wgx8mkrrq15f4iq12rnd"))))
5780 (build-system waf-build-system)
5782 `(#:tests? #f ; There are no tests.
5784 (list (string-append "--prefix="
5785 (assoc-ref %outputs "out")))))
5790 (native-search-paths
5791 (list (search-path-specification
5792 (variable "LV2_PATH")
5793 (files '("lib/lv2")))))
5794 (home-page "https://drobilla.net/software/mda-lv2")
5795 (synopsis "Audio plug-in pack for LV2")
5797 "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few
5798 instrument plugins.")
5799 (license license:gpl3+)))
5801 (define-public libodiosacd
5803 (name "libodiosacd")
5808 (url "https://github.com/tari01/libodiosacd")
5810 (file-name (git-file-name name version))
5813 "0iamf7wksbql0qfigdv5ahaax53ms2yligdav8dw6x0ay88x4lhi"))))
5814 (build-system gnu-build-system)
5816 `(#:tests? #f ; no check target
5818 (modify-phases %standard-phases
5819 (add-after 'unpack 'patch-makefile
5821 (substitute* "Makefile"
5822 (("\\$\\(DESTDIR\\)/usr")
5824 (delete 'configure)) ; no configure script
5826 (list (string-append "DESTDIR=" %output))))
5827 (synopsis "Library for decoding Super Audio CDs (SACD)")
5829 "The Odio SACD shared library is a decoding engine which takes a Super
5830 Audio CD source and extracts a 24-bit high resolution WAV file. It handles
5831 both DST and DSD streams.")
5832 (home-page "https://tari.in/www/software/libodiosacd/")
5833 (license license:gpl3+)))
5835 (define-public odio-sacd
5842 (url "https://github.com/tari01/odio-sacd")
5844 (file-name (git-file-name name version))
5847 "0314srqk0r4qv292qiaply619l2fw04nkdwvqhj3q1dqzv41g4qk"))))
5848 (inputs (list libodiosacd))
5849 ;; Build system and arguments for libodiosacd are identical.
5850 (build-system (package-build-system libodiosacd))
5851 (arguments (package-arguments libodiosacd))
5852 (synopsis "Rip Super Audio CDs (SACD)")
5854 "Odio SACD is a command-line application which takes a Super Audio CD
5855 source and extracts a 24-bit high resolution WAV file. It handles both DST
5857 (home-page "https://tari.in/www/software/odio-sacd/")
5858 (license license:gpl3+)))
5860 (define-public qpwgraph
5867 (url "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5868 (commit (string-append "v" version))))
5869 (file-name (git-file-name name version))
5872 "01f4zabn22dp0yl7szxck6gkbayk1p5iqajfgzls7mdkba7515b6"))))
5873 (build-system cmake-build-system)
5874 (arguments (list #:tests? #f)) ;; no tests
5875 (inputs (list alsa-lib
5880 (native-inputs (list pkg-config))
5881 (synopsis "PipeWire graph manager")
5883 "qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++
5884 framework. It provides a visual interface to audio and video connections
5885 managed by PipeWire.")
5886 (home-page "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5887 (license license:gpl2)))
5889 (define-public streamripper
5891 (name "streamripper")
5896 (uri (string-append "https://sourceforge.net/projects/streamripper"
5897 "/files/streamripper%20(current)/"
5898 version "/streamripper-" version ".tar.gz"))
5900 (base32 "0hnyv3206r0rfprn3k7k6a0j959kagsfyrmyjm3gsf3vkhp5zmy1"))
5901 (modules '((guix build utils)))
5903 ;; Delete bundled copy of libmad.
5904 '(delete-file-recursively "libmad-0.15.1b"))))
5905 (build-system gnu-build-system)
5906 (native-inputs (list pkg-config))
5907 (inputs (list faad2 glib libmad libvorbis))
5908 (home-page "http://streamripper.sourceforge.net")
5909 (synopsis "Record audio streams to your hard drive")
5910 (description "Streamripper records shoutcast-compatible
5911 streams. For shoutcast style streams it finds the “meta data” or track
5912 separation data, and uses that as a marker for where the track should
5914 (license license:gpl2+)))