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
370 (home-page "https://bitbucket.org/mpyne/game-music-emu")
371 (synopsis "Video game music file playback library")
373 "Game-music-emu is a collection of video game music file emulators that
374 support the following formats and systems:
377 ZX Spectrum/Asmtrad CPC
381 Sega Genesis/Mega Drive
383 NEC TurboGrafx-16/PC Engine
385 MSX Home Computer/other Z80 systems (doesn't support FM sound)
387 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
389 Atari systems using POKEY sound chip
391 Super Nintendo/Super Famicom
393 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
395 (license (list license:lgpl2.1+
396 ;; demo and player directories are under the Expat license
399 (define-public libopenmpt
407 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
408 "libopenmpt-" version "+release.autotools.tar.gz"))
410 (base32 "0h86p8mnpm98vc4v6jbvrmm02fch7dnn332i26fg3a2s1738m04d"))))
411 (build-system gnu-build-system)
414 (list (string-append "--docdir=" (assoc-ref %outputs "out")
415 "/share/doc/" ,name "-" ,version))
417 (modify-phases %standard-phases
418 (add-after 'install 'delete-static-libraries
419 (lambda* (#:key outputs #:allow-other-keys)
420 (let* ((out (assoc-ref outputs "out"))
421 (lib (string-append out "/lib")))
422 (for-each delete-file (find-files lib "\\.a$"))
425 (list doxygen perl pkg-config))
429 ("portaudio" ,portaudio)
430 ("pulseaudio" ,pulseaudio)
432 ("sndfile" ,libsndfile)))
434 ;; In Requires.private
435 (list libogg libvorbis mpg123 zlib))
436 (synopsis "Audio tracking library")
437 (description "LibOpenMPT is a cross-platform C++ and C module playback
438 library. It is based on the player code of the Open ModPlug Tracker project.")
439 (home-page "https://openmpt.org/")
440 (license (license:non-copyleft "file:///LICENSE"))))
442 (define-public libofa
450 (string-append "https://storage.googleapis.com/"
451 "google-code-archive-downloads/v2/code.google.com/"
452 "musicip-libofa/" name "-" version ".tar.gz"))
454 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
457 "libofa-ftbfs-1.diff"
459 "libofa-ftbfs-2.diff"))))
460 (build-system gnu-build-system)
467 (synopsis "Open Fingerprint Architecture")
468 (description "LibOFA is an audio fingerprint library, created and provided
470 (home-page "https://code.google.com/archive/p/musicip-libofa/")
471 (license license:gpl2+)))
481 (string-append "mirror://sourceforge/faac/faac-src"
482 "/faac-" version "/faac-1_30.tar.gz"))
484 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
485 (build-system gnu-build-system)
487 (list autoconf automake libtool pkg-config))
488 (synopsis "Freeware Advanced Audio Coder")
489 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
490 (home-page "https://www.audiocoding.com/faac.html")
493 ;; ISO MPEG-4 reference code.
498 (define-public libtimidity
506 (string-append "https://sourceforge.net/projects/" name "/files/"
507 name "/" version "/" name "-" version ".tar.gz"))
509 (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16"))))
510 (build-system gnu-build-system)
512 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
517 (synopsis "MIDI to WAVE converter library")
518 (description "LibTiMidity is a MIDI to WAVE converter library that uses
519 Gravis Ultrasound-compatible patch files to generate digital audio data from
520 General MIDI files.")
521 (home-page "http://libtimidity.sourceforge.net/")
523 ;; This project is dual-licensed.
524 ;; Either of the following licenses can be exercised.
527 license:artistic2.0))))
529 (define-public vo-amrwbenc
537 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
538 name "/" name "-" version ".tar.gz"))
540 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
541 (build-system gnu-build-system)
542 (synopsis "Adaptive Multi Rate Codec")
543 (description "VO-AMR is a library of VisualOn implementation of
544 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
545 (home-page "https://sourceforge.net/projects/opencore-amr/")
546 (license license:asl2.0)))
548 (define-public opencore-amr
550 (name "opencore-amr")
556 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
557 name "/" name "-" version ".tar.gz"))
559 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
560 (build-system gnu-build-system)
561 (synopsis "Adaptive Multi Rate Codec")
562 (description "OpenCore-AMR is a library of OpenCORE Framework
563 implementation of Adaptive Multi Rate Narrowband and Wideband
564 (AMR-NB and AMR-WB) speech codec.")
565 (home-page "https://sourceforge.net/projects/opencore-amr/")
566 (license license:asl2.0)))
568 (define-public alsa-modular-synth
570 (name "alsa-modular-synth")
574 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
575 "/" version "/ams-" version ".tar.bz2"))
578 "056dn6b9c5nsw2jdww7z1kxrjqqfvxjzxhsd5x9gi4wkwyiv21nz"))))
579 (build-system gnu-build-system)
582 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
583 ;; license incompatibility.
591 (list pkg-config qttools-5))
592 (home-page "http://alsamodular.sourceforge.net/")
593 (synopsis "Realtime modular synthesizer and effect processor")
595 "AlsaModularSynth is a digital implementation of a classical analog
596 modular synthesizer system. It uses virtual control voltages to control the
597 parameters of the modules. The control voltages which control the frequency
598 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
599 Filter) modules follow the convention of 1V / Octave.")
600 (license license:gpl2)))
609 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
612 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
613 (build-system waf-build-system)
615 `(#:tests? #f ; no check target
618 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
622 "--enable-samplerate"
623 "--enable-avcodec")))
625 (list jack-1 libsndfile libsamplerate fftwf ffmpeg)) ; for libavcodec
628 (home-page "https://aubio.org/")
629 (synopsis "Library for audio labelling")
631 "aubio is a tool designed for the extraction of annotations from audio
632 signals. Its features include segmenting a sound file before each of its
633 attacks, performing pitch detection, tapping the beat and producing MIDI
634 streams from live audio.")
635 (license license:gpl3+)))
637 (define (ardour-rpath-phase major-version)
638 `(lambda* (#:key outputs #:allow-other-keys)
639 (let ((libdir (string-append (assoc-ref outputs "out")
640 "/lib/ardour" ,major-version)))
641 (substitute* "wscript"
642 (("linker_flags = \\[\\]")
643 (string-append "linker_flags = [\""
646 libdir "/backends" ":"
647 libdir "/engines" ":"
648 libdir "/panners" ":"
649 libdir "/surfaces" ":"
650 libdir "/vamp" "\"]"))))
653 (define-public ardour
660 (url "git://git.ardour.org/ardour/ardour.git")
663 ;; Ardour expects this file to exist at build time. The revision
665 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
666 `(call-with-output-file
667 "libs/ardour/revision.cc"
669 (format port ,(string-append "#include \"ardour/revision.h\"
670 namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }"))
674 "0vlcbd70y0an881zv87kc3akmaiz4w7whsy3yaiiqqjww35jg1mm"))
675 (file-name (string-append name "-" version))))
676 (build-system waf-build-system)
678 `(#:configure-flags '("--cxx11" ; required by gtkmm
680 "--no-phone-home" ; don't contact ardour.org
681 "--freedesktop" ; build .desktop file
682 "--test") ; build unit tests
684 (modify-phases %standard-phases
685 (add-after 'unpack 'set-rpath-in-LDFLAGS
686 ,(ardour-rpath-phase (version-major version)))
687 (add-after 'install 'install-freedesktop-files
688 (lambda* (#:key outputs #:allow-other-keys)
689 (let* ((out (assoc-ref outputs "out"))
690 (share (string-append out "/share"))
691 (ver ,(version-major version)))
694 (let ((dir (string-append share "/icons/hicolor/"
695 size "x" size "/apps")))
698 (string-append "gtk2_ardour/resources/Ardour-icon_"
700 (string-append dir "/ardour" ver ".png"))))
701 '("16" "22" "32" "48" "256"))
702 (install-file (string-append "build/gtk2_ardour/ardour"
704 (string-append share "/applications/"))
705 (install-file (string-append "build/gtk2_ardour/ardour"
707 (string-append share "/appdata/")))
709 #:test-target "test"))
739 openssl ; Required by libwebsockets.
754 `(("cppunit" ,cppunit)
755 ("gettext" ,gettext-minimal)
758 ("pkg-config" ,pkg-config)))
759 (home-page "https://ardour.org")
760 (synopsis "Digital audio workstation")
762 "Ardour is a multi-channel digital audio workstation, allowing users to
763 record, edit, mix and master audio and MIDI projects. It is targeted at audio
764 engineers, musicians, soundtrack editors and composers.")
765 (license license:gpl2+)))
767 (define-public audacity
773 ;; If built from the release tag, Audacity will describe itself
774 ;; as an "Alpha test version" and suggest to users that they use
775 ;; the "latest stable released version".
777 (uri (string-append "https://github.com/audacity/audacity/releases/download/"
778 "Audacity-" version "/audacity-" version
782 "189agx11361k9j958s6q5bngnnfx0rwaf0dwbjxy6fwvsb1wv3px"))
783 (patches (search-patches "audacity-ffmpeg-fallback.patch"))
784 (modules '((guix build utils)))
786 ;; Remove bundled libraries.
790 (delete-file-recursively (string-append "lib-src/" dir)))
791 '("libsoxr" "libvamp" "lv2" "soundtouch" "sqlite" "twolame"
792 ;; FIXME: these libraries have not been packaged yet:
799 ;; FIXME: we have this library, but it differs in that the Slide
800 ;; class does not have a member "getInverseStretchedTime".
804 (build-system cmake-build-system)
818 ;;("libsbsms" ,libsbsms) ;bundled version is modified
821 soxr ;replaces libsamplerate
832 `(("autoconf" ,autoconf)
833 ("automake" ,automake)
834 ("gettext" ,gettext-minimal) ;for msgfmt
836 ("pkg-config" ,pkg-config)
842 "-Daudacity_conan_enabled=off"
843 "-Daudacity_lib_preference=system"
844 ;; TODO: enable this flag once we've packaged all dependencies
845 ;; "-Daudacity_obey_system_dependencies=on"
846 ;; disable crash reports, updates, ..., anything that phones home
847 "-Daudacity_has_networking=off")
848 #:imported-modules ((guix build glib-or-gtk-build-system)
849 ,@%cmake-build-system-modules)
852 (guix build cmake-build-system)
853 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
855 (modify-phases %standard-phases
856 (add-after 'unpack 'fix-cmake-rpath
857 (lambda* (#:key outputs #:allow-other-keys)
858 (substitute* "CMakeLists.txt"
859 (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}")
860 (string-append (assoc-ref outputs "out") "/lib/audacity"))
861 (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*")
862 "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE")
863 (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*")
864 "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE"))
865 (substitute* "src/CMakeLists.txt"
866 (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags"))))
867 (add-after 'unpack 'comment-out-revision-ident
869 (substitute* "src/CMakeLists.txt"
870 (("file\\( TOUCH \".*RevisionIdent\\.h\" \\)" directive)
871 (string-append "# " directive)))
872 (substitute* "src/AboutDialog.cpp"
873 (("(.*RevisionIdent\\.h.*)" include-line)
874 (string-append "// " include-line)))))
875 (add-after 'unpack 'use-upstream-headers
876 (lambda* (#:key inputs #:allow-other-keys)
877 (substitute* '("libraries/lib-files/FileNames.cpp")
878 (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>"))))
879 (add-after 'install 'delete-gratuitous-script
880 (lambda* (#:key outputs #:allow-other-keys)
881 (delete-file (string-append (assoc-ref outputs "out")
883 (add-after 'wrap-program 'glib-or-gtk-wrap
884 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
885 ;; The test suite is not "well exercised" according to the developers,
886 ;; and fails with various errors. See
887 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
890 (list (search-path-specification
891 (variable "AUDACITY_MODULES_PATH")
892 (files '("lib/audacity/modules")))
893 (search-path-specification
894 (variable "AUDACITY_PATH")
895 (files '("share/audacity")))))
896 (home-page "https://www.audacityteam.org/")
897 (synopsis "Software for recording and editing sounds")
899 "Audacity is a multi-track audio editor designed for recording, playing
900 and editing digital audio. It features digital effects and spectrum analysis
902 (license license:gpl2+)))
904 (define-public audiofile
912 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
914 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
916 ;; CVE references according to nixpgs
918 "audiofile-fix-datatypes-in-tests.patch"
919 "audiofile-fix-sign-conversion.patch"
920 "audiofile-hurd.patch"
921 "audiofile-CVE-2015-7747.patch"
923 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
924 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
926 "audiofile-check-number-of-coefficients.patch"
928 "audiofile-overflow-in-MSADPCM.patch"
929 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
930 "audiofile-multiply-overflow.patch"
931 "audiofile-function-signature.patch"
933 "audiofile-Fail-on-error-in-parseFormat.patch"
935 "audiofile-division-by-zero.patch"
936 "audiofile-CVE-2018-13440.patch"
937 "audiofile-CVE-2018-17095.patch"))))
938 (properties `((lint-hidden-cve . ("CVE-2017-6829"
940 "CVE-2017-6827" "CVE-2017-6828"
941 "CVE-2017-6832" "CVE-2017-6835"
946 "CVE-2017-6830" "CVE-2017-6834"
947 "CVE-2017-6836" "CVE-2017-6838"
949 "CVE-2017-6831" "CVE-2017-6833"))))
950 (build-system gnu-build-system)
953 (home-page "https://audiofile.68k.org/")
954 (synopsis "Library to handle various audio file formats")
955 (description "This is an open-source version of SGI's audiofile library.
956 It provides a uniform programming interface for processing of audio data to
957 and from audio files of many common formats.
959 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
960 .snd/.au, BICS, and raw data. Supported compression formats are currently
961 G.711 mu-law and A-law.")
962 (license license:lgpl2.1+)))
964 (define-public autotalent
970 (uri (string-append "http://tombaran.info/autotalent-"
974 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
975 (build-system gnu-build-system)
977 `(#:tests? #f ; no check target
979 (modify-phases %standard-phases
980 ;; no configure script
982 (add-before 'install 'prepare-target-directory
983 (lambda* (#:key outputs #:allow-other-keys)
984 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
986 (add-after 'unpack 'override-target-directory
987 (lambda* (#:key outputs #:allow-other-keys)
988 (substitute* "Makefile"
989 (("/usr/lib64/ladspa")
990 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
994 (home-page "http://tombaran.info/autotalent.html")
995 (synopsis "Pitch-correction LADSPA audio plugin")
997 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
998 controls are allowable notes, strength of correction, LFO for vibrato and
1000 ;; All code except the FFT routine is licensed under GPLv2+.
1001 ;; The FFT routine is under BSD-3.
1002 (license license:gpl2+)))
1010 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
1015 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
1016 (patches (search-patches "azr3.patch"))))
1017 (build-system gnu-build-system)
1019 `(#:tests? #f ; no check target
1021 (list "LV2PEG=ttl2c"
1022 (string-append "prefix=" %output)
1023 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
1025 (modify-phases %standard-phases
1026 (add-before 'install 'fix-timestamp
1028 (let ((early-1980 315619200)) ; 1980-01-02 UTC
1029 (utime "azr3.1" early-1980 early-1980))
1032 (list gtkmm-2 lvtk jack-1 lash))
1035 (home-page "http://ll-plugins.nongnu.org/azr3/")
1036 (synopsis "Tonewheel organ synthesizer")
1038 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
1039 with drawbars, distortion and rotating speakers. The organ has three
1040 sections, two polyphonic sections with nine drawbars each and one monophonic
1041 bass section with five drawbars. A standalone JACK application and LV2
1042 plugins are provided.")
1043 (license license:gpl2)))
1051 (uri (string-append "https://calf-studio-gear.org/files/calf-"
1055 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
1056 (build-system gnu-build-system)
1070 (native-search-paths
1071 (list (search-path-specification
1072 (variable "LV2_PATH")
1073 (files '("lib/lv2")))))
1074 (home-page "http://calf.sourceforge.net/")
1075 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1077 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1078 The suite contains lots of effects (delay, modulation, signal processing,
1079 filters, equalizers, dynamics, distortion and mastering effects),
1080 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1081 tools (analyzer, mono/stereo tools, crossovers).")
1082 ;; calfjackhost is released under GPLv2+
1083 ;; The plugins are released under LGPLv2.1+
1084 (license (list license:lgpl2.1+ license:gpl2+))))
1086 (define-public caps-plugins-lv2
1088 (name "caps-plugins-lv2")
1092 ;; The Github project hasn't tagged a release.
1095 (url "https://github.com/moddevices/caps-lv2.git")
1096 (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9")))
1097 (file-name (git-file-name name version))
1100 "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa"))))
1101 (build-system gnu-build-system)
1103 `(#:tests? #f ; no check target
1105 (modify-phases %standard-phases
1106 ;; no configure script
1108 (add-after 'unpack 'override-target-directory
1109 (lambda* (#:key outputs #:allow-other-keys)
1110 (substitute* (find-files "plugins" "Makefile")
1111 (("/usr/local")(assoc-ref outputs "out")))
1115 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1116 (home-page "https://github.com/moddevices/caps-lv2")
1117 (synopsis "LV2 port of the CAPS audio plugin collection")
1119 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1120 guitar amplification and a small range of classic effects, signal processors and
1121 generators of mostly elementary and occasionally exotic nature.")
1122 (license license:gpl3+)))
1124 (define-public infamous-plugins
1126 (name "infamous-plugins")
1131 (url "https://github.com/ssj71/infamousPlugins")
1132 (commit (string-append "v" version))))
1133 (file-name (git-file-name name version))
1136 "1r72agk5nxf5k0mghcc2j90z43j5d9i7rqjmf49jfyqnd443isip"))))
1137 (build-system cmake-build-system)
1139 `(#:tests? #f ; there are no tests
1141 (modify-phases %standard-phases
1142 (add-after 'unpack 'remove-compiler-flags
1144 (substitute* (find-files "." "CMakeLists.txt")
1145 (("-msse2 -mfpmath=sse") ""))
1147 (add-after 'unpack 'fix-build-with-newer-lv2
1149 ;; https://github.com/ssj71/infamousPlugins/commit/4c7275b1fa8ea3296446421cbd29ec2df66588c0
1150 (substitute* (find-files "src" ".*\\.cxx")
1151 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
1154 (list cairo fftwf lv2 ntk zita-resampler))
1157 (home-page "https://ssj71.github.io/infamousPlugins")
1158 (synopsis "LV2 plugins for live use")
1160 "The infamous plugins are a collection of LV2 audio plugins for live
1161 performances. The plugins include a cellular automaton synthesizer, an
1162 envelope follower, distortion effects, tape effects and more.")
1163 (license license:gpl2+)))
1165 (define-public snapcast
1172 (url "https://github.com/badaix/snapcast")
1173 (commit (string-append "v" version))))
1174 (file-name (git-file-name name version))
1177 "091gf3k1xv3k0m0kf2apr9bwiifw2czjcksd3vzwy544sfgrya08"))))
1178 (build-system cmake-build-system)
1180 '(#:tests? #f)) ; no included tests
1192 (home-page "https://github.com/badaix/snapcast")
1193 (synopsis "Synchronous multiroom audio player")
1195 "Snapcast is a multi-room client-server audio player. Clients are time
1196 synchronized with the server to play synced audio.")
1197 (license license:gpl3+)))
1199 (define-public swh-plugins
1201 (name "swh-plugins")
1206 (url "https://github.com/swh/ladspa")
1207 (commit (string-append "v" version))))
1208 (file-name (git-file-name name version))
1211 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1215 gettext-minimal ;for autopoint
1221 (list fftwf perl-xml-parser))
1222 (build-system gnu-build-system)
1223 (home-page "http://plugin.org.uk")
1224 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1225 (description "This package provides Steve Harris's LADSPA plugins.")
1226 (license license:gpl2+)))
1228 (define-public swh-plugins-lv2
1230 (name "swh-plugins-lv2")
1235 (url "https://github.com/swh/lv2")
1236 (commit (string-append "v" version))))
1237 (file-name (git-file-name name version))
1240 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1241 (build-system gnu-build-system)
1243 `(#:tests? #f ; no check target
1244 #:make-flags (list "CC=gcc"
1245 (string-append "PREFIX="
1246 (assoc-ref %outputs "out")))
1248 (modify-phases %standard-phases
1249 ;; no configure script
1251 (add-after 'unpack 'patch-makefile-and-enter-directory
1252 ;; The default install target doesn't install, but the
1253 ;; "install-system" target does.
1255 (substitute* "Makefile"
1256 (("install:") "install: install-system"))
1261 (list libxslt pkg-config))
1262 (home-page "http://plugin.org.uk")
1263 (synopsis "SWH plugins in LV2 format")
1265 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1266 classes include: dynamics (compressor, limiter), time (delay, chorus,
1267 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1268 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1269 (license license:gpl3+)))
1271 (define-public libdjinterop
1273 (name "libdjinterop")
1279 (url "https://github.com/xsco/libdjinterop")
1281 (file-name (git-file-name name version))
1283 (base32 "16nrqpr90vb9ggmp9j73m0hspd7pmfdhh0g6iyp8vd7kx7g17qnk"))))
1284 (build-system meson-build-system)
1287 (modify-phases %standard-phases
1288 ;; crate_test writes a database file to the source tree.
1289 (add-after 'unpack 'make-git-checkout-writable
1291 (for-each make-file-writable (find-files ".")))))))
1293 (list boost pkg-config))
1296 (home-page "https://github.com/xsco/libdjinterop")
1297 (synopsis "C++ library for access to DJ record libraries")
1299 "@code{libdjinterop} is a C++ library that allows access to database
1300 formats used to store information about DJ record libraries.")
1301 (license license:lgpl3+)))
1306 (version "1.0-beta-10May2006")
1309 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1311 "tao-" version ".tar.gz"))
1314 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1316 (search-patches "tao-add-missing-headers.patch"
1317 "tao-fix-parser-types.patch"))
1318 (modules '((guix build utils)))
1320 '(substitute* "configure"
1321 (("SHELL=/bin/sh") "")))))
1322 (build-system gnu-build-system)
1324 '(#:configure-flags '("TAO_RELEASE=-beta")
1326 (modify-phases %standard-phases
1327 (add-after 'unpack 'fix-references
1328 (lambda* (#:key outputs #:allow-other-keys)
1329 (substitute* "user-scripts/tao.in"
1331 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1332 (("grep") (which "grep"))
1333 (("sed -f \\$distdir/user-scripts/")
1334 (string-append (which "sed") " -f $distdir/"))
1336 (string-append "distdir="
1337 (assoc-ref outputs "out") "/share/tao")))))
1338 (add-after 'install 'install-extra-files
1339 (lambda* (#:key outputs #:allow-other-keys)
1340 (let* ((out (assoc-ref outputs "out"))
1341 (share (string-append out "/share/tao/"))
1342 (inc (string-append out "/include/tao/")))
1345 (install-file "user-scripts/error.parse" share)
1346 (copy-recursively "examples" (string-append share "examples"))
1347 (for-each (lambda (file) (install-file file inc))
1348 (find-files "include" "\\.h"))))))))
1359 (home-page "http://taopm.sourceforge.net/")
1360 (synopsis "Sound Synthesis with Physical Models")
1361 (description "Tao is a software package for sound synthesis using physical
1362 models. It provides a virtual acoustic material constructed from masses and
1363 springs which can be used as the basis for building quite complex virtual
1364 musical instruments. Tao comes with a synthesis language for creating and
1365 playing instruments and a C++ API for those who would like to use it as an
1367 (license license:gpl2+)))
1369 (define-public tao-synth
1370 (let ((commit "f3aedd81efbc775574e591081b57ae1c08427064")
1374 (version (git-version "0" revision commit))
1378 (url "https://github.com/lucasw/tao_synth")
1380 (file-name (git-file-name name version))
1383 "1jds2l3cb96b02jxd7lmrjjl9s7mylnrvg6fpw0j8c141bk8vyg3"))))
1384 (build-system cmake-build-system)
1385 (arguments (list #:tests? #false)) ;there are no tests
1387 (list glfw freeglut))
1390 (home-page "https://github.com/lucasw/tao_synth")
1391 (synopsis "Sound synthesis with physical models")
1392 (description "Tao is a software package for sound synthesis using physical
1393 models. It provides a virtual acoustic material constructed from masses and
1394 springs which can be used as the basis for building quite complex virtual
1395 musical instruments. Tao comes with a synthesis language for creating and
1396 playing instruments and a C++ API for those who would like to use it as an
1398 (license license:lgpl2.0+))))
1400 (define-public csound
1408 (url "https://github.com/csound/csound")
1410 (file-name (git-file-name name version))
1412 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1413 (build-system cmake-build-system)
1415 (list bison flex gettext-minimal zlib))
1424 (home-page "https://csound.com/")
1425 (synopsis "Sound and music computing system")
1427 "Csound is a user-programmable and user-extensible sound processing
1428 language and software synthesizer.")
1429 (license license:lgpl2.1+)))
1431 (define-public midicomp
1432 ;; The latest tagged release is 9 years old and there have been
1433 ;; unreleased fixes, so we take the last commit.
1434 (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68")
1438 (version (git-version "0.0.8" revision commit))
1443 (url "https://github.com/markc/midicomp")
1445 (file-name (git-file-name name version))
1448 "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf"))))
1449 (build-system cmake-build-system)
1451 `(#:tests? #f)) ; no "check" target
1452 (synopsis "Convert SMF MIDI files to and from plain text")
1454 "midicomp can manipulate SMF (Standard MIDI File) files. It can both
1455 read and write SMF files in 0 or format 1 and also read and write its own
1456 plain text format. This means a SMF file can be turned into easily
1457 parseable text, edited with any text editor or filtered through any script
1458 language, and recompiled back into a binary SMF file.")
1459 (home-page "https://github.com/markc/midicomp")
1460 (license license:agpl3))))
1462 (define-public clalsadrv
1469 "http://kokkinizita.linuxaudio.org"
1470 "/linuxaudio/downloads/clalsadrv-"
1471 version ".tar.bz2"))
1474 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1475 (build-system gnu-build-system)
1477 `(#:tests? #f ; no "check" target
1478 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1480 (modify-phases %standard-phases
1481 (add-after 'unpack 'patch-makefile-and-enter-directory
1483 (substitute* "libs/Makefile"
1484 (("/sbin/ldconfig") "true")
1485 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1488 (add-after 'install 'install-symlink
1490 (symlink "libclalsadrv.so"
1491 (string-append (assoc-ref %outputs "out")
1492 "/lib/libclalsadrv.so.2"))
1494 ;; no configure script
1495 (delete 'configure))))
1497 (list alsa-lib fftw))
1498 (home-page "https://kokkinizita.linuxaudio.org")
1499 (synopsis "C++ wrapper around the ALSA API")
1501 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1503 (license license:gpl2+)))
1505 (define-public amb-plugins
1507 (name "amb-plugins")
1512 "http://kokkinizita.linuxaudio.org"
1513 "/linuxaudio/downloads/AMB-plugins-"
1514 version ".tar.bz2"))
1517 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1518 (build-system gnu-build-system)
1520 `(#:tests? #f ; no "check" target
1522 (modify-phases %standard-phases
1523 ;; no configure script
1525 (add-before 'install 'prepare-target-directory
1526 (lambda* (#:key outputs #:allow-other-keys)
1527 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1529 (add-after 'unpack 'override-target-directory-and-tool-paths
1530 (lambda* (#:key outputs #:allow-other-keys)
1531 (substitute* "Makefile"
1532 (("/usr/lib/ladspa")
1533 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1534 (("/usr/bin/install") (which "install"))
1537 (home-page "https://kokkinizita.linuxaudio.org")
1538 (synopsis "LADSPA ambisonics plugins")
1540 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1541 used within Ardour. Features include: mono and stereo to B-format panning,
1542 horizontal rotator, square, hexagon and cube decoders.")
1543 (license license:gpl2+)))
1545 (define-public mcp-plugins
1547 (name "mcp-plugins")
1552 "http://kokkinizita.linuxaudio.org"
1553 "/linuxaudio/downloads/MCP-plugins-"
1554 version ".tar.bz2"))
1557 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1558 (build-system gnu-build-system)
1560 `(#:tests? #f ; no "check" target
1562 (modify-phases %standard-phases
1563 ;; no configure script
1565 (add-before 'install 'prepare-target-directory
1566 (lambda* (#:key outputs #:allow-other-keys)
1567 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1569 (add-after 'unpack 'override-target-directory
1570 (lambda* (#:key outputs #:allow-other-keys)
1571 (substitute* "Makefile"
1572 (("/usr") (assoc-ref outputs "out")))
1574 (home-page "https://kokkinizita.linuxaudio.org")
1575 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1577 "This package provides various LADSPA plugins. @code{cs_chorus} and
1578 @code{cs_phaser} provide chorus and phaser effects, respectively;
1579 @code{mvclpf24} provides four implementations of the low-pass filter used in
1580 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1581 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1582 the non-linear circuit elements of their original analog counterparts.")
1583 (license license:gpl2+)))
1585 (define-public rev-plugins
1587 (name "rev-plugins")
1592 "http://kokkinizita.linuxaudio.org"
1593 "/linuxaudio/downloads/REV-plugins-"
1594 version ".tar.bz2"))
1597 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1598 (build-system gnu-build-system)
1600 `(#:tests? #f ; no "check" target
1602 (modify-phases %standard-phases
1603 ;; no configure script
1605 (add-before 'install 'prepare-target-directory
1606 (lambda* (#:key outputs #:allow-other-keys)
1607 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1609 (add-after 'unpack 'override-target-directory
1610 (lambda* (#:key outputs #:allow-other-keys)
1611 (substitute* "Makefile"
1612 (("/usr") (assoc-ref outputs "out")))
1614 (home-page "https://kokkinizita.linuxaudio.org")
1615 (synopsis "LADSPA reverb plugin")
1617 "This package provides a stereo reverb LADSPA plugin based on the
1618 well-known greverb.")
1619 (license license:gpl2+)))
1621 (define-public fil-plugins
1623 (name "fil-plugins")
1628 "http://kokkinizita.linuxaudio.org"
1629 "/linuxaudio/downloads/FIL-plugins-"
1630 version ".tar.bz2"))
1633 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1634 (build-system gnu-build-system)
1636 `(#:tests? #f ; no "check" target
1638 (modify-phases %standard-phases
1639 ;; no configure script
1641 (add-before 'install 'prepare-target-directory
1642 (lambda* (#:key outputs #:allow-other-keys)
1643 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1645 (add-after 'unpack 'override-target-directory
1646 (lambda* (#:key outputs #:allow-other-keys)
1647 (substitute* "Makefile"
1648 (("/usr") (assoc-ref outputs "out")))
1650 (home-page "https://kokkinizita.linuxaudio.org")
1651 (synopsis "LADSPA four-band parametric equalizer plugin")
1653 "This package provides a LADSPA plugin for a four-band parametric
1654 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1655 gain controls. There is also a global bypass switch and gain control.
1657 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1658 lattice filter, which is stable even while parameters are being changed.
1660 All switches and controls are internally smoothed, so they can be used @code{live}
1661 without any clicks or zipper noises. This makes this plugin suitable for use
1662 in systems that allow automation of plugin control ports, such as Ardour, or
1664 (license license:gpl2+)))
1666 (define-public ste-plugins
1668 (name "ste-plugins")
1673 "http://kokkinizita.linuxaudio.org"
1674 "/linuxaudio/downloads/STE-plugins-"
1675 version ".tar.bz2"))
1678 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1679 (build-system gnu-build-system)
1681 `(#:tests? #f ; no "check" target
1683 (modify-phases %standard-phases
1684 ;; no configure script
1686 (add-before 'install 'prepare-target-directory
1687 (lambda* (#:key outputs #:allow-other-keys)
1688 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1690 (add-after 'unpack 'override-target-directory
1691 (lambda* (#:key outputs #:allow-other-keys)
1692 (substitute* "Makefile"
1693 (("/usr") (assoc-ref outputs "out")))
1695 (home-page "https://kokkinizita.linuxaudio.org")
1696 (synopsis "LADSPA stereo width plugin")
1698 "This package provides a LADSPA plugin to manipulate the stereo width of
1700 (license license:gpl2+)))
1702 (define-public vco-plugins
1704 (name "vco-plugins")
1709 "http://kokkinizita.linuxaudio.org"
1710 "/linuxaudio/downloads/VCO-plugins-"
1711 version ".tar.bz2"))
1714 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1715 (build-system gnu-build-system)
1717 `(#:tests? #f ; no "check" target
1719 (modify-phases %standard-phases
1720 ;; no configure script
1722 (add-before 'install 'prepare-target-directory
1723 (lambda* (#:key outputs #:allow-other-keys)
1724 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1726 (add-after 'unpack 'override-target-directory
1727 (lambda* (#:key outputs #:allow-other-keys)
1728 (substitute* "Makefile"
1729 (("/usr") (assoc-ref outputs "out"))
1730 (("/bin/cp") (which "cp")))
1732 (home-page "https://kokkinizita.linuxaudio.org")
1733 (synopsis "LADSPA plugin for synthesizer oscillators")
1735 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1738 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1739 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1740 @item Rec-VCO, a square / rectangle oscillator
1743 All oscillators are low-pass filtered to provide waveforms similar to the
1744 output of analog synthesizers such as the Moog Voyager.")
1745 (license license:gpl2+)))
1747 (define-public wah-plugins
1749 (name "wah-plugins")
1754 "http://kokkinizita.linuxaudio.org"
1755 "/linuxaudio/downloads/WAH-plugins-"
1756 version ".tar.bz2"))
1759 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1760 (build-system gnu-build-system)
1762 `(#:tests? #f ; no "check" target
1764 (modify-phases %standard-phases
1765 ;; no configure script
1767 (add-before 'install 'prepare-target-directory
1768 (lambda* (#:key outputs #:allow-other-keys)
1769 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1771 (add-after 'unpack 'override-target-directory
1772 (lambda* (#:key outputs #:allow-other-keys)
1773 (substitute* "Makefile"
1774 (("/usr") (assoc-ref outputs "out")))
1776 (home-page "https://kokkinizita.linuxaudio.org")
1777 (synopsis "LADSPA Autowah effect plugin")
1779 "This package provides a LADSPA plugin for a Wah effect with envelope
1781 (license license:gpl2+)))
1783 (define-public g2reverb
1790 "http://kokkinizita.linuxaudio.org"
1791 "/linuxaudio/downloads/g2reverb-"
1792 version ".tar.bz2"))
1795 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1796 (build-system gnu-build-system)
1798 `(#:tests? #f ; no "check" target
1800 (modify-phases %standard-phases
1801 ;; no configure script
1803 (add-before 'install 'prepare-target-directory
1804 (lambda* (#:key outputs #:allow-other-keys)
1805 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1807 (add-after 'unpack 'override-target-directory
1808 (lambda* (#:key outputs #:allow-other-keys)
1809 (substitute* "Makefile"
1810 (("/usr") (assoc-ref outputs "out")))
1812 (home-page "https://kokkinizita.linuxaudio.org")
1813 (synopsis "LADSPA stereo reverb plugin")
1815 "This package provides a LADSPA plugin for a stereo reverb effect.")
1816 (license license:gpl2+)))
1818 (define-public fluidsynth
1825 (url "https://github.com/FluidSynth/fluidsynth")
1826 (commit (string-append "v" version))))
1827 (file-name (git-file-name name version))
1830 "1061rdj69503spkd8vmfl3fqvyg4l41k5xcc4gw7niy31hnpnjmn"))))
1831 (build-system cmake-build-system)
1833 '(#:tests? #f ; no check target
1835 (modify-phases %standard-phases
1836 (add-after 'unpack 'fix-libdir
1838 ;; Install libraries to /lib, not /lib64.
1839 (substitute* "CMakeLists.txt"
1840 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1841 "LIB_SUFFIX \"\"")))))))
1847 ;; In Libs.private of fluidsynth.pc.
1854 (home-page "https://www.fluidsynth.org/")
1855 (synopsis "SoundFont synthesizer")
1857 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1858 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1859 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1860 also play midifiles using a Soundfont.")
1861 (license license:lgpl2.1+)))
1863 (define-public faad2
1871 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1872 (version-major+minor version) ".0/"
1873 "faad2-" version ".tar.gz"))
1875 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1876 (build-system gnu-build-system)
1877 (home-page "https://www.audiocoding.com/faad2.html")
1878 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1880 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1881 (license license:gpl2+)))
1883 (define-public faust
1890 (url "https://github.com/grame-cncm/faust")
1891 (commit (string-append "v"
1892 (string-map (lambda (c)
1893 (if (char=? c #\.) #\- c))
1895 (file-name (string-append "faust-" version "-checkout"))
1898 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1899 (build-system gnu-build-system)
1901 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1904 (modify-phases %standard-phases
1905 ;; no "configure" script
1907 ;; Files appear under $out/share/faust that are read-only. The
1908 ;; install phase tries to overwrite them and fails, so we change
1909 ;; the permissions first.
1910 (add-before 'install 'fix-permissions
1912 (for-each (lambda (file)
1914 (find-files "architecture/max-msp" ".*"))
1918 (home-page "https://faust.grame.fr/")
1919 (synopsis "Signal processing language")
1921 "Faust is a programming language for realtime audio signal processing.")
1922 (license license:gpl2+)))
1924 ;; This version is needed to build older synths that require the lv2synth.cpp
1925 ;; architecture file, such as sorcer.
1926 (define-public faust-0.9.67
1934 (url "https://github.com/grame-cncm/faust")
1935 (commit (string-append "v"
1936 (string-map (lambda (c)
1937 (if (char=? c #\.) #\- c))
1939 (file-name (git-file-name name version))
1942 "0856x666s6ymzk8v15f9gy402dbr8c9v2s40hyfadhraqljmqrm0"))
1944 ;; Remove prebuilt library
1945 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
1946 (build-system gnu-build-system)
1950 #~(list (string-append "prefix=" #$output))
1953 '(modify-phases %standard-phases
1954 ;; no "configure" script
1955 (delete 'configure))))
1956 (native-inputs (list unzip))))
1958 (define-public faust-2
1964 (uri (string-append "https://github.com/grame-cncm/faust/"
1965 "releases/download/" version
1966 "/faust-" version ".tar.gz"))
1969 "0gk8ifxrbykq7ay0nvjns8fjryhp0wfhv5npgrl8xpgw9wfmw53j"))))
1970 (build-system cmake-build-system)
1972 `(#:tests? #f ; no tests
1974 (modify-phases %standard-phases
1975 ;; The upstream package uses make to run cmake during the build stage.
1976 ;; Here we ignore the Makefile and call cmake directly.
1980 (invoke "cmake" "-C" "backends/all.cmake"
1981 (string-append "-DCMAKE_INSTALL_PREFIX="
1982 (assoc-ref %outputs "out")))))
1983 ;; The sound2faust tool would be built in the Makefile's "world" target
1984 (add-after 'install 'sound2faust
1986 (chdir "../tools/sound2faust")
1987 (setenv "PREFIX" (assoc-ref %outputs "out"))
1989 (invoke "make" "install"))))))
1994 ("ctags" ,emacs-minimal) ; for ctags
1995 ("pkg-config" ,pkg-config)))
1997 (list libsndfile libmicrohttpd ncurses openssl zlib))))
1999 (define-public freepats
2002 (version "20060219")
2005 (uri (string-append "http://freepats.zenvoid.org/freepats-"
2006 version ".tar.bz2"))
2009 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
2010 (build-system trivial-build-system)
2012 `(#:modules ((guix build utils))
2014 (use-modules (guix build utils))
2015 (let ((out (string-append %output "/share/freepats")))
2016 (setenv "PATH" (string-append
2017 (assoc-ref %build-inputs "bzip2") "/bin:"
2018 (assoc-ref %build-inputs "tar") "/bin"))
2019 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2021 ;; Use absolute pattern references
2022 (substitute* "freepats.cfg"
2023 (("Tone_000") (string-append out "/Tone_000"))
2024 (("Drum_000") (string-append out "/Drum_000")))
2026 (copy-recursively "." out)
2030 (home-page "http://freepats.zenvoid.org")
2031 (synopsis "GUS compatible patches for MIDI players")
2033 "FreePats is a project to create a free and open set of GUS compatible
2034 patches that can be used with softsynths such as Timidity and WildMidi.")
2035 ;; GPLv2+ with exception for compositions using these patches.
2036 (license license:gpl2+)))
2038 (define-public freepats-gm
2040 (name "freepats-gm")
2041 (version "20210329")
2044 (uri (string-append "https://freepats.zenvoid.org/SoundSets/"
2045 "FreePats-GeneralMIDI/FreePatsGM-SF2-" version ".7z"))
2048 "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc"))))
2049 (build-system trivial-build-system)
2051 `(("p7zip" ,p7zip)))
2053 `(#:modules ((guix build utils))
2055 (let ((dir (string-append "FreePatsGM-SF2-" ,version))
2056 (file (string-append "FreePatsGM-" ,version ".sf2"))
2057 (out (string-append %output "/share/soundfonts"))
2058 (doc (string-append %output "/share/doc/freepats-gm-" ,version)))
2059 (use-modules (guix build utils))
2060 (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")
2061 "e" (assoc-ref %build-inputs "source")
2062 (string-append dir "/" file)
2063 (string-append dir "/gpl.txt")
2064 (string-append dir "/cc0.txt")
2065 (string-append dir "/readme.txt"))
2067 (copy-file file (string-append out "/FreePatsGM.sf2"))
2071 (copy-file file (string-append doc "/" file)))
2072 (find-files "." "\\.txt$"))
2074 (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html")
2075 (synopsis "General MIDI sound set")
2076 (description "FreePats is a project to create a free (as in free software)
2077 collection of digital instruments for music production. This sound bank is a
2078 partial release of the General MIDI sound set.")
2080 license:gpl3+ ; with sampling exception
2083 (define-public guitarix
2090 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
2094 "1bsjlfd7x09p3iiljilyfbns6hpqn9cgp6psl4ccd6i1lwascfrm"))))
2095 (build-system waf-build-system)
2097 `(#:tests? #f ; no "check" target
2100 ;; Add the output lib directory to the RUNPATH.
2101 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
2121 ("intltool" ,intltool)
2122 ("gettext" ,gettext-minimal)
2123 ("pkg-config" ,pkg-config)
2125 (native-search-paths
2126 (list (search-path-specification
2127 (variable "LV2_PATH")
2128 (files '("lib/lv2")))))
2129 (home-page "https://guitarix.org/")
2130 (synopsis "Virtual guitar amplifier")
2131 (description "Guitarix is a virtual guitar amplifier running JACK.
2132 Guitarix takes the signal from your guitar as a mono-signal from your sound
2133 card. The input is processed by a main amp and a rack-section. Both can be
2134 routed separately and deliver a processed stereo-signal via JACK. You may
2135 fill the rack with effects from more than 25 built-in modules including stuff
2136 from a simple noise gate to modulation effects like flanger, phaser or
2138 (license license:gpl2+)))
2140 (define-public guitarix-lv2
2141 (package (inherit guitarix)
2142 (name "guitarix-lv2")
2144 (substitute-keyword-arguments (package-arguments guitarix)
2145 ((#:configure-flags flags)
2146 `(cons "--no-standalone" ,flags))))))
2148 (define-public rakarrack
2154 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
2155 "rakarrack-" version "/rakarrack-"
2156 version ".tar.bz2"))
2159 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
2160 (modules '((guix build utils)))
2163 (substitute* '("src/process.C"
2165 (("#include <Fl/") "#include <FL/"))
2167 (build-system gnu-build-system)
2184 (home-page "http://rakarrack.sourceforge.net/")
2185 (synopsis "Audio effects processor")
2187 "Rakarrack is a richly featured multi-effects processor emulating a
2188 guitar effects pedalboard. Effects include compressor, expander, noise gate,
2189 equalizers, exciter, flangers, chorus, various delay and reverb effects,
2190 distortion modules and many more. Most of the effects engine is built from
2191 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
2192 user interface are optimized for guitar, but Rakarrack processes signals in
2193 stereo while it does not apply internal band-limiting filtering, and thus is
2194 well suited to all musical instruments and vocals.")
2195 ;; The code is explicitly licensed under the GPL version 2 only.
2196 (license license:gpl2)))
2205 (url "https://github.com/tomszilagyi/ir.lv2")
2207 (file-name (git-file-name name version))
2210 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
2211 (build-system gnu-build-system)
2213 `(#:tests? #f ; no tests
2215 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2216 (string-append "INSTDIR="
2217 (assoc-ref %outputs "out") "/lib/lv2"))
2219 (modify-phases %standard-phases
2220 (delete 'configure) ; no configure script
2221 ;; See https://github.com/tomszilagyi/ir.lv2/pull/20
2222 (add-after 'unpack 'fix-type
2224 (substitute* '("ir_gui.cc" "lv2_ui.h")
2225 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
2236 (native-search-paths
2237 (list (search-path-specification
2238 (variable "LV2_PATH")
2239 (files '("lib/lv2")))))
2240 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
2241 (synopsis "LV2 convolution reverb")
2243 "IR is a low-latency, real-time, high performance signal convolver
2244 especially for creating reverb effects. It supports impulse responses with 1,
2245 2 or 4 channels, in any soundfile format supported by libsndfile.")
2246 (license license:gpl2+)))
2248 (define-public jack-1
2255 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2256 ;; no longer exists (404). Use an unofficial mirror.
2257 (uri (string-append "https://crux.ster.zone/downloads/"
2258 "jack-audio-connection-kit/"
2259 "jack-audio-connection-kit-" version ".tar.gz"))
2261 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2262 (build-system gnu-build-system)
2264 `(#:phases (modify-phases %standard-phases
2265 (add-after 'unpack 'patch-configure
2267 (substitute* "configure"
2268 ;; Install to <out/lib> regardless of platform.
2269 (("libnn=lib64") "libnn=lib"))
2272 (list alsa-lib readline))
2273 ;; uuid.h is included in the JACK type headers
2274 ;; db.h is included in the libjack metadata headers
2276 `(("libuuid" ,util-linux "lib")
2280 (home-page "https://jackaudio.org/")
2281 (synopsis "JACK audio connection kit")
2283 "JACK is a low-latency audio server. It can connect a number of
2284 different applications to an audio device, as well as allowing them to share
2285 audio between themselves. JACK is different from other audio server efforts
2286 in that it has been designed from the ground up to be suitable for
2287 professional audio work. This means that it focuses on two key areas:
2288 synchronous execution of all clients, and low latency operation.")
2289 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2290 ;; licensed under the LGPL in order to allow for proprietary usage.
2291 (license (list license:gpl2+ license:lgpl2.1+))))
2293 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2294 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2295 ;; program for users who might benefit from the D-BUS features.
2296 (define-public jack-2
2304 (url "https://github.com/jackaudio/jack2")
2305 (commit (string-append "v" version))))
2306 (file-name (git-file-name name version))
2309 "0sbrffmdbajvrk7iqvsvrnwnpvmicvbjyq3f52r6ashdsznsz03b"))))
2310 (build-system waf-build-system)
2312 `(#:tests? #f ; no check target
2313 #:configure-flags '("--dbus" "--alsa")
2315 (modify-phases %standard-phases
2316 (add-before 'configure 'set-linkflags
2318 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2319 ;; will not link with undefined reference to symbol
2320 ;; '__gxx_personality_v0@@CXXABI_1.3'
2321 (setenv "LDFLAGS" "-lstdc++")
2322 ;; Add $libdir to the RUNPATH of all the binaries.
2323 (substitute* "wscript"
2324 ((".*CFLAGS.*-Wall.*" m)
2326 " conf.env.append_unique('LINKFLAGS',"
2327 "'-Wl,-rpath=" %output "/lib')\n")))))
2328 (add-after 'install 'wrap-python-scripts
2329 (lambda* (#:key outputs #:allow-other-keys)
2330 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2331 (wrap-program (search-input-file outputs "bin/jack_control")
2332 `("GUIX_PYTHONPATH" ":"
2333 prefix (,(getenv "GUIX_PYTHONPATH")))))))))
2344 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2345 (license (list license:gpl2+ license:lgpl2.1+))))
2353 (uri (string-append "https://download.drobilla.net/jalv-"
2354 version ".tar.bz2"))
2357 "05lycfq0f06zjp5xqvzjz9hx9kmqx72yng1lghh76hv63dw43lcj"))))
2358 (build-system waf-build-system)
2360 `(#:tests? #f)) ; no check target
2371 (home-page "https://drobilla.net/software/jalv/")
2372 (synopsis "Simple LV2 host for JACK")
2374 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2375 plugins and exposes their ports as JACK ports, essentially making any LV2
2376 plugin function as a JACK application.")
2377 (license license:isc)))
2379 (define-public ladspa
2386 ;; Since the official link is dead,
2387 ;; we download the tarball from Debian or Internet Archive.
2388 (uri (list (string-append "http://http.debian.net"
2389 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2390 version ".orig.tar.gz")
2391 (string-append "https://web.archive.org/web/20140717172251/"
2392 "http://www.ladspa.org/download/ladspa_sdk_"
2396 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2397 (build-system gnu-build-system)
2399 `(#:tests? #f ; the "test" target is a listening test only
2401 (modify-phases %standard-phases
2403 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2405 (let ((out (assoc-ref outputs "out")))
2406 (substitute* "makefile"
2407 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2408 (("/usr/include/") (string-append out "/include/"))
2409 (("/usr/bin/") (string-append out "/bin/"))
2410 (("-mkdirhier") "mkdir -p")
2411 (("^CC.*") "CC = gcc\n")
2412 (("^CPP.*") "CPP = g++\n")))
2415 ;; Since the home page is gone, we provide a link to the archived version.
2417 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2418 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2420 "LADSPA is a standard that allows software audio processors and effects
2421 to be plugged into a wide range of audio synthesis and recording packages.")
2422 (license license:lgpl2.1+)))
2427 (version "0.6.0-rc2")
2430 ;; The tilde is not permitted in the builder name, but is used
2433 "mirror://savannah/lash/lash-"
2434 (string-join (string-split version #\-) "~")
2436 (file-name (string-append name "-" version ".tar.bz2"))
2439 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2440 (build-system gnu-build-system)
2442 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2443 ;; to use libtirpc instead.
2444 #:make-flags (list (string-append "CFLAGS=-I"
2445 (assoc-ref %build-inputs "libtirpc")
2446 "/include/tirpc -ltirpc"))
2448 (modify-phases %standard-phases
2449 ;; lashd embeds an ancient version of sigsegv so we just skip it
2450 (add-after 'unpack 'skip-lashd
2452 (substitute* '("Makefile.am" "Makefile.in")
2455 #:configure-flags '("--disable-static")))
2460 ("libtirpc" ,libtirpc)
2461 ("readline" ,readline)
2462 ("python" ,python-2)))
2463 ;; According to pkg-config, packages depending on lash also need to have
2464 ;; at least the following packages declared as inputs.
2466 (list alsa-lib dbus libxml2))
2469 (home-page "https://www.nongnu.org/lash/")
2470 (synopsis "Audio application session manager")
2472 "LASH is a session management system for audio applications. It allows
2473 you to save and restore audio sessions consisting of multiple interconneced
2474 applications, restoring program state (i.e. loaded patches) and the
2475 connections between them.")
2476 (license license:gpl2+)))
2478 (define-public libbs2b
2484 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2485 "/libbs2b-" version ".tar.lzma"))
2488 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2489 (build-system gnu-build-system)
2490 (native-inputs (list pkg-config))
2491 (inputs (list libsndfile))
2492 (home-page "https://sourceforge.net/projects/bs2b/")
2493 (synopsis "Bauer stereophonic-to-binaural DSP")
2495 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2496 designed to improve headphone listening of stereo audio records. Recommended
2497 for headphone prolonged listening to disable superstereo fatigue without
2498 essential distortions.")
2499 (license license:expat)))
2501 (define-public ladspa-bs2b
2503 (name "ladspa-bs2b")
2508 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2509 version "/" name "-" version ".tar.gz"))
2512 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2513 (build-system gnu-build-system)
2514 (native-inputs (list pkg-config))
2515 (inputs (list ladspa libbs2b))
2516 (home-page "https://sourceforge.net/projects/bs2b/")
2517 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2518 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2519 plugins is designed to improve headphone listening of stereo audio records.
2520 Recommended for headphone prolonged listening to disable superstereo fatigue
2521 without essential distortions. This package contains a LADSPA plugin for use
2522 with applications that support them (e.g. PulseAudio).")
2523 (license license:gpl2+)))
2525 (define-public liblo
2531 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2532 "/liblo-" version ".tar.gz"))
2535 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2536 (build-system gnu-build-system)
2538 `(;; liblo test FAILED
2539 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2541 (home-page "http://liblo.sourceforge.net")
2542 (synopsis "Implementation of the Open Sound Control protocol")
2544 "liblo is a lightweight library that provides an easy to use
2545 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2546 (license license:lgpl2.1+)))
2548 (define-public rtaudio
2556 (url "https://github.com/thestk/rtaudio")
2558 (file-name (git-file-name name version))
2560 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2561 (build-system cmake-build-system)
2564 (modify-phases %standard-phases
2565 ;; The header that pkg-config expects is include/rtaudio/RtAudio.h,
2566 ;; but this package installs it as include/RtAudio.h by default.
2567 (add-after 'install 'fix-inc-path
2568 (lambda* (#:key outputs #:allow-other-keys)
2569 (let* ((out (assoc-ref outputs "out"))
2570 (inc (string-append out "/include")))
2571 (mkdir-p (string-append inc "/rtaudio"))
2572 (rename-file (string-append inc "/RtAudio.h")
2573 (string-append inc "/rtaudio/RtAudio.h"))))))))
2577 (list alsa-lib jack-1 pulseaudio))
2578 (synopsis "Common API for real-time audio I/O")
2580 "RtAudio is a set of C++ classes that provides a common API for real-time
2581 audio input/output. It was designed with the following objectives:
2584 @item object-oriented C++ design
2585 @item simple, common API across all supported platforms
2586 @item only one source and one header file for easy inclusion in programming
2588 @item allow simultaneous multi-api support
2589 @item support dynamic connection of devices
2590 @item provide extensive audio device parameter control
2591 @item allow audio device capability probing
2592 @item automatic internal conversion for data format, channel number
2593 compensation, (de)interleaving, and byte-swapping
2595 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2596 ;; License is expat with a non-binding request to send modifications to
2597 ;; original developer.
2598 (license license:expat)))
2600 (define-public python-pyaudio
2602 (name "python-pyaudio")
2607 (uri (pypi-uri "PyAudio" version))
2610 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2611 (build-system python-build-system)
2614 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2615 (synopsis "Bindings for PortAudio v19")
2616 (description "This package provides bindings for PortAudio v19, the
2617 cross-platform audio input/output stream library.")
2618 (license license:expat)))
2620 (define-public python-pyliblo
2622 (name "python-pyliblo")
2626 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2630 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2631 (build-system python-build-system)
2632 (arguments `(#:tests? #f)) ;no tests
2634 (list python-cython))
2637 (home-page "http://das.nasophon.de/pyliblo/")
2638 (synopsis "Python bindings for liblo")
2640 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2641 library. It supports almost the complete functionality of liblo, allowing you
2642 to send and receive OSC messages using a nice and simple Python API. Also
2643 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2644 (license license:lgpl2.1+)))
2646 (define-public python-soundfile
2648 (name "python-soundfile")
2649 (version "0.10.3.post1")
2653 (uri (pypi-uri "SoundFile" version))
2656 "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
2657 (build-system python-build-system)
2659 (list python-cffi python-numpy libsndfile))
2661 (list python-pytest))
2663 `(#:tests? #f ; missing OGG support
2665 (modify-phases %standard-phases
2666 (add-after 'unpack 'patch
2667 (lambda* (#:key inputs #:allow-other-keys)
2668 (substitute* "soundfile.py"
2669 (("_find_library\\('sndfile'\\)")
2670 (string-append "\"" (assoc-ref inputs "libsndfile")
2671 "/lib/libsndfile.so\""))))))))
2672 (home-page "https://github.com/bastibe/SoundFile")
2673 (synopsis "Python bindings for libsndfile")
2674 (description "This package provides python bindings for libsndfile based on
2676 (license license:expat)))
2678 (define-public python-python3-midi
2680 (name "python-python3-midi")
2685 (uri (pypi-uri "python3_midi" version))
2688 "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
2689 (build-system python-build-system)
2690 (home-page "https://github.com/NFJones/python3-midi")
2691 (synopsis "Python MIDI API")
2692 (description "This package provides a python API to read and write MIDI
2694 (license license:expat)))
2696 (define-public audio-to-midi
2698 (name "audio-to-midi")
2704 (url "https://github.com/NFJones/audio-to-midi")
2705 (commit (string-append "v" version))))
2706 (file-name (git-file-name name version))
2709 "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
2710 (build-system python-build-system)
2723 (modify-phases %standard-phases
2724 (add-after 'unpack 'fix-versions
2726 (substitute* "requirements.txt" (("==") ">=")))))))
2727 (home-page "https://github.com/NFJones/audio-to-midi")
2728 (synopsis "Convert audio to multichannel MIDI")
2729 (description "@command{audio-to-midi} converts audio files to multichannel
2730 MIDI files. It accomplishes this by performing FFTs on all channels of the
2731 audio data at user-specified time steps. It then separates the resulting
2732 frequency analysis into equivalence classes which correspond to the twelve tone
2733 scale; the volume of each class being the average volume of its constituent
2734 frequencies. This data is then formatted to MIDI and written to disk.")
2735 (license license:expat)))
2743 (uri (string-append "https://download.drobilla.net/lilv-"
2744 version ".tar.bz2"))
2747 "0qchfsyrsrp2pdpd59025kllycr04ddpzd03ha1iz70ci687g8r6"))))
2748 (build-system waf-build-system)
2750 `(#:tests? #f ; no check target
2752 (modify-phases %standard-phases
2753 (add-before 'configure 'set-ldflags
2754 (lambda* (#:key outputs #:allow-other-keys)
2756 (string-append "-Wl,-rpath="
2757 (assoc-ref outputs "out") "/lib"))))
2758 (add-after 'unpack 'full-store-path-to-shared-library
2759 (lambda* (#:key outputs #:allow-other-keys)
2760 (with-directory-excursion "bindings/python"
2761 (substitute* "lilv.py"
2762 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2763 "/lib/liblilv-0.so")))))))))
2764 ;; Required by lilv-0.pc.
2766 (list lv2 serd sord sratom))
2768 (list python pkg-config))
2769 (home-page "https://drobilla.net/software/lilv")
2770 (synopsis "Library to simplify use of LV2 plugins in applications")
2772 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2773 for applications. Lilv is the successor to SLV2, rewritten to be
2774 significantly faster and have minimal dependencies.")
2775 (license license:isc)))
2783 (uri (string-append "https://lv2plug.in/spec/lv2-"
2784 version ".tar.bz2"))
2787 "0pp0n9x1rg8d4fw853z9cvfifjdi4bl85yjxxddqa1acfjy1z2af"))))
2788 (build-system waf-build-system)
2790 `(#:tests? #f ; no check target
2791 #:configure-flags '("--no-plugins")))
2793 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2797 (home-page "https://lv2plug.in/")
2798 (synopsis "LV2 audio plugin specification")
2800 "LV2 is an open specification for audio plugins and host applications.
2801 At its core, LV2 is a simple stable interface, accompanied by extensions which
2802 add functionality to support the needs of increasingly powerful audio
2804 (license license:isc)))
2806 (define-public ttl2c
2813 (url "https://github.com/lvtk/ttl2c")
2815 (file-name (git-file-name name version))
2818 "0aybx8i5i0sridi9130a3937xgmfmjkk8m48f9whvhlhbzwy3xbl"))))
2819 (build-system waf-build-system)
2822 #:tests? #false ;no check target
2824 `(modify-phases %standard-phases
2825 (add-before 'configure 'setup-waf
2826 (lambda* (#:key inputs #:allow-other-keys)
2827 (let ((waf (assoc-ref inputs "python-waf")))
2828 (copy-file (string-append waf "/bin/waf") "waf")))))))
2829 (inputs (list boost))
2830 (native-inputs (list python-waf))
2831 (home-page "https://github.com/lvtk/ttl2c")
2832 (synopsis "Turtle to C header conversion utility for LV2 plugins")
2834 "This package provides a conversion utility for LV2 Plugin developers to
2835 generate C headers from Turtle files.")
2836 (license license:gpl3+)))
2838 (define-public lv2-mda-piano
2840 (name "lv2-mda-piano")
2845 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2847 (file-name (git-file-name name version))
2850 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2851 (build-system gnu-build-system)
2853 `(#:make-flags (list
2855 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2856 #:tests? #f ; no check target
2857 #:phases (modify-phases %standard-phases (delete 'configure))))
2861 (list pkg-config ttl2c))
2862 (native-search-paths
2863 (list (search-path-specification
2864 (variable "LV2_PATH")
2865 (files '("lib/lv2")))))
2866 (home-page "https://elephly.net/lv2/mdapiano.html")
2867 (synopsis "LV2 port of the mda Piano plugin")
2868 (description "An LV2 port of the mda Piano VSTi.")
2869 (license license:gpl3+)))
2871 (define-public lv2-mda-epiano
2872 (package (inherit lv2-mda-piano)
2873 (name "lv2-mda-epiano")
2875 `(#:make-flags (list
2877 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2878 #:tests? #f ; no check target
2879 #:phases (modify-phases %standard-phases (delete 'configure))))
2880 (home-page "https://elephly.net/lv2/mdaepiano.html")
2881 (synopsis "LV2 port of the mda EPiano plugin")
2882 (description "An LV2 port of the mda EPiano VSTi.")))
2884 (define-public lvtk-2
2885 ;; Use the latest commit, as the latest release was made in 2014 and depends
2887 (let ((commit "a73feabe772f9650aa071e6a4df660e549ab7c48")
2891 (version (git-version "2" revision commit))
2895 (url "https://github.com/lvtk/lvtk")
2897 (file-name (git-file-name name version))
2900 "0scmv8b4jlm88d21dqqchjy98wb93zclc9x960h213gdi871vsaj"))))
2901 (build-system waf-build-system)
2902 (arguments (list #:tests? #f)) ;no check target
2903 (inputs (list boost gtkmm lv2))
2904 (native-inputs (list pkg-config))
2905 (home-page "https://github.com/lvtk/lvtk")
2906 (synopsis "C++ libraries for LV2 plugins")
2908 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2909 extensions into easy to use C++ classes. It is the successor of
2911 (license license:isc))))
2913 (define-public lvtk-1
2914 ;; Use the latest commit, as the latest release was made in 2014 and depends
2916 (let ((commit "23dd99531d88d7821b69f6f0d60516ef322a6729")
2920 (version (git-version "1.2.0" revision commit))
2924 (url "https://github.com/lvtk/lvtk")
2926 (file-name (git-file-name name version))
2929 "0iw7skvsn3whw69dhcxbbdns7mssaf6z6iyzxjav53607ibyfr8d"))))
2930 (build-system waf-build-system)
2933 #:tests? #false ;no check target
2935 #~(list (string-append "--boost-includes="
2936 #$(this-package-input "boost")
2939 `(modify-phases %standard-phases
2940 (add-before 'configure 'setup-waf
2941 (lambda* (#:key inputs #:allow-other-keys)
2942 (let ((waf (assoc-ref inputs "python-waf")))
2943 (copy-file (string-append waf "/bin/waf") "waf")))))))
2944 (inputs (list boost gtkmm lv2))
2945 (native-inputs (list pkg-config python-waf))
2946 (home-page "https://github.com/lvtk/lvtk")
2947 (synopsis "C++ libraries for LV2 plugins")
2949 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2950 extensions into easy to use C++ classes. It is the successor of
2952 (license license:isc))))
2954 (define-public lvtk lvtk-1)
2956 (define-public openal
2963 "https://openal-soft.org/openal-releases/openal-soft-"
2964 version ".tar.bz2"))
2967 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2968 (build-system cmake-build-system)
2970 `(#:tests? #f ; no check target
2972 (modify-phases %standard-phases
2974 'unpack 'use-full-library-paths
2975 (lambda* (#:key inputs #:allow-other-keys)
2976 (substitute* "alc/backends/pulseaudio.cpp"
2977 (("#define PALIB \"libpulse\\.so\\.0\"")
2978 (string-append "#define PALIB \""
2979 (assoc-ref inputs "pulseaudio")
2980 "/lib/libpulse.so.0"
2982 (substitute* "alc/backends/alsa.cpp"
2983 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2984 (string-append "LoadLib(\""
2985 (assoc-ref inputs "alsa-lib")
2986 "/lib/libasound.so.2"
2990 (list alsa-lib pulseaudio))
2991 (synopsis "3D audio API")
2993 "OpenAL provides capabilities for playing audio in a virtual 3D
2994 environment. Distance attenuation, doppler shift, and directional sound
2995 emitters are among the features handled by the API. More advanced effects,
2996 including air absorption, occlusion, and environmental reverb, are available
2997 through the EFX extension. It also facilitates streaming audio, multi-channel
2998 buffers, and audio capture.")
2999 (home-page "https://openal-soft.org/")
3000 (license license:lgpl2.0+)))
3002 (define-public freealut
3008 ;; Upstream url is unclear, many systems use Fedora, there is also
3009 ;; https://github.com/vancegroup/freealut though the status of it
3010 ;; (official? unofficial?) is not clear.
3012 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
3013 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
3014 "-" version ".tar.gz"))
3017 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
3018 (build-system cmake-build-system)
3020 `(#:tests? #f)) ; no check target
3023 (synopsis "Free implementation of OpenAL's ALUT standard")
3024 (description "freealut is the OpenAL Utility Toolkit.")
3025 (home-page "https://kcat.strangesoft.net/openal.html")
3026 (license license:lgpl2.0)))
3028 (define-public patchage
3034 (uri (string-append "https://download.drobilla.net/patchage-"
3039 "0gbakiw3mikgbvy3pssrmqmn7z5c7kp4vyaxj5rs4jnkscxgw9vw"))))
3040 (build-system waf-build-system)
3042 `(#:tests? #f)) ; no check target
3053 (home-page "https://drobilla.net/software/patchage.html")
3054 (synopsis "Modular patch bay for audio and MIDI systems")
3056 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
3058 (license license:gpl3+)))
3060 (define-public pcaudiolib
3064 (home-page "https://github.com/espeak-ng/pcaudiolib")
3067 (uri (git-reference (url home-page) (commit version)))
3068 (file-name (git-file-name name version))
3071 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
3072 (build-system gnu-build-system)
3074 `(#:configure-flags '("--disable-static")))
3076 (list autoconf automake libtool pkg-config which))
3078 (list alsa-lib pulseaudio))
3079 (synopsis "Portable C audio library")
3081 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
3082 different audio devices such as ALSA or PulseAudio.")
3083 (license (list license:gpl3+
3084 ;; The bundled TPCircularBuffer uses a custom license.
3085 (license:non-copyleft
3086 "file://src/TPCircularBuffer/README.markdown")))))
3088 (define-public qjackctl
3094 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
3095 version "/qjackctl-" version ".tar.gz"))
3098 "104hfvr15v8cbkzil8slrqj48y3fl7lx060alj80q1sjh5hl6j2j"))))
3099 (build-system cmake-build-system)
3101 '(#:tests? #f)) ; no check target
3103 (list jack-1 alsa-lib portaudio qtbase-5 qtx11extras))
3105 (list pkg-config qttools-5))
3106 (home-page "https://qjackctl.sourceforge.io/")
3107 (synopsis "Jack server control application")
3108 (description "Control a Jack server. Allows you to plug various sources
3109 into various outputs and to start, stop and configure jackd")
3110 (license license:gpl2+)))
3112 (define-public qjackrcd
3119 (url "https://github.com/orouits/qjackrcd")
3120 (commit (string-append "v" version))))
3121 (file-name (git-file-name name version))
3124 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
3125 (build-system gnu-build-system)
3128 (modify-phases %standard-phases
3130 (lambda* (#:key outputs #:allow-other-keys)
3132 (string-append "PREFIX="
3133 (assoc-ref outputs "out"))))))))
3135 (list qtbase-5)) ; for qmake
3137 (list jack-1 libsndfile qtbase-5))
3138 (home-page "https://sourceforge.net/projects/qjackrcd/")
3139 (synopsis "Stereo audio recorder for JACK")
3140 (description "QJackRcd is a simple graphical stereo recorder for JACK
3141 supporting silence processing for automatic pause, file splitting, and
3142 background file post-processing.")
3143 (license license:gpl2+)))
3145 (define-public supercollider
3147 (name "supercollider")
3153 (url "https://github.com/supercollider/supercollider")
3154 (commit (string-append "Version-" version))
3155 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
3157 (file-name (git-file-name name version))
3160 "0id522338a464j1slcspajwc7klypbc9qpigw5mqjhrw970wij5z"))
3161 (modules '((guix build utils)
3164 ;; The build system doesn't allow us to unbundle the following
3165 ;; libraries. hidapi is also heavily patched and upstream not
3166 ;; actively maintained.
3167 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
3168 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
3169 (with-directory-excursion "./external_libraries"
3171 delete-file-recursively
3174 (and (eq? (stat:type (stat x)) 'directory)
3175 (not (member (basename x) keep-dirs)))))))
3176 ;; To find the Guix provided ableton-link library.
3177 (substitute* "lang/CMakeLists.txt"
3178 (("include\\(\\.\\./external_libraries/link/\
3179 AbletonLinkConfig\\.cmake\\)")
3180 "find_package(AbletonLink NAMES AbletonLink ableton-link \
3181 link REQUIRED)"))))))
3182 (build-system cmake-build-system)
3184 '("out" ;core language
3187 `(#:configure-flags '("-DSYSTEM_BOOST=ON"
3188 "-DSYSTEM_YAMLCPP=ON"
3190 "-DCMAKE_BUILD_TYPE=Release"
3192 ;; "-DLIBSCSYNTH=ON" ; TODO: Re-enable?
3193 "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel
3195 (modify-phases %standard-phases
3196 ;; HOME must be defined otherwise supercollider throws a "ERROR:
3197 ;; Primitive '_FileMkDir' failed." error when generating the doc.
3198 ;; The graphical tests also hang without it.
3199 (add-after 'unpack 'set-home-directory
3201 (setenv "HOME" (getcwd))))
3202 (add-after 'unpack 'patch-scclass-dir
3203 (lambda* (#:key outputs #:allow-other-keys)
3204 (let* ((out (assoc-ref outputs "out"))
3207 "/share/SuperCollider/SCClassLibrary")))
3208 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
3210 "SC_Filesystem::instance\\(\\)\\.getDirectory"
3211 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
3212 (string-append "Path(\"" scclass-dir "\")"))))))
3213 (add-before 'build 'prepare-x
3216 (setenv "DISPLAY" ":0")))
3217 (add-before 'install 'install-ide
3218 (lambda* (#:key outputs #:allow-other-keys)
3219 (let* ((out (assoc-ref outputs "out"))
3220 (ide (assoc-ref outputs "ide"))
3221 (scide "editors/sc-ide/scide"))
3223 (string-append ide "/bin"))
3224 (delete-file scide)))))))
3226 (list ableton-link pkg-config qttools-5 xorg-server-for-tests))
3227 (inputs (list jack-1
3231 readline ;readline support for sclang's CLI
3232 alsa-lib ;for sclang's MIDI interface
3233 eudev ;for user interactions with devices
3234 avahi ;zeroconf service discovery support
3244 (propagated-inputs ;to get native-search-path
3245 (list qtwebengine-5))
3246 (home-page "https://github.com/supercollider/supercollider")
3247 (synopsis "Synthesis engine and programming language")
3248 (description "SuperCollider is a synthesis engine (@code{scsynth} or
3249 @code{supernova}) and programming language (@code{sclang}). It can be used
3250 for experimenting with sound synthesis and algorithmic composition.
3252 SuperCollider requires jackd to be installed in your user profile and your
3253 user must be allowed to access the realtime features of the kernel. Search
3254 for \"realtime\" in the index of the Guix manual to learn how to achieve this
3255 using Guix System.")
3256 (license license:gpl2+)))
3258 (define-public libshout-idjc
3260 (name "libshout-idjc")
3265 (uri (string-append "mirror://sourceforge/libshoutidjc.idjc.p"
3266 "/libshout-idjc-" version ".tar.gz"))
3268 (base32 "1r9z8ggxylr2ab0isaljbm574rplnlcb12758j994h54nh2vikwb"))))
3269 (build-system gnu-build-system)
3273 (list libogg libtheora libvorbis speex))
3274 (home-page "http://idjc.sourceforge.net/")
3275 (synopsis "Broadcast streaming library with IDJC extensions")
3276 (description "This package provides libshout plus IDJC extensions.")
3277 ;; GNU Library (not Lesser) General Public License.
3278 (license license:lgpl2.0+)))
3280 (define-public resample
3286 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
3290 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
3291 (build-system gnu-build-system)
3293 (list autoconf automake pkg-config libtool))
3294 (synopsis "Sampling rate conversion and filter design utilities")
3295 (description "This package contains the @command{resample} and
3296 @command{windowfilter} command line utilities. The @command{resample} command
3297 allows changing the sampling rate of a sound file, while the
3298 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
3299 filters using the so-called @emph{window method}.")
3300 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
3301 (license license:lgpl2.1+)))
3303 (define-public rubberband
3310 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
3313 (file-name (string-append name "-" version ".tar.bz2"))
3316 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
3317 (build-system gnu-build-system)
3319 `(#:tests? #f ; no check target
3321 (modify-phases %standard-phases
3322 (add-after 'unpack 'skip-jni-installation
3323 ;; ‘make install’ unconditionally installs librubberband-jni.so,
3324 ;; which is never built by ‘make all’. Skip it.
3326 (substitute* "Makefile.in"
3327 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
3330 (list ladspa libsamplerate vamp))
3333 (home-page "https://breakfastquay.com/rubberband/")
3334 (synopsis "Audio time-stretching and pitch-shifting library")
3336 "Rubber Band is a library and utility program that permits changing the
3337 tempo and pitch of an audio recording independently of one another.")
3338 (license license:gpl2+)))
3340 (define-public rtmidi
3346 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3347 "/release/rtmidi-" version ".tar.gz"))
3348 (file-name (string-append "rtmidi-" version ".tar.gz"))
3351 "1ff2yfq3k4l209fr71v3w98fpjjv1chs09vkbmxj03lcikahxns8"))))
3352 (build-system gnu-build-system)
3354 (list jack-1 alsa-lib))
3356 (list autoconf automake libtool pkg-config))
3357 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3358 (synopsis "Cross-platform MIDI library for C++")
3360 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3361 classes) that provide a common cross-platform API for realtime MIDI
3363 (license license:expat)))
3365 (define-public rtmidi-4.0
3371 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3372 "/release/rtmidi-" version ".tar.gz"))
3373 (file-name (string-append "rtmidi-" version ".tar.gz"))
3376 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))))
3378 (define-public sratom
3384 (uri (string-append "https://download.drobilla.net/sratom-"
3385 version ".tar.bz2"))
3388 "178v90qvsp6lw4sqdmdz0bzyjkgwhv9m75ph1d1z8say5bv0p4gv"))))
3389 (build-system waf-build-system)
3390 (arguments `(#:tests? #f)) ;no check target
3392 ;; In Requires of sratom-0.pc.
3393 (list lv2 serd sord))
3396 (home-page "https://drobilla.net/software/sratom/")
3397 (synopsis "Library for serialising LV2 atoms to/from RDF")
3399 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3400 the Turtle syntax.")
3401 (license license:isc)))
3409 (uri (string-append "https://download.drobilla.net/suil-"
3410 version ".tar.bz2"))
3413 "1ysbazqlbyxlzyr9zk7dj2mgb6pn0amllj2cd5g1m56wnzk0h3vm"))))
3414 (build-system waf-build-system)
3416 `(#:tests? #f)) ;no check target
3424 (home-page "https://drobilla.net/software/suil/")
3425 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3427 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3429 Suil makes it possible to load a UI of a toolkit in a host using another
3430 toolkit. The API is designed such that hosts do not need to explicitly
3431 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3432 that toolkit will work in all hosts that use Suil automatically.
3434 Suil currently supports every combination of Gtk, Qt, and X11.")
3435 (license license:isc)))
3437 (define-public libebur128
3445 (url "https://github.com/jiixyj/libebur128")
3446 (commit (string-append "v" version))))
3447 (file-name (git-file-name name version))
3449 (base32 "0xkpz5rzz1j1srhprbh89669gw8z5f1njpvcnxqgf7qax69vd8sh"))))
3450 (build-system cmake-build-system)
3452 `(;; Tests require proprietary .wav files. See
3453 ;; https://github.com/jiixyj/libebur128/issues/82.
3455 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3456 (home-page "https://github.com/jiixyj/libebur128")
3457 (synopsis "Library implementing the EBU R 128 loudness standard")
3459 "@code{libebur128} is a C library that implements the EBU R 128 standard
3460 for loudness normalisation.")
3461 (license license:expat)))
3463 (define-public timidity++
3469 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3470 "/TiMidity++-" version
3471 "/TiMidity++-" version ".tar.bz2"))
3474 "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn"))))
3475 (build-system gnu-build-system)
3478 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3482 (string-append "--with-default-path="
3483 (assoc-ref %outputs "out") "/etc/timidity"))
3485 (modify-phases %standard-phases
3486 (add-after 'install 'install-config
3488 (let ((out (string-append (assoc-ref %outputs "out")
3491 (call-with-output-file
3492 (string-append out "/timidity.cfg")
3494 (format port (string-append "source "
3495 (assoc-ref %build-inputs "freepats")
3496 "/share/freepats/freepats.cfg")))))
3510 (home-page "http://timidity.sourceforge.net/")
3511 (synopsis "Software synthesizer for playing MIDI files")
3513 "TiMidity++ is a software synthesizer. It can play MIDI files by
3514 converting them into PCM waveform data; give it a MIDI data along with digital
3515 instrument data files, then it synthesizes them in real-time, and plays. It
3516 can not only play sounds, but also can save the generated waveforms into hard
3517 disks as various audio file formats.")
3518 (license license:gpl2+)))
3527 "https://code.soundsoftware.ac.uk"
3528 "/attachments/download/1520/vamp-plugin-sdk-"
3532 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3533 (build-system gnu-build-system)
3535 `(#:tests? #f ; no check target
3537 (modify-phases %standard-phases
3538 (add-after 'install 'remove-libvamp-hostsdk.la
3539 (lambda* (#:key outputs #:allow-other-keys)
3540 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3541 (for-each delete-file
3542 (let ((out (assoc-ref outputs "out")))
3543 (list (string-append out "/lib/libvamp-sdk.la")
3544 (string-append out "/lib/libvamp-hostsdk.la"))))
3550 (home-page "https://vamp-plugins.org")
3551 (synopsis "Modular and extensible audio processing system")
3553 "Vamp is an audio processing plugin system for plugins that extract
3554 descriptive information from audio data — typically referred to as audio
3555 analysis plugins or audio feature extraction plugins.")
3558 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3560 (define-public libsbsms
3567 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3568 "/libsbsms-" version ".tar.gz"))
3570 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3571 (build-system gnu-build-system)
3572 (native-inputs (list automake))
3575 ;; Disable the use of SSE unless on x86_64.
3576 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3577 (%current-system))))
3581 (modify-phases %standard-phases
3583 'unpack 'fix-ar-lib-path
3584 (lambda* (#:key inputs #:allow-other-keys)
3585 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3586 (delete-file "ar-lib")
3588 (search-input-file inputs
3589 (string-append "/share/automake-"
3590 ,(package-version automake)
3594 (home-page "http://sbsms.sourceforge.net/")
3595 (synopsis "Library for time stretching and pitch scaling of audio")
3597 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3598 stretching and pitch scaling of audio. This package contains the library.")
3599 ;; There is no explicit declaration of a license, but a COPYING file
3601 (license license:gpl2)))
3603 (define-public libkeyfinder
3605 (name "libkeyfinder")
3611 (url "https://github.com/mixxxdj/libkeyfinder")
3613 (file-name (git-file-name name version))
3615 (base32 "0nvhdzy0m3bchk3dpnspv2f518p2v9fjcrv36z1sva1pv9a2g35w"))))
3616 (build-system cmake-build-system)
3618 (list catch-framework2))
3621 (home-page "https://mixxxdj.github.io/libkeyfinder/")
3622 (synopsis "Musical key detection for digital audio")
3624 "@code{libkeyfinder} is a small C++11 library for estimating the musical
3625 key of digital audio.")
3626 (license license:gpl3+)))
3628 (define-public wavpack
3635 (uri (string-append "https://github.com/dbry/WavPack/releases/download/"
3636 version "/wavpack-" version ".tar.xz"))
3638 (base32 "0ycbqarw25x7208jilh86vwwiqklr7f617jps9mllqc659mnmpjb"))))
3639 (build-system gnu-build-system)
3642 (list "--disable-static"
3645 (modify-phases %standard-phases
3647 (lambda* (#:key tests? #:allow-other-keys)
3649 (invoke "./cli/wvtest" "--default" "--short"))
3651 (home-page "https://www.wavpack.com/")
3652 (synopsis "Hybrid lossless audio codec")
3654 "WavPack is an audio compression format with lossless, lossy and hybrid
3655 compression modes. This package contains command-line programs and library to
3656 encode and decode wavpack files.")
3657 (license license:bsd-3)))
3659 (define-public libmodplug
3666 "mirror://sourceforge/modplug-xmms/"
3667 name "/" version "/" name "-" version ".tar.gz"))
3670 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3671 (build-system gnu-build-system)
3672 (home-page "http://modplug-xmms.sourceforge.net/")
3673 (synopsis "Mod file playing library")
3675 "Libmodplug renders mod music files as raw audio data, for playing or
3676 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3677 supported. Optional features include high-quality resampling, bass expansion,
3678 surround and reverb.")
3679 (license license:public-domain)))
3681 (define-public libxmp
3687 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3688 name "-" version ".tar.gz"))
3691 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3692 (build-system gnu-build-system)
3693 (home-page "http://xmp.sourceforge.net/")
3694 (synopsis "Module player library")
3696 "Libxmp is a library that renders module files to PCM data. It supports
3697 over 90 mainstream and obscure module formats including Protracker (MOD),
3698 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3699 (license license:lgpl2.1+)))
3707 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3708 name "-" version ".tar.gz"))
3711 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3712 (build-system gnu-build-system)
3716 (list libxmp pulseaudio))
3717 (home-page "http://xmp.sourceforge.net/")
3718 (synopsis "Extended module player")
3720 "Xmp is a portable module player that plays over 90 mainstream and
3721 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3722 Tracker 3 S3M and Impulse Tracker IT files.")
3723 (license license:gpl2+)))
3725 (define-public soundtouch
3733 (url "https://gitlab.com/soundtouch/soundtouch.git")
3735 (file-name (git-file-name name version))
3737 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3738 (build-system gnu-build-system)
3740 (list autoconf automake libtool file))
3741 (home-page "https://www.surina.net/soundtouch/")
3743 "Audio processing library for changing tempo, pitch and playback rate")
3745 "SoundTouch is an audio processing library for changing the tempo, pitch
3746 and playback rates of audio streams or audio files. It is intended for
3747 application developers writing sound processing tools that require tempo/pitch
3748 control functionality, or just for playing around with the sound effects.")
3749 (license license:lgpl2.1+)))
3757 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3758 name "-" version ".tar.bz2"))
3761 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3762 (build-system gnu-build-system)
3765 ;; The upstream asks to identify the distribution to diagnose SoX
3767 '("--with-distro=Guix System Distribution")))
3781 (home-page "http://sox.sourceforge.net")
3782 (synopsis "Sound processing utility")
3784 "SoX (Sound eXchange) is a command line utility that can convert
3785 various formats of computer audio files to other formats. It can also
3786 apply various effects to these sound files, and, as an added bonus, SoX
3787 can play and record audio files.")
3788 ;; sox.c is distributed under GPL, while the files that make up
3789 ;; libsox are licensed under LGPL.
3790 (license (list license:gpl2+ license:lgpl2.1+))))
3800 (string-append "mirror://sourceforge/soxr/soxr-" version
3803 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3804 (build-system cmake-build-system)
3805 (arguments '(#:tests? #f)) ;no 'check' target
3806 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3807 (synopsis "One-dimensional sample-rate conversion library")
3809 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3810 conversion. It may be used, for example, to resample PCM-encoded audio.")
3811 (license license:lgpl2.1+)))
3813 (define-public twolame
3820 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3821 "/twolame-" version ".tar.gz"))
3823 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3824 (build-system gnu-build-system)
3828 (list perl which)) ;used in tests/test.pl
3829 (home-page "https://www.twolame.org/")
3830 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3832 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3833 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3835 (license license:lgpl2.1+)))
3837 (define-public portaudio
3840 (version "190600.20161030")
3845 "http://www.portaudio.com/archives/pa_stable_v"
3846 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3849 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3850 (patches (search-patches "portaudio-audacity-compat.patch"))))
3851 (build-system gnu-build-system)
3853 ;; TODO: Add ASIHPI.
3854 (list alsa-lib jack-1))
3855 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3858 (list autoconf automake libtool pkg-config))
3860 '(#:tests? #f ;no 'check' target
3861 #:parallel-build? #f ;fails on some systems
3862 #:configure-flags '("--with-pic"
3864 ;; XXX: The following prevents a build error
3865 ;; because of missing depcomp when C++ bindings are
3867 "--disable-dependency-tracking")
3869 (modify-phases %standard-phases
3870 ;; This is needed for linking the static libraries
3871 (add-after 'unpack 'build-only-position-independent-code
3873 (substitute* "configure.in"
3874 (("AC_PROG_LIBTOOL" m)
3875 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3876 (delete-file "configure")
3878 ;; Some headers are not installed by default, but are needed by
3879 ;; packages like Kaldi.
3880 (add-after 'install 'install-missing-headers
3881 (lambda* (#:key outputs #:allow-other-keys)
3882 (install-file "src/common/pa_ringbuffer.h"
3883 (string-append (assoc-ref outputs "out") "/include"))
3885 (home-page "http://www.portaudio.com/")
3886 (synopsis "Audio I/O library")
3888 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3889 to record and/or play sound using a callback function or a blocking read/write
3891 (license license:expat)))
3893 (define-public qsynth
3901 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3902 "/qsynth-" version ".tar.gz")
3903 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3904 "/qsynth-" version ".tar.gz")))
3906 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3907 (build-system gnu-build-system)
3909 `(#:tests? #f)) ; no "check" phase
3911 (list qttools-5 pkg-config))
3913 (list fluidsynth qtbase-5 qtx11extras))
3914 (home-page "https://qsynth.sourceforge.io")
3915 (synopsis "Graphical user interface for FluidSynth")
3917 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3918 synthesizer written in C++.")
3919 (license license:gpl2+)))
3921 (define-public rsound
3929 (url "https://github.com/Themaister/RSound")
3930 (commit (string-append "v" version))))
3931 (file-name (git-file-name name version))
3933 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3934 (build-system gnu-build-system)
3945 (modify-phases %standard-phases
3947 (lambda* (#:key outputs #:allow-other-keys)
3949 (invoke "./configure"
3950 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3951 ;; No 'check' target.
3953 (home-page "https://themaister.net/rsound.html")
3954 (synopsis "Networked audio system")
3956 "RSound allows you to send audio from an application and transfer it
3957 directly to a different computer on your LAN network. It is an audio daemon
3958 with a much different focus than most other audio daemons.")
3959 (license license:gpl3+)))
3961 (define-public xjackfreak
3968 (url "https://github.com/johnhldavis/xjackfreak")
3969 (commit (string-append "v" version))))
3970 (file-name (git-file-name name version))
3973 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3974 (build-system gnu-build-system)
3977 (list (string-append "docdir=" (assoc-ref %outputs "out")
3978 "/share/doc/xjackfreak"))))
3980 (list jack-1 libx11 libxt libxext))
3983 (home-page "https://github.com/johnhldavis/xjackfreak")
3984 (synopsis "JACK audio frequency analyzer and display")
3986 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3987 Connection Kit. It can display the FFT of any input, modify it and output the
3989 (license license:gpl3+)))
3991 (define-public zita-convolver
3993 (name "zita-convolver")
3998 "http://kokkinizita.linuxaudio.org"
3999 "/linuxaudio/downloads/zita-convolver-"
4000 version ".tar.bz2"))
4002 ;; Don't optimize for a specific processor architecture.
4004 (substitute* "source/Makefile"
4005 (("^CXXFLAGS \\+= -march=native") ""))
4007 (modules '((guix build utils)))
4010 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
4011 (build-system gnu-build-system)
4013 `(#:tests? #f ; no "check" target
4015 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4016 (string-append "SUFFIX="))
4018 (modify-phases %standard-phases
4019 (add-after 'unpack 'patch-makefile-and-enter-directory
4021 (substitute* "source/Makefile"
4022 (("ldconfig") "true")
4023 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4026 (add-after 'install 'install-symlink
4028 (symlink "libzita-convolver.so"
4029 (string-append (assoc-ref %outputs "out")
4030 "/lib/libzita-convolver.so.4"))
4032 ;; no configure script
4033 (delete 'configure))))
4034 (inputs (list fftwf))
4035 (home-page "https://kokkinizita.linuxaudio.org")
4036 (synopsis "Fast, partitioned convolution engine library")
4038 "Zita convolver is a C++ library providing a real-time convolution
4040 (license license:gpl3+)))
4042 (define-public zita-resampler
4044 (name "zita-resampler")
4049 "http://kokkinizita.linuxaudio.org"
4050 "/linuxaudio/downloads/zita-resampler-"
4051 version ".tar.bz2"))
4053 ;; Don't optimize for a specific processor architecture.
4055 (substitute* '("apps/Makefile" "source/Makefile")
4056 (("^CXXFLAGS \\+= -march=native") ""))
4058 (modules '((guix build utils)))
4061 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
4062 (build-system gnu-build-system)
4064 `(#:tests? #f ; no "check" target
4066 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4067 (string-append "SUFFIX="))
4069 (modify-phases %standard-phases
4071 'unpack 'patch-makefile-and-enter-directory
4073 (substitute* "source/Makefile"
4074 (("ldconfig") "true")
4075 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4079 'install 'install-symlink
4081 (symlink "libzita-resampler.so"
4082 (string-append (assoc-ref %outputs "out")
4083 "/lib/libzita-resampler.so.1"))
4085 ;; no configure script
4086 (delete 'configure))))
4087 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
4088 (synopsis "C++ library for resampling audio signals")
4090 "Libzita-resampler is a C++ library for resampling audio signals. It is
4091 designed to be used within a real-time processing context, to be fast, and to
4092 provide high-quality sample rate conversion.")
4093 (license license:gpl3+)))
4095 (define-public zita-alsa-pcmi
4097 (name "zita-alsa-pcmi")
4102 "http://kokkinizita.linuxaudio.org"
4103 "/linuxaudio/downloads/zita-alsa-pcmi-"
4104 version ".tar.bz2"))
4107 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
4108 (build-system gnu-build-system)
4110 `(#:tests? #f ; no "check" target
4112 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4113 (string-append "SUFFIX="))
4115 (modify-phases %standard-phases
4116 (add-after 'unpack 'patch-makefile-and-enter-directory
4118 (substitute* "source/Makefile"
4119 (("ldconfig") "true")
4120 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4123 (add-after 'install 'install-symlink
4125 (symlink "libzita-alsa-pcmi.so"
4126 (string-append (assoc-ref %outputs "out")
4127 "/lib/libzita-alsa-pcmi.so.0"))
4129 ;; no configure script
4130 (delete 'configure))))
4132 (list alsa-lib fftw))
4133 (home-page "https://kokkinizita.linuxaudio.org")
4134 (synopsis "C++ wrapper around the ALSA API")
4136 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
4137 access to ALSA PCM devices, taking care of the many functions required to
4138 open, initialise and use a hw: device in mmap mode, and providing floating
4140 (license license:gpl3+)))
4142 (define-public cuetools
4149 (url "https://github.com/svend/cuetools")
4151 (file-name (git-file-name name version))
4154 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
4155 (build-system gnu-build-system)
4156 ;; The source checkout is not bootstrapped.
4158 (list autoconf automake flex bison))
4159 (synopsis "Cue and toc file parsers and utilities")
4160 (description "Cuetools is a set of programs that are useful for manipulating
4161 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
4162 files are a way to represent the layout of a data or audio CD in a
4163 machine-readable ASCII format.")
4164 (home-page "https://github.com/svend/cuetools")
4165 (license license:gpl2+)))
4167 (define-public mp3guessenc
4169 (name "mp3guessenc")
4174 (uri (string-append "mirror://sourceforge/mp3guessenc/mp3guessenc-"
4175 (version-major+minor version) "/mp3guessenc-"
4178 (base32 "1fa3sbwwn4p2v1749lzy040bfy1xfd574mf2frwgg9ikgk3vlb3c"))))
4179 (build-system gnu-build-system)
4181 `(#:tests? #f ; no tests
4183 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4185 (modify-phases %standard-phases
4186 (delete 'configure)))) ; no configure phase
4187 (home-page "https://mp3guessenc.sourceforge.io")
4188 (synopsis "Analyze MPEG layer I/II/III files")
4189 (description "mp3guessenc is a command line utility that tries to detect the
4190 encoder used for an MPEG Layer III (MP3) file, as well as scan any MPEG audio
4191 file (any layer) and print a lot of useful information.")
4192 (license license:lgpl2.1+)))
4194 (define-public shntool
4201 (string-append "http://etree.org/shnutils/shntool/dist/src/"
4202 "shntool-" version ".tar.gz")
4203 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
4204 version ".orig.tar.gz")))
4207 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
4208 (build-system gnu-build-system)
4209 (synopsis "WAVE audio data processing tool")
4210 (description "shntool is a multi-purpose WAVE data processing and reporting
4211 utility. File formats are abstracted from its core, so it can process any file
4212 that contains WAVE data, compressed or not---provided there exists a format
4213 module to handle that particular file type. It can also generate CUE files, and
4214 use them split WAVE data into multiple files.")
4215 (home-page "http://etree.org/shnutils/shntool/")
4216 ;; 'install-sh' bears the x11 license
4217 (license (list license:gpl2+ license:x11))))
4219 (define-public dcadec
4226 (url "https://github.com/foo86/dcadec")
4227 (commit (string-append "v" version))))
4228 (file-name (git-file-name name version))
4231 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
4232 (build-system gnu-build-system)
4234 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
4237 (list (string-append "CC=" ,(cc-for-target))
4238 ;; Build shared library.
4240 (string-append "PREFIX=" (assoc-ref %outputs "out"))
4241 ;; Set proper runpath.
4242 (string-append "LDFLAGS=-Wl,-rpath="
4243 (assoc-ref %outputs "out")
4246 (modify-phases %standard-phases
4247 ;; No configure script, just a hand-written Makefile.
4248 (delete 'configure))))
4249 (synopsis "DTS Coherent Acoustics decoder")
4250 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
4251 with support for HD extensions.")
4252 (home-page "https://github.com/foo86/dcadec")
4253 (license license:lgpl2.1+)))
4262 (uri (string-append "mirror://sourceforge/drc-fir/drc-fir/"
4263 version "/drc-" version ".tar.gz"))
4266 "08ljj4776pjx119zjmfqa8w56bf7x0m7spmi27yk1m455bmiglrj"))))
4267 (build-system gnu-build-system)
4270 #:tests? #false ;there are none
4272 #~(list (string-append "INSTALL_PREFIX=" #$output)
4275 '(modify-phases %standard-phases
4276 (delete 'configure))))
4277 (inputs (list fftw))
4278 (home-page "http://drc-fir.sourceforge.net/")
4279 (synopsis "Digital room correction")
4281 "DRC is a program used to generate correction filters for acoustic
4282 compensation of HiFi and audio systems in general, including listening room
4283 compensation. DRC generates just the FIR correction filters, which can be
4284 used with a real time or offline convolver to provide real time or offline
4285 correction. DRC doesn't provide convolution features, and provides only some
4286 simplified, although really accurate, measuring tools.")
4287 (license license:gpl2+)))
4289 (define-public bs1770gain
4293 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
4297 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
4298 version "/bs1770gain-" version ".tar.gz"))
4300 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
4301 (modules '((guix build utils)))
4305 (substitute* (find-files "." "\\.[ch]$")
4306 (("^ \\* N..o.*") ""))
4307 (substitute* "libbg/bgx.c"
4308 (("#define BG.* ") "#define BS ")
4309 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
4310 (("\"( #|N).*\"") "\"\""))
4311 (substitute* (list "config.h"
4314 (("https?://bs1770gain[^/]*/")
4317 (build-system gnu-build-system)
4318 (inputs (list ffmpeg sox))
4319 (synopsis "Tool to adjust loudness of media files")
4321 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
4322 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
4323 loudness of audio and video files to the same level.")
4324 (license license:gpl2+)))
4326 (define-public filteraudio
4327 (let ((revision "1")
4328 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
4330 (name "filteraudio")
4331 (version (string-append "0.0.0-" revision "."
4332 (string-take commit 7)))
4337 (url "https://github.com/irungentoo/filter_audio")
4339 (file-name (string-append name "-" version "-checkout"))
4342 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
4343 (build-system gnu-build-system)
4345 `(#:make-flags (list (string-append "PREFIX=" %output)
4346 (string-append "CC=" ,(cc-for-target)))
4347 #:tests? #f ; No tests
4349 (modify-phases %standard-phases
4350 ;; No configure script
4351 (delete 'configure))))
4352 (synopsis "Lightweight audio filtering library")
4353 (description "An easy to use audio filtering library made from webrtc
4354 code, used in @code{libtoxcore}.")
4355 (home-page "https://github.com/irungentoo/filter_audio")
4356 (license license:bsd-3))))
4366 (string-append "http://www.quut.com/" name "/" name
4367 "-" version ".tar.gz"))
4369 (base32 "1gwhmqs24c14gc9qr91iqb2jkbr3qqy4dvf27yf8j7mq322w65b3"))))
4370 (build-system gnu-build-system)
4372 `(#:test-target "tst"
4373 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
4375 (modify-phases %standard-phases
4376 (add-after 'unpack 'add-fpic-ccflag
4378 ;; The -fPIC compiler option is needed when building
4380 (substitute* "Makefile"
4382 (string-append all "CCFLAGS += -fPIC\n")))))
4383 (add-before 'install 'pre-install
4385 (let ((out (assoc-ref %outputs "out")))
4386 (mkdir-p (string-append out "/inc"))
4387 (mkdir-p (string-append out "/man"))
4388 (mkdir-p (string-append out "/man/man1"))
4389 (mkdir-p (string-append out "/man/man3"))
4390 (mkdir-p (string-append out "/bin"))
4391 (mkdir-p (string-append out "/lib")))))
4392 (add-after 'install 'post-install
4394 (let ((out (assoc-ref %outputs "out")))
4395 (rename-file (string-append out "/inc")
4396 (string-append out "/include"))
4397 (mkdir-p (string-append out "/include/gsm"))
4398 (copy-recursively "inc"
4399 (string-append out "/include/gsm")))))
4400 (delete 'configure)))) ; no configure script
4401 (synopsis "GSM 06.10 lossy speech compression library")
4402 (description "This C library provides an encoder and a decoder for the GSM
4403 06.10 RPE-LTP lossy speech compression algorithm.")
4404 (home-page "http://quut.com/gsm/")
4405 (license (license:non-copyleft "file://COPYRIGHT"))))
4407 (define-public python-pyalsaaudio
4409 (name "python-pyalsaaudio")
4413 (uri (pypi-uri "pyalsaaudio" version))
4416 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
4417 (build-system python-build-system)
4419 `(#:tests? #f)) ; tests require access to ALSA devices.
4422 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4423 (synopsis "ALSA wrappers for Python")
4425 "This package contains wrappers for accessing the ALSA API from Python.
4426 It is currently fairly complete for PCM devices, and has some support for
4428 (license license:psfl)))
4430 (define-public ldacbt
4436 (uri (string-append "https://github.com/EHfive/ldacBT"
4437 "/releases/download/v" version
4438 "/ldacBT-" version ".tar.gz"))
4441 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4442 (build-system cmake-build-system)
4443 (arguments `(#:tests? #f)) ; no check target
4444 (home-page "https://github.com/EHfive/ldacBT/")
4445 (synopsis "LDAC Bluetooth encoder and ABR library")
4446 (description "This package provides an encoder for the LDAC
4447 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4448 kbps at 24 bit/96 kHz.")
4449 (license license:asl2.0)))
4451 (define-public bluez-alsa
4456 ;; The tarballs are mere snapshots and don't contain a
4457 ;; bootstrapped build system.
4460 (url "https://github.com/Arkq/bluez-alsa")
4461 (commit (string-append "v" version))))
4462 (file-name (git-file-name name version))
4465 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4466 (build-system gnu-build-system)
4469 (list "--enable-ldac"
4470 (string-append "--with-alsaplugindir="
4471 (assoc-ref %outputs "out")
4473 (string-append "--with-dbusconfdir="
4474 (assoc-ref %outputs "out")
4475 "/etc/dbus-1/system.d"))))
4477 (list autoconf automake libtool pkg-config))
4488 (home-page "https://github.com/Arkq/bluez-alsa")
4489 (synopsis "Bluetooth ALSA backend")
4490 (description "This project is a rebirth of a direct integration between
4491 Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed
4492 in favor of 3rd party audio applications. From now on, Bluez acts as a
4493 middleware between an audio application, which implements Bluetooth audio
4494 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4495 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4496 capabilities) can be connected. In order to access the audio stream, one has
4497 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4498 on the ALSA software PCM plugin.")
4499 (license license:expat)))
4507 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4508 "snd-" version ".tar.gz"))
4511 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4512 (build-system glib-or-gtk-build-system)
4514 `(#:tests? #f ; no tests
4515 #:out-of-source? #f ; for the 'install-doc' phase
4517 (let* ((out (assoc-ref %outputs "out"))
4518 (docdir (string-append out "/share/doc/"
4519 ,name "-" ,version)))
4520 (list "--with-alsa" "--with-jack" "--with-gmp"
4521 (string-append "--with-doc-dir=" docdir)))
4523 (modify-phases %standard-phases
4524 (add-after 'install 'install-doc
4525 (lambda* (#:key outputs #:allow-other-keys)
4526 (let* ((out (assoc-ref outputs "out"))
4527 (doc (string-append out "/share/doc/"
4528 ,name "-" ,version)))
4531 (install-file f doc))
4532 (find-files "." "\\.html$"))
4533 (copy-recursively "pix" (string-append doc "/pix"))
4553 (synopsis "Sound editor")
4554 (home-page "https://ccrma.stanford.edu/software/snd/")
4556 "Snd is a sound editor modelled loosely after Emacs. It can be
4557 customized and extended using either the s7 Scheme implementation (included in
4558 the Snd sources), Ruby, or Forth.")
4559 (license (license:non-copyleft "file://COPYING"))))
4561 (define-public noise-repellent
4563 (name "noise-repellent")
4568 (url "https://github.com/lucianodato/noise-repellent")
4570 (file-name (string-append name "-" version "-checkout"))
4573 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4574 (build-system meson-build-system)
4577 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4583 (home-page "https://github.com/lucianodato/noise-repellent")
4584 (synopsis "LV2 plugin for broadband noise reduction")
4585 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4586 the following features:
4589 @item Spectral gating and spectral subtraction suppression rule
4590 @item Adaptive and manual noise thresholds estimation
4591 @item Adjustable noise floor
4592 @item Adjustable offset of thresholds to perform over-subtraction
4593 @item Time smoothing and a masking estimation to reduce artifacts
4594 @item Basic onset detector to avoid transients suppression
4595 @item Whitening of the noise floor to mask artifacts and to recover higher
4597 @item Option to listen to the residual signal
4599 @item Noise profile saved with the session
4602 (license license:lgpl3+)))
4604 (define-public lv2-speech-denoiser
4605 (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f")
4608 (name "lv2-speech-denoiser")
4609 (version (git-version "0" revision commit))
4614 (url "https://github.com/lucianodato/speech-denoiser/")
4616 (file-name (git-file-name name version))
4618 (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4"))))
4619 (build-system meson-build-system)
4621 `(;; Using a "release" build is recommended for performance
4622 #:build-type "release"
4624 (modify-phases %standard-phases
4625 (add-after 'unpack 'patch-meson-build
4627 (substitute* "meson.build"
4628 (("install_folder = 'sdenoise.lv2'")
4629 "install_folder = 'lib/lv2/sdenoise.lv2'")
4630 (("build/manifest.ttl") "../build/manifest.ttl"))
4632 (add-after 'unpack 'build-rnnoise
4634 (with-directory-excursion "rnnoise"
4635 (let ((old-CFLAGS (getenv "CFLAGS")))
4636 (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL")
4637 (setenv "CONFIG_SHELL" (which "bash"))
4638 (invoke "autoreconf" "-vif")
4639 (invoke "sh" "configure"
4640 "--disable-examples"
4645 (setenv "CFLAGS" old-CFLAGS))))))))
4649 (list autoconf automake libtool pkg-config))
4650 (home-page "https://github.com/werman/noise-suppression-for-voice")
4651 (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library")
4652 (description "RNNoise is a library that uses deep learning to apply
4653 noise suppression to audio sources with voice presence. This package provides
4654 an LV2 audio plugin.")
4655 (license license:lgpl3+))))
4657 (define-public cli-visualizer
4659 (name "cli-visualizer")
4665 (url "https://github.com/dpayne/cli-visualizer")
4666 (commit (string-append "v" version))))
4667 (file-name (git-file-name name version))
4669 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4670 (build-system cmake-build-system)
4672 ;; TODO: Try using the latest googletest for versions > 1.8.
4673 (list ;; ("googletest" ,googletest-1.8)
4676 (list fftw ncurses pulseaudio))
4679 ;; XXX Enable tests after patching them to use the system googletest.
4680 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4682 (modify-phases %standard-phases
4683 (add-after 'install 'install-examples
4684 (lambda* (#:key outputs #:allow-other-keys)
4685 (with-directory-excursion "../source/examples"
4686 (delete-file "mac_osx_config")
4687 (for-each (lambda (file)
4690 (assoc-ref outputs "out")
4694 (home-page "https://github.com/dpayne/cli-visualizer/")
4695 (synopsis "Command-line audio visualizer")
4696 (description "@code{cli-visualizer} displays fast-Fourier
4697 transforms (FFTs) of the sound being played, as well as other graphical
4699 (license license:expat)))
4708 (url "https://github.com/karlstav/cava")
4710 (file-name (git-file-name name version))
4713 "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))
4714 (modules '((guix build utils)))
4717 (delete-file-recursively "iniparser")
4718 (substitute* "configure.ac"
4719 (("AC_CONFIG_FILES\\(iniparser/Makefile\\)") ""))
4720 (substitute* "Makefile.am"
4721 (("SUBDIRS = iniparser") ""))))))
4722 (build-system gnu-build-system)
4723 (native-inputs (list autoconf automake libtool))
4724 (inputs (list fftw ncurses pulseaudio iniparser))
4726 (list #:configure-flags
4727 #~(list (string-append "PREFIX="
4729 (string-append "FONT_DIR="
4730 #$output "/share/consolefonts"))
4732 #~(let ((lib (string-append #$output "/lib")))
4733 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt")))
4735 #~(modify-phases %standard-phases
4740 (invoke "sh" "autogen.sh")))
4741 (add-before 'build 'make-cava-ldflags
4743 (mkdir-p (string-append #$output "/lib"))))
4744 (add-after 'install 'data
4746 (for-each (lambda (file)
4748 (string-append #$output
4749 "/share/doc/examples")))
4750 (find-files "example_files")))))))
4751 (home-page "https://karlstav.github.io/cava/")
4752 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4753 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4754 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4755 (license license:expat)))
4757 (define-public fluid-3
4758 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4765 ;; Only one file is required, but the release bundles the whole
4766 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4767 ;; directly links the soundfont release to the github file download.
4768 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4769 commit "/share/sound/FluidR3Mono_GM.sf3"))
4770 (file-name (string-append name "-" version ".sf3"))
4773 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4774 (build-system trivial-build-system)
4776 `(#:modules ((guix build utils))
4779 (use-modules (guix build utils))
4780 (let ((file (assoc-ref %build-inputs "source"))
4781 (out (string-append %output "/share/soundfonts")))
4783 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4785 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4786 (synopsis "Pro-quality GM soundfont")
4787 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4788 (license license:expat))))
4790 (define-public libfdk
4798 (url "https://github.com/mstorsjo/fdk-aac")
4799 (commit (string-append "v" version))))
4800 (file-name (git-file-name name version))
4803 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4804 (build-system gnu-build-system)
4806 (list autoconf automake libtool))
4807 (home-page "https://github.com/mstorsjo/fdk-aac")
4808 (synopsis "Fraunhofer FDK AAC library")
4809 (description "FDK is a library for encoding and decoding Advanced Audio
4810 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4811 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4812 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4813 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4814 library supports sample rates up to 96 kHz and up to eight channels (7.1
4816 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4817 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4819 (define-public libopenshot-audio
4821 (name "libopenshot-audio")
4826 (url "https://github.com/OpenShot/libopenshot-audio")
4827 (commit (string-append "v" version))))
4828 (file-name (git-file-name name version))
4831 "03dygh85riljk7dpn5a5a0d22a2kz45fs13gzwqgnbzzr1k17p2y"))))
4832 (build-system cmake-build-system)
4835 ;; The following are for JUCE GUI components:
4842 `(#:tests? #f ;there are no tests
4844 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4845 (assoc-ref %build-inputs "freetype")
4846 "/include/freetype2"))))
4847 (home-page "https://openshot.org")
4848 (synopsis "Audio editing and playback for OpenShot")
4849 (description "OpenShot Audio Library (libopenshot-audio) allows
4850 high-quality editing and playback of audio, and is based on the JUCE
4852 (license license:lgpl3+)))
4854 (define-public faudio
4862 (url "https://github.com/FNA-XNA/FAudio")
4864 (file-name (git-file-name name version))
4866 (base32 "0l9bicg8v1shsyq9k48zh4wv5kwfs6lfjmm9blzd13xrgmhd07w2"))))
4868 '(#:tests? #f ; No tests.
4869 #:configure-flags '("-DGSTREAMER=ON")))
4870 (build-system cmake-build-system)
4871 (native-inputs (list pkg-config))
4872 (inputs (list gstreamer gst-plugins-base sdl2))
4873 (home-page "https://github.com/FNA-XNA/FAudio")
4874 (synopsis "XAudio reimplementation")
4875 (description "FAudio is an XAudio reimplementation that focuses solely on
4876 developing fully accurate DirectX Audio runtime libraries.")
4879 ;; stb & utils/{ui,wav}common are dual-licenced under either of:
4881 license:public-domain))))
4883 (define-public gnaural
4886 (version "20110606")
4890 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4894 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4895 (build-system gnu-build-system)
4897 (list alsa-lib gtk+-2 libsndfile portaudio))
4900 (home-page "http://gnaural.sourceforge.net/")
4901 (synopsis "Binaural beat synthesizer")
4902 (description "Gnaural is a programmable auditory binaural beat synthesizer
4903 intended to be used for brainwave entrainment. Gnaural supports creation of
4904 binaural beat tracks of different frequencies and exporting of tracks into
4905 different audio formats. Gnaural can also be linked over the internet with
4906 other Gnaural instances, allowing synchronous sessions between many users.")
4907 (license license:gpl2+)))
4909 (define-public darkice
4915 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4916 "download/v" version "/darkice-"
4920 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4921 (build-system gnu-build-system)
4922 (native-inputs (list pkg-config))
4933 (list (string-append "--with-lame-prefix="
4934 (assoc-ref %build-inputs "lame")))))
4935 (home-page "http://www.darkice.org/")
4936 (synopsis "Live audio streamer")
4937 (description "DarkIce is a live audio streamer. It takes audio input from
4938 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4939 stream to one or more IceCast and/or ShoutCast servers.")
4940 (license license:gpl3+)))
4942 (define-public libltc
4950 (string-append "https://github.com/x42/libltc/releases/download/v"
4951 version "/libltc-" version ".tar.gz"))
4954 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4955 (build-system gnu-build-system)
4957 `(#:parallel-tests? #f)) ;tests fail otherwise
4959 (list doxygen pkg-config))
4960 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4961 (description "Libltc is a POSIX-C Library for handling
4962 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4963 (home-page "https://x42.github.io/libltc/")
4964 (license license:lgpl3+)))
4966 (define-public ttaenc
4973 (uri (string-append "mirror://sourceforge/tta/"
4975 "/ttaenc-" version "-src.tgz"))
4978 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4979 (build-system gnu-build-system)
4981 `(#:tests? #f ;no tests
4983 (list (string-append "CC=" ,(cc-for-target))
4984 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4986 (modify-phases %standard-phases
4987 (delete 'configure) ; no configure
4988 (add-before 'install 'make-bindir
4989 (lambda* (#:key outputs #:allow-other-keys)
4990 (let* ((out (assoc-ref outputs "out")))
4991 (mkdir-p (string-append out "/bin"))
4993 (synopsis "TTA lossless audio encoder")
4995 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4996 data of the Wav audio files. Being lossless means that no data-
4997 quality is lost in the compression - when uncompressed, the data will
4998 be identical to the original. The compression ratios of TTA depend on
4999 the type of music file being compressed, but the compression size
5000 will generally range between 30% - 70% of the original. TTA format
5001 supports both of ID3v1/v2 and APEv2 tags.")
5002 (home-page "http://tausoft.org/")
5003 (license license:gpl2+)))
5005 (define-public libsoundio
5013 (url "https://github.com/andrewrk/libsoundio")
5015 (file-name (git-file-name name version))
5018 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
5019 (build-system cmake-build-system)
5021 `(#:tests? #f)) ;no tests included
5023 (list alsa-lib jack-1 pulseaudio))
5026 (home-page "http://libsound.io")
5027 (synopsis "C library for real-time audio input and output")
5028 (description "@code{libsoundio} is a C library providing audio input and
5029 output. The API is suitable for real-time software such as digital audio
5030 workstations as well as consumer software such as music players.")
5031 (license license:expat)))
5033 (define-public redkite
5036 (version "1.3.1") ;marked unmaintained as of Oct. 2021
5041 (url "https://github.com/free-sm/redkite")
5042 (commit (string-append "v" version))))
5043 (file-name (git-file-name name version))
5045 (base32 "1zb2k2a4m7z2ravqrjn8fq8lic20wbr2m8kja3p3113jsk7j9zvd"))))
5046 (build-system cmake-build-system)
5048 `(#:tests? #f)) ;no tests included
5053 (synopsis "Small GUI toolkit")
5054 (description "Redkite is a small GUI toolkit developed in C++17 and
5055 inspired from other well known GUI toolkits such as Qt and GTK. It is
5056 minimal on purpose and is intended to be statically linked to applications,
5057 therefore satisfying any requirements they may have to be self contained,
5058 as is the case with audio plugins.")
5059 (home-page "https://gitlab.com/geontime/redkite")
5060 (license license:gpl3+)))
5062 (define-public carla
5071 (url "https://github.com/falkTX/Carla")
5072 (commit (string-append "v" version))))
5073 (file-name (git-file-name name version))
5075 (base32 "01ngkmfcxyg1bb4qmfvlkkjbx4lx62akxqhizl8zmqnhfcy4p9bx"))))
5076 (build-system gnu-build-system)
5078 (list #:tests? #f ; no "check" target
5080 #~(list (string-append "PREFIX=" #$output))
5082 #~(modify-phases %standard-phases
5083 (delete 'configure) ; no configure script
5084 (add-before 'build 'set-CC-variable-and-show-features
5086 (setenv "CC" #$(cc-for-target))
5087 (invoke "make" "features")))
5088 (add-after 'install 'make-carla-executable
5090 (chmod (string-append #$output "/share/carla/carla") #o555)))
5091 (add-after 'install 'wrap-executables
5092 (lambda* (#:key inputs #:allow-other-keys)
5093 (wrap-script (string-append #$output "/bin/carla")
5094 #:guile (search-input-file inputs "bin/guile")
5095 `("GUIX_PYTHONPATH" ":" prefix
5096 (,(getenv "GUIX_PYTHONPATH")))))))))
5105 gtk+-2 ;needed for bridging GTK2 plugins in GTK3 hosts
5110 ;; python-pyqt shows the following error without python-wrapper:
5111 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
5112 ;; (ModuleNotFoundError: No module named 'PyQt5')
5117 ;; For WRAP-SCRIPT above.
5121 (home-page "https://kx.studio/Applications:Carla")
5122 (synopsis "Audio plugin host")
5123 (description "Carla is a modular audio plugin host, with features like
5124 transport control, automation of parameters via MIDI CC and remote control
5125 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
5126 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
5127 default and preferred audio driver but also supports native drivers like ALSA.")
5128 (license license:gpl2+)))
5130 (define-public ecasound
5136 (uri (string-append "https://nosignal.fi/download/ecasound-"
5139 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
5140 (build-system gnu-build-system)
5141 (native-inputs (list pkg-config))
5142 ;; It would be nice to add mikmod to inputs if that gets packaged
5144 (inputs (list alsa-lib
5157 (home-page "https://nosignal.fi/ecasound/index.php")
5158 (synopsis "Multitrack audio processing")
5159 (description "Ecasound is a software package designed for multitrack audio
5160 processing. It can be used for simple tasks like audio playback, recording and
5161 format conversions, as well as for multitrack effect processing, mixing,
5162 recording and signal recycling. Ecasound supports a wide range of audio inputs,
5163 outputs and effect algorithms. Effects and audio objects can be combined in
5164 various ways, and their parameters can be controlled by operator objects like
5165 oscillators and MIDI-CCs. A versatile console mode user-interface is included
5167 ;; As an exception to the above, the C, C++ and python implementations
5168 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
5169 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
5170 ;; that are not licensed under GPL.
5171 (license (list license:gpl2 license:lgpl2.1))))
5173 (define-public libaudec
5181 (url "https://git.zrythm.org/zrythm/libaudec")
5182 (commit (string-append "v" version))))
5183 (file-name (git-file-name name version))
5186 "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz"))))
5187 (build-system meson-build-system)
5193 (list libsamplerate libsndfile))
5196 (synopsis "Library for reading and resampling audio files")
5197 (description "libaudec is a wrapper library over ffmpeg, sndfile and
5198 libsamplerate for reading and resampling audio files, based on Robin Gareus'
5199 @code{audio_decoder} code.")
5200 (home-page "https://git.zrythm.org/zrythm/libaudec")
5201 (license license:agpl3+)))
5203 (define-public lv2lint
5211 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
5213 (file-name (git-file-name name version))
5216 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
5217 (build-system meson-build-system)
5220 `("-Delf-tests=true" ; for checking symbol visibility
5221 "-Donline-tests=true"))) ; for checking URI existence
5223 (list curl libelf lilv))
5226 (synopsis "LV2 plugin lint tool")
5227 (description "lv2lint is an LV2 lint-like tool that checks whether a
5228 given plugin and its UI(s) match up with the provided metadata and adhere
5229 to well-known best practices.")
5230 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
5231 (license license:artistic2.0)))
5233 (define-public lv2toweb
5241 (url "https://github.com/x42/lv2toweb")
5242 (commit (string-append "v" version))))
5243 (file-name (git-file-name name version))
5246 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
5247 (build-system gnu-build-system)
5249 `(#:tests? #f ; no "check" target
5250 #:make-flags (list "CC=gcc"
5251 (string-append "PREFIX=" (assoc-ref %outputs "out")))
5253 (modify-phases %standard-phases
5254 (delete 'configure))))
5258 (list help2man pkg-config))
5259 (synopsis "Documentation generator for LV2 plugins")
5261 "lv2toweb allows the user to create an xhtml page with information
5262 about the given LV2 plugin, provided that the plugin and its UI(s) match up
5263 with the provided metadata and adhere to well-known best practices.")
5264 (home-page "https://github.com/x42/lv2toweb")
5265 (license (list license:isc license:gpl2))))
5267 (define-public ztoolkit
5275 (url "https://git.zrythm.org/zrythm/ztoolkit")
5276 (commit (string-append "v" version))))
5277 (file-name (git-file-name name version))
5280 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
5281 (build-system meson-build-system)
5284 ;; These are listed as propagated inputs because they are dependencies
5287 (list cairo libx11))
5288 (synopsis "GUI toolkit for LV2 plugins")
5289 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
5290 inspired by GTK. It handles events and low level drawing on behalf of
5291 the user and provides a high-level API for managing the UI and custom
5292 widgets. ZToolkit is written in C and was created to be used for building
5293 audio plugin UIs, where the dependencies often need to be kept to a
5295 (home-page "https://git.zrythm.org/zrythm/ztoolkit")
5296 (license license:agpl3+)))
5298 (define-public libinstpatch
5300 (name "libinstpatch")
5306 (url "https://github.com/swami/libinstpatch")
5307 (commit (string-append "v" version))))
5308 (file-name (git-file-name name version))
5310 (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir"))))
5311 (build-system cmake-build-system)
5313 `(#:tests? #f)) ;there are no tests
5315 `(("glib:bin" ,glib "bin")
5316 ("pkg-config" ,pkg-config)))
5318 (list glib libsndfile))
5319 (home-page "http://www.swamiproject.org/")
5320 (synopsis "Instrument file software library")
5322 "libInstPatch is a library for processing digital sample based MIDI
5323 instrument \"patch\" files. The types of files libInstPatch supports are used
5324 for creating instrument sounds for wavetable synthesis. libInstPatch provides
5325 an object framework (based on GObject) to load patch files, which can then be
5326 edited, converted, compressed and saved.")
5327 (license license:lgpl2.1)))
5329 (define-public ztoolkit-rsvg
5330 (package/inherit ztoolkit
5331 (name "ztoolkit-rsvg")
5333 `(#:configure-flags `("-Denable_rsvg=true")))
5335 `(("librsvg" ,librsvg)
5336 ,@(package-propagated-inputs ztoolkit)))
5337 (synopsis "ZToolkit with SVG support")))
5339 (define-public lsp-dsp-lib
5341 (name "lsp-dsp-lib")
5346 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
5347 "releases/download/" version
5348 "/lsp-dsp-lib-" version "-src.tar.gz"))
5350 (base32 "1gcznkyybywbgdi2fhx27i8sckhy6ahvxax72b213g1lr5aaw7bq"))))
5351 (build-system gnu-build-system)
5353 (list #:tests? #f ; no tests
5355 #~(list (string-append "CC=" #$(cc-for-target)))
5357 #~(modify-phases %standard-phases
5358 (add-after 'unpack 'omit-static-library
5360 (substitute* "src/Makefile"
5361 ((".*cp \\$\\(ARTIFACT_SLIB\\).*") "") ; don't install it
5362 ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it
5365 (invoke "make" "config"
5366 (string-append "PREFIX=" #$output)))))))
5367 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
5368 (synopsis "Digital signal processing library")
5369 (description "The LSP DSP library provides a set of functions that perform
5370 SIMD-optimized computing on several hardware architectures. All functions
5371 currently operate on IEEE-754 single-precision floating-point numbers.")
5372 (license license:lgpl3+)))
5374 (define-public codec2
5382 (url "https://github.com/drowe67/codec2")
5383 (commit (string-append "v" version))))
5384 (file-name (git-file-name name version))
5386 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
5387 (build-system cmake-build-system)
5389 (list bc octave valgrind))
5391 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
5393 (modify-phases %standard-phases
5394 (add-before 'check 'set-test-environment
5396 (setenv "HOME" "/tmp")
5398 (synopsis "Speech codec")
5400 "Codec 2 is a speech codec designed for communications quality speech
5401 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
5403 (home-page "https://www.rowetel.com/?page_id=452")
5404 (license license:lgpl2.1)))
5406 (define-public mbelib
5407 ;; No release since 2016, use commit directly.
5408 (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f")
5412 (version (git-version "1.3.0" revision commit))
5417 (url "https://github.com/szechyjs/mbelib")
5419 (file-name (git-file-name name version))
5421 (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h"))))
5422 (build-system cmake-build-system)
5423 (home-page "https://github.com/szechyjs/mbelib")
5424 (synopsis "P25 Phase 1 and ProVoice vocoder")
5426 "The mbelib library provides support for the 7200x4400 bit/s codec used
5427 in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half
5428 Rate} 3600x2250 bit/s vocoder used in various radio systems.")
5429 (license (list license:bsd-3 ; test/ framework
5430 license:isc))))) ; the rest
5432 (define-public ableton-link
5434 (name "ableton-link")
5439 (url "https://github.com/Ableton/link")
5440 (commit (string-append "Link-" version))))
5441 (file-name (git-file-name name version))
5444 "1wplqj11ww64gmw2kzlxpvfs3v04m2036f7k5ndm34zcv12b91fa"))
5445 (modules '((guix build utils)))
5447 (search-patches "ableton-link-system-libraries-debian.patch"))
5450 ;; Tests assume that CMake's "build" directory is a
5451 ;; sub-directory of the source tree, so we fix it.
5452 (substitute* "ci/run-tests.py"
5453 (("root_dir,") "root_dir, os.pardir,"))
5454 ;; Unbundle dependencies.
5455 (delete-file-recursively "third_party")
5456 (delete-file-recursively "modules")))))
5457 (build-system cmake-build-system)
5459 (list catch-framework
5460 python ;for running tests
5461 portaudio ;for portaudio examples
5462 qtbase-5 ;for Qt examples
5466 (list jack-1 ;for JACK examples
5467 qtquickcontrols-5)) ;for Qt examples
5469 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
5470 ;; contains '#include <asio.hpp>'.
5474 '("-DLINK_BUILD_QT_EXAMPLES=ON"
5475 "-DLINK_BUILD_JACK=ON")
5477 (modify-phases %standard-phases
5479 (lambda* (#:key inputs tests? #:allow-other-keys)
5481 (let* ((python (search-input-file inputs "/bin/python3"))
5482 (run-tests "../source/ci/run-tests.py"))
5483 (invoke python run-tests "--target" "LinkCoreTest")
5484 (invoke python run-tests "--target" "LinkDiscoveryTest")))))
5485 (add-before 'install 'patch-cmake
5486 (lambda* (#:key inputs #:allow-other-keys)
5487 (let* ((source "../source/"))
5488 (substitute* (string-append source
5489 "cmake_include/AsioStandaloneConfig.cmake")
5490 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5491 "modules/asio-standalone/asio/include"))
5492 (string-append (assoc-ref inputs "asio")
5494 (substitute* (string-append source "AbletonLinkConfig.cmake")
5495 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5496 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5497 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5498 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp")))))
5500 (lambda* (#:key outputs #:allow-other-keys)
5501 (let* ((out (assoc-ref outputs "out"))
5502 (bin (string-append out "/bin"))
5503 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5504 (source "../source"))
5505 (for-each (lambda (test-file)
5506 (delete-file test-file))
5507 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5508 (copy-recursively "bin" bin)
5509 (copy-recursively (string-append source "/include/ableton")
5510 (string-append out "/include/ableton"))
5511 (install-file (string-append source "/AbletonLinkConfig.cmake")
5513 (install-file (string-append source
5514 "/cmake_include/AsioStandaloneConfig.cmake")
5515 (string-append lib-cmake "/cmake_include"))))))))
5516 (home-page "https://github.com/Ableton/link")
5517 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5519 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5520 across multiple applications running on one or more devices. Applications on devices
5521 connected to a local network discover each other automatically and form a musical
5522 session in which each participant can perform independently: anyone can start or stop
5523 while still staying in time.")
5524 (license license:gpl2+)))
5532 (uri (string-append "mirror://sourceforge/butt/butt/butt-"
5533 version "/butt-" version ".tar.gz"))
5536 "0zd1g1673pv8z437y34fllxska8dzpd7mygpham35pzwpdyc5c1p"))
5537 (modules '((guix build utils)))
5539 '(substitute* "src/butt.cpp"
5540 ((".*zica.*") "")))))
5541 (build-system gnu-build-system)
5544 #~(modify-phases %standard-phases
5545 (add-after 'install 'install-documentation
5547 (let ((doc (string-append #$output "/share/doc/" #$name)))
5548 (install-file "README" doc)
5549 (copy-file #$(this-package-native-input "manual")
5550 (string-append doc "/butt-manual.pdf"))))))))
5552 `(("pkg-config" ,pkg-config)
5556 (uri (string-append "https://danielnoethen.de/butt/butt-"
5557 version "_manual.pdf"))
5559 (base32 "0kadqzzbk25n0aqxgbqhg4mq4hsbjq44phzcx5qj1b8847yzz8si"))))))
5577 (home-page "https://danielnoethen.de/butt/")
5578 (synopsis "Audio streaming tool")
5579 (description "Butt is a tool to stream audio to a ShoutCast or
5581 (license license:gpl2+)))
5583 (define-public siggen
5591 (url "https://github.com/bleskodev/siggen")
5592 (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210")))
5593 (file-name (git-file-name name version))
5596 "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb"))))
5597 (build-system gnu-build-system)
5599 `(#:make-flags (list (string-append "INSDIR=" %output "/bin")
5600 (string-append "MANDIR=" %output "/share/man"))
5601 #:tests? #f ; no tests
5603 (modify-phases %standard-phases
5604 ;; Patch misc.c to prevent a segfault.
5605 (add-after 'unpack 'patch-segfault
5607 (substitute* "misc.c"
5608 (("#include <stdio.h>\n" all)
5609 (string-append all "#include <string.h>\n")))))
5612 (lambda* (#:key make-flags outputs #:allow-other-keys)
5613 (let ((out (assoc-ref outputs "out")))
5614 (for-each (lambda (dir)
5615 (mkdir-p (string-append out dir)))
5616 (list "/bin" "/share/man/man1" "/share/man/man5"))
5617 (apply invoke "make" "sysinstall" make-flags)))))))
5621 `(("groff" ,groff-minimal) ; for nroff
5622 ("util-linux" ,util-linux))) ; for col
5623 (home-page "https://github.com/bleskodev/siggen")
5624 (synopsis "Signal generation tools")
5625 (description "siggen is a set of tools for imitating a laboratory signal
5626 generator, generating audio signals out of Linux's /dev/dsp audio
5627 device. There is support for mono and/or stereo and 8 or 16 bit samples.")
5628 (license license:gpl2)))
5630 (define-public python-pysox
5631 ;; PyPi does not include the data folder containing audio files for testing.
5632 (let ((commit "3d0053381c24ae3490f759d4de87194b85789d36")
5635 (name "python-pysox")
5636 (version (git-version "1.4.2" revision commit))
5641 (url "https://github.com/rabitt/pysox")
5643 (file-name (git-file-name name version))
5646 "0i62jx92vfpcr2z7lp69yzqdi9idfs3pifl3rzm2akc2c4cr1mac"))))
5647 (build-system python-build-system)
5650 (modify-phases %standard-phases
5651 (add-after 'unpack 'patch-sox
5652 (lambda* (#:key inputs #:allow-other-keys)
5653 (let* ((sox-store-path (assoc-ref inputs "sox"))
5654 (sox-bin (string-append sox-store-path "/bin/sox")))
5655 (substitute* "sox/__init__.py"
5657 (string-append sox-bin " -h")))
5658 (substitute* "sox/core.py"
5660 (string-append "['" sox-bin))))))
5662 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5664 (add-installed-pythonpath inputs outputs)
5665 (invoke "pytest")))))))
5667 (list python-numpy python-typing-extensions))
5669 (list sox python-pytest python-pytest-cov python-soundfile))
5670 (home-page "https://github.com/rabitt/pysox")
5671 (synopsis "Python wrapper around SoX")
5672 (description "@code{python-pysox} is a wrapper around the @command{sox}
5673 command line tool. The API offers @code{Transformer} and @code{Combiner}
5674 classes that allow the user to incrementally build up effects and audio
5675 manipulations. @code{python-pysox} also provides methods for querying audio
5676 information such as sample rate, determining whether an audio file is silent,
5678 (license license:bsd-3))))
5680 (define-public python-resampy
5682 (name "python-resampy")
5689 ;; PyPi does not include tests.
5690 (url "https://github.com/bmcfee/resampy")
5692 (file-name (git-file-name name version))
5694 (base32 "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs"))))
5695 (build-system python-build-system)
5698 (modify-phases %standard-phases
5700 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5702 (add-installed-pythonpath inputs outputs)
5703 (invoke "pytest" "tests")))))))
5705 (list python-numba python-numpy python-scipy python-six))
5707 (list python-pytest python-pytest-cov))
5708 (home-page "https://github.com/bmcfee/resampy")
5709 (synopsis "Efficient signal resampling")
5711 "@code{python-resampy} implements the band-limited sinc interpolation
5712 method for sampling rate conversion as described by Julius O. Smith at the
5713 @url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling
5715 (license license:isc)))
5717 (define-public python-librosa
5719 (name "python-librosa")
5724 (uri (pypi-uri "librosa" version))
5726 (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5"))))
5727 (build-system python-build-system)
5729 ;; Tests require internet connection to download MATLAB scripts for
5730 ;; generating the testing data.
5733 (list python-audioread
5744 (home-page "https://librosa.org")
5745 (synopsis "Python module for audio and music processing")
5747 "@code{librosa} is a python package for music and audio analysis. It
5748 provides the building blocks necessary to create music information retrieval
5750 (license license:isc)))
5752 (define-public mda-lv2
5759 (uri (string-append "http://download.drobilla.net/mda-lv2-"
5760 version ".tar.bz2"))
5762 (base32 "1nspk2j11l65m5r9z5isw8j749vh9a89wgx8mkrrq15f4iq12rnd"))))
5763 (build-system waf-build-system)
5765 `(#:tests? #f ; There are no tests.
5767 (list (string-append "--prefix="
5768 (assoc-ref %outputs "out")))))
5773 (native-search-paths
5774 (list (search-path-specification
5775 (variable "LV2_PATH")
5776 (files '("lib/lv2")))))
5777 (home-page "https://drobilla.net/software/mda-lv2")
5778 (synopsis "Audio plug-in pack for LV2")
5780 "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few
5781 instrument plugins.")
5782 (license license:gpl3+)))
5784 (define-public libodiosacd
5786 (name "libodiosacd")
5791 (url "https://github.com/tari01/libodiosacd")
5793 (file-name (git-file-name name version))
5796 "0iamf7wksbql0qfigdv5ahaax53ms2yligdav8dw6x0ay88x4lhi"))))
5797 (build-system gnu-build-system)
5799 `(#:tests? #f ; no check target
5801 (modify-phases %standard-phases
5802 (add-after 'unpack 'patch-makefile
5804 (substitute* "Makefile"
5805 (("\\$\\(DESTDIR\\)/usr")
5807 (delete 'configure)) ; no configure script
5809 (list (string-append "DESTDIR=" %output))))
5810 (synopsis "Library for decoding Super Audio CDs (SACD)")
5812 "The Odio SACD shared library is a decoding engine which takes a Super
5813 Audio CD source and extracts a 24-bit high resolution WAV file. It handles
5814 both DST and DSD streams.")
5815 (home-page "https://tari.in/www/software/libodiosacd/")
5816 (license license:gpl3+)))
5818 (define-public odio-sacd
5825 (url "https://github.com/tari01/odio-sacd")
5827 (file-name (git-file-name name version))
5830 "0314srqk0r4qv292qiaply619l2fw04nkdwvqhj3q1dqzv41g4qk"))))
5831 (inputs (list libodiosacd))
5832 ;; Build system and arguments for libodiosacd are identical.
5833 (build-system (package-build-system libodiosacd))
5834 (arguments (package-arguments libodiosacd))
5835 (synopsis "Rip Super Audio CDs (SACD)")
5837 "Odio SACD is a command-line application which takes a Super Audio CD
5838 source and extracts a 24-bit high resolution WAV file. It handles both DST
5840 (home-page "https://tari.in/www/software/odio-sacd/")
5841 (license license:gpl3+)))
5843 (define-public qpwgraph
5850 (url "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5851 (commit (string-append "v" version))))
5852 (file-name (git-file-name name version))
5855 "1xqmlbqj6ny4cpclzr8xyy6d6i392h9f1vmlbasp6xfy5b0yya94"))))
5856 (build-system cmake-build-system)
5857 (arguments (list #:tests? #f)) ;; no tests
5858 (inputs (list alsa-lib
5863 (native-inputs (list pkg-config))
5864 (synopsis "PipeWire graph manager")
5866 "qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++
5867 framework. It provides a visual interface to audio and video connections
5868 managed by PipeWire.")
5869 (home-page "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5870 (license license:gpl2)))
5872 (define-public streamripper
5874 (name "streamripper")
5879 (uri (string-append "https://sourceforge.net/projects/streamripper"
5880 "/files/streamripper%20(current)/"
5881 version "/streamripper-" version ".tar.gz"))
5883 (base32 "0hnyv3206r0rfprn3k7k6a0j959kagsfyrmyjm3gsf3vkhp5zmy1"))
5884 (modules '((guix build utils)))
5886 ;; Delete bundled copy of libmad.
5887 '(delete-file-recursively "libmad-0.15.1b"))))
5888 (build-system gnu-build-system)
5889 (native-inputs (list pkg-config))
5890 (inputs (list faad2 glib libmad libvorbis))
5891 (home-page "http://streamripper.sourceforge.net")
5892 (synopsis "Record audio streams to your hard drive")
5893 (description "Streamripper records shoutcast-compatible
5894 streams. For shoutcast style streams it finds the “meta data” or track
5895 separation data, and uses that as a marker for where the track should
5897 (license license:gpl2+)))