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 use 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+)))
486 (string-append "mirror://sourceforge/faac/faac-src"
487 "/faac-" version "/faac-1_30.tar.gz"))
489 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
490 (build-system gnu-build-system)
492 (list autoconf automake libtool pkg-config))
493 (synopsis "Freeware Advanced Audio Coder")
494 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
495 (home-page "https://www.audiocoding.com/faac.html")
498 ;; ISO MPEG-4 reference code.
503 (define-public libtimidity
511 (string-append "https://sourceforge.net/projects/" name "/files/"
512 name "/" version "/" name "-" version ".tar.gz"))
514 (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16"))))
515 (build-system gnu-build-system)
517 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
522 (synopsis "MIDI to WAVE converter library")
523 (description "LibTiMidity is a MIDI to WAVE converter library that uses
524 Gravis Ultrasound-compatible patch files to generate digital audio data from
525 General MIDI files.")
526 (home-page "http://libtimidity.sourceforge.net/")
528 ;; This project is dual-licensed.
529 ;; Either of the following licenses can be exercised.
532 license:artistic2.0))))
534 (define-public vo-amrwbenc
542 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
543 name "/" name "-" version ".tar.gz"))
545 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
546 (build-system gnu-build-system)
547 (synopsis "Adaptive Multi Rate Codec")
548 (description "VO-AMR is a library of VisualOn implementation of
549 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
550 (home-page "https://sourceforge.net/projects/opencore-amr/")
551 (license license:asl2.0)))
553 (define-public opencore-amr
555 (name "opencore-amr")
561 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
562 name "/" name "-" version ".tar.gz"))
564 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
565 (build-system gnu-build-system)
566 (synopsis "Adaptive Multi Rate Codec")
567 (description "OpenCore-AMR is a library of OpenCORE Framework
568 implementation of Adaptive Multi Rate Narrowband and Wideband
569 (AMR-NB and AMR-WB) speech codec.")
570 (home-page "https://sourceforge.net/projects/opencore-amr/")
571 (license license:asl2.0)))
573 (define-public alsa-modular-synth
575 (name "alsa-modular-synth")
579 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
580 "/" version "/ams-" version ".tar.bz2"))
583 "056dn6b9c5nsw2jdww7z1kxrjqqfvxjzxhsd5x9gi4wkwyiv21nz"))))
584 (build-system gnu-build-system)
587 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
588 ;; license incompatibility.
596 (list pkg-config qttools-5))
597 (home-page "http://alsamodular.sourceforge.net/")
598 (synopsis "Realtime modular synthesizer and effect processor")
600 "AlsaModularSynth is a digital implementation of a classical analog
601 modular synthesizer system. It uses virtual control voltages to control the
602 parameters of the modules. The control voltages which control the frequency
603 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
604 Filter) modules follow the convention of 1V / Octave.")
605 (license license:gpl2)))
614 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
617 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
618 (build-system waf-build-system)
620 `(#:tests? #f ; no check target
623 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
627 "--enable-samplerate"
628 "--enable-avcodec")))
630 (list jack-1 libsndfile libsamplerate fftwf ffmpeg)) ; for libavcodec
633 (home-page "https://aubio.org/")
634 (synopsis "Library for audio labelling")
636 "aubio is a tool designed for the extraction of annotations from audio
637 signals. Its features include segmenting a sound file before each of its
638 attacks, performing pitch detection, tapping the beat and producing MIDI
639 streams from live audio.")
640 (license license:gpl3+)))
642 (define (ardour-rpath-phase major-version)
643 `(lambda* (#:key outputs #:allow-other-keys)
644 (let ((libdir (string-append (assoc-ref outputs "out")
645 "/lib/ardour" ,major-version)))
646 (substitute* "wscript"
647 (("linker_flags = \\[\\]")
648 (string-append "linker_flags = [\""
651 libdir "/backends" ":"
652 libdir "/engines" ":"
653 libdir "/panners" ":"
654 libdir "/surfaces" ":"
655 libdir "/vamp" "\"]"))))
658 (define-public ardour
665 (url "git://git.ardour.org/ardour/ardour.git")
668 ;; Ardour expects this file to exist at build time. The revision
670 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
671 `(call-with-output-file
672 "libs/ardour/revision.cc"
674 (format port ,(string-append "#include \"ardour/revision.h\"
675 namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }"))
679 "0vlcbd70y0an881zv87kc3akmaiz4w7whsy3yaiiqqjww35jg1mm"))
680 (file-name (string-append name "-" version))))
681 (build-system waf-build-system)
683 `(#:configure-flags '("--cxx11" ; required by gtkmm
685 "--no-phone-home" ; don't contact ardour.org
686 "--freedesktop" ; build .desktop file
687 "--test") ; build unit tests
689 (modify-phases %standard-phases
690 (add-after 'unpack 'set-rpath-in-LDFLAGS
691 ,(ardour-rpath-phase (version-major version)))
692 (add-after 'install 'install-freedesktop-files
693 (lambda* (#:key outputs #:allow-other-keys)
694 (let* ((out (assoc-ref outputs "out"))
695 (share (string-append out "/share"))
696 (ver ,(version-major version)))
699 (let ((dir (string-append share "/icons/hicolor/"
700 size "x" size "/apps")))
703 (string-append "gtk2_ardour/resources/Ardour-icon_"
705 (string-append dir "/ardour" ver ".png"))))
706 '("16" "22" "32" "48" "256"))
707 (install-file (string-append "build/gtk2_ardour/ardour"
709 (string-append share "/applications/"))
710 (install-file (string-append "build/gtk2_ardour/ardour"
712 (string-append share "/appdata/")))
714 #:test-target "test"))
744 openssl ; Required by libwebsockets.
759 `(("cppunit" ,cppunit)
760 ("gettext" ,gettext-minimal)
763 ("pkg-config" ,pkg-config)))
764 (home-page "https://ardour.org")
765 (synopsis "Digital audio workstation")
767 "Ardour is a multi-channel digital audio workstation, allowing users to
768 record, edit, mix and master audio and MIDI projects. It is targeted at audio
769 engineers, musicians, soundtrack editors and composers.")
770 (license license:gpl2+)))
772 (define-public audacity
778 ;; If built from the release tag, Audacity will describe itself
779 ;; as an "Alpha test version" and suggest to users that they use
780 ;; the "latest stable released version".
782 (uri (string-append "https://github.com/audacity/audacity/releases/download/"
783 "Audacity-" version "/audacity-" version
787 "189agx11361k9j958s6q5bngnnfx0rwaf0dwbjxy6fwvsb1wv3px"))
788 (patches (search-patches "audacity-ffmpeg-fallback.patch"))
789 (modules '((guix build utils)))
791 ;; Remove bundled libraries.
795 (delete-file-recursively (string-append "lib-src/" dir)))
796 '("libsoxr" "libvamp" "lv2" "soundtouch" "sqlite" "twolame"
797 ;; FIXME: these libraries have not been packaged yet:
804 ;; FIXME: we have this library, but it differs in that the Slide
805 ;; class does not have a member "getInverseStretchedTime".
809 (build-system cmake-build-system)
823 ;;("libsbsms" ,libsbsms) ;bundled version is modified
826 soxr ;replaces libsamplerate
837 `(("autoconf" ,autoconf)
838 ("automake" ,automake)
839 ("gettext" ,gettext-minimal) ;for msgfmt
841 ("pkg-config" ,pkg-config)
847 "-Daudacity_conan_enabled=off"
848 "-Daudacity_lib_preference=system"
849 ;; TODO: enable this flag once we've packaged all dependencies
850 ;; "-Daudacity_obey_system_dependencies=on"
851 ;; disable crash reports, updates, ..., anything that phones home
852 "-Daudacity_has_networking=off")
853 #:imported-modules ((guix build glib-or-gtk-build-system)
854 ,@%cmake-build-system-modules)
857 (guix build cmake-build-system)
858 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
860 (modify-phases %standard-phases
861 (add-after 'unpack 'fix-cmake-rpath
862 (lambda* (#:key outputs #:allow-other-keys)
863 (substitute* "CMakeLists.txt"
864 (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}")
865 (string-append (assoc-ref outputs "out") "/lib/audacity"))
866 (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*")
867 "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE")
868 (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*")
869 "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE"))
870 (substitute* "src/CMakeLists.txt"
871 (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags"))))
872 (add-after 'unpack 'comment-out-revision-ident
874 (substitute* "src/CMakeLists.txt"
875 (("file\\( TOUCH \".*RevisionIdent\\.h\" \\)" directive)
876 (string-append "# " directive)))
877 (substitute* "src/AboutDialog.cpp"
878 (("(.*RevisionIdent\\.h.*)" include-line)
879 (string-append "// " include-line)))))
880 (add-after 'unpack 'use-upstream-headers
881 (lambda* (#:key inputs #:allow-other-keys)
882 (substitute* '("libraries/lib-files/FileNames.cpp")
883 (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>"))))
884 (add-after 'install 'delete-gratuitous-script
885 (lambda* (#:key outputs #:allow-other-keys)
886 (delete-file (string-append (assoc-ref outputs "out")
888 (add-after 'wrap-program 'glib-or-gtk-wrap
889 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
890 ;; The test suite is not "well exercised" according to the developers,
891 ;; and fails with various errors. See
892 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
895 (list (search-path-specification
896 (variable "AUDACITY_MODULES_PATH")
897 (files '("lib/audacity/modules")))
898 (search-path-specification
899 (variable "AUDACITY_PATH")
900 (files '("share/audacity")))))
901 (home-page "https://www.audacityteam.org/")
902 (synopsis "Software for recording and editing sounds")
904 "Audacity is a multi-track audio editor designed for recording, playing
905 and editing digital audio. It features digital effects and spectrum analysis
907 (license license:gpl2+)))
909 (define-public audiofile
917 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
919 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
921 ;; CVE references according to nixpgs
923 "audiofile-fix-datatypes-in-tests.patch"
924 "audiofile-fix-sign-conversion.patch"
925 "audiofile-hurd.patch"
926 "audiofile-CVE-2015-7747.patch"
928 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
929 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
931 "audiofile-check-number-of-coefficients.patch"
933 "audiofile-overflow-in-MSADPCM.patch"
934 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
935 "audiofile-multiply-overflow.patch"
936 "audiofile-function-signature.patch"
938 "audiofile-Fail-on-error-in-parseFormat.patch"
940 "audiofile-division-by-zero.patch"
941 "audiofile-CVE-2018-13440.patch"
942 "audiofile-CVE-2018-17095.patch"))))
943 (properties `((lint-hidden-cve . ("CVE-2017-6829"
945 "CVE-2017-6827" "CVE-2017-6828"
946 "CVE-2017-6832" "CVE-2017-6835"
951 "CVE-2017-6830" "CVE-2017-6834"
952 "CVE-2017-6836" "CVE-2017-6838"
954 "CVE-2017-6831" "CVE-2017-6833"))))
955 (build-system gnu-build-system)
958 (home-page "https://audiofile.68k.org/")
959 (synopsis "Library to handle various audio file formats")
960 (description "This is an open-source version of SGI's audiofile library.
961 It provides a uniform programming interface for processing of audio data to
962 and from audio files of many common formats.
964 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
965 .snd/.au, BICS, and raw data. Supported compression formats are currently
966 G.711 mu-law and A-law.")
967 (license license:lgpl2.1+)))
969 (define-public autotalent
975 (uri (string-append "http://tombaran.info/autotalent-"
979 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
980 (build-system gnu-build-system)
982 `(#:tests? #f ; no check target
984 (modify-phases %standard-phases
985 ;; no configure script
987 (add-before 'install 'prepare-target-directory
988 (lambda* (#:key outputs #:allow-other-keys)
989 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
991 (add-after 'unpack 'override-target-directory
992 (lambda* (#:key outputs #:allow-other-keys)
993 (substitute* "Makefile"
994 (("/usr/lib64/ladspa")
995 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
999 (home-page "http://tombaran.info/autotalent.html")
1000 (synopsis "Pitch-correction LADSPA audio plugin")
1002 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
1003 controls are allowable notes, strength of correction, LFO for vibrato and
1005 ;; All code except the FFT routine is licensed under GPLv2+.
1006 ;; The FFT routine is under BSD-3.
1007 (license license:gpl2+)))
1015 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
1020 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
1021 (patches (search-patches "azr3.patch"))))
1022 (build-system gnu-build-system)
1024 `(#:tests? #f ; no check target
1026 (list "LV2PEG=ttl2c"
1027 (string-append "prefix=" %output)
1028 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
1030 (modify-phases %standard-phases
1031 (add-before 'install 'fix-timestamp
1033 (let ((early-1980 315619200)) ; 1980-01-02 UTC
1034 (utime "azr3.1" early-1980 early-1980))
1037 (list gtkmm-2 lvtk jack-1 lash))
1040 (home-page "http://ll-plugins.nongnu.org/azr3/")
1041 (synopsis "Tonewheel organ synthesizer")
1043 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
1044 with drawbars, distortion and rotating speakers. The organ has three
1045 sections, two polyphonic sections with nine drawbars each and one monophonic
1046 bass section with five drawbars. A standalone JACK application and LV2
1047 plugins are provided.")
1048 (license license:gpl2)))
1056 (uri (string-append "https://calf-studio-gear.org/files/calf-"
1060 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
1061 (build-system gnu-build-system)
1075 (native-search-paths
1076 (list (search-path-specification
1077 (variable "LV2_PATH")
1078 (files '("lib/lv2")))))
1079 (home-page "http://calf.sourceforge.net/")
1080 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1082 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1083 The suite contains lots of effects (delay, modulation, signal processing,
1084 filters, equalizers, dynamics, distortion and mastering effects),
1085 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1086 tools (analyzer, mono/stereo tools, crossovers).")
1087 ;; calfjackhost is released under GPLv2+
1088 ;; The plugins are released under LGPLv2.1+
1089 (license (list license:lgpl2.1+ license:gpl2+))))
1091 (define-public caps-plugins-lv2
1093 (name "caps-plugins-lv2")
1097 ;; The Github project hasn't tagged a release.
1100 (url "https://github.com/moddevices/caps-lv2.git")
1101 (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9")))
1102 (file-name (git-file-name name version))
1105 "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa"))))
1106 (build-system gnu-build-system)
1108 `(#:tests? #f ; no check target
1110 (modify-phases %standard-phases
1111 ;; no configure script
1113 (add-after 'unpack 'override-target-directory
1114 (lambda* (#:key outputs #:allow-other-keys)
1115 (substitute* (find-files "plugins" "Makefile")
1116 (("/usr/local")(assoc-ref outputs "out")))
1120 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1121 (home-page "https://github.com/moddevices/caps-lv2")
1122 (synopsis "LV2 port of the CAPS audio plugin collection")
1124 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1125 guitar amplification and a small range of classic effects, signal processors and
1126 generators of mostly elementary and occasionally exotic nature.")
1127 (license license:gpl3+)))
1129 (define-public infamous-plugins
1131 (name "infamous-plugins")
1136 (url "https://github.com/ssj71/infamousPlugins")
1137 (commit (string-append "v" version))))
1138 (file-name (git-file-name name version))
1141 "1r72agk5nxf5k0mghcc2j90z43j5d9i7rqjmf49jfyqnd443isip"))))
1142 (build-system cmake-build-system)
1144 `(#:tests? #f ; there are no tests
1146 (modify-phases %standard-phases
1147 (add-after 'unpack 'remove-compiler-flags
1149 (substitute* (find-files "." "CMakeLists.txt")
1150 (("-msse2 -mfpmath=sse") ""))
1152 (add-after 'unpack 'fix-build-with-newer-lv2
1154 ;; https://github.com/ssj71/infamousPlugins/commit/4c7275b1fa8ea3296446421cbd29ec2df66588c0
1155 (substitute* (find-files "src" ".*\\.cxx")
1156 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
1159 (list cairo fftwf lv2 ntk zita-resampler))
1162 (home-page "https://ssj71.github.io/infamousPlugins")
1163 (synopsis "LV2 plugins for live use")
1165 "The infamous plugins are a collection of LV2 audio plugins for live
1166 performances. The plugins include a cellular automaton synthesizer, an
1167 envelope follower, distortion effects, tape effects and more.")
1168 (license license:gpl2+)))
1170 (define-public snapcast
1177 (url "https://github.com/badaix/snapcast")
1178 (commit (string-append "v" version))))
1179 (file-name (git-file-name name version))
1182 "091gf3k1xv3k0m0kf2apr9bwiifw2czjcksd3vzwy544sfgrya08"))))
1183 (build-system cmake-build-system)
1185 '(#:tests? #f)) ; no included tests
1197 (home-page "https://github.com/badaix/snapcast")
1198 (synopsis "Synchronous multiroom audio player")
1200 "Snapcast is a multi-room client-server audio player. Clients are time
1201 synchronized with the server to play synced audio.")
1202 (license license:gpl3+)))
1204 (define-public swh-plugins
1206 (name "swh-plugins")
1211 (url "https://github.com/swh/ladspa")
1212 (commit (string-append "v" version))))
1213 (file-name (git-file-name name version))
1216 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1220 gettext-minimal ;for autopoint
1226 (list fftwf perl-xml-parser))
1227 (build-system gnu-build-system)
1228 (home-page "http://plugin.org.uk")
1229 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1230 (description "This package provides Steve Harris's LADSPA plugins.")
1231 (license license:gpl2+)))
1233 (define-public swh-plugins-lv2
1235 (name "swh-plugins-lv2")
1240 (url "https://github.com/swh/lv2")
1241 (commit (string-append "v" version))))
1242 (file-name (git-file-name name version))
1245 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1246 (build-system gnu-build-system)
1248 `(#:tests? #f ; no check target
1249 #:make-flags (list "CC=gcc"
1250 (string-append "PREFIX="
1251 (assoc-ref %outputs "out")))
1253 (modify-phases %standard-phases
1254 ;; no configure script
1256 (add-after 'unpack 'patch-makefile-and-enter-directory
1257 ;; The default install target doesn't install, but the
1258 ;; "install-system" target does.
1260 (substitute* "Makefile"
1261 (("install:") "install: install-system"))
1266 (list libxslt pkg-config))
1267 (home-page "http://plugin.org.uk")
1268 (synopsis "SWH plugins in LV2 format")
1270 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1271 classes include: dynamics (compressor, limiter), time (delay, chorus,
1272 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1273 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1274 (license license:gpl3+)))
1276 (define-public libdjinterop
1278 (name "libdjinterop")
1284 (url "https://github.com/xsco/libdjinterop")
1286 (file-name (git-file-name name version))
1288 (base32 "16nrqpr90vb9ggmp9j73m0hspd7pmfdhh0g6iyp8vd7kx7g17qnk"))))
1289 (build-system meson-build-system)
1292 (modify-phases %standard-phases
1293 ;; crate_test writes a database file to the source tree.
1294 (add-after 'unpack 'make-git-checkout-writable
1296 (for-each make-file-writable (find-files ".")))))))
1298 (list boost pkg-config))
1301 (home-page "https://github.com/xsco/libdjinterop")
1302 (synopsis "C++ library for access to DJ record libraries")
1304 "@code{libdjinterop} is a C++ library that allows access to database
1305 formats used to store information about DJ record libraries.")
1306 (license license:lgpl3+)))
1311 (version "1.0-beta-10May2006")
1314 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1316 "tao-" version ".tar.gz"))
1319 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1321 (search-patches "tao-add-missing-headers.patch"
1322 "tao-fix-parser-types.patch"))
1323 (modules '((guix build utils)))
1325 '(substitute* "configure"
1326 (("SHELL=/bin/sh") "")))))
1327 (build-system gnu-build-system)
1329 '(#:configure-flags '("TAO_RELEASE=-beta")
1331 (modify-phases %standard-phases
1332 (add-after 'unpack 'fix-references
1333 (lambda* (#:key outputs #:allow-other-keys)
1334 (substitute* "user-scripts/tao.in"
1336 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1337 (("grep") (which "grep"))
1338 (("sed -f \\$distdir/user-scripts/")
1339 (string-append (which "sed") " -f $distdir/"))
1341 (string-append "distdir="
1342 (assoc-ref outputs "out") "/share/tao")))))
1343 (add-after 'install 'install-extra-files
1344 (lambda* (#:key outputs #:allow-other-keys)
1345 (let* ((out (assoc-ref outputs "out"))
1346 (share (string-append out "/share/tao/"))
1347 (inc (string-append out "/include/tao/")))
1350 (install-file "user-scripts/error.parse" share)
1351 (copy-recursively "examples" (string-append share "examples"))
1352 (for-each (lambda (file) (install-file file inc))
1353 (find-files "include" "\\.h"))))))))
1364 (home-page "http://taopm.sourceforge.net/")
1365 (synopsis "Sound Synthesis with Physical Models")
1366 (description "Tao is a software package for sound synthesis using physical
1367 models. It provides a virtual acoustic material constructed from masses and
1368 springs which can be used as the basis for building quite complex virtual
1369 musical instruments. Tao comes with a synthesis language for creating and
1370 playing instruments and a C++ API for those who would like to use it as an
1372 (license license:gpl2+)))
1374 (define-public tao-synth
1375 (let ((commit "f3aedd81efbc775574e591081b57ae1c08427064")
1379 (version (git-version "0" revision commit))
1383 (url "https://github.com/lucasw/tao_synth")
1385 (file-name (git-file-name name version))
1388 "1jds2l3cb96b02jxd7lmrjjl9s7mylnrvg6fpw0j8c141bk8vyg3"))))
1389 (build-system cmake-build-system)
1390 (arguments (list #:tests? #false)) ;there are no tests
1392 (list glfw freeglut))
1395 (home-page "https://github.com/lucasw/tao_synth")
1396 (synopsis "Sound synthesis with physical models")
1397 (description "Tao is a software package for sound synthesis using physical
1398 models. It provides a virtual acoustic material constructed from masses and
1399 springs which can be used as the basis for building quite complex virtual
1400 musical instruments. Tao comes with a synthesis language for creating and
1401 playing instruments and a C++ API for those who would like to use it as an
1403 (license license:lgpl2.0+))))
1405 (define-public csound
1413 (url "https://github.com/csound/csound")
1415 (file-name (git-file-name name version))
1417 (base32 "1lgasyk8j4cl9178vci1dph63nks3cgwhf8y1d04z9dc8gg15dyn"))))
1418 (build-system cmake-build-system)
1420 (list bison flex gettext-minimal zlib))
1429 (home-page "https://csound.com/")
1430 (synopsis "Sound and music computing system")
1432 "Csound is a user-programmable and user-extensible sound processing
1433 language and software synthesizer.")
1434 (license license:lgpl2.1+)))
1436 (define-public midicomp
1437 ;; The latest tagged release is 9 years old and there have been
1438 ;; unreleased fixes, so we take the last commit.
1439 (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68")
1443 (version (git-version "0.0.8" revision commit))
1448 (url "https://github.com/markc/midicomp")
1450 (file-name (git-file-name name version))
1453 "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf"))))
1454 (build-system cmake-build-system)
1456 `(#:tests? #f)) ; no "check" target
1457 (synopsis "Convert SMF MIDI files to and from plain text")
1459 "midicomp can manipulate SMF (Standard MIDI File) files. It can both
1460 read and write SMF files in 0 or format 1 and also read and write its own
1461 plain text format. This means a SMF file can be turned into easily
1462 parseable text, edited with any text editor or filtered through any script
1463 language, and recompiled back into a binary SMF file.")
1464 (home-page "https://github.com/markc/midicomp")
1465 (license license:agpl3))))
1467 (define-public clalsadrv
1474 "http://kokkinizita.linuxaudio.org"
1475 "/linuxaudio/downloads/clalsadrv-"
1476 version ".tar.bz2"))
1479 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1480 (build-system gnu-build-system)
1482 `(#:tests? #f ; no "check" target
1483 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1485 (modify-phases %standard-phases
1486 (add-after 'unpack 'patch-makefile-and-enter-directory
1488 (substitute* "libs/Makefile"
1489 (("/sbin/ldconfig") "true")
1490 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1493 (add-after 'install 'install-symlink
1495 (symlink "libclalsadrv.so"
1496 (string-append (assoc-ref %outputs "out")
1497 "/lib/libclalsadrv.so.2"))
1499 ;; no configure script
1500 (delete 'configure))))
1502 (list alsa-lib fftw))
1503 (home-page "https://kokkinizita.linuxaudio.org")
1504 (synopsis "C++ wrapper around the ALSA API")
1506 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1508 (license license:gpl2+)))
1510 (define-public amb-plugins
1512 (name "amb-plugins")
1517 "http://kokkinizita.linuxaudio.org"
1518 "/linuxaudio/downloads/AMB-plugins-"
1519 version ".tar.bz2"))
1522 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1523 (build-system gnu-build-system)
1525 `(#:tests? #f ; no "check" target
1527 (modify-phases %standard-phases
1528 ;; no configure script
1530 (add-before 'install 'prepare-target-directory
1531 (lambda* (#:key outputs #:allow-other-keys)
1532 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1534 (add-after 'unpack 'override-target-directory-and-tool-paths
1535 (lambda* (#:key outputs #:allow-other-keys)
1536 (substitute* "Makefile"
1537 (("/usr/lib/ladspa")
1538 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1539 (("/usr/bin/install") (which "install"))
1542 (home-page "https://kokkinizita.linuxaudio.org")
1543 (synopsis "LADSPA ambisonics plugins")
1545 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1546 used within Ardour. Features include: mono and stereo to B-format panning,
1547 horizontal rotator, square, hexagon and cube decoders.")
1548 (license license:gpl2+)))
1550 (define-public mcp-plugins
1552 (name "mcp-plugins")
1557 "http://kokkinizita.linuxaudio.org"
1558 "/linuxaudio/downloads/MCP-plugins-"
1559 version ".tar.bz2"))
1562 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1563 (build-system gnu-build-system)
1565 `(#:tests? #f ; no "check" target
1567 (modify-phases %standard-phases
1568 ;; no configure script
1570 (add-before 'install 'prepare-target-directory
1571 (lambda* (#:key outputs #:allow-other-keys)
1572 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1574 (add-after 'unpack 'override-target-directory
1575 (lambda* (#:key outputs #:allow-other-keys)
1576 (substitute* "Makefile"
1577 (("/usr") (assoc-ref outputs "out")))
1579 (home-page "https://kokkinizita.linuxaudio.org")
1580 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1582 "This package provides various LADSPA plugins. @code{cs_chorus} and
1583 @code{cs_phaser} provide chorus and phaser effects, respectively;
1584 @code{mvclpf24} provides four implementations of the low-pass filter used in
1585 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1586 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1587 the non-linear circuit elements of their original analog counterparts.")
1588 (license license:gpl2+)))
1590 (define-public rev-plugins
1592 (name "rev-plugins")
1597 "http://kokkinizita.linuxaudio.org"
1598 "/linuxaudio/downloads/REV-plugins-"
1599 version ".tar.bz2"))
1602 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1603 (build-system gnu-build-system)
1605 `(#:tests? #f ; no "check" target
1607 (modify-phases %standard-phases
1608 ;; no configure script
1610 (add-before 'install 'prepare-target-directory
1611 (lambda* (#:key outputs #:allow-other-keys)
1612 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1614 (add-after 'unpack 'override-target-directory
1615 (lambda* (#:key outputs #:allow-other-keys)
1616 (substitute* "Makefile"
1617 (("/usr") (assoc-ref outputs "out")))
1619 (home-page "https://kokkinizita.linuxaudio.org")
1620 (synopsis "LADSPA reverb plugin")
1622 "This package provides a stereo reverb LADSPA plugin based on the
1623 well-known greverb.")
1624 (license license:gpl2+)))
1626 (define-public fil-plugins
1628 (name "fil-plugins")
1633 "http://kokkinizita.linuxaudio.org"
1634 "/linuxaudio/downloads/FIL-plugins-"
1635 version ".tar.bz2"))
1638 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1639 (build-system gnu-build-system)
1641 `(#:tests? #f ; no "check" target
1643 (modify-phases %standard-phases
1644 ;; no configure script
1646 (add-before 'install 'prepare-target-directory
1647 (lambda* (#:key outputs #:allow-other-keys)
1648 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1650 (add-after 'unpack 'override-target-directory
1651 (lambda* (#:key outputs #:allow-other-keys)
1652 (substitute* "Makefile"
1653 (("/usr") (assoc-ref outputs "out")))
1655 (home-page "https://kokkinizita.linuxaudio.org")
1656 (synopsis "LADSPA four-band parametric equalizer plugin")
1658 "This package provides a LADSPA plugin for a four-band parametric
1659 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1660 gain controls. There is also a global bypass switch and gain control.
1662 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1663 lattice filter, which is stable even while parameters are being changed.
1665 All switches and controls are internally smoothed, so they can be used @code{live}
1666 without any clicks or zipper noises. This makes this plugin suitable for use
1667 in systems that allow automation of plugin control ports, such as Ardour, or
1669 (license license:gpl2+)))
1671 (define-public ste-plugins
1673 (name "ste-plugins")
1678 "http://kokkinizita.linuxaudio.org"
1679 "/linuxaudio/downloads/STE-plugins-"
1680 version ".tar.bz2"))
1683 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1684 (build-system gnu-build-system)
1686 `(#:tests? #f ; no "check" target
1688 (modify-phases %standard-phases
1689 ;; no configure script
1691 (add-before 'install 'prepare-target-directory
1692 (lambda* (#:key outputs #:allow-other-keys)
1693 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1695 (add-after 'unpack 'override-target-directory
1696 (lambda* (#:key outputs #:allow-other-keys)
1697 (substitute* "Makefile"
1698 (("/usr") (assoc-ref outputs "out")))
1700 (home-page "https://kokkinizita.linuxaudio.org")
1701 (synopsis "LADSPA stereo width plugin")
1703 "This package provides a LADSPA plugin to manipulate the stereo width of
1705 (license license:gpl2+)))
1707 (define-public vco-plugins
1709 (name "vco-plugins")
1714 "http://kokkinizita.linuxaudio.org"
1715 "/linuxaudio/downloads/VCO-plugins-"
1716 version ".tar.bz2"))
1719 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1720 (build-system gnu-build-system)
1722 `(#:tests? #f ; no "check" target
1724 (modify-phases %standard-phases
1725 ;; no configure script
1727 (add-before 'install 'prepare-target-directory
1728 (lambda* (#:key outputs #:allow-other-keys)
1729 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1731 (add-after 'unpack 'override-target-directory
1732 (lambda* (#:key outputs #:allow-other-keys)
1733 (substitute* "Makefile"
1734 (("/usr") (assoc-ref outputs "out"))
1735 (("/bin/cp") (which "cp")))
1737 (home-page "https://kokkinizita.linuxaudio.org")
1738 (synopsis "LADSPA plugin for synthesizer oscillators")
1740 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1743 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1744 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1745 @item Rec-VCO, a square / rectangle oscillator
1748 All oscillators are low-pass filtered to provide waveforms similar to the
1749 output of analog synthesizers such as the Moog Voyager.")
1750 (license license:gpl2+)))
1752 (define-public wah-plugins
1754 (name "wah-plugins")
1759 "http://kokkinizita.linuxaudio.org"
1760 "/linuxaudio/downloads/WAH-plugins-"
1761 version ".tar.bz2"))
1764 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1765 (build-system gnu-build-system)
1767 `(#:tests? #f ; no "check" target
1769 (modify-phases %standard-phases
1770 ;; no configure script
1772 (add-before 'install 'prepare-target-directory
1773 (lambda* (#:key outputs #:allow-other-keys)
1774 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1776 (add-after 'unpack 'override-target-directory
1777 (lambda* (#:key outputs #:allow-other-keys)
1778 (substitute* "Makefile"
1779 (("/usr") (assoc-ref outputs "out")))
1781 (home-page "https://kokkinizita.linuxaudio.org")
1782 (synopsis "LADSPA Autowah effect plugin")
1784 "This package provides a LADSPA plugin for a Wah effect with envelope
1786 (license license:gpl2+)))
1788 (define-public g2reverb
1795 "http://kokkinizita.linuxaudio.org"
1796 "/linuxaudio/downloads/g2reverb-"
1797 version ".tar.bz2"))
1800 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1801 (build-system gnu-build-system)
1803 `(#:tests? #f ; no "check" target
1805 (modify-phases %standard-phases
1806 ;; no configure script
1808 (add-before 'install 'prepare-target-directory
1809 (lambda* (#:key outputs #:allow-other-keys)
1810 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1812 (add-after 'unpack 'override-target-directory
1813 (lambda* (#:key outputs #:allow-other-keys)
1814 (substitute* "Makefile"
1815 (("/usr") (assoc-ref outputs "out")))
1817 (home-page "https://kokkinizita.linuxaudio.org")
1818 (synopsis "LADSPA stereo reverb plugin")
1820 "This package provides a LADSPA plugin for a stereo reverb effect.")
1821 (license license:gpl2+)))
1823 (define-public fluidsynth
1830 (url "https://github.com/FluidSynth/fluidsynth")
1831 (commit (string-append "v" version))))
1832 (file-name (git-file-name name version))
1835 "1061rdj69503spkd8vmfl3fqvyg4l41k5xcc4gw7niy31hnpnjmn"))))
1836 (build-system cmake-build-system)
1838 '(#:tests? #f ; no check target
1840 (modify-phases %standard-phases
1841 (add-after 'unpack 'fix-libdir
1843 ;; Install libraries to /lib, not /lib64.
1844 (substitute* "CMakeLists.txt"
1845 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1846 "LIB_SUFFIX \"\"")))))))
1852 ;; In Libs.private of fluidsynth.pc.
1859 (home-page "https://www.fluidsynth.org/")
1860 (synopsis "SoundFont synthesizer")
1862 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1863 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1864 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1865 also play midifiles using a Soundfont.")
1866 (license license:lgpl2.1+)))
1868 (define-public faad2
1876 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1877 (version-major+minor version) ".0/"
1878 "faad2-" version ".tar.gz"))
1880 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1881 (build-system gnu-build-system)
1882 (home-page "https://www.audiocoding.com/faad2.html")
1883 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1885 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1886 (license license:gpl2+)))
1888 (define-public faust
1895 (url "https://github.com/grame-cncm/faust")
1896 (commit (string-append "v"
1897 (string-map (lambda (c)
1898 (if (char=? c #\.) #\- c))
1900 (file-name (string-append "faust-" version "-checkout"))
1903 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1904 (build-system gnu-build-system)
1906 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1909 (modify-phases %standard-phases
1910 ;; no "configure" script
1912 ;; Files appear under $out/share/faust that are read-only. The
1913 ;; install phase tries to overwrite them and fails, so we change
1914 ;; the permissions first.
1915 (add-before 'install 'fix-permissions
1917 (for-each (lambda (file)
1919 (find-files "architecture/max-msp" ".*"))
1923 (home-page "https://faust.grame.fr/")
1924 (synopsis "Signal processing language")
1926 "Faust is a programming language for realtime audio signal processing.")
1927 (license license:gpl2+)))
1929 ;; This version is needed to build older synths that require the lv2synth.cpp
1930 ;; architecture file, such as sorcer.
1931 (define-public faust-0.9.67
1939 (url "https://github.com/grame-cncm/faust")
1940 (commit (string-append "v"
1941 (string-map (lambda (c)
1942 (if (char=? c #\.) #\- c))
1944 (file-name (git-file-name name version))
1947 "0856x666s6ymzk8v15f9gy402dbr8c9v2s40hyfadhraqljmqrm0"))
1949 ;; Remove prebuilt library
1950 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
1951 (build-system gnu-build-system)
1955 #~(list (string-append "prefix=" #$output))
1958 '(modify-phases %standard-phases
1959 ;; no "configure" script
1960 (delete 'configure))))
1961 (native-inputs (list unzip))))
1963 (define-public faust-2
1969 (uri (string-append "https://github.com/grame-cncm/faust/"
1970 "releases/download/" version
1971 "/faust-" version ".tar.gz"))
1974 "0gk8ifxrbykq7ay0nvjns8fjryhp0wfhv5npgrl8xpgw9wfmw53j"))))
1975 (build-system cmake-build-system)
1977 `(#:tests? #f ; no tests
1979 (modify-phases %standard-phases
1980 ;; The upstream package uses make to run cmake during the build stage.
1981 ;; Here we ignore the Makefile and call cmake directly.
1985 (invoke "cmake" "-C" "backends/all.cmake"
1986 (string-append "-DCMAKE_INSTALL_PREFIX="
1987 (assoc-ref %outputs "out")))))
1988 ;; The sound2faust tool would be built in the Makefile's "world" target
1989 (add-after 'install 'sound2faust
1991 (chdir "../tools/sound2faust")
1992 (setenv "PREFIX" (assoc-ref %outputs "out"))
1994 (invoke "make" "install"))))))
1999 ("ctags" ,emacs-minimal) ; for ctags
2000 ("pkg-config" ,pkg-config)))
2002 (list libsndfile libmicrohttpd ncurses openssl zlib))))
2004 (define-public freepats
2007 (version "20060219")
2010 (uri (string-append "http://freepats.zenvoid.org/freepats-"
2011 version ".tar.bz2"))
2014 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
2015 (build-system trivial-build-system)
2017 `(#:modules ((guix build utils))
2019 (use-modules (guix build utils))
2020 (let ((out (string-append %output "/share/freepats")))
2021 (setenv "PATH" (string-append
2022 (assoc-ref %build-inputs "bzip2") "/bin:"
2023 (assoc-ref %build-inputs "tar") "/bin"))
2024 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2026 ;; Use absolute pattern references
2027 (substitute* "freepats.cfg"
2028 (("Tone_000") (string-append out "/Tone_000"))
2029 (("Drum_000") (string-append out "/Drum_000")))
2031 (copy-recursively "." out)
2035 (home-page "http://freepats.zenvoid.org")
2036 (synopsis "GUS compatible patches for MIDI players")
2038 "FreePats is a project to create a free and open set of GUS compatible
2039 patches that can be used with softsynths such as Timidity and WildMidi.")
2040 ;; GPLv2+ with exception for compositions using these patches.
2041 (license license:gpl2+)))
2043 (define-public freepats-gm
2045 (name "freepats-gm")
2046 (version "20210329")
2049 (uri (string-append "https://freepats.zenvoid.org/SoundSets/"
2050 "FreePats-GeneralMIDI/FreePatsGM-SF2-" version ".7z"))
2053 "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc"))))
2054 (build-system trivial-build-system)
2056 `(("p7zip" ,p7zip)))
2058 `(#:modules ((guix build utils))
2060 (let ((dir (string-append "FreePatsGM-SF2-" ,version))
2061 (file (string-append "FreePatsGM-" ,version ".sf2"))
2062 (out (string-append %output "/share/soundfonts"))
2063 (doc (string-append %output "/share/doc/freepats-gm-" ,version)))
2064 (use-modules (guix build utils))
2065 (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")
2066 "e" (assoc-ref %build-inputs "source")
2067 (string-append dir "/" file)
2068 (string-append dir "/gpl.txt")
2069 (string-append dir "/cc0.txt")
2070 (string-append dir "/readme.txt"))
2072 (copy-file file (string-append out "/FreePatsGM.sf2"))
2076 (copy-file file (string-append doc "/" file)))
2077 (find-files "." "\\.txt$"))
2079 (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html")
2080 (synopsis "General MIDI sound set")
2081 (description "FreePats is a project to create a free (as in free software)
2082 collection of digital instruments for music production. This sound bank is a
2083 partial release of the General MIDI sound set.")
2085 license:gpl3+ ; with sampling exception
2088 (define-public guitarix
2095 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
2099 "1bsjlfd7x09p3iiljilyfbns6hpqn9cgp6psl4ccd6i1lwascfrm"))))
2100 (build-system waf-build-system)
2102 `(#:tests? #f ; no "check" target
2105 ;; Add the output lib directory to the RUNPATH.
2106 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
2126 ("intltool" ,intltool)
2127 ("gettext" ,gettext-minimal)
2128 ("pkg-config" ,pkg-config)
2130 (native-search-paths
2131 (list (search-path-specification
2132 (variable "LV2_PATH")
2133 (files '("lib/lv2")))))
2134 (home-page "https://guitarix.org/")
2135 (synopsis "Virtual guitar amplifier")
2136 (description "Guitarix is a virtual guitar amplifier running JACK.
2137 Guitarix takes the signal from your guitar as a mono-signal from your sound
2138 card. The input is processed by a main amp and a rack-section. Both can be
2139 routed separately and deliver a processed stereo-signal via JACK. You may
2140 fill the rack with effects from more than 25 built-in modules including stuff
2141 from a simple noise gate to modulation effects like flanger, phaser or
2143 (license license:gpl2+)))
2145 (define-public guitarix-lv2
2146 (package (inherit guitarix)
2147 (name "guitarix-lv2")
2149 (substitute-keyword-arguments (package-arguments guitarix)
2150 ((#:configure-flags flags)
2151 `(cons "--no-standalone" ,flags))))))
2153 (define-public rakarrack
2159 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
2160 "rakarrack-" version "/rakarrack-"
2161 version ".tar.bz2"))
2164 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
2165 (modules '((guix build utils)))
2168 (substitute* '("src/process.C"
2170 (("#include <Fl/") "#include <FL/"))
2172 (build-system gnu-build-system)
2189 (home-page "http://rakarrack.sourceforge.net/")
2190 (synopsis "Audio effects processor")
2192 "Rakarrack is a richly featured multi-effects processor emulating a
2193 guitar effects pedalboard. Effects include compressor, expander, noise gate,
2194 equalizers, exciter, flangers, chorus, various delay and reverb effects,
2195 distortion modules and many more. Most of the effects engine is built from
2196 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
2197 user interface are optimized for guitar, but Rakarrack processes signals in
2198 stereo while it does not apply internal band-limiting filtering, and thus is
2199 well suited to all musical instruments and vocals.")
2200 ;; The code is explicitly licensed under the GPL version 2 only.
2201 (license license:gpl2)))
2210 (url "https://github.com/tomszilagyi/ir.lv2")
2212 (file-name (git-file-name name version))
2215 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
2216 (build-system gnu-build-system)
2218 `(#:tests? #f ; no tests
2220 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2221 (string-append "INSTDIR="
2222 (assoc-ref %outputs "out") "/lib/lv2"))
2224 (modify-phases %standard-phases
2225 (delete 'configure) ; no configure script
2226 ;; See https://github.com/tomszilagyi/ir.lv2/pull/20
2227 (add-after 'unpack 'fix-type
2229 (substitute* '("ir_gui.cc" "lv2_ui.h")
2230 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
2241 (native-search-paths
2242 (list (search-path-specification
2243 (variable "LV2_PATH")
2244 (files '("lib/lv2")))))
2245 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
2246 (synopsis "LV2 convolution reverb")
2248 "IR is a low-latency, real-time, high performance signal convolver
2249 especially for creating reverb effects. It supports impulse responses with 1,
2250 2 or 4 channels, in any soundfile format supported by libsndfile.")
2251 (license license:gpl2+)))
2253 (define-public jack-1
2260 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2261 ;; no longer exists (404). Use an unofficial mirror.
2262 (uri (string-append "https://crux.ster.zone/downloads/"
2263 "jack-audio-connection-kit/"
2264 "jack-audio-connection-kit-" version ".tar.gz"))
2266 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2267 (build-system gnu-build-system)
2269 `(#:phases (modify-phases %standard-phases
2270 (add-after 'unpack 'patch-configure
2272 (substitute* "configure"
2273 ;; Install to <out/lib> regardless of platform.
2274 (("libnn=lib64") "libnn=lib"))
2277 (list alsa-lib readline))
2278 ;; uuid.h is included in the JACK type headers
2279 ;; db.h is included in the libjack metadata headers
2281 `(("libuuid" ,util-linux "lib")
2285 (home-page "https://jackaudio.org/")
2286 (synopsis "JACK audio connection kit")
2288 "JACK is a low-latency audio server. It can connect a number of
2289 different applications to an audio device, as well as allowing them to share
2290 audio between themselves. JACK is different from other audio server efforts
2291 in that it has been designed from the ground up to be suitable for
2292 professional audio work. This means that it focuses on two key areas:
2293 synchronous execution of all clients, and low latency operation.")
2294 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2295 ;; licensed under the LGPL in order to allow for proprietary usage.
2296 (license (list license:gpl2+ license:lgpl2.1+))))
2298 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2299 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2300 ;; program for users who might benefit from the D-BUS features.
2301 (define-public jack-2
2309 (url "https://github.com/jackaudio/jack2")
2310 (commit (string-append "v" version))))
2311 (file-name (git-file-name name version))
2314 "0sbrffmdbajvrk7iqvsvrnwnpvmicvbjyq3f52r6ashdsznsz03b"))))
2315 (build-system waf-build-system)
2317 `(#:tests? #f ; no check target
2318 #:configure-flags '("--dbus" "--alsa")
2320 (modify-phases %standard-phases
2321 (add-before 'configure 'set-linkflags
2323 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2324 ;; will not link with undefined reference to symbol
2325 ;; '__gxx_personality_v0@@CXXABI_1.3'
2326 (setenv "LDFLAGS" "-lstdc++")
2327 ;; Add $libdir to the RUNPATH of all the binaries.
2328 (substitute* "wscript"
2329 ((".*CFLAGS.*-Wall.*" m)
2331 " conf.env.append_unique('LINKFLAGS',"
2332 "'-Wl,-rpath=" %output "/lib')\n")))))
2333 (add-after 'install 'wrap-python-scripts
2334 (lambda* (#:key outputs #:allow-other-keys)
2335 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2336 (wrap-program (search-input-file outputs "bin/jack_control")
2337 `("GUIX_PYTHONPATH" ":"
2338 prefix (,(getenv "GUIX_PYTHONPATH")))))))))
2349 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2350 (license (list license:gpl2+ license:lgpl2.1+))))
2358 (uri (string-append "https://download.drobilla.net/jalv-"
2359 version ".tar.bz2"))
2362 "05lycfq0f06zjp5xqvzjz9hx9kmqx72yng1lghh76hv63dw43lcj"))))
2363 (build-system waf-build-system)
2365 `(#:tests? #f)) ; no check target
2376 (home-page "https://drobilla.net/software/jalv/")
2377 (synopsis "Simple LV2 host for JACK")
2379 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2380 plugins and exposes their ports as JACK ports, essentially making any LV2
2381 plugin function as a JACK application.")
2382 (license license:isc)))
2384 (define-public ladspa
2391 ;; Since the official link is dead,
2392 ;; we download the tarball from Debian or Internet Archive.
2393 (uri (list (string-append "http://http.debian.net"
2394 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2395 version ".orig.tar.gz")
2396 (string-append "https://web.archive.org/web/20140717172251/"
2397 "http://www.ladspa.org/download/ladspa_sdk_"
2401 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2402 (build-system gnu-build-system)
2404 `(#:tests? #f ; the "test" target is a listening test only
2406 (modify-phases %standard-phases
2408 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2410 (let ((out (assoc-ref outputs "out")))
2411 (substitute* "makefile"
2412 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2413 (("/usr/include/") (string-append out "/include/"))
2414 (("/usr/bin/") (string-append out "/bin/"))
2415 (("-mkdirhier") "mkdir -p")
2416 (("^CC.*") "CC = gcc\n")
2417 (("^CPP.*") "CPP = g++\n")))
2420 ;; Since the home page is gone, we provide a link to the archived version.
2422 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2423 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2425 "LADSPA is a standard that allows software audio processors and effects
2426 to be plugged into a wide range of audio synthesis and recording packages.")
2427 (license license:lgpl2.1+)))
2432 (version "0.6.0-rc2")
2435 ;; The tilde is not permitted in the builder name, but is used
2438 "mirror://savannah/lash/lash-"
2439 (string-join (string-split version #\-) "~")
2441 (file-name (string-append name "-" version ".tar.bz2"))
2444 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2445 (build-system gnu-build-system)
2447 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2448 ;; to use libtirpc instead.
2449 #:make-flags (list (string-append "CFLAGS=-I"
2450 (assoc-ref %build-inputs "libtirpc")
2451 "/include/tirpc -ltirpc"))
2453 (modify-phases %standard-phases
2454 ;; lashd embeds an ancient version of sigsegv so we just skip it
2455 (add-after 'unpack 'skip-lashd
2457 (substitute* '("Makefile.am" "Makefile.in")
2460 #:configure-flags '("--disable-static")))
2465 ("libtirpc" ,libtirpc)
2466 ("readline" ,readline)
2467 ("python" ,python-2)))
2468 ;; According to pkg-config, packages depending on lash also need to have
2469 ;; at least the following packages declared as inputs.
2471 (list alsa-lib dbus libxml2))
2474 (home-page "https://www.nongnu.org/lash/")
2475 (synopsis "Audio application session manager")
2477 "LASH is a session management system for audio applications. It allows
2478 you to save and restore audio sessions consisting of multiple interconneced
2479 applications, restoring program state (i.e. loaded patches) and the
2480 connections between them.")
2481 (license license:gpl2+)))
2483 (define-public libbs2b
2489 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2490 "/libbs2b-" version ".tar.lzma"))
2493 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2494 (build-system gnu-build-system)
2495 (native-inputs (list pkg-config))
2496 (inputs (list libsndfile))
2497 (home-page "https://sourceforge.net/projects/bs2b/")
2498 (synopsis "Bauer stereophonic-to-binaural DSP")
2500 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2501 designed to improve headphone listening of stereo audio records. Recommended
2502 for headphone prolonged listening to disable superstereo fatigue without
2503 essential distortions.")
2504 (license license:expat)))
2506 (define-public ladspa-bs2b
2508 (name "ladspa-bs2b")
2513 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2514 version "/" name "-" version ".tar.gz"))
2517 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2518 (build-system gnu-build-system)
2519 (native-inputs (list pkg-config))
2520 (inputs (list ladspa libbs2b))
2521 (home-page "https://sourceforge.net/projects/bs2b/")
2522 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2523 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2524 plugins is designed to improve headphone listening of stereo audio records.
2525 Recommended for headphone prolonged listening to disable superstereo fatigue
2526 without essential distortions. This package contains a LADSPA plugin for use
2527 with applications that support them (e.g. PulseAudio).")
2528 (license license:gpl2+)))
2530 (define-public liblo
2536 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2537 "/liblo-" version ".tar.gz"))
2540 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2541 (build-system gnu-build-system)
2543 `(;; liblo test FAILED
2544 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2546 (home-page "http://liblo.sourceforge.net")
2547 (synopsis "Implementation of the Open Sound Control protocol")
2549 "liblo is a lightweight library that provides an easy to use
2550 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2551 (license license:lgpl2.1+)))
2553 (define-public rtaudio
2561 (url "https://github.com/thestk/rtaudio")
2563 (file-name (git-file-name name version))
2565 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2566 (build-system cmake-build-system)
2569 (modify-phases %standard-phases
2570 ;; The header that pkg-config expects is include/rtaudio/RtAudio.h,
2571 ;; but this package installs it as include/RtAudio.h by default.
2572 (add-after 'install 'fix-inc-path
2573 (lambda* (#:key outputs #:allow-other-keys)
2574 (let* ((out (assoc-ref outputs "out"))
2575 (inc (string-append out "/include")))
2576 (mkdir-p (string-append inc "/rtaudio"))
2577 (rename-file (string-append inc "/RtAudio.h")
2578 (string-append inc "/rtaudio/RtAudio.h"))))))))
2582 (list alsa-lib jack-1 pulseaudio))
2583 (synopsis "Common API for real-time audio I/O")
2585 "RtAudio is a set of C++ classes that provides a common API for real-time
2586 audio input/output. It was designed with the following objectives:
2589 @item object-oriented C++ design
2590 @item simple, common API across all supported platforms
2591 @item only one source and one header file for easy inclusion in programming
2593 @item allow simultaneous multi-api support
2594 @item support dynamic connection of devices
2595 @item provide extensive audio device parameter control
2596 @item allow audio device capability probing
2597 @item automatic internal conversion for data format, channel number
2598 compensation, (de)interleaving, and byte-swapping
2600 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2601 ;; License is expat with a non-binding request to send modifications to
2602 ;; original developer.
2603 (license license:expat)))
2605 (define-public python-pyaudio
2607 (name "python-pyaudio")
2612 (uri (pypi-uri "PyAudio" version))
2615 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2616 (build-system python-build-system)
2619 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2620 (synopsis "Bindings for PortAudio v19")
2621 (description "This package provides bindings for PortAudio v19, the
2622 cross-platform audio input/output stream library.")
2623 (license license:expat)))
2625 (define-public python-pyliblo
2627 (name "python-pyliblo")
2631 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2635 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2636 (build-system python-build-system)
2637 (arguments `(#:tests? #f)) ;no tests
2639 (list python-cython))
2642 (home-page "http://das.nasophon.de/pyliblo/")
2643 (synopsis "Python bindings for liblo")
2645 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2646 library. It supports almost the complete functionality of liblo, allowing you
2647 to send and receive OSC messages using a nice and simple Python API. Also
2648 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2649 (license license:lgpl2.1+)))
2651 (define-public python-soundfile
2653 (name "python-soundfile")
2654 (version "0.10.3.post1")
2658 (uri (pypi-uri "SoundFile" version))
2661 "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
2662 (build-system python-build-system)
2664 (list python-cffi python-numpy libsndfile))
2666 (list python-pytest))
2668 `(#:tests? #f ; missing OGG support
2670 (modify-phases %standard-phases
2671 (add-after 'unpack 'patch
2672 (lambda* (#:key inputs #:allow-other-keys)
2673 (substitute* "soundfile.py"
2674 (("_find_library\\('sndfile'\\)")
2675 (string-append "\"" (assoc-ref inputs "libsndfile")
2676 "/lib/libsndfile.so\""))))))))
2677 (home-page "https://github.com/bastibe/SoundFile")
2678 (synopsis "Python bindings for libsndfile")
2679 (description "This package provides python bindings for libsndfile based on
2681 (license license:expat)))
2683 (define-public python-python3-midi
2685 (name "python-python3-midi")
2690 (uri (pypi-uri "python3_midi" version))
2693 "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
2694 (build-system python-build-system)
2695 (home-page "https://github.com/NFJones/python3-midi")
2696 (synopsis "Python MIDI API")
2697 (description "This package provides a python API to read and write MIDI
2699 (license license:expat)))
2701 (define-public audio-to-midi
2703 (name "audio-to-midi")
2709 (url "https://github.com/NFJones/audio-to-midi")
2710 (commit (string-append "v" version))))
2711 (file-name (git-file-name name version))
2714 "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
2715 (build-system python-build-system)
2728 (modify-phases %standard-phases
2729 (add-after 'unpack 'fix-versions
2731 (substitute* "requirements.txt" (("==") ">=")))))))
2732 (home-page "https://github.com/NFJones/audio-to-midi")
2733 (synopsis "Convert audio to multichannel MIDI")
2734 (description "@command{audio-to-midi} converts audio files to multichannel
2735 MIDI files. It accomplishes this by performing FFTs on all channels of the
2736 audio data at user-specified time steps. It then separates the resulting
2737 frequency analysis into equivalence classes which correspond to the twelve tone
2738 scale; the volume of each class being the average volume of its constituent
2739 frequencies. This data is then formatted to MIDI and written to disk.")
2740 (license license:expat)))
2748 (uri (string-append "https://download.drobilla.net/lilv-"
2749 version ".tar.bz2"))
2752 "0qchfsyrsrp2pdpd59025kllycr04ddpzd03ha1iz70ci687g8r6"))))
2753 (build-system waf-build-system)
2755 `(#:tests? #f ; no check target
2757 (modify-phases %standard-phases
2758 (add-before 'configure 'set-ldflags
2759 (lambda* (#:key outputs #:allow-other-keys)
2761 (string-append "-Wl,-rpath="
2762 (assoc-ref outputs "out") "/lib"))))
2763 (add-after 'unpack 'full-store-path-to-shared-library
2764 (lambda* (#:key outputs #:allow-other-keys)
2765 (with-directory-excursion "bindings/python"
2766 (substitute* "lilv.py"
2767 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2768 "/lib/liblilv-0.so")))))))))
2769 ;; Required by lilv-0.pc.
2771 (list lv2 serd sord sratom))
2773 (list python pkg-config))
2774 (home-page "https://drobilla.net/software/lilv")
2775 (synopsis "Library to simplify use of LV2 plugins in applications")
2777 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2778 for applications. Lilv is the successor to SLV2, rewritten to be
2779 significantly faster and have minimal dependencies.")
2780 (license license:isc)))
2788 (uri (string-append "https://lv2plug.in/spec/lv2-"
2789 version ".tar.bz2"))
2792 "0pp0n9x1rg8d4fw853z9cvfifjdi4bl85yjxxddqa1acfjy1z2af"))))
2793 (build-system waf-build-system)
2795 `(#:tests? #f ; no check target
2796 #:configure-flags '("--no-plugins")))
2798 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2802 (home-page "https://lv2plug.in/")
2803 (synopsis "LV2 audio plugin specification")
2805 "LV2 is an open specification for audio plugins and host applications.
2806 At its core, LV2 is a simple stable interface, accompanied by extensions which
2807 add functionality to support the needs of increasingly powerful audio
2809 (license license:isc)))
2811 (define-public ttl2c
2818 (url "https://github.com/lvtk/ttl2c")
2820 (file-name (git-file-name name version))
2823 "0aybx8i5i0sridi9130a3937xgmfmjkk8m48f9whvhlhbzwy3xbl"))))
2824 (build-system waf-build-system)
2827 #:tests? #false ;no check target
2829 `(modify-phases %standard-phases
2830 (add-before 'configure 'setup-waf
2831 (lambda* (#:key inputs #:allow-other-keys)
2832 (let ((waf (assoc-ref inputs "python-waf")))
2833 (copy-file (string-append waf "/bin/waf") "waf")))))))
2834 (inputs (list boost))
2835 (native-inputs (list python-waf))
2836 (home-page "https://github.com/lvtk/ttl2c")
2837 (synopsis "Turtle to C header conversion utility for LV2 plugins")
2839 "This package provides a conversion utility for LV2 Plugin developers to
2840 generate C headers from Turtle files.")
2841 (license license:gpl3+)))
2843 (define-public lv2-mda-piano
2845 (name "lv2-mda-piano")
2850 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2852 (file-name (git-file-name name version))
2855 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2856 (build-system gnu-build-system)
2858 `(#:make-flags (list
2860 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2861 #:tests? #f ; no check target
2862 #:phases (modify-phases %standard-phases (delete 'configure))))
2866 (list pkg-config ttl2c))
2867 (native-search-paths
2868 (list (search-path-specification
2869 (variable "LV2_PATH")
2870 (files '("lib/lv2")))))
2871 (home-page "https://elephly.net/lv2/mdapiano.html")
2872 (synopsis "LV2 port of the mda Piano plugin")
2873 (description "An LV2 port of the mda Piano VSTi.")
2874 (license license:gpl3+)))
2876 (define-public lv2-mda-epiano
2877 (package (inherit lv2-mda-piano)
2878 (name "lv2-mda-epiano")
2880 `(#:make-flags (list
2882 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2883 #:tests? #f ; no check target
2884 #:phases (modify-phases %standard-phases (delete 'configure))))
2885 (home-page "https://elephly.net/lv2/mdaepiano.html")
2886 (synopsis "LV2 port of the mda EPiano plugin")
2887 (description "An LV2 port of the mda EPiano VSTi.")))
2889 (define-public lvtk-2
2890 ;; Use the latest commit, as the latest release was made in 2014 and depends
2892 (let ((commit "a73feabe772f9650aa071e6a4df660e549ab7c48")
2896 (version (git-version "2" revision commit))
2900 (url "https://github.com/lvtk/lvtk")
2902 (file-name (git-file-name name version))
2905 "0scmv8b4jlm88d21dqqchjy98wb93zclc9x960h213gdi871vsaj"))))
2906 (build-system waf-build-system)
2907 (arguments (list #:tests? #f)) ;no check target
2908 (inputs (list boost gtkmm lv2))
2909 (native-inputs (list pkg-config))
2910 (home-page "https://github.com/lvtk/lvtk")
2911 (synopsis "C++ libraries for LV2 plugins")
2913 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2914 extensions into easy to use C++ classes. It is the successor of
2916 (license license:isc))))
2918 (define-public lvtk-1
2919 ;; Use the latest commit, as the latest release was made in 2014 and depends
2921 (let ((commit "23dd99531d88d7821b69f6f0d60516ef322a6729")
2925 (version (git-version "1.2.0" revision commit))
2929 (url "https://github.com/lvtk/lvtk")
2931 (file-name (git-file-name name version))
2934 "0iw7skvsn3whw69dhcxbbdns7mssaf6z6iyzxjav53607ibyfr8d"))))
2935 (build-system waf-build-system)
2938 #:tests? #false ;no check target
2940 #~(list (string-append "--boost-includes="
2941 #$(this-package-input "boost")
2944 `(modify-phases %standard-phases
2945 (add-before 'configure 'setup-waf
2946 (lambda* (#:key inputs #:allow-other-keys)
2947 (let ((waf (assoc-ref inputs "python-waf")))
2948 (copy-file (string-append waf "/bin/waf") "waf")))))))
2949 (inputs (list boost gtkmm lv2))
2950 (native-inputs (list pkg-config python-waf))
2951 (home-page "https://github.com/lvtk/lvtk")
2952 (synopsis "C++ libraries for LV2 plugins")
2954 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2955 extensions into easy to use C++ classes. It is the successor of
2957 (license license:isc))))
2959 (define-public lvtk lvtk-1)
2961 (define-public openal
2968 "https://openal-soft.org/openal-releases/openal-soft-"
2969 version ".tar.bz2"))
2972 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2973 (build-system cmake-build-system)
2975 `(#:tests? #f ; no check target
2977 (modify-phases %standard-phases
2979 'unpack 'use-full-library-paths
2980 (lambda* (#:key inputs #:allow-other-keys)
2981 (substitute* "alc/backends/pulseaudio.cpp"
2982 (("#define PALIB \"libpulse\\.so\\.0\"")
2983 (string-append "#define PALIB \""
2984 (assoc-ref inputs "pulseaudio")
2985 "/lib/libpulse.so.0"
2987 (substitute* "alc/backends/alsa.cpp"
2988 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2989 (string-append "LoadLib(\""
2990 (assoc-ref inputs "alsa-lib")
2991 "/lib/libasound.so.2"
2995 (list alsa-lib pulseaudio))
2996 (synopsis "3D audio API")
2998 "OpenAL provides capabilities for playing audio in a virtual 3D
2999 environment. Distance attenuation, doppler shift, and directional sound
3000 emitters are among the features handled by the API. More advanced effects,
3001 including air absorption, occlusion, and environmental reverb, are available
3002 through the EFX extension. It also facilitates streaming audio, multi-channel
3003 buffers, and audio capture.")
3004 (home-page "https://openal-soft.org/")
3005 (license license:lgpl2.0+)))
3007 (define-public freealut
3013 ;; Upstream url is unclear, many systems use Fedora, there is also
3014 ;; https://github.com/vancegroup/freealut though the status of it
3015 ;; (official? unofficial?) is not clear.
3017 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
3018 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
3019 "-" version ".tar.gz"))
3022 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
3023 (build-system cmake-build-system)
3025 `(#:tests? #f)) ; no check target
3028 (synopsis "Free implementation of OpenAL's ALUT standard")
3029 (description "freealut is the OpenAL Utility Toolkit.")
3030 (home-page "https://kcat.strangesoft.net/openal.html")
3031 (license license:lgpl2.0)))
3033 (define-public patchage
3039 (uri (string-append "https://download.drobilla.net/patchage-"
3044 "0gbakiw3mikgbvy3pssrmqmn7z5c7kp4vyaxj5rs4jnkscxgw9vw"))))
3045 (build-system waf-build-system)
3047 `(#:tests? #f)) ; no check target
3058 (home-page "https://drobilla.net/software/patchage.html")
3059 (synopsis "Modular patch bay for audio and MIDI systems")
3061 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
3063 (license license:gpl3+)))
3065 (define-public pcaudiolib
3069 (home-page "https://github.com/espeak-ng/pcaudiolib")
3072 (uri (git-reference (url home-page) (commit version)))
3073 (file-name (git-file-name name version))
3076 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
3077 (build-system gnu-build-system)
3079 `(#:configure-flags '("--disable-static")))
3081 (list autoconf automake libtool pkg-config which))
3083 (list alsa-lib pulseaudio))
3084 (synopsis "Portable C audio library")
3086 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
3087 different audio devices such as ALSA or PulseAudio.")
3088 (license (list license:gpl3+
3089 ;; The bundled TPCircularBuffer uses a custom license.
3090 (license:non-copyleft
3091 "file://src/TPCircularBuffer/README.markdown")))))
3093 (define-public qjackctl
3099 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
3100 version "/qjackctl-" version ".tar.gz"))
3103 "104hfvr15v8cbkzil8slrqj48y3fl7lx060alj80q1sjh5hl6j2j"))))
3104 (build-system cmake-build-system)
3106 '(#:tests? #f)) ; no check target
3108 (list jack-1 alsa-lib portaudio qtbase-5 qtx11extras))
3110 (list pkg-config qttools-5))
3111 (home-page "https://qjackctl.sourceforge.io/")
3112 (synopsis "Jack server control application")
3113 (description "Control a Jack server. Allows you to plug various sources
3114 into various outputs and to start, stop and configure jackd")
3115 (license license:gpl2+)))
3117 (define-public qjackrcd
3124 (url "https://github.com/orouits/qjackrcd")
3125 (commit (string-append "v" version))))
3126 (file-name (git-file-name name version))
3129 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
3130 (build-system gnu-build-system)
3133 (modify-phases %standard-phases
3135 (lambda* (#:key outputs #:allow-other-keys)
3137 (string-append "PREFIX="
3138 (assoc-ref outputs "out"))))))))
3140 (list qtbase-5)) ; for qmake
3142 (list jack-1 libsndfile qtbase-5))
3143 (home-page "https://sourceforge.net/projects/qjackrcd/")
3144 (synopsis "Stereo audio recorder for JACK")
3145 (description "QJackRcd is a simple graphical stereo recorder for JACK
3146 supporting silence processing for automatic pause, file splitting, and
3147 background file post-processing.")
3148 (license license:gpl2+)))
3150 (define-public supercollider
3152 (name "supercollider")
3158 (url "https://github.com/supercollider/supercollider")
3159 (commit (string-append "Version-" version))
3160 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
3162 (file-name (git-file-name name version))
3165 "0id522338a464j1slcspajwc7klypbc9qpigw5mqjhrw970wij5z"))
3166 (modules '((guix build utils)
3169 ;; The build system doesn't allow us to unbundle the following
3170 ;; libraries. hidapi is also heavily patched and upstream not
3171 ;; actively maintained.
3172 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
3173 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
3174 (with-directory-excursion "./external_libraries"
3176 delete-file-recursively
3179 (and (eq? (stat:type (stat x)) 'directory)
3180 (not (member (basename x) keep-dirs)))))))
3181 ;; To find the Guix provided ableton-link library.
3182 (substitute* "lang/CMakeLists.txt"
3183 (("include\\(\\.\\./external_libraries/link/\
3184 AbletonLinkConfig\\.cmake\\)")
3185 "find_package(AbletonLink NAMES AbletonLink ableton-link \
3186 link REQUIRED)"))))))
3187 (build-system cmake-build-system)
3189 '("out" ;core language
3192 `(#:configure-flags '("-DSYSTEM_BOOST=ON"
3193 "-DSYSTEM_YAMLCPP=ON"
3195 "-DCMAKE_BUILD_TYPE=Release"
3197 ;; "-DLIBSCSYNTH=ON" ; TODO: Re-enable?
3198 "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel
3200 (modify-phases %standard-phases
3201 ;; HOME must be defined otherwise supercollider throws a "ERROR:
3202 ;; Primitive '_FileMkDir' failed." error when generating the doc.
3203 ;; The graphical tests also hang without it.
3204 (add-after 'unpack 'set-home-directory
3206 (setenv "HOME" (getcwd))))
3207 (add-after 'unpack 'patch-scclass-dir
3208 (lambda* (#:key outputs #:allow-other-keys)
3209 (let* ((out (assoc-ref outputs "out"))
3212 "/share/SuperCollider/SCClassLibrary")))
3213 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
3215 "SC_Filesystem::instance\\(\\)\\.getDirectory"
3216 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
3217 (string-append "Path(\"" scclass-dir "\")"))))))
3218 (add-before 'build 'prepare-x
3221 (setenv "DISPLAY" ":0")))
3222 (add-before 'install 'install-ide
3223 (lambda* (#:key outputs #:allow-other-keys)
3224 (let* ((out (assoc-ref outputs "out"))
3225 (ide (assoc-ref outputs "ide"))
3226 (scide "editors/sc-ide/scide"))
3228 (string-append ide "/bin"))
3229 (delete-file scide)))))))
3231 (list ableton-link pkg-config qttools-5 xorg-server-for-tests))
3232 (inputs (list jack-1
3236 readline ;readline support for sclang's CLI
3237 alsa-lib ;for sclang's MIDI interface
3238 eudev ;for user interactions with devices
3239 avahi ;zeroconf service discovery support
3249 (propagated-inputs ;to get native-search-path
3250 (list qtwebengine-5))
3251 (home-page "https://github.com/supercollider/supercollider")
3252 (synopsis "Synthesis engine and programming language")
3253 (description "SuperCollider is a synthesis engine (@code{scsynth} or
3254 @code{supernova}) and programming language (@code{sclang}). It can be used
3255 for experimenting with sound synthesis and algorithmic composition.
3257 SuperCollider requires jackd to be installed in your user profile and your
3258 user must be allowed to access the realtime features of the kernel. Search
3259 for \"realtime\" in the index of the Guix manual to learn how to achieve this
3260 using Guix System.")
3261 (license license:gpl2+)))
3263 (define-public libshout-idjc
3265 (name "libshout-idjc")
3270 (uri (string-append "mirror://sourceforge/libshoutidjc.idjc.p"
3271 "/libshout-idjc-" version ".tar.gz"))
3273 (base32 "1r9z8ggxylr2ab0isaljbm574rplnlcb12758j994h54nh2vikwb"))))
3274 (build-system gnu-build-system)
3278 (list libogg libtheora libvorbis speex))
3279 (home-page "http://idjc.sourceforge.net/")
3280 (synopsis "Broadcast streaming library with IDJC extensions")
3281 (description "This package provides libshout plus IDJC extensions.")
3282 ;; GNU Library (not Lesser) General Public License.
3283 (license license:lgpl2.0+)))
3285 (define-public resample
3291 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
3295 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
3296 (build-system gnu-build-system)
3298 (list autoconf automake pkg-config libtool))
3299 (synopsis "Sampling rate conversion and filter design utilities")
3300 (description "This package contains the @command{resample} and
3301 @command{windowfilter} command line utilities. The @command{resample} command
3302 allows changing the sampling rate of a sound file, while the
3303 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
3304 filters using the so-called @emph{window method}.")
3305 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
3306 (license license:lgpl2.1+)))
3308 (define-public rubberband
3315 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
3318 (file-name (string-append name "-" version ".tar.bz2"))
3321 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
3322 (build-system gnu-build-system)
3324 `(#:tests? #f ; no check target
3326 (modify-phases %standard-phases
3327 (add-after 'unpack 'skip-jni-installation
3328 ;; ‘make install’ unconditionally installs librubberband-jni.so,
3329 ;; which is never built by ‘make all’. Skip it.
3331 (substitute* "Makefile.in"
3332 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
3335 (list ladspa libsamplerate vamp))
3338 (home-page "https://breakfastquay.com/rubberband/")
3339 (synopsis "Audio time-stretching and pitch-shifting library")
3341 "Rubber Band is a library and utility program that permits changing the
3342 tempo and pitch of an audio recording independently of one another.")
3343 (license license:gpl2+)))
3345 (define-public rtmidi
3351 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3352 "/release/rtmidi-" version ".tar.gz"))
3353 (file-name (string-append "rtmidi-" version ".tar.gz"))
3356 "1ff2yfq3k4l209fr71v3w98fpjjv1chs09vkbmxj03lcikahxns8"))))
3357 (build-system gnu-build-system)
3359 (list jack-1 alsa-lib))
3361 (list autoconf automake libtool pkg-config))
3362 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3363 (synopsis "Cross-platform MIDI library for C++")
3365 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3366 classes) that provide a common cross-platform API for realtime MIDI
3368 (license license:expat)))
3370 (define-public rtmidi-4.0
3376 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3377 "/release/rtmidi-" version ".tar.gz"))
3378 (file-name (string-append "rtmidi-" version ".tar.gz"))
3381 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))))
3383 (define-public sratom
3389 (uri (string-append "https://download.drobilla.net/sratom-"
3390 version ".tar.bz2"))
3393 "178v90qvsp6lw4sqdmdz0bzyjkgwhv9m75ph1d1z8say5bv0p4gv"))))
3394 (build-system waf-build-system)
3395 (arguments `(#:tests? #f)) ;no check target
3397 ;; In Requires of sratom-0.pc.
3398 (list lv2 serd sord))
3401 (home-page "https://drobilla.net/software/sratom/")
3402 (synopsis "Library for serialising LV2 atoms to/from RDF")
3404 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3405 the Turtle syntax.")
3406 (license license:isc)))
3414 (uri (string-append "https://download.drobilla.net/suil-"
3415 version ".tar.bz2"))
3418 "1ysbazqlbyxlzyr9zk7dj2mgb6pn0amllj2cd5g1m56wnzk0h3vm"))))
3419 (build-system waf-build-system)
3421 `(#:tests? #f)) ;no check target
3429 (home-page "https://drobilla.net/software/suil/")
3430 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3432 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3434 Suil makes it possible to load a UI of a toolkit in a host using another
3435 toolkit. The API is designed such that hosts do not need to explicitly
3436 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3437 that toolkit will work in all hosts that use Suil automatically.
3439 Suil currently supports every combination of Gtk, Qt, and X11.")
3440 (license license:isc)))
3442 (define-public libebur128
3450 (url "https://github.com/jiixyj/libebur128")
3451 (commit (string-append "v" version))))
3452 (file-name (git-file-name name version))
3454 (base32 "0xkpz5rzz1j1srhprbh89669gw8z5f1njpvcnxqgf7qax69vd8sh"))))
3455 (build-system cmake-build-system)
3457 `(;; Tests require proprietary .wav files. See
3458 ;; https://github.com/jiixyj/libebur128/issues/82.
3460 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3461 (home-page "https://github.com/jiixyj/libebur128")
3462 (synopsis "Library implementing the EBU R 128 loudness standard")
3464 "@code{libebur128} is a C library that implements the EBU R 128 standard
3465 for loudness normalisation.")
3466 (license license:expat)))
3468 (define-public timidity++
3474 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3475 "/TiMidity++-" version
3476 "/TiMidity++-" version ".tar.bz2"))
3479 "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn"))))
3480 (build-system gnu-build-system)
3483 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3487 (string-append "--with-default-path="
3488 (assoc-ref %outputs "out") "/etc/timidity"))
3490 (modify-phases %standard-phases
3491 (add-after 'install 'install-config
3493 (let ((out (string-append (assoc-ref %outputs "out")
3496 (call-with-output-file
3497 (string-append out "/timidity.cfg")
3499 (format port (string-append "source "
3500 (assoc-ref %build-inputs "freepats")
3501 "/share/freepats/freepats.cfg")))))
3515 (home-page "http://timidity.sourceforge.net/")
3516 (synopsis "Software synthesizer for playing MIDI files")
3518 "TiMidity++ is a software synthesizer. It can play MIDI files by
3519 converting them into PCM waveform data; give it a MIDI data along with digital
3520 instrument data files, then it synthesizes them in real-time, and plays. It
3521 can not only play sounds, but also can save the generated waveforms into hard
3522 disks as various audio file formats.")
3523 (license license:gpl2+)))
3532 "https://code.soundsoftware.ac.uk"
3533 "/attachments/download/1520/vamp-plugin-sdk-"
3537 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3538 (build-system gnu-build-system)
3540 `(#:tests? #f ; no check target
3542 (modify-phases %standard-phases
3543 (add-after 'install 'remove-libvamp-hostsdk.la
3544 (lambda* (#:key outputs #:allow-other-keys)
3545 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3546 (for-each delete-file
3547 (let ((out (assoc-ref outputs "out")))
3548 (list (string-append out "/lib/libvamp-sdk.la")
3549 (string-append out "/lib/libvamp-hostsdk.la"))))
3555 (home-page "https://vamp-plugins.org")
3556 (synopsis "Modular and extensible audio processing system")
3558 "Vamp is an audio processing plugin system for plugins that extract
3559 descriptive information from audio data — typically referred to as audio
3560 analysis plugins or audio feature extraction plugins.")
3563 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3565 (define-public libsbsms
3572 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3573 "/libsbsms-" version ".tar.gz"))
3575 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3576 (build-system gnu-build-system)
3577 (native-inputs (list automake))
3580 ;; Disable the use of SSE unless on x86_64.
3581 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3582 (%current-system))))
3586 (modify-phases %standard-phases
3588 'unpack 'fix-ar-lib-path
3589 (lambda* (#:key inputs #:allow-other-keys)
3590 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3591 (delete-file "ar-lib")
3593 (search-input-file inputs
3594 (string-append "/share/automake-"
3595 ,(package-version automake)
3599 (home-page "http://sbsms.sourceforge.net/")
3600 (synopsis "Library for time stretching and pitch scaling of audio")
3602 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3603 stretching and pitch scaling of audio. This package contains the library.")
3604 ;; There is no explicit declaration of a license, but a COPYING file
3606 (license license:gpl2)))
3608 (define-public libkeyfinder
3610 (name "libkeyfinder")
3616 (url "https://github.com/mixxxdj/libkeyfinder")
3618 (file-name (git-file-name name version))
3620 (base32 "0nvhdzy0m3bchk3dpnspv2f518p2v9fjcrv36z1sva1pv9a2g35w"))))
3621 (build-system cmake-build-system)
3626 (home-page "https://mixxxdj.github.io/libkeyfinder/")
3627 (synopsis "Musical key detection for digital audio")
3629 "@code{libkeyfinder} is a small C++11 library for estimating the musical
3630 key of digital audio.")
3631 (license license:gpl3+)))
3633 (define-public wavpack
3640 (uri (string-append "https://github.com/dbry/WavPack/releases/download/"
3641 version "/wavpack-" version ".tar.xz"))
3643 (base32 "0ycbqarw25x7208jilh86vwwiqklr7f617jps9mllqc659mnmpjb"))))
3644 (build-system gnu-build-system)
3647 (list "--disable-static"
3650 (modify-phases %standard-phases
3652 (lambda* (#:key tests? #:allow-other-keys)
3654 (invoke "./cli/wvtest" "--default" "--short"))
3656 (home-page "https://www.wavpack.com/")
3657 (synopsis "Hybrid lossless audio codec")
3659 "WavPack is an audio compression format with lossless, lossy and hybrid
3660 compression modes. This package contains command-line programs and library to
3661 encode and decode wavpack files.")
3662 (license license:bsd-3)))
3664 (define-public libmodplug
3671 "mirror://sourceforge/modplug-xmms/"
3672 name "/" version "/" name "-" version ".tar.gz"))
3675 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3676 (build-system gnu-build-system)
3677 (home-page "http://modplug-xmms.sourceforge.net/")
3678 (synopsis "Mod file playing library")
3680 "Libmodplug renders mod music files as raw audio data, for playing or
3681 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3682 supported. Optional features include high-quality resampling, bass expansion,
3683 surround and reverb.")
3684 (license license:public-domain)))
3686 (define-public libxmp
3692 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3693 name "-" version ".tar.gz"))
3696 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3697 (build-system gnu-build-system)
3698 (home-page "http://xmp.sourceforge.net/")
3699 (synopsis "Module player library")
3701 "Libxmp is a library that renders module files to PCM data. It supports
3702 over 90 mainstream and obscure module formats including Protracker (MOD),
3703 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3704 (license license:lgpl2.1+)))
3712 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3713 name "-" version ".tar.gz"))
3716 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3717 (build-system gnu-build-system)
3721 (list libxmp pulseaudio))
3722 (home-page "http://xmp.sourceforge.net/")
3723 (synopsis "Extended module player")
3725 "Xmp is a portable module player that plays over 90 mainstream and
3726 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3727 Tracker 3 S3M and Impulse Tracker IT files.")
3728 (license license:gpl2+)))
3730 (define-public soundtouch
3738 (url "https://gitlab.com/soundtouch/soundtouch.git")
3740 (file-name (git-file-name name version))
3742 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3743 (build-system gnu-build-system)
3745 (list autoconf automake libtool file))
3746 (home-page "https://www.surina.net/soundtouch/")
3748 "Audio processing library for changing tempo, pitch and playback rate")
3750 "SoundTouch is an audio processing library for changing the tempo, pitch
3751 and playback rates of audio streams or audio files. It is intended for
3752 application developers writing sound processing tools that require tempo/pitch
3753 control functionality, or just for playing around with the sound effects.")
3754 (license license:lgpl2.1+)))
3762 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3763 name "-" version ".tar.bz2"))
3766 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3767 (build-system gnu-build-system)
3770 ;; The upstream asks to identify the distribution to diagnose SoX
3772 '("--with-distro=Guix System Distribution")))
3786 (home-page "http://sox.sourceforge.net")
3787 (synopsis "Sound processing utility")
3789 "SoX (Sound eXchange) is a command line utility that can convert
3790 various formats of computer audio files to other formats. It can also
3791 apply various effects to these sound files, and, as an added bonus, SoX
3792 can play and record audio files.")
3793 ;; sox.c is distributed under GPL, while the files that make up
3794 ;; libsox are licensed under LGPL.
3795 (license (list license:gpl2+ license:lgpl2.1+))))
3805 (string-append "mirror://sourceforge/soxr/soxr-" version
3808 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3809 (build-system cmake-build-system)
3810 (arguments '(#:tests? #f)) ;no 'check' target
3811 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3812 (synopsis "One-dimensional sample-rate conversion library")
3814 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3815 conversion. It may be used, for example, to resample PCM-encoded audio.")
3816 (license license:lgpl2.1+)))
3818 (define-public twolame
3825 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3826 "/twolame-" version ".tar.gz"))
3828 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3829 (build-system gnu-build-system)
3833 (list perl which)) ;used in tests/test.pl
3834 (home-page "https://www.twolame.org/")
3835 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3837 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3838 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3840 (license license:lgpl2.1+)))
3842 (define-public portaudio
3845 (version "190600.20161030")
3850 "http://www.portaudio.com/archives/pa_stable_v"
3851 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3854 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3855 (patches (search-patches "portaudio-audacity-compat.patch"))))
3856 (build-system gnu-build-system)
3858 ;; TODO: Add ASIHPI.
3859 (list alsa-lib jack-1))
3860 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3863 (list autoconf automake libtool pkg-config))
3865 '(#:tests? #f ;no 'check' target
3866 #:parallel-build? #f ;fails on some systems
3867 #:configure-flags '("--with-pic"
3869 ;; XXX: The following prevents a build error
3870 ;; because of missing depcomp when C++ bindings are
3872 "--disable-dependency-tracking")
3874 (modify-phases %standard-phases
3875 ;; This is needed for linking the static libraries
3876 (add-after 'unpack 'build-only-position-independent-code
3878 (substitute* "configure.in"
3879 (("AC_PROG_LIBTOOL" m)
3880 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3881 (delete-file "configure")
3883 ;; Some headers are not installed by default, but are needed by
3884 ;; packages like Kaldi.
3885 (add-after 'install 'install-missing-headers
3886 (lambda* (#:key outputs #:allow-other-keys)
3887 (install-file "src/common/pa_ringbuffer.h"
3888 (string-append (assoc-ref outputs "out") "/include"))
3890 (home-page "http://www.portaudio.com/")
3891 (synopsis "Audio I/O library")
3893 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3894 to record and/or play sound using a callback function or a blocking read/write
3896 (license license:expat)))
3898 (define-public qsynth
3906 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3907 "/qsynth-" version ".tar.gz")
3908 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3909 "/qsynth-" version ".tar.gz")))
3911 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3912 (build-system gnu-build-system)
3914 `(#:tests? #f)) ; no "check" phase
3916 (list qttools-5 pkg-config))
3918 (list fluidsynth qtbase-5 qtx11extras))
3919 (home-page "https://qsynth.sourceforge.io")
3920 (synopsis "Graphical user interface for FluidSynth")
3922 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3923 synthesizer written in C++.")
3924 (license license:gpl2+)))
3926 (define-public rsound
3934 (url "https://github.com/Themaister/RSound")
3935 (commit (string-append "v" version))))
3936 (file-name (git-file-name name version))
3938 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3939 (build-system gnu-build-system)
3950 (modify-phases %standard-phases
3952 (lambda* (#:key outputs #:allow-other-keys)
3954 (invoke "./configure"
3955 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3956 ;; No 'check' target.
3958 (home-page "https://themaister.net/rsound.html")
3959 (synopsis "Networked audio system")
3961 "RSound allows you to send audio from an application and transfer it
3962 directly to a different computer on your LAN network. It is an audio daemon
3963 with a much different focus than most other audio daemons.")
3964 (license license:gpl3+)))
3966 (define-public xjackfreak
3973 (url "https://github.com/johnhldavis/xjackfreak")
3974 (commit (string-append "v" version))))
3975 (file-name (git-file-name name version))
3978 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3979 (build-system gnu-build-system)
3982 (list (string-append "docdir=" (assoc-ref %outputs "out")
3983 "/share/doc/xjackfreak"))))
3985 (list jack-1 libx11 libxt libxext))
3988 (home-page "https://github.com/johnhldavis/xjackfreak")
3989 (synopsis "JACK audio frequency analyzer and display")
3991 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3992 Connection Kit. It can display the FFT of any input, modify it and output the
3994 (license license:gpl3+)))
3996 (define-public zita-convolver
3998 (name "zita-convolver")
4003 "http://kokkinizita.linuxaudio.org"
4004 "/linuxaudio/downloads/zita-convolver-"
4005 version ".tar.bz2"))
4007 ;; Don't optimize for a specific processor architecture.
4009 (substitute* "source/Makefile"
4010 (("^CXXFLAGS \\+= -march=native") ""))
4012 (modules '((guix build utils)))
4015 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
4016 (build-system gnu-build-system)
4018 `(#:tests? #f ; no "check" target
4020 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4021 (string-append "SUFFIX="))
4023 (modify-phases %standard-phases
4024 (add-after 'unpack 'patch-makefile-and-enter-directory
4026 (substitute* "source/Makefile"
4027 (("ldconfig") "true")
4028 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4031 (add-after 'install 'install-symlink
4033 (symlink "libzita-convolver.so"
4034 (string-append (assoc-ref %outputs "out")
4035 "/lib/libzita-convolver.so.4"))
4037 ;; no configure script
4038 (delete 'configure))))
4039 (inputs (list fftwf))
4040 (home-page "https://kokkinizita.linuxaudio.org")
4041 (synopsis "Fast, partitioned convolution engine library")
4043 "Zita convolver is a C++ library providing a real-time convolution
4045 (license license:gpl3+)))
4047 (define-public zita-resampler
4049 (name "zita-resampler")
4054 "http://kokkinizita.linuxaudio.org"
4055 "/linuxaudio/downloads/zita-resampler-"
4056 version ".tar.bz2"))
4058 ;; Don't optimize for a specific processor architecture.
4060 (substitute* '("apps/Makefile" "source/Makefile")
4061 (("^CXXFLAGS \\+= -march=native") ""))
4063 (modules '((guix build utils)))
4066 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
4067 (build-system gnu-build-system)
4069 `(#:tests? #f ; no "check" target
4071 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4072 (string-append "SUFFIX="))
4074 (modify-phases %standard-phases
4076 'unpack 'patch-makefile-and-enter-directory
4078 (substitute* "source/Makefile"
4079 (("ldconfig") "true")
4080 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4084 'install 'install-symlink
4086 (symlink "libzita-resampler.so"
4087 (string-append (assoc-ref %outputs "out")
4088 "/lib/libzita-resampler.so.1"))
4090 ;; no configure script
4091 (delete 'configure))))
4092 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
4093 (synopsis "C++ library for resampling audio signals")
4095 "Libzita-resampler is a C++ library for resampling audio signals. It is
4096 designed to be used within a real-time processing context, to be fast, and to
4097 provide high-quality sample rate conversion.")
4098 (license license:gpl3+)))
4100 (define-public zita-alsa-pcmi
4102 (name "zita-alsa-pcmi")
4107 "http://kokkinizita.linuxaudio.org"
4108 "/linuxaudio/downloads/zita-alsa-pcmi-"
4109 version ".tar.bz2"))
4112 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
4113 (build-system gnu-build-system)
4115 `(#:tests? #f ; no "check" target
4117 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4118 (string-append "SUFFIX="))
4120 (modify-phases %standard-phases
4121 (add-after 'unpack 'patch-makefile-and-enter-directory
4123 (substitute* "source/Makefile"
4124 (("ldconfig") "true")
4125 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4128 (add-after 'install 'install-symlink
4130 (symlink "libzita-alsa-pcmi.so"
4131 (string-append (assoc-ref %outputs "out")
4132 "/lib/libzita-alsa-pcmi.so.0"))
4134 ;; no configure script
4135 (delete 'configure))))
4137 (list alsa-lib fftw))
4138 (home-page "https://kokkinizita.linuxaudio.org")
4139 (synopsis "C++ wrapper around the ALSA API")
4141 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
4142 access to ALSA PCM devices, taking care of the many functions required to
4143 open, initialise and use a hw: device in mmap mode, and providing floating
4145 (license license:gpl3+)))
4147 (define-public cuetools
4154 (url "https://github.com/svend/cuetools")
4156 (file-name (git-file-name name version))
4159 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
4160 (build-system gnu-build-system)
4161 ;; The source checkout is not bootstrapped.
4163 (list autoconf automake flex bison))
4164 (synopsis "Cue and toc file parsers and utilities")
4165 (description "Cuetools is a set of programs that are useful for manipulating
4166 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
4167 files are a way to represent the layout of a data or audio CD in a
4168 machine-readable ASCII format.")
4169 (home-page "https://github.com/svend/cuetools")
4170 (license license:gpl2+)))
4172 (define-public mp3guessenc
4174 (name "mp3guessenc")
4179 (uri (string-append "mirror://sourceforge/mp3guessenc/mp3guessenc-"
4180 (version-major+minor version) "/mp3guessenc-"
4183 (base32 "1fa3sbwwn4p2v1749lzy040bfy1xfd574mf2frwgg9ikgk3vlb3c"))))
4184 (build-system gnu-build-system)
4186 `(#:tests? #f ; no tests
4188 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4190 (modify-phases %standard-phases
4191 (delete 'configure)))) ; no configure phase
4192 (home-page "https://mp3guessenc.sourceforge.io")
4193 (synopsis "Analyze MPEG layer I/II/III files")
4194 (description "mp3guessenc is a command line utility that tries to detect the
4195 encoder used for an MPEG Layer III (MP3) file, as well as scan any MPEG audio
4196 file (any layer) and print a lot of useful information.")
4197 (license license:lgpl2.1+)))
4199 (define-public shntool
4206 (string-append "http://etree.org/shnutils/shntool/dist/src/"
4207 "shntool-" version ".tar.gz")
4208 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
4209 version ".orig.tar.gz")))
4212 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
4213 (build-system gnu-build-system)
4214 (synopsis "WAVE audio data processing tool")
4215 (description "shntool is a multi-purpose WAVE data processing and reporting
4216 utility. File formats are abstracted from its core, so it can process any file
4217 that contains WAVE data, compressed or not---provided there exists a format
4218 module to handle that particular file type. It can also generate CUE files, and
4219 use them split WAVE data into multiple files.")
4220 (home-page "http://etree.org/shnutils/shntool/")
4221 ;; 'install-sh' bears the x11 license
4222 (license (list license:gpl2+ license:x11))))
4224 (define-public dcadec
4231 (url "https://github.com/foo86/dcadec")
4232 (commit (string-append "v" version))))
4233 (file-name (git-file-name name version))
4236 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
4237 (build-system gnu-build-system)
4239 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
4242 (list (string-append "CC=" ,(cc-for-target))
4243 ;; Build shared library.
4245 (string-append "PREFIX=" (assoc-ref %outputs "out"))
4246 ;; Set proper runpath.
4247 (string-append "LDFLAGS=-Wl,-rpath="
4248 (assoc-ref %outputs "out")
4251 (modify-phases %standard-phases
4252 ;; No configure script, just a hand-written Makefile.
4253 (delete 'configure))))
4254 (synopsis "DTS Coherent Acoustics decoder")
4255 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
4256 with support for HD extensions.")
4257 (home-page "https://github.com/foo86/dcadec")
4258 (license license:lgpl2.1+)))
4267 (uri (string-append "mirror://sourceforge/drc-fir/drc-fir/"
4268 version "/drc-" version ".tar.gz"))
4271 "08ljj4776pjx119zjmfqa8w56bf7x0m7spmi27yk1m455bmiglrj"))))
4272 (build-system gnu-build-system)
4275 #:tests? #false ;there are none
4277 #~(list (string-append "INSTALL_PREFIX=" #$output)
4280 '(modify-phases %standard-phases
4281 (delete 'configure))))
4282 (inputs (list fftw))
4283 (home-page "http://drc-fir.sourceforge.net/")
4284 (synopsis "Digital room correction")
4286 "DRC is a program used to generate correction filters for acoustic
4287 compensation of HiFi and audio systems in general, including listening room
4288 compensation. DRC generates just the FIR correction filters, which can be
4289 used with a real time or offline convolver to provide real time or offline
4290 correction. DRC doesn't provide convolution features, and provides only some
4291 simplified, although really accurate, measuring tools.")
4292 (license license:gpl2+)))
4294 (define-public bs1770gain
4298 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
4302 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
4303 version "/bs1770gain-" version ".tar.gz"))
4305 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
4306 (modules '((guix build utils)))
4310 (substitute* (find-files "." "\\.[ch]$")
4311 (("^ \\* N..o.*") ""))
4312 (substitute* "libbg/bgx.c"
4313 (("#define BG.* ") "#define BS ")
4314 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
4315 (("\"( #|N).*\"") "\"\""))
4316 (substitute* (list "config.h"
4319 (("https?://bs1770gain[^/]*/")
4322 (build-system gnu-build-system)
4323 (inputs (list ffmpeg sox))
4324 (synopsis "Tool to adjust loudness of media files")
4326 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
4327 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
4328 loudness of audio and video files to the same level.")
4329 (license license:gpl2+)))
4331 (define-public filteraudio
4332 (let ((revision "1")
4333 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
4335 (name "filteraudio")
4336 (version (string-append "0.0.0-" revision "."
4337 (string-take commit 7)))
4342 (url "https://github.com/irungentoo/filter_audio")
4344 (file-name (string-append name "-" version "-checkout"))
4347 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
4348 (build-system gnu-build-system)
4350 `(#:make-flags (list (string-append "PREFIX=" %output)
4351 (string-append "CC=" ,(cc-for-target)))
4352 #:tests? #f ; No tests
4354 (modify-phases %standard-phases
4355 ;; No configure script
4356 (delete 'configure))))
4357 (synopsis "Lightweight audio filtering library")
4358 (description "An easy to use audio filtering library made from webrtc
4359 code, used in @code{libtoxcore}.")
4360 (home-page "https://github.com/irungentoo/filter_audio")
4361 (license license:bsd-3))))
4371 (string-append "http://www.quut.com/" name "/" name
4372 "-" version ".tar.gz"))
4374 (base32 "1gwhmqs24c14gc9qr91iqb2jkbr3qqy4dvf27yf8j7mq322w65b3"))))
4375 (build-system gnu-build-system)
4377 `(#:test-target "tst"
4378 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
4380 (modify-phases %standard-phases
4381 (add-after 'unpack 'add-fpic-ccflag
4383 ;; The -fPIC compiler option is needed when building
4385 (substitute* "Makefile"
4387 (string-append all "CCFLAGS += -fPIC\n")))))
4388 (add-before 'install 'pre-install
4390 (let ((out (assoc-ref %outputs "out")))
4391 (mkdir-p (string-append out "/inc"))
4392 (mkdir-p (string-append out "/man"))
4393 (mkdir-p (string-append out "/man/man1"))
4394 (mkdir-p (string-append out "/man/man3"))
4395 (mkdir-p (string-append out "/bin"))
4396 (mkdir-p (string-append out "/lib")))))
4397 (add-after 'install 'post-install
4399 (let ((out (assoc-ref %outputs "out")))
4400 (rename-file (string-append out "/inc")
4401 (string-append out "/include"))
4402 (mkdir-p (string-append out "/include/gsm"))
4403 (copy-recursively "inc"
4404 (string-append out "/include/gsm")))))
4405 (delete 'configure)))) ; no configure script
4406 (synopsis "GSM 06.10 lossy speech compression library")
4407 (description "This C library provides an encoder and a decoder for the GSM
4408 06.10 RPE-LTP lossy speech compression algorithm.")
4409 (home-page "http://quut.com/gsm/")
4410 (license (license:non-copyleft "file://COPYRIGHT"))))
4412 (define-public python-pyalsaaudio
4414 (name "python-pyalsaaudio")
4418 (uri (pypi-uri "pyalsaaudio" version))
4421 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
4422 (build-system python-build-system)
4424 `(#:tests? #f)) ; tests require access to ALSA devices.
4427 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4428 (synopsis "ALSA wrappers for Python")
4430 "This package contains wrappers for accessing the ALSA API from Python.
4431 It is currently fairly complete for PCM devices, and has some support for
4433 (license license:psfl)))
4435 (define-public ldacbt
4441 (uri (string-append "https://github.com/EHfive/ldacBT"
4442 "/releases/download/v" version
4443 "/ldacBT-" version ".tar.gz"))
4446 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4447 (build-system cmake-build-system)
4448 (arguments `(#:tests? #f)) ; no check target
4449 (home-page "https://github.com/EHfive/ldacBT/")
4450 (synopsis "LDAC Bluetooth encoder and ABR library")
4451 (description "This package provides an encoder for the LDAC
4452 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4453 kbps at 24 bit/96 kHz.")
4454 (license license:asl2.0)))
4456 (define-public bluez-alsa
4461 ;; The tarballs are mere snapshots and don't contain a
4462 ;; bootstrapped build system.
4465 (url "https://github.com/Arkq/bluez-alsa")
4466 (commit (string-append "v" version))))
4467 (file-name (git-file-name name version))
4470 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4471 (build-system gnu-build-system)
4474 (list "--enable-ldac"
4475 (string-append "--with-alsaplugindir="
4476 (assoc-ref %outputs "out")
4478 (string-append "--with-dbusconfdir="
4479 (assoc-ref %outputs "out")
4480 "/etc/dbus-1/system.d"))))
4482 (list autoconf automake libtool pkg-config))
4493 (home-page "https://github.com/Arkq/bluez-alsa")
4494 (synopsis "Bluetooth ALSA backend")
4495 (description "This project is a rebirth of a direct integration between
4496 Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed
4497 in favor of 3rd party audio applications. From now on, Bluez acts as a
4498 middleware between an audio application, which implements Bluetooth audio
4499 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4500 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4501 capabilities) can be connected. In order to access the audio stream, one has
4502 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4503 on the ALSA software PCM plugin.")
4504 (license license:expat)))
4512 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4513 "snd-" version ".tar.gz"))
4516 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4517 (build-system glib-or-gtk-build-system)
4519 `(#:tests? #f ; no tests
4520 #:out-of-source? #f ; for the 'install-doc' phase
4522 (let* ((out (assoc-ref %outputs "out"))
4523 (docdir (string-append out "/share/doc/"
4524 ,name "-" ,version)))
4525 (list "--with-alsa" "--with-jack" "--with-gmp"
4526 (string-append "--with-doc-dir=" docdir)))
4528 (modify-phases %standard-phases
4529 (add-after 'install 'install-doc
4530 (lambda* (#:key outputs #:allow-other-keys)
4531 (let* ((out (assoc-ref outputs "out"))
4532 (doc (string-append out "/share/doc/"
4533 ,name "-" ,version)))
4536 (install-file f doc))
4537 (find-files "." "\\.html$"))
4538 (copy-recursively "pix" (string-append doc "/pix"))
4558 (synopsis "Sound editor")
4559 (home-page "https://ccrma.stanford.edu/software/snd/")
4561 "Snd is a sound editor modelled loosely after Emacs. It can be
4562 customized and extended using either the s7 Scheme implementation (included in
4563 the Snd sources), Ruby, or Forth.")
4564 (license (license:non-copyleft "file://COPYING"))))
4566 (define-public noise-repellent
4568 (name "noise-repellent")
4573 (url "https://github.com/lucianodato/noise-repellent")
4575 (file-name (string-append name "-" version "-checkout"))
4578 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4579 (build-system meson-build-system)
4582 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4588 (home-page "https://github.com/lucianodato/noise-repellent")
4589 (synopsis "LV2 plugin for broadband noise reduction")
4590 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4591 the following features:
4594 @item Spectral gating and spectral subtraction suppression rule
4595 @item Adaptive and manual noise thresholds estimation
4596 @item Adjustable noise floor
4597 @item Adjustable offset of thresholds to perform over-subtraction
4598 @item Time smoothing and a masking estimation to reduce artifacts
4599 @item Basic onset detector to avoid transients suppression
4600 @item Whitening of the noise floor to mask artifacts and to recover higher
4602 @item Option to listen to the residual signal
4604 @item Noise profile saved with the session
4607 (license license:lgpl3+)))
4609 (define-public lv2-speech-denoiser
4610 (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f")
4613 (name "lv2-speech-denoiser")
4614 (version (git-version "0" revision commit))
4619 (url "https://github.com/lucianodato/speech-denoiser/")
4621 (file-name (git-file-name name version))
4623 (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4"))))
4624 (build-system meson-build-system)
4626 `(;; Using a "release" build is recommended for performance
4627 #:build-type "release"
4629 (modify-phases %standard-phases
4630 (add-after 'unpack 'patch-meson-build
4632 (substitute* "meson.build"
4633 (("install_folder = 'sdenoise.lv2'")
4634 "install_folder = 'lib/lv2/sdenoise.lv2'")
4635 (("build/manifest.ttl") "../build/manifest.ttl"))
4637 (add-after 'unpack 'build-rnnoise
4639 (with-directory-excursion "rnnoise"
4640 (let ((old-CFLAGS (getenv "CFLAGS")))
4641 (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL")
4642 (setenv "CONFIG_SHELL" (which "bash"))
4643 (invoke "autoreconf" "-vif")
4644 (invoke "sh" "configure"
4645 "--disable-examples"
4650 (setenv "CFLAGS" old-CFLAGS))))))))
4654 (list autoconf automake libtool pkg-config))
4655 (home-page "https://github.com/werman/noise-suppression-for-voice")
4656 (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library")
4657 (description "RNNoise is a library that uses deep learning to apply
4658 noise suppression to audio sources with voice presence. This package provides
4659 an LV2 audio plugin.")
4660 (license license:lgpl3+))))
4662 (define-public cli-visualizer
4664 (name "cli-visualizer")
4670 (url "https://github.com/dpayne/cli-visualizer")
4671 (commit (string-append "v" version))))
4672 (file-name (git-file-name name version))
4674 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4675 (build-system cmake-build-system)
4677 ;; TODO: Try using the latest googletest for versions > 1.8.
4678 (list ;; ("googletest" ,googletest-1.8)
4681 (list fftw ncurses pulseaudio))
4684 ;; XXX Enable tests after patching them to use the system googletest.
4685 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4687 (modify-phases %standard-phases
4688 (add-after 'install 'install-examples
4689 (lambda* (#:key outputs #:allow-other-keys)
4690 (with-directory-excursion "../source/examples"
4691 (delete-file "mac_osx_config")
4692 (for-each (lambda (file)
4695 (assoc-ref outputs "out")
4699 (home-page "https://github.com/dpayne/cli-visualizer/")
4700 (synopsis "Command-line audio visualizer")
4701 (description "@code{cli-visualizer} displays fast-Fourier
4702 transforms (FFTs) of the sound being played, as well as other graphical
4704 (license license:expat)))
4713 (url "https://github.com/karlstav/cava")
4715 (file-name (git-file-name name version))
4718 "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))
4719 (modules '((guix build utils)))
4722 (delete-file-recursively "iniparser")
4723 (substitute* "configure.ac"
4724 (("AC_CONFIG_FILES\\(iniparser/Makefile\\)") ""))
4725 (substitute* "Makefile.am"
4726 (("SUBDIRS = iniparser") ""))))))
4727 (build-system gnu-build-system)
4728 (native-inputs (list autoconf automake libtool))
4729 (inputs (list fftw ncurses pulseaudio iniparser))
4731 (list #:configure-flags
4732 #~(list (string-append "PREFIX="
4734 (string-append "FONT_DIR="
4735 #$output "/share/consolefonts"))
4737 #~(let ((lib (string-append #$output "/lib")))
4738 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt")))
4740 #~(modify-phases %standard-phases
4745 (invoke "sh" "autogen.sh")))
4746 (add-before 'build 'make-cava-ldflags
4748 (mkdir-p (string-append #$output "/lib"))))
4749 (add-after 'install 'data
4751 (for-each (lambda (file)
4753 (string-append #$output
4754 "/share/doc/examples")))
4755 (find-files "example_files")))))))
4756 (home-page "https://karlstav.github.io/cava/")
4757 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4758 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4759 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4760 (license license:expat)))
4762 (define-public fluid-3
4763 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4770 ;; Only one file is required, but the release bundles the whole
4771 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4772 ;; directly links the soundfont release to the github file download.
4773 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4774 commit "/share/sound/FluidR3Mono_GM.sf3"))
4775 (file-name (string-append name "-" version ".sf3"))
4778 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4779 (build-system trivial-build-system)
4781 `(#:modules ((guix build utils))
4784 (use-modules (guix build utils))
4785 (let ((file (assoc-ref %build-inputs "source"))
4786 (out (string-append %output "/share/soundfonts")))
4788 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4790 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4791 (synopsis "Pro-quality GM soundfont")
4792 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4793 (license license:expat))))
4795 (define-public libfdk
4803 (url "https://github.com/mstorsjo/fdk-aac")
4804 (commit (string-append "v" version))))
4805 (file-name (git-file-name name version))
4808 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4809 (build-system gnu-build-system)
4811 (list autoconf automake libtool))
4812 (home-page "https://github.com/mstorsjo/fdk-aac")
4813 (synopsis "Fraunhofer FDK AAC library")
4814 (description "FDK is a library for encoding and decoding Advanced Audio
4815 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4816 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4817 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4818 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4819 library supports sample rates up to 96 kHz and up to eight channels (7.1
4821 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4822 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4824 (define-public libopenshot-audio
4826 (name "libopenshot-audio")
4831 (url "https://github.com/OpenShot/libopenshot-audio")
4832 (commit (string-append "v" version))))
4833 (file-name (git-file-name name version))
4836 "03dygh85riljk7dpn5a5a0d22a2kz45fs13gzwqgnbzzr1k17p2y"))))
4837 (build-system cmake-build-system)
4840 ;; The following are for JUCE GUI components:
4847 `(#:tests? #f ;there are no tests
4849 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4850 (assoc-ref %build-inputs "freetype")
4851 "/include/freetype2"))))
4852 (home-page "https://openshot.org")
4853 (synopsis "Audio editing and playback for OpenShot")
4854 (description "OpenShot Audio Library (libopenshot-audio) allows
4855 high-quality editing and playback of audio, and is based on the JUCE
4857 (license license:lgpl3+)))
4859 (define-public faudio
4867 (url "https://github.com/FNA-XNA/FAudio")
4869 (file-name (git-file-name name version))
4871 (base32 "0l9bicg8v1shsyq9k48zh4wv5kwfs6lfjmm9blzd13xrgmhd07w2"))))
4873 '(#:tests? #f ; No tests.
4874 #:configure-flags '("-DGSTREAMER=ON")))
4875 (build-system cmake-build-system)
4876 (native-inputs (list pkg-config))
4877 (inputs (list gstreamer gst-plugins-base sdl2))
4878 (home-page "https://github.com/FNA-XNA/FAudio")
4879 (synopsis "XAudio reimplementation")
4880 (description "FAudio is an XAudio reimplementation that focuses solely on
4881 developing fully accurate DirectX Audio runtime libraries.")
4884 ;; stb & utils/{ui,wav}common are dual-licenced under either of:
4886 license:public-domain))))
4888 (define-public gnaural
4891 (version "20110606")
4895 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4899 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4900 (build-system gnu-build-system)
4902 (list alsa-lib gtk+-2 libsndfile portaudio))
4905 (home-page "http://gnaural.sourceforge.net/")
4906 (synopsis "Binaural beat synthesizer")
4907 (description "Gnaural is a programmable auditory binaural beat synthesizer
4908 intended to be used for brainwave entrainment. Gnaural supports creation of
4909 binaural beat tracks of different frequencies and exporting of tracks into
4910 different audio formats. Gnaural can also be linked over the internet with
4911 other Gnaural instances, allowing synchronous sessions between many users.")
4912 (license license:gpl2+)))
4914 (define-public darkice
4920 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4921 "download/v" version "/darkice-"
4925 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4926 (build-system gnu-build-system)
4927 (native-inputs (list pkg-config))
4938 (list (string-append "--with-lame-prefix="
4939 (assoc-ref %build-inputs "lame")))))
4940 (home-page "http://www.darkice.org/")
4941 (synopsis "Live audio streamer")
4942 (description "DarkIce is a live audio streamer. It takes audio input from
4943 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4944 stream to one or more IceCast and/or ShoutCast servers.")
4945 (license license:gpl3+)))
4947 (define-public libltc
4955 (string-append "https://github.com/x42/libltc/releases/download/v"
4956 version "/libltc-" version ".tar.gz"))
4959 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4960 (build-system gnu-build-system)
4962 `(#:parallel-tests? #f)) ;tests fail otherwise
4964 (list doxygen pkg-config))
4965 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4966 (description "Libltc is a POSIX-C Library for handling
4967 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4968 (home-page "https://x42.github.io/libltc/")
4969 (license license:lgpl3+)))
4971 (define-public ttaenc
4978 (uri (string-append "mirror://sourceforge/tta/"
4980 "/ttaenc-" version "-src.tgz"))
4983 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4984 (build-system gnu-build-system)
4986 `(#:tests? #f ;no tests
4988 (list (string-append "CC=" ,(cc-for-target))
4989 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4991 (modify-phases %standard-phases
4992 (delete 'configure) ; no configure
4993 (add-before 'install 'make-bindir
4994 (lambda* (#:key outputs #:allow-other-keys)
4995 (let* ((out (assoc-ref outputs "out")))
4996 (mkdir-p (string-append out "/bin"))
4998 (synopsis "TTA lossless audio encoder")
5000 "TTA performs lossless compression on multichannel 8,16 and 24 bits
5001 data of the Wav audio files. Being lossless means that no data-
5002 quality is lost in the compression - when uncompressed, the data will
5003 be identical to the original. The compression ratios of TTA depend on
5004 the type of music file being compressed, but the compression size
5005 will generally range between 30% - 70% of the original. TTA format
5006 supports both of ID3v1/v2 and APEv2 tags.")
5007 (home-page "http://tausoft.org/")
5008 (license license:gpl2+)))
5010 (define-public libsoundio
5018 (url "https://github.com/andrewrk/libsoundio")
5020 (file-name (git-file-name name version))
5023 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
5024 (build-system cmake-build-system)
5026 `(#:tests? #f)) ;no tests included
5028 (list alsa-lib jack-1 pulseaudio))
5031 (home-page "http://libsound.io")
5032 (synopsis "C library for real-time audio input and output")
5033 (description "@code{libsoundio} is a C library providing audio input and
5034 output. The API is suitable for real-time software such as digital audio
5035 workstations as well as consumer software such as music players.")
5036 (license license:expat)))
5038 (define-public redkite
5041 (version "1.3.1") ;marked unmaintained as of Oct. 2021
5046 (url "https://github.com/free-sm/redkite")
5047 (commit (string-append "v" version))))
5048 (file-name (git-file-name name version))
5050 (base32 "1zb2k2a4m7z2ravqrjn8fq8lic20wbr2m8kja3p3113jsk7j9zvd"))))
5051 (build-system cmake-build-system)
5053 `(#:tests? #f)) ;no tests included
5058 (synopsis "Small GUI toolkit")
5059 (description "Redkite is a small GUI toolkit developed in C++17 and
5060 inspired from other well known GUI toolkits such as Qt and GTK. It is
5061 minimal on purpose and is intended to be statically linked to applications,
5062 therefore satisfying any requirements they may have to be self contained,
5063 as is the case with audio plugins.")
5064 (home-page "https://gitlab.com/geontime/redkite")
5065 (license license:gpl3+)))
5067 (define-public carla
5076 (url "https://github.com/falkTX/Carla")
5077 (commit (string-append "v" version))))
5078 (file-name (git-file-name name version))
5080 (base32 "01ngkmfcxyg1bb4qmfvlkkjbx4lx62akxqhizl8zmqnhfcy4p9bx"))))
5081 (build-system gnu-build-system)
5083 (list #:tests? #f ; no "check" target
5085 #~(list (string-append "PREFIX=" #$output))
5087 #~(modify-phases %standard-phases
5088 (delete 'configure) ; no configure script
5089 (add-before 'build 'set-CC-variable-and-show-features
5091 (setenv "CC" #$(cc-for-target))
5092 (invoke "make" "features")))
5093 (add-after 'install 'make-carla-executable
5095 (chmod (string-append #$output "/share/carla/carla") #o555)))
5096 (add-after 'install 'wrap-executables
5097 (lambda* (#:key inputs #:allow-other-keys)
5098 (wrap-script (string-append #$output "/bin/carla")
5099 #:guile (search-input-file inputs "bin/guile")
5100 `("GUIX_PYTHONPATH" ":" prefix
5101 (,(getenv "GUIX_PYTHONPATH")))))))))
5110 gtk+-2 ;needed for bridging GTK2 plugins in GTK3 hosts
5115 ;; python-pyqt shows the following error without python-wrapper:
5116 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
5117 ;; (ModuleNotFoundError: No module named 'PyQt5')
5122 ;; For WRAP-SCRIPT above.
5126 (home-page "https://kx.studio/Applications:Carla")
5127 (synopsis "Audio plugin host")
5128 (description "Carla is a modular audio plugin host, with features like
5129 transport control, automation of parameters via MIDI CC and remote control
5130 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
5131 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
5132 default and preferred audio driver but also supports native drivers like ALSA.")
5133 (license license:gpl2+)))
5135 (define-public ecasound
5141 (uri (string-append "https://nosignal.fi/download/ecasound-"
5144 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
5145 (build-system gnu-build-system)
5146 (native-inputs (list pkg-config))
5147 ;; It would be nice to add mikmod to inputs if that gets packaged
5149 (inputs (list alsa-lib
5162 (home-page "https://nosignal.fi/ecasound/index.php")
5163 (synopsis "Multitrack audio processing")
5164 (description "Ecasound is a software package designed for multitrack audio
5165 processing. It can be used for simple tasks like audio playback, recording and
5166 format conversions, as well as for multitrack effect processing, mixing,
5167 recording and signal recycling. Ecasound supports a wide range of audio inputs,
5168 outputs and effect algorithms. Effects and audio objects can be combined in
5169 various ways, and their parameters can be controlled by operator objects like
5170 oscillators and MIDI-CCs. A versatile console mode user-interface is included
5172 ;; As an exception to the above, the C, C++ and python implementations
5173 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
5174 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
5175 ;; that are not licensed under GPL.
5176 (license (list license:gpl2 license:lgpl2.1))))
5178 (define-public libaudec
5186 (url "https://git.zrythm.org/zrythm/libaudec")
5187 (commit (string-append "v" version))))
5188 (file-name (git-file-name name version))
5191 "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz"))))
5192 (build-system meson-build-system)
5198 (list libsamplerate libsndfile))
5201 (synopsis "Library for reading and resampling audio files")
5202 (description "libaudec is a wrapper library over ffmpeg, sndfile and
5203 libsamplerate for reading and resampling audio files, based on Robin Gareus'
5204 @code{audio_decoder} code.")
5205 (home-page "https://git.zrythm.org/zrythm/libaudec")
5206 (license license:agpl3+)))
5208 (define-public lv2lint
5216 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
5218 (file-name (git-file-name name version))
5221 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
5222 (build-system meson-build-system)
5225 `("-Delf-tests=true" ; for checking symbol visibility
5226 "-Donline-tests=true"))) ; for checking URI existence
5228 (list curl libelf lilv))
5231 (synopsis "LV2 plugin lint tool")
5232 (description "lv2lint is an LV2 lint-like tool that checks whether a
5233 given plugin and its UI(s) match up with the provided metadata and adhere
5234 to well-known best practices.")
5235 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
5236 (license license:artistic2.0)))
5238 (define-public lv2toweb
5246 (url "https://github.com/x42/lv2toweb")
5247 (commit (string-append "v" version))))
5248 (file-name (git-file-name name version))
5251 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
5252 (build-system gnu-build-system)
5254 `(#:tests? #f ; no "check" target
5255 #:make-flags (list "CC=gcc"
5256 (string-append "PREFIX=" (assoc-ref %outputs "out")))
5258 (modify-phases %standard-phases
5259 (delete 'configure))))
5263 (list help2man pkg-config))
5264 (synopsis "Documentation generator for LV2 plugins")
5266 "lv2toweb allows the user to create an xhtml page with information
5267 about the given LV2 plugin, provided that the plugin and its UI(s) match up
5268 with the provided metadata and adhere to well-known best practices.")
5269 (home-page "https://github.com/x42/lv2toweb")
5270 (license (list license:isc license:gpl2))))
5272 (define-public ztoolkit
5280 (url "https://git.zrythm.org/zrythm/ztoolkit")
5281 (commit (string-append "v" version))))
5282 (file-name (git-file-name name version))
5285 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
5286 (build-system meson-build-system)
5289 ;; These are listed as propagated inputs because they are dependencies
5292 (list cairo libx11))
5293 (synopsis "GUI toolkit for LV2 plugins")
5294 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
5295 inspired by GTK. It handles events and low level drawing on behalf of
5296 the user and provides a high-level API for managing the UI and custom
5297 widgets. ZToolkit is written in C and was created to be used for building
5298 audio plugin UIs, where the dependencies often need to be kept to a
5300 (home-page "https://git.zrythm.org/zrythm/ztoolkit")
5301 (license license:agpl3+)))
5303 (define-public libinstpatch
5305 (name "libinstpatch")
5311 (url "https://github.com/swami/libinstpatch")
5312 (commit (string-append "v" version))))
5313 (file-name (git-file-name name version))
5315 (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir"))))
5316 (build-system cmake-build-system)
5318 `(#:tests? #f)) ;there are no tests
5320 `(("glib:bin" ,glib "bin")
5321 ("pkg-config" ,pkg-config)))
5323 (list glib libsndfile))
5324 (home-page "http://www.swamiproject.org/")
5325 (synopsis "Instrument file software library")
5327 "libInstPatch is a library for processing digital sample based MIDI
5328 instrument \"patch\" files. The types of files libInstPatch supports are used
5329 for creating instrument sounds for wavetable synthesis. libInstPatch provides
5330 an object framework (based on GObject) to load patch files, which can then be
5331 edited, converted, compressed and saved.")
5332 (license license:lgpl2.1)))
5334 (define-public ztoolkit-rsvg
5335 (package/inherit ztoolkit
5336 (name "ztoolkit-rsvg")
5338 `(#:configure-flags `("-Denable_rsvg=true")))
5340 `(("librsvg" ,librsvg)
5341 ,@(package-propagated-inputs ztoolkit)))
5342 (synopsis "ZToolkit with SVG support")))
5344 (define-public lsp-dsp-lib
5346 (name "lsp-dsp-lib")
5351 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
5352 "releases/download/" version
5353 "/lsp-dsp-lib-" version "-src.tar.gz"))
5355 (base32 "1gcznkyybywbgdi2fhx27i8sckhy6ahvxax72b213g1lr5aaw7bq"))))
5356 (build-system gnu-build-system)
5358 (list #:tests? #f ; no tests
5360 #~(list (string-append "CC=" #$(cc-for-target)))
5362 #~(modify-phases %standard-phases
5363 (add-after 'unpack 'omit-static-library
5365 (substitute* "src/Makefile"
5366 ((".*cp \\$\\(ARTIFACT_SLIB\\).*") "") ; don't install it
5367 ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it
5370 (invoke "make" "config"
5371 (string-append "PREFIX=" #$output)))))))
5372 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
5373 (synopsis "Digital signal processing library")
5374 (description "The LSP DSP library provides a set of functions that perform
5375 SIMD-optimized computing on several hardware architectures. All functions
5376 currently operate on IEEE-754 single-precision floating-point numbers.")
5377 (license license:lgpl3+)))
5379 (define-public codec2
5387 (url "https://github.com/drowe67/codec2")
5388 (commit (string-append "v" version))))
5389 (file-name (git-file-name name version))
5391 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
5392 (build-system cmake-build-system)
5394 (list bc octave valgrind))
5396 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
5398 (modify-phases %standard-phases
5399 (add-before 'check 'set-test-environment
5401 (setenv "HOME" "/tmp")
5403 (synopsis "Speech codec")
5405 "Codec 2 is a speech codec designed for communications quality speech
5406 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
5408 (home-page "https://www.rowetel.com/?page_id=452")
5409 (license license:lgpl2.1)))
5411 (define-public mbelib
5412 ;; No release since 2016, use commit directly.
5413 (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f")
5417 (version (git-version "1.3.0" revision commit))
5422 (url "https://github.com/szechyjs/mbelib")
5424 (file-name (git-file-name name version))
5426 (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h"))))
5427 (build-system cmake-build-system)
5428 (home-page "https://github.com/szechyjs/mbelib")
5429 (synopsis "P25 Phase 1 and ProVoice vocoder")
5431 "The mbelib library provides support for the 7200x4400 bit/s codec used
5432 in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half
5433 Rate} 3600x2250 bit/s vocoder used in various radio systems.")
5434 (license (list license:bsd-3 ; test/ framework
5435 license:isc))))) ; the rest
5437 (define-public ableton-link
5439 (name "ableton-link")
5444 (url "https://github.com/Ableton/link")
5445 (commit (string-append "Link-" version))))
5446 (file-name (git-file-name name version))
5449 "1wplqj11ww64gmw2kzlxpvfs3v04m2036f7k5ndm34zcv12b91fa"))
5450 (modules '((guix build utils)))
5452 (search-patches "ableton-link-system-libraries-debian.patch"))
5455 ;; Tests assume that CMake's "build" directory is a
5456 ;; sub-directory of the source tree, so we fix it.
5457 (substitute* "ci/run-tests.py"
5458 (("root_dir,") "root_dir, os.pardir,"))
5459 ;; Unbundle dependencies.
5460 (delete-file-recursively "third_party")
5461 (delete-file-recursively "modules")))))
5462 (build-system cmake-build-system)
5464 (list catch-framework
5465 python ;for running tests
5466 portaudio ;for portaudio examples
5467 qtbase-5 ;for Qt examples
5471 (list jack-1 ;for JACK examples
5472 qtquickcontrols-5)) ;for Qt examples
5474 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
5475 ;; contains '#include <asio.hpp>'.
5479 '("-DLINK_BUILD_QT_EXAMPLES=ON"
5480 "-DLINK_BUILD_JACK=ON")
5482 (modify-phases %standard-phases
5484 (lambda* (#:key inputs tests? #:allow-other-keys)
5486 (let* ((python (search-input-file inputs "/bin/python3"))
5487 (run-tests "../source/ci/run-tests.py"))
5488 (invoke python run-tests "--target" "LinkCoreTest")
5489 (invoke python run-tests "--target" "LinkDiscoveryTest")))))
5490 (add-before 'install 'patch-cmake
5491 (lambda* (#:key inputs #:allow-other-keys)
5492 (let* ((source "../source/"))
5493 (substitute* (string-append source
5494 "cmake_include/AsioStandaloneConfig.cmake")
5495 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5496 "modules/asio-standalone/asio/include"))
5497 (string-append (assoc-ref inputs "asio")
5499 (substitute* (string-append source "AbletonLinkConfig.cmake")
5500 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5501 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5502 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5503 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp")))))
5505 (lambda* (#:key outputs #:allow-other-keys)
5506 (let* ((out (assoc-ref outputs "out"))
5507 (bin (string-append out "/bin"))
5508 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5509 (source "../source"))
5510 (for-each (lambda (test-file)
5511 (delete-file test-file))
5512 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5513 (copy-recursively "bin" bin)
5514 (copy-recursively (string-append source "/include/ableton")
5515 (string-append out "/include/ableton"))
5516 (install-file (string-append source "/AbletonLinkConfig.cmake")
5518 (install-file (string-append source
5519 "/cmake_include/AsioStandaloneConfig.cmake")
5520 (string-append lib-cmake "/cmake_include"))))))))
5521 (home-page "https://github.com/Ableton/link")
5522 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5524 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5525 across multiple applications running on one or more devices. Applications on devices
5526 connected to a local network discover each other automatically and form a musical
5527 session in which each participant can perform independently: anyone can start or stop
5528 while still staying in time.")
5529 (license license:gpl2+)))
5537 (uri (string-append "mirror://sourceforge/butt/butt/butt-"
5538 version "/butt-" version ".tar.gz"))
5541 "0zd1g1673pv8z437y34fllxska8dzpd7mygpham35pzwpdyc5c1p"))
5542 (modules '((guix build utils)))
5544 '(substitute* "src/butt.cpp"
5545 ((".*zica.*") "")))))
5546 (build-system gnu-build-system)
5549 #~(modify-phases %standard-phases
5550 (add-after 'install 'install-documentation
5552 (let ((doc (string-append #$output "/share/doc/" #$name)))
5553 (install-file "README" doc)
5554 (copy-file #$(this-package-native-input "manual")
5555 (string-append doc "/butt-manual.pdf"))))))))
5557 `(("pkg-config" ,pkg-config)
5561 (uri (string-append "https://danielnoethen.de/butt/butt-"
5562 version "_manual.pdf"))
5564 (base32 "0kadqzzbk25n0aqxgbqhg4mq4hsbjq44phzcx5qj1b8847yzz8si"))))))
5582 (home-page "https://danielnoethen.de/butt/")
5583 (synopsis "Audio streaming tool")
5584 (description "Butt is a tool to stream audio to a ShoutCast or
5586 (license license:gpl2+)))
5588 (define-public siggen
5596 (url "https://github.com/bleskodev/siggen")
5597 (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210")))
5598 (file-name (git-file-name name version))
5601 "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb"))))
5602 (build-system gnu-build-system)
5604 `(#:make-flags (list (string-append "INSDIR=" %output "/bin")
5605 (string-append "MANDIR=" %output "/share/man"))
5606 #:tests? #f ; no tests
5608 (modify-phases %standard-phases
5609 ;; Patch misc.c to prevent a segfault.
5610 (add-after 'unpack 'patch-segfault
5612 (substitute* "misc.c"
5613 (("#include <stdio.h>\n" all)
5614 (string-append all "#include <string.h>\n")))))
5617 (lambda* (#:key make-flags outputs #:allow-other-keys)
5618 (let ((out (assoc-ref outputs "out")))
5619 (for-each (lambda (dir)
5620 (mkdir-p (string-append out dir)))
5621 (list "/bin" "/share/man/man1" "/share/man/man5"))
5622 (apply invoke "make" "sysinstall" make-flags)))))))
5626 `(("groff" ,groff-minimal) ; for nroff
5627 ("util-linux" ,util-linux))) ; for col
5628 (home-page "https://github.com/bleskodev/siggen")
5629 (synopsis "Signal generation tools")
5630 (description "siggen is a set of tools for imitating a laboratory signal
5631 generator, generating audio signals out of Linux's /dev/dsp audio
5632 device. There is support for mono and/or stereo and 8 or 16 bit samples.")
5633 (license license:gpl2)))
5635 (define-public python-pysox
5636 ;; PyPi does not include the data folder containing audio files for testing.
5637 (let ((commit "3d0053381c24ae3490f759d4de87194b85789d36")
5640 (name "python-pysox")
5641 (version (git-version "1.4.2" revision commit))
5646 (url "https://github.com/rabitt/pysox")
5648 (file-name (git-file-name name version))
5651 "0i62jx92vfpcr2z7lp69yzqdi9idfs3pifl3rzm2akc2c4cr1mac"))))
5652 (build-system python-build-system)
5655 (modify-phases %standard-phases
5656 (add-after 'unpack 'patch-sox
5657 (lambda* (#:key inputs #:allow-other-keys)
5658 (let* ((sox-store-path (assoc-ref inputs "sox"))
5659 (sox-bin (string-append sox-store-path "/bin/sox")))
5660 (substitute* "sox/__init__.py"
5662 (string-append sox-bin " -h")))
5663 (substitute* "sox/core.py"
5665 (string-append "['" sox-bin))))))
5667 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5669 (add-installed-pythonpath inputs outputs)
5670 (invoke "pytest")))))))
5672 (list python-numpy python-typing-extensions))
5674 (list sox python-pytest python-pytest-cov python-soundfile))
5675 (home-page "https://github.com/rabitt/pysox")
5676 (synopsis "Python wrapper around SoX")
5677 (description "@code{python-pysox} is a wrapper around the @command{sox}
5678 command line tool. The API offers @code{Transformer} and @code{Combiner}
5679 classes that allow the user to incrementally build up effects and audio
5680 manipulations. @code{python-pysox} also provides methods for querying audio
5681 information such as sample rate, determining whether an audio file is silent,
5683 (license license:bsd-3))))
5685 (define-public python-resampy
5687 (name "python-resampy")
5694 ;; PyPi does not include tests.
5695 (url "https://github.com/bmcfee/resampy")
5697 (file-name (git-file-name name version))
5699 (base32 "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs"))))
5700 (build-system python-build-system)
5703 (modify-phases %standard-phases
5705 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5707 (add-installed-pythonpath inputs outputs)
5708 (invoke "pytest" "tests")))))))
5710 (list python-numba python-numpy python-scipy python-six))
5712 (list python-pytest python-pytest-cov))
5713 (home-page "https://github.com/bmcfee/resampy")
5714 (synopsis "Efficient signal resampling")
5716 "@code{python-resampy} implements the band-limited sinc interpolation
5717 method for sampling rate conversion as described by Julius O. Smith at the
5718 @url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling
5720 (license license:isc)))
5722 (define-public python-librosa
5724 (name "python-librosa")
5729 (uri (pypi-uri "librosa" version))
5731 (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5"))))
5732 (build-system python-build-system)
5734 ;; Tests require internet connection to download MATLAB scripts for
5735 ;; generating the testing data.
5738 (list python-audioread
5749 (home-page "https://librosa.org")
5750 (synopsis "Python module for audio and music processing")
5752 "@code{librosa} is a python package for music and audio analysis. It
5753 provides the building blocks necessary to create music information retrieval
5755 (license license:isc)))
5757 (define-public mda-lv2
5764 (uri (string-append "http://download.drobilla.net/mda-lv2-"
5765 version ".tar.bz2"))
5767 (base32 "1nspk2j11l65m5r9z5isw8j749vh9a89wgx8mkrrq15f4iq12rnd"))))
5768 (build-system waf-build-system)
5770 `(#:tests? #f ; There are no tests.
5772 (list (string-append "--prefix="
5773 (assoc-ref %outputs "out")))))
5778 (native-search-paths
5779 (list (search-path-specification
5780 (variable "LV2_PATH")
5781 (files '("lib/lv2")))))
5782 (home-page "https://drobilla.net/software/mda-lv2")
5783 (synopsis "Audio plug-in pack for LV2")
5785 "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few
5786 instrument plugins.")
5787 (license license:gpl3+)))
5789 (define-public libodiosacd
5791 (name "libodiosacd")
5796 (url "https://github.com/tari01/libodiosacd")
5798 (file-name (git-file-name name version))
5801 "0iamf7wksbql0qfigdv5ahaax53ms2yligdav8dw6x0ay88x4lhi"))))
5802 (build-system gnu-build-system)
5804 `(#:tests? #f ; no check target
5806 (modify-phases %standard-phases
5807 (add-after 'unpack 'patch-makefile
5809 (substitute* "Makefile"
5810 (("\\$\\(DESTDIR\\)/usr")
5812 (delete 'configure)) ; no configure script
5814 (list (string-append "DESTDIR=" %output))))
5815 (synopsis "Library for decoding Super Audio CDs (SACD)")
5817 "The Odio SACD shared library is a decoding engine which takes a Super
5818 Audio CD source and extracts a 24-bit high resolution WAV file. It handles
5819 both DST and DSD streams.")
5820 (home-page "https://tari.in/www/software/libodiosacd/")
5821 (license license:gpl3+)))
5823 (define-public odio-sacd
5830 (url "https://github.com/tari01/odio-sacd")
5832 (file-name (git-file-name name version))
5835 "0314srqk0r4qv292qiaply619l2fw04nkdwvqhj3q1dqzv41g4qk"))))
5836 (inputs (list libodiosacd))
5837 ;; Build system and arguments for libodiosacd are identical.
5838 (build-system (package-build-system libodiosacd))
5839 (arguments (package-arguments libodiosacd))
5840 (synopsis "Rip Super Audio CDs (SACD)")
5842 "Odio SACD is a command-line application which takes a Super Audio CD
5843 source and extracts a 24-bit high resolution WAV file. It handles both DST
5845 (home-page "https://tari.in/www/software/odio-sacd/")
5846 (license license:gpl3+)))
5848 (define-public qpwgraph
5855 (url "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5856 (commit (string-append "v" version))))
5857 (file-name (git-file-name name version))
5860 "01f4zabn22dp0yl7szxck6gkbayk1p5iqajfgzls7mdkba7515b6"))))
5861 (build-system cmake-build-system)
5862 (arguments (list #:tests? #f)) ;; no tests
5863 (inputs (list alsa-lib
5868 (native-inputs (list pkg-config))
5869 (synopsis "PipeWire graph manager")
5871 "qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++
5872 framework. It provides a visual interface to audio and video connections
5873 managed by PipeWire.")
5874 (home-page "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5875 (license license:gpl2)))
5877 (define-public streamripper
5879 (name "streamripper")
5884 (uri (string-append "https://sourceforge.net/projects/streamripper"
5885 "/files/streamripper%20(current)/"
5886 version "/streamripper-" version ".tar.gz"))
5888 (base32 "0hnyv3206r0rfprn3k7k6a0j959kagsfyrmyjm3gsf3vkhp5zmy1"))
5889 (modules '((guix build utils)))
5891 ;; Delete bundled copy of libmad.
5892 '(delete-file-recursively "libmad-0.15.1b"))))
5893 (build-system gnu-build-system)
5894 (native-inputs (list pkg-config))
5895 (inputs (list faad2 glib libmad libvorbis))
5896 (home-page "http://streamripper.sourceforge.net")
5897 (synopsis "Record audio streams to your hard drive")
5898 (description "Streamripper records shoutcast-compatible
5899 streams. For shoutcast style streams it finds the “meta data” or track
5900 separation data, and uses that as a marker for where the track should
5902 (license license:gpl2+)))