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>
42 ;;; This file is part of GNU Guix.
44 ;;; GNU Guix is free software; you can redistribute it and/or modify it
45 ;;; under the terms of the GNU General Public License as published by
46 ;;; the Free Software Foundation; either version 3 of the License, or (at
47 ;;; your option) any later version.
49 ;;; GNU Guix is distributed in the hope that it will be useful, but
50 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
51 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 ;;; GNU General Public License for more details.
54 ;;; You should have received a copy of the GNU General Public License
55 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
57 (define-module (gnu packages audio)
58 #:use-module (gnu packages)
59 #:use-module (gnu packages algebra)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages avahi)
62 #:use-module (gnu packages backup)
63 #:use-module (gnu packages base)
64 #:use-module (gnu packages bison)
65 #:use-module (gnu packages build-tools)
66 #:use-module (gnu packages boost)
67 #:use-module (gnu packages check)
68 #:use-module (gnu packages compression)
69 #:use-module (gnu packages curl)
70 #:use-module (gnu packages dbm)
71 #:use-module (gnu packages documentation)
72 #:use-module (gnu packages elf)
73 #:use-module (gnu packages emacs)
74 #:use-module (gnu packages file)
75 #:use-module (gnu packages flex)
76 #:use-module (gnu packages fltk)
77 #:use-module (gnu packages fontutils)
78 #:use-module (gnu packages gcc)
79 #:use-module (gnu packages gettext)
80 #:use-module (gnu packages gl)
81 #:use-module (gnu packages glib)
82 #:use-module (gnu packages gnome)
83 #:use-module (gnu packages gnunet) ; libmicrohttpd
84 #:use-module (gnu packages gperf)
85 #:use-module (gnu packages groff)
86 #:use-module (gnu packages gstreamer)
87 #:use-module (gnu packages gtk)
88 #:use-module (gnu packages guile)
89 #:use-module (gnu packages icu4c)
90 #:use-module (gnu packages image)
91 #:use-module (gnu packages libbsd)
92 #:use-module (gnu packages libffi)
93 #:use-module (gnu packages libusb)
94 #:use-module (gnu packages linux)
95 #:use-module (gnu packages llvm)
96 #:use-module (gnu packages machine-learning)
97 #:use-module (gnu packages man)
98 #:use-module (gnu packages maths)
99 #:use-module (gnu packages mp3) ;taglib
100 #:use-module (gnu packages multiprecision)
101 #:use-module (gnu packages music)
102 #:use-module (gnu packages ncurses)
103 #:use-module (gnu packages networking)
104 #:use-module (gnu packages onc-rpc)
105 #:use-module (gnu packages perl)
106 #:use-module (gnu packages pkg-config)
107 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
108 #:use-module (gnu packages python)
109 #:use-module (gnu packages python-science)
110 #:use-module (gnu packages python-xyz)
111 #:use-module (gnu packages qt)
112 #:use-module (gnu packages rdf)
113 #:use-module (gnu packages readline)
114 #:use-module (gnu packages samba)
115 #:use-module (gnu packages sdl)
116 #:use-module (gnu packages serialization)
117 #:use-module (gnu packages sqlite)
118 #:use-module (gnu packages telephony)
119 #:use-module (gnu packages linphone)
120 #:use-module (gnu packages linux)
121 #:use-module (gnu packages tls)
122 #:use-module (gnu packages valgrind)
123 #:use-module (gnu packages video)
124 #:use-module (gnu packages vim) ;xxd
125 #:use-module (gnu packages web)
126 #:use-module (gnu packages webkit)
127 #:use-module (gnu packages wxwidgets)
128 #:use-module (gnu packages xiph)
129 #:use-module (gnu packages xml)
130 #:use-module (gnu packages xorg)
131 #:use-module (guix build-system cmake)
132 #:use-module (guix build-system copy)
133 #:use-module (guix build-system glib-or-gtk)
134 #:use-module (guix build-system gnu)
135 #:use-module (guix build-system meson)
136 #:use-module (guix build-system python)
137 #:use-module (guix build-system trivial)
138 #:use-module (guix build-system waf)
139 #:use-module (guix download)
140 #:use-module (guix git-download)
141 #:use-module (guix gexp)
142 #:use-module ((guix licenses) #:prefix license:)
143 #:use-module (guix packages)
144 #:use-module (guix utils)
145 #:use-module (srfi srfi-1)
146 #:use-module (srfi srfi-26))
148 (define-public opensles
157 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry")
158 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
159 (file-name (git-file-name name version))
161 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
163 (search-patches "opensles-add-license-file.patch"))))
164 (build-system copy-build-system)
167 (modify-phases %standard-phases
168 (add-after 'install 'clean
169 (lambda* (#:key outputs #:allow-other-keys)
170 (let* ((out (assoc-ref outputs "out")))
171 (mkdir-p (string-append out "/etc"))
172 (mkdir-p (string-append out "/include"))
173 (mkdir-p (string-append out "/share"))
175 (string-append out "/api/1.1/OpenSLES_IID.c")
176 (string-append out "/etc/OpenSLES_IID.c"))
178 (string-append out "/api/1.1/OpenSLES.h")
179 (string-append out "/include/OpenSLES.h"))
181 (string-append out "/api/1.1/OpenSLES_Platform.h")
182 (string-append out "/include/OpenSLES_Platform.h"))
184 (string-append out "/api/1.1/README.txt")
185 (string-append out "/share/README.txt"))
187 (string-append out "/LICENSE.txt")
188 (string-append out "/share/LICENSE.txt"))
189 (for-each delete-file-recursively
191 (string-append out "/api")
192 (string-append out "/specs")))
193 (for-each delete-file
195 (string-append out "/CODE_OF_CONDUCT.md")
196 (string-append out "/index.php")
197 (string-append out "/README.md"))))
199 (synopsis "Embedded Audio Acceleration")
200 (description "OpenSLES is a royalty-free, cross-platform,
201 hardware-accelerated audio API tuned for embedded systems. It provides a
202 standardized, high-performance, low-latency method to access audio
203 functionality for developers of native applications on embedded mobile
204 multimedia devices, enabling straightforward cross-platform deployment of
205 hardware and software audio capabilities, reducing implementation effort, and
206 promoting the market for advanced audio.")
207 (home-page "https://www.khronos.org/opensles/")
208 (license (license:non-copyleft "file:///LICENSE.txt"))))
210 (define-public wildmidi
219 (url "https://github.com/Mindwerks/wildmidi")
220 (commit (string-append name "-" version))))
221 (file-name (git-file-name name version))
223 (base32 "08fbbsvw6pkwwqarjwcvdp8mq4zn5sgahf025hynwc6rvf4sp167"))))
224 (build-system cmake-build-system)
226 `(#:tests? #f ; No target
231 "-DWANT_OPENAL=ON")))
235 (synopsis "Software Synthesizer")
236 (description "WildMIDI is a simple software midi player which has a core
237 softsynth library that can be use with other applications.")
238 (home-page "https://www.mindwerks.net/projects/wildmidi/")
246 (define-public webrtc-audio-processing
248 (name "webrtc-audio-processing")
254 (string-append "http://freedesktop.org/software/pulseaudio/"
255 name "/" name "-" version ".tar.xz"))
257 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
258 (build-system gnu-build-system)
260 ;; TODO: Move this to a snippet/patch or remove with the upgrade to 1.0.
261 (if (or (target-riscv64?)
265 #~(modify-phases %standard-phases
266 (add-after 'unpack 'patch-source
267 (lambda* (#:key inputs #:allow-other-keys)
271 "webrtc-audio-processing-big-endian.patch"))))
272 (invoke "patch" "--force" "-p1" "-i" patch-file)
273 (substitute* "webrtc/typedefs.h"
274 (("defined\\(__aarch64__\\)" all)
277 "(defined(__PPC__) && __SIZEOF_SIZE_T__ == 4)\n"
278 "#define WEBRTC_ARCH_32_BITS\n"
279 "#define WEBRTC_ARCH_BIG_ENDIAN\n"
281 "#elif (defined(__PPC64__) && defined(_BIG_ENDIAN))\n"
282 "#define WEBRTC_ARCH_64_BITS\n"
283 "#define WEBRTC_ARCH_BIG_ENDIAN\n"
287 " || (defined(__riscv) && __riscv_xlen == 64)"
289 " || (defined(__PPC64__) && defined(_LITTLE_ENDIAN))"))))))))
292 (if (or (target-riscv64?)
295 (local-file (search-patch "webrtc-audio-processing-big-endian.patch"))
298 (synopsis "WebRTC's Audio Processing Library")
299 (description "WebRTC-Audio-Processing library based on Google's
300 implementation of WebRTC.")
302 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
303 (license (license:non-copyleft "file:///COPYING"))))
305 (define-public vo-aacenc
313 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
314 name "/" name "-" version ".tar.gz"))
316 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
317 (build-system gnu-build-system)
318 (synopsis "VisualOn AAC Encoder")
319 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
320 Coding (AAC) encoder.")
321 (home-page "https://sourceforge.net/projects/opencore-amr/")
322 (license license:asl2.0)))
324 (define-public tinyalsa
333 (url "https://github.com/tinyalsa/tinyalsa")
334 (commit (string-append "v" version))))
335 (file-name (git-file-name name version))
337 (base32 "1p9khz3bdpdcrnc9p6w522a0ankdchj4nxd3ki41z9401rxmnljq"))))
338 (build-system gnu-build-system)
340 `(#:tests? #f ; No target
342 (modify-phases %standard-phases
346 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
347 (synopsis "ALSA interfacing library")
348 (description "TinyALSA is a small library to interface with ALSA in the
350 (home-page "https://github.com/tinyalsa/tinyalsa")
351 (license (license:non-copyleft "file:///NOTICE"))))
353 (define-public libgme
359 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
360 "downloads/game-music-emu-" version
364 "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb"))))
365 (build-system cmake-build-system)
367 '(#:tests? #f)) ; no check target
368 (home-page "https://bitbucket.org/mpyne/game-music-emu")
369 (synopsis "Video game music file playback library")
371 "Game-music-emu is a collection of video game music file emulators that
372 support the following formats and systems:
375 ZX Spectrum/Asmtrad CPC
379 Sega Genesis/Mega Drive
381 NEC TurboGrafx-16/PC Engine
383 MSX Home Computer/other Z80 systems (doesn't support FM sound)
385 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
387 Atari systems using POKEY sound chip
389 Super Nintendo/Super Famicom
391 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
393 (license (list license:lgpl2.1+
394 ;; demo and player directories are under the Expat license
397 (define-public libopenmpt
405 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
406 "libopenmpt-" version "+release.autotools.tar.gz"))
408 (base32 "0h86p8mnpm98vc4v6jbvrmm02fch7dnn332i26fg3a2s1738m04d"))))
409 (build-system gnu-build-system)
412 (list (string-append "--docdir=" (assoc-ref %outputs "out")
413 "/share/doc/" ,name "-" ,version))
415 (modify-phases %standard-phases
416 (add-after 'install 'delete-static-libraries
417 (lambda* (#:key outputs #:allow-other-keys)
418 (let* ((out (assoc-ref outputs "out"))
419 (lib (string-append out "/lib")))
420 (for-each delete-file (find-files lib "\\.a$"))
423 (list doxygen perl pkg-config))
427 ("portaudio" ,portaudio)
428 ("pulseaudio" ,pulseaudio)
430 ("sndfile" ,libsndfile)))
432 ;; In Requires.private
433 (list libogg libvorbis mpg123 zlib))
434 (synopsis "Audio tracking library")
435 (description "LibOpenMPT is a cross-platform C++ and C module playback
436 library. It is based on the player code of the Open ModPlug Tracker project.")
437 (home-page "https://openmpt.org/")
438 (license (license:non-copyleft "file:///LICENSE"))))
440 (define-public libofa
448 (string-append "https://storage.googleapis.com/"
449 "google-code-archive-downloads/v2/code.google.com/"
450 "musicip-libofa/" name "-" version ".tar.gz"))
452 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
455 "libofa-ftbfs-1.diff"
457 "libofa-ftbfs-2.diff"))))
458 (build-system gnu-build-system)
465 (synopsis "Open Fingerprint Architecture")
466 (description "LibOFA is an audio fingerprint library, created and provided
468 (home-page "https://code.google.com/archive/p/musicip-libofa/")
469 (license license:gpl2+)))
479 (string-append "mirror://sourceforge/faac/faac-src"
480 "/faac-" version "/faac-1_30.tar.gz"))
482 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
483 (build-system gnu-build-system)
485 (list autoconf automake libtool pkg-config))
486 (synopsis "Freeware Advanced Audio Coder")
487 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
488 (home-page "https://www.audiocoding.com/faac.html")
491 ;; ISO MPEG-4 reference code.
496 (define-public libtimidity
504 (string-append "https://sourceforge.net/projects/" name "/files/"
505 name "/" version "/" name "-" version ".tar.gz"))
507 (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16"))))
508 (build-system gnu-build-system)
510 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
515 (synopsis "MIDI to WAVE converter library")
516 (description "LibTiMidity is a MIDI to WAVE converter library that uses
517 Gravis Ultrasound-compatible patch files to generate digital audio data from
518 General MIDI files.")
519 (home-page "http://libtimidity.sourceforge.net/")
521 ;; This project is dual-licensed.
522 ;; Either of the following licenses can be exercised.
525 license:artistic2.0))))
527 (define-public vo-amrwbenc
535 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
536 name "/" name "-" version ".tar.gz"))
538 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
539 (build-system gnu-build-system)
540 (synopsis "Adaptive Multi Rate Codec")
541 (description "VO-AMR is a library of VisualOn implementation of
542 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
543 (home-page "https://sourceforge.net/projects/opencore-amr/")
544 (license license:asl2.0)))
546 (define-public opencore-amr
548 (name "opencore-amr")
554 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
555 name "/" name "-" version ".tar.gz"))
557 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
558 (build-system gnu-build-system)
559 (synopsis "Adaptive Multi Rate Codec")
560 (description "OpenCore-AMR is a library of OpenCORE Framework
561 implementation of Adaptive Multi Rate Narrowband and Wideband
562 (AMR-NB and AMR-WB) speech codec.")
563 (home-page "https://sourceforge.net/projects/opencore-amr/")
564 (license license:asl2.0)))
566 (define-public alsa-modular-synth
568 (name "alsa-modular-synth")
572 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
573 "/" version "/ams-" version ".tar.bz2"))
576 "056dn6b9c5nsw2jdww7z1kxrjqqfvxjzxhsd5x9gi4wkwyiv21nz"))))
577 (build-system gnu-build-system)
580 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
581 ;; license incompatibility.
589 (list pkg-config qttools))
590 (home-page "http://alsamodular.sourceforge.net/")
591 (synopsis "Realtime modular synthesizer and effect processor")
593 "AlsaModularSynth is a digital implementation of a classical analog
594 modular synthesizer system. It uses virtual control voltages to control the
595 parameters of the modules. The control voltages which control the frequency
596 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
597 Filter) modules follow the convention of 1V / Octave.")
598 (license license:gpl2)))
607 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
610 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
611 (build-system waf-build-system)
613 `(#:tests? #f ; no check target
616 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
620 "--enable-samplerate"
621 "--enable-avcodec")))
623 (list jack-1 libsndfile libsamplerate fftwf ffmpeg)) ; for libavcodec
626 (home-page "https://aubio.org/")
627 (synopsis "Library for audio labelling")
629 "aubio is a tool designed for the extraction of annotations from audio
630 signals. Its features include segmenting a sound file before each of its
631 attacks, performing pitch detection, tapping the beat and producing MIDI
632 streams from live audio.")
633 (license license:gpl3+)))
635 (define (ardour-rpath-phase major-version)
636 `(lambda* (#:key outputs #:allow-other-keys)
637 (let ((libdir (string-append (assoc-ref outputs "out")
638 "/lib/ardour" ,major-version)))
639 (substitute* "wscript"
640 (("linker_flags = \\[\\]")
641 (string-append "linker_flags = [\""
644 libdir "/backends" ":"
645 libdir "/engines" ":"
646 libdir "/panners" ":"
647 libdir "/surfaces" ":"
648 libdir "/vamp" "\"]"))))
651 (define-public ardour
658 (url "git://git.ardour.org/ardour/ardour.git")
661 ;; Ardour expects this file to exist at build time. The revision
663 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
664 `(call-with-output-file
665 "libs/ardour/revision.cc"
667 (format port ,(string-append "#include \"ardour/revision.h\"
668 namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }"))
672 "0vlcbd70y0an881zv87kc3akmaiz4w7whsy3yaiiqqjww35jg1mm"))
673 (file-name (string-append name "-" version))))
674 (build-system waf-build-system)
676 `(#:configure-flags '("--cxx11" ; required by gtkmm
678 "--no-phone-home" ; don't contact ardour.org
679 "--freedesktop" ; build .desktop file
680 "--test") ; build unit tests
682 (modify-phases %standard-phases
683 (add-after 'unpack 'set-rpath-in-LDFLAGS
684 ,(ardour-rpath-phase (version-major version)))
685 (add-after 'install 'install-freedesktop-files
686 (lambda* (#:key outputs #:allow-other-keys)
687 (let* ((out (assoc-ref outputs "out"))
688 (share (string-append out "/share"))
689 (ver ,(version-major version)))
692 (let ((dir (string-append share "/icons/hicolor/"
693 size "x" size "/apps")))
696 (string-append "gtk2_ardour/resources/Ardour-icon_"
698 (string-append dir "/ardour" ver ".png"))))
699 '("16" "22" "32" "48" "256"))
700 (install-file (string-append "build/gtk2_ardour/ardour"
702 (string-append share "/applications/"))
703 (install-file (string-append "build/gtk2_ardour/ardour"
705 (string-append share "/appdata/")))
707 #:test-target "test"))
737 openssl ; Required by libwebsockets.
752 `(("cppunit" ,cppunit)
753 ("gettext" ,gettext-minimal)
756 ("pkg-config" ,pkg-config)))
757 (home-page "https://ardour.org")
758 (synopsis "Digital audio workstation")
760 "Ardour is a multi-channel digital audio workstation, allowing users to
761 record, edit, mix and master audio and MIDI projects. It is targeted at audio
762 engineers, musicians, soundtrack editors and composers.")
763 (license license:gpl2+)))
765 (define-public audacity
771 ;; If built from the release tag, Audacity will describe itself
772 ;; as an "Alpha test version" and suggest to users that they use
773 ;; the "latest stable released version".
775 (uri (string-append "https://github.com/audacity/audacity/releases/download/"
776 "Audacity-" version "/audacity-" version
780 "189agx11361k9j958s6q5bngnnfx0rwaf0dwbjxy6fwvsb1wv3px"))
781 (patches (search-patches "audacity-ffmpeg-fallback.patch"))
782 (modules '((guix build utils)))
784 ;; Remove bundled libraries.
788 (delete-file-recursively (string-append "lib-src/" dir)))
789 '("libsoxr" "libvamp" "lv2" "soundtouch" "sqlite" "twolame"
790 ;; FIXME: these libraries have not been packaged yet:
797 ;; FIXME: we have this library, but it differs in that the Slide
798 ;; class does not have a member "getInverseStretchedTime".
802 (build-system cmake-build-system)
816 ;;("libsbsms" ,libsbsms) ;bundled version is modified
819 soxr ;replaces libsamplerate
830 `(("autoconf" ,autoconf)
831 ("automake" ,automake)
832 ("gettext" ,gettext-minimal) ;for msgfmt
834 ("pkg-config" ,pkg-config)
840 "-Daudacity_conan_enabled=off"
841 "-Daudacity_lib_preference=system"
842 ;; TODO: enable this flag once we've packaged all dependencies
843 ;; "-Daudacity_obey_system_dependencies=on"
844 ;; disable crash reports, updates, ..., anything that phones home
845 "-Daudacity_has_networking=off")
846 #:imported-modules ((guix build glib-or-gtk-build-system)
847 ,@%cmake-build-system-modules)
850 (guix build cmake-build-system)
851 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
853 (modify-phases %standard-phases
854 (add-after 'unpack 'fix-cmake-rpath
855 (lambda* (#:key outputs #:allow-other-keys)
856 (substitute* "CMakeLists.txt"
857 (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}")
858 (string-append (assoc-ref outputs "out") "/lib/audacity"))
859 (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*")
860 "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE")
861 (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*")
862 "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE"))
863 (substitute* "src/CMakeLists.txt"
864 (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags"))))
865 (add-after 'unpack 'comment-out-revision-ident
867 (substitute* "src/CMakeLists.txt"
868 (("file\\( TOUCH \".*RevisionIdent\\.h\" \\)" directive)
869 (string-append "# " directive)))
870 (substitute* "src/AboutDialog.cpp"
871 (("(.*RevisionIdent\\.h.*)" include-line)
872 (string-append "// " include-line)))))
873 (add-after 'unpack 'use-upstream-headers
874 (lambda* (#:key inputs #:allow-other-keys)
875 (substitute* '("libraries/lib-files/FileNames.cpp")
876 (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>"))))
877 (add-after 'wrap-program 'glib-or-gtk-wrap
878 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
879 ;; The test suite is not "well exercised" according to the developers,
880 ;; and fails with various errors. See
881 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
884 (list (search-path-specification
885 (variable "AUDACITY_MODULES_PATH")
886 (files '("lib/audacity/modules")))
887 (search-path-specification
888 (variable "AUDACITY_PATH")
889 (files '("share/audacity")))))
890 (home-page "https://www.audacityteam.org/")
891 (synopsis "Software for recording and editing sounds")
893 "Audacity is a multi-track audio editor designed for recording, playing
894 and editing digital audio. It features digital effects and spectrum analysis
896 (license license:gpl2+)))
898 (define-public audiofile
906 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
908 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
910 ;; CVE references according to nixpgs
912 "audiofile-fix-datatypes-in-tests.patch"
913 "audiofile-fix-sign-conversion.patch"
914 "audiofile-hurd.patch"
915 "audiofile-CVE-2015-7747.patch"
917 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
918 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
920 "audiofile-check-number-of-coefficients.patch"
922 "audiofile-overflow-in-MSADPCM.patch"
923 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
924 "audiofile-multiply-overflow.patch"
925 "audiofile-function-signature.patch"
927 "audiofile-Fail-on-error-in-parseFormat.patch"
929 "audiofile-division-by-zero.patch"
930 "audiofile-CVE-2018-13440.patch"
931 "audiofile-CVE-2018-17095.patch"))))
932 (properties `((lint-hidden-cve . ("CVE-2017-6829"
934 "CVE-2017-6827" "CVE-2017-6828"
935 "CVE-2017-6832" "CVE-2017-6835"
940 "CVE-2017-6830" "CVE-2017-6834"
941 "CVE-2017-6836" "CVE-2017-6838"
943 "CVE-2017-6831" "CVE-2017-6833"))))
944 (build-system gnu-build-system)
947 (home-page "https://audiofile.68k.org/")
948 (synopsis "Library to handle various audio file formats")
949 (description "This is an open-source version of SGI's audiofile library.
950 It provides a uniform programming interface for processing of audio data to
951 and from audio files of many common formats.
953 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
954 .snd/.au, BICS, and raw data. Supported compression formats are currently
955 G.711 mu-law and A-law.")
956 (license license:lgpl2.1+)))
958 (define-public autotalent
964 (uri (string-append "http://tombaran.info/autotalent-"
968 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
969 (build-system gnu-build-system)
971 `(#:tests? #f ; no check target
973 (modify-phases %standard-phases
974 ;; no configure script
976 (add-before 'install 'prepare-target-directory
977 (lambda* (#:key outputs #:allow-other-keys)
978 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
980 (add-after 'unpack 'override-target-directory
981 (lambda* (#:key outputs #:allow-other-keys)
982 (substitute* "Makefile"
983 (("/usr/lib64/ladspa")
984 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
988 (home-page "http://tombaran.info/autotalent.html")
989 (synopsis "Pitch-correction LADSPA audio plugin")
991 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
992 controls are allowable notes, strength of correction, LFO for vibrato and
994 ;; All code except the FFT routine is licensed under GPLv2+.
995 ;; The FFT routine is under BSD-3.
996 (license license:gpl2+)))
1004 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
1009 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
1010 (patches (search-patches "azr3.patch"))))
1011 (build-system gnu-build-system)
1013 `(#:tests? #f ; no check target
1015 (list "LV2PEG=ttl2c"
1016 (string-append "prefix=" %output)
1017 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
1019 (modify-phases %standard-phases
1020 (add-before 'install 'fix-timestamp
1022 (let ((early-1980 315619200)) ; 1980-01-02 UTC
1023 (utime "azr3.1" early-1980 early-1980))
1026 (list gtkmm-2 lvtk jack-1 lash))
1029 (home-page "http://ll-plugins.nongnu.org/azr3/")
1030 (synopsis "Tonewheel organ synthesizer")
1032 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
1033 with drawbars, distortion and rotating speakers. The organ has three
1034 sections, two polyphonic sections with nine drawbars each and one monophonic
1035 bass section with five drawbars. A standalone JACK application and LV2
1036 plugins are provided.")
1037 (license license:gpl2)))
1045 (uri (string-append "https://calf-studio-gear.org/files/calf-"
1049 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
1050 (build-system gnu-build-system)
1064 (native-search-paths
1065 (list (search-path-specification
1066 (variable "LV2_PATH")
1067 (files '("lib/lv2")))))
1068 (home-page "http://calf.sourceforge.net/")
1069 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1071 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1072 The suite contains lots of effects (delay, modulation, signal processing,
1073 filters, equalizers, dynamics, distortion and mastering effects),
1074 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1075 tools (analyzer, mono/stereo tools, crossovers).")
1076 ;; calfjackhost is released under GPLv2+
1077 ;; The plugins are released under LGPLv2.1+
1078 (license (list license:lgpl2.1+ license:gpl2+))))
1080 (define-public caps-plugins-lv2
1082 (name "caps-plugins-lv2")
1086 ;; The Github project hasn't tagged a release.
1089 (url "https://github.com/moddevices/caps-lv2.git")
1090 (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9")))
1091 (file-name (git-file-name name version))
1094 "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa"))))
1095 (build-system gnu-build-system)
1097 `(#:tests? #f ; no check target
1099 (modify-phases %standard-phases
1100 ;; no configure script
1102 (add-after 'unpack 'override-target-directory
1103 (lambda* (#:key outputs #:allow-other-keys)
1104 (substitute* (find-files "plugins" "Makefile")
1105 (("/usr/local")(assoc-ref outputs "out")))
1109 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1110 (home-page "https://github.com/moddevices/caps-lv2")
1111 (synopsis "LV2 port of the CAPS audio plugin collection")
1113 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1114 guitar amplification and a small range of classic effects, signal processors and
1115 generators of mostly elementary and occasionally exotic nature.")
1116 (license license:gpl3+)))
1118 (define-public infamous-plugins
1120 (name "infamous-plugins")
1125 (url "https://github.com/ssj71/infamousPlugins")
1126 (commit (string-append "v" version))))
1127 (file-name (git-file-name name version))
1130 "1r72agk5nxf5k0mghcc2j90z43j5d9i7rqjmf49jfyqnd443isip"))))
1131 (build-system cmake-build-system)
1133 `(#:tests? #f ; there are no tests
1135 (modify-phases %standard-phases
1136 (add-after 'unpack 'remove-compiler-flags
1138 (substitute* (find-files "." "CMakeLists.txt")
1139 (("-msse2 -mfpmath=sse") ""))
1141 (add-after 'unpack 'fix-build-with-newer-lv2
1143 ;; https://github.com/ssj71/infamousPlugins/commit/4c7275b1fa8ea3296446421cbd29ec2df66588c0
1144 (substitute* (find-files "src" ".*\\.cxx")
1145 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
1148 (list cairo fftwf lv2 ntk zita-resampler))
1151 (home-page "https://ssj71.github.io/infamousPlugins")
1152 (synopsis "LV2 plugins for live use")
1154 "The infamous plugins are a collection of LV2 audio plugins for live
1155 performances. The plugins include a cellular automaton synthesizer, an
1156 envelope follower, distortion effects, tape effects and more.")
1157 (license license:gpl2+)))
1159 (define-public snapcast
1166 (url "https://github.com/badaix/snapcast")
1167 (commit (string-append "v" version))))
1168 (file-name (git-file-name name version))
1171 "091gf3k1xv3k0m0kf2apr9bwiifw2czjcksd3vzwy544sfgrya08"))))
1172 (build-system cmake-build-system)
1174 '(#:tests? #f)) ; no included tests
1186 (home-page "https://github.com/badaix/snapcast")
1187 (synopsis "Synchronous multiroom audio player")
1189 "Snapcast is a multi-room client-server audio player. Clients are time
1190 synchronized with the server to play synced audio.")
1191 (license license:gpl3+)))
1193 (define-public swh-plugins
1195 (name "swh-plugins")
1200 (url "https://github.com/swh/ladspa")
1201 (commit (string-append "v" version))))
1202 (file-name (git-file-name name version))
1205 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1209 gettext-minimal ;for autopoint
1215 (list fftwf perl-xml-parser))
1216 (build-system gnu-build-system)
1217 (home-page "http://plugin.org.uk")
1218 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1219 (description "This package provides Steve Harris's LADSPA plugins.")
1220 (license license:gpl2+)))
1222 (define-public swh-plugins-lv2
1224 (name "swh-plugins-lv2")
1229 (url "https://github.com/swh/lv2")
1230 (commit (string-append "v" version))))
1231 (file-name (git-file-name name version))
1234 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1235 (build-system gnu-build-system)
1237 `(#:tests? #f ; no check target
1238 #:make-flags (list "CC=gcc"
1239 (string-append "PREFIX="
1240 (assoc-ref %outputs "out")))
1242 (modify-phases %standard-phases
1243 ;; no configure script
1245 (add-after 'unpack 'patch-makefile-and-enter-directory
1246 ;; The default install target doesn't install, but the
1247 ;; "install-system" target does.
1249 (substitute* "Makefile"
1250 (("install:") "install: install-system"))
1255 (list libxslt pkg-config))
1256 (home-page "http://plugin.org.uk")
1257 (synopsis "SWH plugins in LV2 format")
1259 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1260 classes include: dynamics (compressor, limiter), time (delay, chorus,
1261 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1262 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1263 (license license:gpl3+)))
1265 (define-public libdjinterop
1267 (name "libdjinterop")
1273 (url "https://github.com/xsco/libdjinterop")
1275 (file-name (git-file-name name version))
1277 (base32 "16nrqpr90vb9ggmp9j73m0hspd7pmfdhh0g6iyp8vd7kx7g17qnk"))))
1278 (build-system meson-build-system)
1281 (modify-phases %standard-phases
1282 ;; crate_test writes a database file to the source tree.
1283 (add-after 'unpack 'make-git-checkout-writable
1285 (for-each make-file-writable (find-files ".")))))))
1287 (list boost pkg-config))
1290 (home-page "https://github.com/xsco/libdjinterop")
1291 (synopsis "C++ library for access to DJ record libraries")
1293 "@code{libdjinterop} is a C++ library that allows access to database
1294 formats used to store information about DJ record libraries.")
1295 (license license:lgpl3+)))
1300 (version "1.0-beta-10May2006")
1303 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1305 "tao-" version ".tar.gz"))
1308 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1310 (search-patches "tao-add-missing-headers.patch"
1311 "tao-fix-parser-types.patch"))
1312 (modules '((guix build utils)))
1314 '(substitute* "configure"
1315 (("SHELL=/bin/sh") "")))))
1316 (build-system gnu-build-system)
1318 '(#:configure-flags '("TAO_RELEASE=-beta")
1320 (modify-phases %standard-phases
1321 (add-after 'unpack 'fix-references
1322 (lambda* (#:key outputs #:allow-other-keys)
1323 (substitute* "user-scripts/tao.in"
1325 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1326 (("grep") (which "grep"))
1327 (("sed -f \\$distdir/user-scripts/")
1328 (string-append (which "sed") " -f $distdir/"))
1330 (string-append "distdir="
1331 (assoc-ref outputs "out") "/share/tao")))))
1332 (add-after 'install 'install-extra-files
1333 (lambda* (#:key outputs #:allow-other-keys)
1334 (let* ((out (assoc-ref outputs "out"))
1335 (share (string-append out "/share/tao/"))
1336 (inc (string-append out "/include/tao/")))
1339 (install-file "user-scripts/error.parse" share)
1340 (copy-recursively "examples" (string-append share "examples"))
1341 (for-each (lambda (file) (install-file file inc))
1342 (find-files "include" "\\.h"))))))))
1353 (home-page "http://taopm.sourceforge.net/")
1354 (synopsis "Sound Synthesis with Physical Models")
1355 (description "Tao is a software package for sound synthesis using physical
1356 models. It provides a virtual acoustic material constructed from masses and
1357 springs which can be used as the basis for building quite complex virtual
1358 musical instruments. Tao comes with a synthesis language for creating and
1359 playing instruments and a C++ API for those who would like to use it as an
1361 (license license:gpl2+)))
1363 (define-public tao-synth
1364 (let ((commit "f3aedd81efbc775574e591081b57ae1c08427064")
1368 (version (git-version "0" revision commit))
1372 (url "https://github.com/lucasw/tao_synth")
1374 (file-name (git-file-name name version))
1377 "1jds2l3cb96b02jxd7lmrjjl9s7mylnrvg6fpw0j8c141bk8vyg3"))))
1378 (build-system cmake-build-system)
1379 (arguments (list #:tests? #false)) ;there are no tests
1381 (list glfw freeglut))
1384 (home-page "https://github.com/lucasw/tao_synth")
1385 (synopsis "Sound synthesis with physical models")
1386 (description "Tao is a software package for sound synthesis using physical
1387 models. It provides a virtual acoustic material constructed from masses and
1388 springs which can be used as the basis for building quite complex virtual
1389 musical instruments. Tao comes with a synthesis language for creating and
1390 playing instruments and a C++ API for those who would like to use it as an
1392 (license license:lgpl2.0+))))
1394 (define-public csound
1402 (url "https://github.com/csound/csound")
1404 (file-name (git-file-name name version))
1406 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1407 (build-system cmake-build-system)
1409 (list bison flex gettext-minimal zlib))
1418 (home-page "https://csound.com/")
1419 (synopsis "Sound and music computing system")
1421 "Csound is a user-programmable and user-extensible sound processing
1422 language and software synthesizer.")
1423 (license license:lgpl2.1+)))
1425 (define-public midicomp
1426 ;; The latest tagged release is 9 years old and there have been
1427 ;; unreleased fixes, so we take the last commit.
1428 (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68")
1432 (version (git-version "0.0.8" revision commit))
1437 (url "https://github.com/markc/midicomp")
1439 (file-name (git-file-name name version))
1442 "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf"))))
1443 (build-system cmake-build-system)
1445 `(#:tests? #f)) ; no "check" target
1446 (synopsis "Convert SMF MIDI files to and from plain text")
1448 "midicomp can manipulate SMF (Standard MIDI File) files. It can both
1449 read and write SMF files in 0 or format 1 and also read and write its own
1450 plain text format. This means a SMF file can be turned into easily
1451 parseable text, edited with any text editor or filtered through any script
1452 language, and recompiled back into a binary SMF file.")
1453 (home-page "https://github.com/markc/midicomp")
1454 (license license:agpl3))))
1456 (define-public clalsadrv
1463 "http://kokkinizita.linuxaudio.org"
1464 "/linuxaudio/downloads/clalsadrv-"
1465 version ".tar.bz2"))
1468 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1469 (build-system gnu-build-system)
1471 `(#:tests? #f ; no "check" target
1472 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1474 (modify-phases %standard-phases
1475 (add-after 'unpack 'patch-makefile-and-enter-directory
1477 (substitute* "libs/Makefile"
1478 (("/sbin/ldconfig") "true")
1479 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1482 (add-after 'install 'install-symlink
1484 (symlink "libclalsadrv.so"
1485 (string-append (assoc-ref %outputs "out")
1486 "/lib/libclalsadrv.so.2"))
1488 ;; no configure script
1489 (delete 'configure))))
1491 (list alsa-lib fftw))
1492 (home-page "https://kokkinizita.linuxaudio.org")
1493 (synopsis "C++ wrapper around the ALSA API")
1495 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1497 (license license:gpl2+)))
1499 (define-public amb-plugins
1501 (name "amb-plugins")
1506 "http://kokkinizita.linuxaudio.org"
1507 "/linuxaudio/downloads/AMB-plugins-"
1508 version ".tar.bz2"))
1511 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1512 (build-system gnu-build-system)
1514 `(#:tests? #f ; no "check" target
1516 (modify-phases %standard-phases
1517 ;; no configure script
1519 (add-before 'install 'prepare-target-directory
1520 (lambda* (#:key outputs #:allow-other-keys)
1521 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1523 (add-after 'unpack 'override-target-directory-and-tool-paths
1524 (lambda* (#:key outputs #:allow-other-keys)
1525 (substitute* "Makefile"
1526 (("/usr/lib/ladspa")
1527 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1528 (("/usr/bin/install") (which "install"))
1531 (home-page "https://kokkinizita.linuxaudio.org")
1532 (synopsis "LADSPA ambisonics plugins")
1534 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1535 used within Ardour. Features include: mono and stereo to B-format panning,
1536 horizontal rotator, square, hexagon and cube decoders.")
1537 (license license:gpl2+)))
1539 (define-public mcp-plugins
1541 (name "mcp-plugins")
1546 "http://kokkinizita.linuxaudio.org"
1547 "/linuxaudio/downloads/MCP-plugins-"
1548 version ".tar.bz2"))
1551 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1552 (build-system gnu-build-system)
1554 `(#:tests? #f ; no "check" target
1556 (modify-phases %standard-phases
1557 ;; no configure script
1559 (add-before 'install 'prepare-target-directory
1560 (lambda* (#:key outputs #:allow-other-keys)
1561 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1563 (add-after 'unpack 'override-target-directory
1564 (lambda* (#:key outputs #:allow-other-keys)
1565 (substitute* "Makefile"
1566 (("/usr") (assoc-ref outputs "out")))
1568 (home-page "https://kokkinizita.linuxaudio.org")
1569 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1571 "This package provides various LADSPA plugins. @code{cs_chorus} and
1572 @code{cs_phaser} provide chorus and phaser effects, respectively;
1573 @code{mvclpf24} provides four implementations of the low-pass filter used in
1574 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1575 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1576 the non-linear circuit elements of their original analog counterparts.")
1577 (license license:gpl2+)))
1579 (define-public rev-plugins
1581 (name "rev-plugins")
1586 "http://kokkinizita.linuxaudio.org"
1587 "/linuxaudio/downloads/REV-plugins-"
1588 version ".tar.bz2"))
1591 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1592 (build-system gnu-build-system)
1594 `(#:tests? #f ; no "check" target
1596 (modify-phases %standard-phases
1597 ;; no configure script
1599 (add-before 'install 'prepare-target-directory
1600 (lambda* (#:key outputs #:allow-other-keys)
1601 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1603 (add-after 'unpack 'override-target-directory
1604 (lambda* (#:key outputs #:allow-other-keys)
1605 (substitute* "Makefile"
1606 (("/usr") (assoc-ref outputs "out")))
1608 (home-page "https://kokkinizita.linuxaudio.org")
1609 (synopsis "LADSPA reverb plugin")
1611 "This package provides a stereo reverb LADSPA plugin based on the
1612 well-known greverb.")
1613 (license license:gpl2+)))
1615 (define-public fil-plugins
1617 (name "fil-plugins")
1622 "http://kokkinizita.linuxaudio.org"
1623 "/linuxaudio/downloads/FIL-plugins-"
1624 version ".tar.bz2"))
1627 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1628 (build-system gnu-build-system)
1630 `(#:tests? #f ; no "check" target
1632 (modify-phases %standard-phases
1633 ;; no configure script
1635 (add-before 'install 'prepare-target-directory
1636 (lambda* (#:key outputs #:allow-other-keys)
1637 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1639 (add-after 'unpack 'override-target-directory
1640 (lambda* (#:key outputs #:allow-other-keys)
1641 (substitute* "Makefile"
1642 (("/usr") (assoc-ref outputs "out")))
1644 (home-page "https://kokkinizita.linuxaudio.org")
1645 (synopsis "LADSPA four-band parametric equalizer plugin")
1647 "This package provides a LADSPA plugin for a four-band parametric
1648 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1649 gain controls. There is also a global bypass switch and gain control.
1651 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1652 lattice filter, which is stable even while parameters are being changed.
1654 All switches and controls are internally smoothed, so they can be used @code{live}
1655 without any clicks or zipper noises. This makes this plugin suitable for use
1656 in systems that allow automation of plugin control ports, such as Ardour, or
1658 (license license:gpl2+)))
1660 (define-public ste-plugins
1662 (name "ste-plugins")
1667 "http://kokkinizita.linuxaudio.org"
1668 "/linuxaudio/downloads/STE-plugins-"
1669 version ".tar.bz2"))
1672 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1673 (build-system gnu-build-system)
1675 `(#:tests? #f ; no "check" target
1677 (modify-phases %standard-phases
1678 ;; no configure script
1680 (add-before 'install 'prepare-target-directory
1681 (lambda* (#:key outputs #:allow-other-keys)
1682 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1684 (add-after 'unpack 'override-target-directory
1685 (lambda* (#:key outputs #:allow-other-keys)
1686 (substitute* "Makefile"
1687 (("/usr") (assoc-ref outputs "out")))
1689 (home-page "https://kokkinizita.linuxaudio.org")
1690 (synopsis "LADSPA stereo width plugin")
1692 "This package provides a LADSPA plugin to manipulate the stereo width of
1694 (license license:gpl2+)))
1696 (define-public vco-plugins
1698 (name "vco-plugins")
1703 "http://kokkinizita.linuxaudio.org"
1704 "/linuxaudio/downloads/VCO-plugins-"
1705 version ".tar.bz2"))
1708 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1709 (build-system gnu-build-system)
1711 `(#:tests? #f ; no "check" target
1713 (modify-phases %standard-phases
1714 ;; no configure script
1716 (add-before 'install 'prepare-target-directory
1717 (lambda* (#:key outputs #:allow-other-keys)
1718 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1720 (add-after 'unpack 'override-target-directory
1721 (lambda* (#:key outputs #:allow-other-keys)
1722 (substitute* "Makefile"
1723 (("/usr") (assoc-ref outputs "out"))
1724 (("/bin/cp") (which "cp")))
1726 (home-page "https://kokkinizita.linuxaudio.org")
1727 (synopsis "LADSPA plugin for synthesizer oscillators")
1729 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1732 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1733 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1734 @item Rec-VCO, a square / rectangle oscillator
1737 All oscillators are low-pass filtered to provide waveforms similar to the
1738 output of analog synthesizers such as the Moog Voyager.")
1739 (license license:gpl2+)))
1741 (define-public wah-plugins
1743 (name "wah-plugins")
1748 "http://kokkinizita.linuxaudio.org"
1749 "/linuxaudio/downloads/WAH-plugins-"
1750 version ".tar.bz2"))
1753 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1754 (build-system gnu-build-system)
1756 `(#:tests? #f ; no "check" target
1758 (modify-phases %standard-phases
1759 ;; no configure script
1761 (add-before 'install 'prepare-target-directory
1762 (lambda* (#:key outputs #:allow-other-keys)
1763 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1765 (add-after 'unpack 'override-target-directory
1766 (lambda* (#:key outputs #:allow-other-keys)
1767 (substitute* "Makefile"
1768 (("/usr") (assoc-ref outputs "out")))
1770 (home-page "https://kokkinizita.linuxaudio.org")
1771 (synopsis "LADSPA Autowah effect plugin")
1773 "This package provides a LADSPA plugin for a Wah effect with envelope
1775 (license license:gpl2+)))
1777 (define-public g2reverb
1784 "http://kokkinizita.linuxaudio.org"
1785 "/linuxaudio/downloads/g2reverb-"
1786 version ".tar.bz2"))
1789 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1790 (build-system gnu-build-system)
1792 `(#:tests? #f ; no "check" target
1794 (modify-phases %standard-phases
1795 ;; no configure script
1797 (add-before 'install 'prepare-target-directory
1798 (lambda* (#:key outputs #:allow-other-keys)
1799 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1801 (add-after 'unpack 'override-target-directory
1802 (lambda* (#:key outputs #:allow-other-keys)
1803 (substitute* "Makefile"
1804 (("/usr") (assoc-ref outputs "out")))
1806 (home-page "https://kokkinizita.linuxaudio.org")
1807 (synopsis "LADSPA stereo reverb plugin")
1809 "This package provides a LADSPA plugin for a stereo reverb effect.")
1810 (license license:gpl2+)))
1812 (define-public fluidsynth
1819 (url "https://github.com/FluidSynth/fluidsynth")
1820 (commit (string-append "v" version))))
1821 (file-name (git-file-name name version))
1824 "1061rdj69503spkd8vmfl3fqvyg4l41k5xcc4gw7niy31hnpnjmn"))))
1825 (build-system cmake-build-system)
1827 '(#:tests? #f ; no check target
1829 (modify-phases %standard-phases
1830 (add-after 'unpack 'fix-libdir
1832 ;; Install libraries to /lib, not /lib64.
1833 (substitute* "CMakeLists.txt"
1834 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1835 "LIB_SUFFIX \"\"")))))))
1841 ;; In Libs.private of fluidsynth.pc.
1848 (home-page "https://www.fluidsynth.org/")
1849 (synopsis "SoundFont synthesizer")
1851 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1852 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1853 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1854 also play midifiles using a Soundfont.")
1855 (license license:lgpl2.1+)))
1857 (define-public faad2
1865 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1866 (version-major+minor version) ".0/"
1867 "faad2-" version ".tar.gz"))
1869 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1870 (build-system gnu-build-system)
1871 (home-page "https://www.audiocoding.com/faad2.html")
1872 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1874 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1875 (license license:gpl2+)))
1877 (define-public faust
1884 (url "https://github.com/grame-cncm/faust")
1885 (commit (string-append "v"
1886 (string-map (lambda (c)
1887 (if (char=? c #\.) #\- c))
1889 (file-name (string-append "faust-" version "-checkout"))
1892 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1893 (build-system gnu-build-system)
1895 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1898 (modify-phases %standard-phases
1899 ;; no "configure" script
1901 ;; Files appear under $out/share/faust that are read-only. The
1902 ;; install phase tries to overwrite them and fails, so we change
1903 ;; the permissions first.
1904 (add-before 'install 'fix-permissions
1906 (for-each (lambda (file)
1908 (find-files "architecture/max-msp" ".*"))
1912 (home-page "https://faust.grame.fr/")
1913 (synopsis "Signal processing language")
1915 "Faust is a programming language for realtime audio signal processing.")
1916 (license license:gpl2+)))
1918 ;; This version is needed to build older synths that require the lv2synth.cpp
1919 ;; architecture file, such as sorcer.
1920 (define-public faust-0.9.67
1928 (url "https://github.com/grame-cncm/faust")
1929 (commit (string-append "v"
1930 (string-map (lambda (c)
1931 (if (char=? c #\.) #\- c))
1933 (file-name (git-file-name name version))
1936 "0856x666s6ymzk8v15f9gy402dbr8c9v2s40hyfadhraqljmqrm0"))
1938 ;; Remove prebuilt library
1939 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
1940 (build-system gnu-build-system)
1944 #~(list (string-append "prefix=" #$output))
1947 '(modify-phases %standard-phases
1948 ;; no "configure" script
1949 (delete 'configure))))
1950 (native-inputs (list unzip))))
1952 (define-public faust-2
1958 (uri (string-append "https://github.com/grame-cncm/faust/"
1959 "releases/download/" version
1960 "/faust-" version ".tar.gz"))
1963 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1964 (build-system gnu-build-system)
1966 (substitute-keyword-arguments (package-arguments faust)
1967 ((#:make-flags flags)
1968 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1971 `(("llvm" ,llvm-3.8)
1974 ("ctags" ,emacs-minimal) ; for ctags
1975 ("pkg-config" ,pkg-config)))
1977 (list libsndfile libmicrohttpd ncurses openssl zlib))))
1979 (define-public freepats
1982 (version "20060219")
1985 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1986 version ".tar.bz2"))
1989 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1990 (build-system trivial-build-system)
1992 `(#:modules ((guix build utils))
1994 (use-modules (guix build utils))
1995 (let ((out (string-append %output "/share/freepats")))
1996 (setenv "PATH" (string-append
1997 (assoc-ref %build-inputs "bzip2") "/bin:"
1998 (assoc-ref %build-inputs "tar") "/bin"))
1999 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2001 ;; Use absolute pattern references
2002 (substitute* "freepats.cfg"
2003 (("Tone_000") (string-append out "/Tone_000"))
2004 (("Drum_000") (string-append out "/Drum_000")))
2006 (copy-recursively "." out)
2010 (home-page "http://freepats.zenvoid.org")
2011 (synopsis "GUS compatible patches for MIDI players")
2013 "FreePats is a project to create a free and open set of GUS compatible
2014 patches that can be used with softsynths such as Timidity and WildMidi.")
2015 ;; GPLv2+ with exception for compositions using these patches.
2016 (license license:gpl2+)))
2018 (define-public freepats-gm
2020 (name "freepats-gm")
2021 (version "20210329")
2024 (uri (string-append "https://freepats.zenvoid.org/SoundSets/"
2025 "FreePats-GeneralMIDI/FreePatsGM-SF2-" version ".7z"))
2028 "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc"))))
2029 (build-system trivial-build-system)
2031 `(("p7zip" ,p7zip)))
2033 `(#:modules ((guix build utils))
2035 (let ((dir (string-append "FreePatsGM-SF2-" ,version))
2036 (file (string-append "FreePatsGM-" ,version ".sf2"))
2037 (out (string-append %output "/share/soundfonts"))
2038 (doc (string-append %output "/share/doc/freepats-gm-" ,version)))
2039 (use-modules (guix build utils))
2040 (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")
2041 "e" (assoc-ref %build-inputs "source")
2042 (string-append dir "/" file)
2043 (string-append dir "/gpl.txt")
2044 (string-append dir "/cc0.txt")
2045 (string-append dir "/readme.txt"))
2047 (copy-file file (string-append out "/FreePatsGM.sf2"))
2051 (copy-file file (string-append doc "/" file)))
2052 (find-files "." "\\.txt$"))
2054 (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html")
2055 (synopsis "General MIDI sound set")
2056 (description "FreePats is a project to create a free (as in free software)
2057 collection of digital instruments for music production. This sound bank is a
2058 partial release of the General MIDI sound set.")
2060 license:gpl3+ ; with sampling exception
2063 (define-public guitarix
2070 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
2074 "1bsjlfd7x09p3iiljilyfbns6hpqn9cgp6psl4ccd6i1lwascfrm"))))
2075 (build-system waf-build-system)
2077 `(#:tests? #f ; no "check" target
2080 ;; Add the output lib directory to the RUNPATH.
2081 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
2101 ("intltool" ,intltool)
2102 ("gettext" ,gettext-minimal)
2103 ("pkg-config" ,pkg-config)
2105 (native-search-paths
2106 (list (search-path-specification
2107 (variable "LV2_PATH")
2108 (files '("lib/lv2")))))
2109 (home-page "https://guitarix.org/")
2110 (synopsis "Virtual guitar amplifier")
2111 (description "Guitarix is a virtual guitar amplifier running JACK.
2112 Guitarix takes the signal from your guitar as a mono-signal from your sound
2113 card. The input is processed by a main amp and a rack-section. Both can be
2114 routed separately and deliver a processed stereo-signal via JACK. You may
2115 fill the rack with effects from more than 25 built-in modules including stuff
2116 from a simple noise gate to modulation effects like flanger, phaser or
2118 (license license:gpl2+)))
2120 (define-public guitarix-lv2
2121 (package (inherit guitarix)
2122 (name "guitarix-lv2")
2124 (substitute-keyword-arguments (package-arguments guitarix)
2125 ((#:configure-flags flags)
2126 `(cons "--no-standalone" ,flags))))))
2128 (define-public rakarrack
2134 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
2135 "rakarrack-" version "/rakarrack-"
2136 version ".tar.bz2"))
2139 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
2140 (modules '((guix build utils)))
2143 (substitute* '("src/process.C"
2145 (("#include <Fl/") "#include <FL/"))
2147 (build-system gnu-build-system)
2164 (home-page "http://rakarrack.sourceforge.net/")
2165 (synopsis "Audio effects processor")
2167 "Rakarrack is a richly featured multi-effects processor emulating a
2168 guitar effects pedalboard. Effects include compressor, expander, noise gate,
2169 equalizers, exciter, flangers, chorus, various delay and reverb effects,
2170 distortion modules and many more. Most of the effects engine is built from
2171 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
2172 user interface are optimized for guitar, but Rakarrack processes signals in
2173 stereo while it does not apply internal band-limiting filtering, and thus is
2174 well suited to all musical instruments and vocals.")
2175 ;; The code is explicitly licensed under the GPL version 2 only.
2176 (license license:gpl2)))
2185 (url "https://github.com/tomszilagyi/ir.lv2")
2187 (file-name (git-file-name name version))
2190 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
2191 (build-system gnu-build-system)
2193 `(#:tests? #f ; no tests
2195 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2196 (string-append "INSTDIR="
2197 (assoc-ref %outputs "out") "/lib/lv2"))
2199 (modify-phases %standard-phases
2200 (delete 'configure) ; no configure script
2201 ;; See https://github.com/tomszilagyi/ir.lv2/pull/20
2202 (add-after 'unpack 'fix-type
2204 (substitute* '("ir_gui.cc" "lv2_ui.h")
2205 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
2216 (native-search-paths
2217 (list (search-path-specification
2218 (variable "LV2_PATH")
2219 (files '("lib/lv2")))))
2220 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
2221 (synopsis "LV2 convolution reverb")
2223 "IR is a low-latency, real-time, high performance signal convolver
2224 especially for creating reverb effects. It supports impulse responses with 1,
2225 2 or 4 channels, in any soundfile format supported by libsndfile.")
2226 (license license:gpl2+)))
2228 (define-public jack-1
2235 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2236 ;; no longer exists (404). Use an unofficial mirror.
2237 (uri (string-append "https://crux.ster.zone/downloads/"
2238 "jack-audio-connection-kit/"
2239 "jack-audio-connection-kit-" version ".tar.gz"))
2241 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2242 (build-system gnu-build-system)
2244 `(#:phases (modify-phases %standard-phases
2245 (add-after 'unpack 'patch-configure
2247 (substitute* "configure"
2248 ;; Install to <out/lib> regardless of platform.
2249 (("libnn=lib64") "libnn=lib"))
2252 (list alsa-lib readline))
2253 ;; uuid.h is included in the JACK type headers
2254 ;; db.h is included in the libjack metadata headers
2256 `(("libuuid" ,util-linux "lib")
2260 (home-page "https://jackaudio.org/")
2261 (synopsis "JACK audio connection kit")
2263 "JACK is a low-latency audio server. It can connect a number of
2264 different applications to an audio device, as well as allowing them to share
2265 audio between themselves. JACK is different from other audio server efforts
2266 in that it has been designed from the ground up to be suitable for
2267 professional audio work. This means that it focuses on two key areas:
2268 synchronous execution of all clients, and low latency operation.")
2269 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2270 ;; licensed under the LGPL in order to allow for proprietary usage.
2271 (license (list license:gpl2+ license:lgpl2.1+))))
2273 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2274 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2275 ;; program for users who might benefit from the D-BUS features.
2276 (define-public jack-2
2284 (url "https://github.com/jackaudio/jack2")
2285 (commit (string-append "v" version))))
2286 (file-name (git-file-name name version))
2289 "0sbrffmdbajvrk7iqvsvrnwnpvmicvbjyq3f52r6ashdsznsz03b"))))
2290 (build-system waf-build-system)
2292 `(#:tests? #f ; no check target
2293 #:configure-flags '("--dbus" "--alsa")
2295 (modify-phases %standard-phases
2296 (add-before 'configure 'set-linkflags
2298 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2299 ;; will not link with undefined reference to symbol
2300 ;; '__gxx_personality_v0@@CXXABI_1.3'
2301 (setenv "LDFLAGS" "-lstdc++")
2302 ;; Add $libdir to the RUNPATH of all the binaries.
2303 (substitute* "wscript"
2304 ((".*CFLAGS.*-Wall.*" m)
2306 " conf.env.append_unique('LINKFLAGS',"
2307 "'-Wl,-rpath=" %output "/lib')\n")))))
2308 (add-after 'install 'wrap-python-scripts
2309 (lambda* (#:key outputs #:allow-other-keys)
2310 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2311 (wrap-program (search-input-file outputs "bin/jack_control")
2312 `("GUIX_PYTHONPATH" ":"
2313 prefix (,(getenv "GUIX_PYTHONPATH")))))))))
2324 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2325 (license (list license:gpl2+ license:lgpl2.1+))))
2333 (uri (string-append "https://download.drobilla.net/jalv-"
2334 version ".tar.bz2"))
2337 "05lycfq0f06zjp5xqvzjz9hx9kmqx72yng1lghh76hv63dw43lcj"))))
2338 (build-system waf-build-system)
2340 `(#:tests? #f)) ; no check target
2351 (home-page "https://drobilla.net/software/jalv/")
2352 (synopsis "Simple LV2 host for JACK")
2354 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2355 plugins and exposes their ports as JACK ports, essentially making any LV2
2356 plugin function as a JACK application.")
2357 (license license:isc)))
2359 (define-public ladspa
2366 ;; Since the official link is dead,
2367 ;; we download the tarball from Debian or Internet Archive.
2368 (uri (list (string-append "http://http.debian.net"
2369 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2370 version ".orig.tar.gz")
2371 (string-append "https://web.archive.org/web/20140717172251/"
2372 "http://www.ladspa.org/download/ladspa_sdk_"
2376 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2377 (build-system gnu-build-system)
2379 `(#:tests? #f ; the "test" target is a listening test only
2381 (modify-phases %standard-phases
2383 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2385 (let ((out (assoc-ref outputs "out")))
2386 (substitute* "makefile"
2387 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2388 (("/usr/include/") (string-append out "/include/"))
2389 (("/usr/bin/") (string-append out "/bin/"))
2390 (("-mkdirhier") "mkdir -p")
2391 (("^CC.*") "CC = gcc\n")
2392 (("^CPP.*") "CPP = g++\n")))
2395 ;; Since the home page is gone, we provide a link to the archived version.
2397 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2398 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2400 "LADSPA is a standard that allows software audio processors and effects
2401 to be plugged into a wide range of audio synthesis and recording packages.")
2402 (license license:lgpl2.1+)))
2407 (version "0.6.0-rc2")
2410 ;; The tilde is not permitted in the builder name, but is used
2413 "mirror://savannah/lash/lash-"
2414 (string-join (string-split version #\-) "~")
2416 (file-name (string-append name "-" version ".tar.bz2"))
2419 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2420 (build-system gnu-build-system)
2422 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2423 ;; to use libtirpc instead.
2424 #:make-flags (list (string-append "CFLAGS=-I"
2425 (assoc-ref %build-inputs "libtirpc")
2426 "/include/tirpc -ltirpc"))
2428 (modify-phases %standard-phases
2429 ;; lashd embeds an ancient version of sigsegv so we just skip it
2430 (add-after 'unpack 'skip-lashd
2432 (substitute* '("Makefile.am" "Makefile.in")
2435 #:configure-flags '("--disable-static")))
2440 ("libtirpc" ,libtirpc)
2441 ("readline" ,readline)
2442 ("python" ,python-2)))
2443 ;; According to pkg-config, packages depending on lash also need to have
2444 ;; at least the following packages declared as inputs.
2446 (list alsa-lib dbus libxml2))
2449 (home-page "https://www.nongnu.org/lash/")
2450 (synopsis "Audio application session manager")
2452 "LASH is a session management system for audio applications. It allows
2453 you to save and restore audio sessions consisting of multiple interconneced
2454 applications, restoring program state (i.e. loaded patches) and the
2455 connections between them.")
2456 (license license:gpl2+)))
2458 (define-public libbs2b
2464 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2465 "/libbs2b-" version ".tar.lzma"))
2468 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2469 (build-system gnu-build-system)
2470 (native-inputs (list pkg-config))
2471 (inputs (list libsndfile))
2472 (home-page "https://sourceforge.net/projects/bs2b/")
2473 (synopsis "Bauer stereophonic-to-binaural DSP")
2475 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2476 designed to improve headphone listening of stereo audio records. Recommended
2477 for headphone prolonged listening to disable superstereo fatigue without
2478 essential distortions.")
2479 (license license:expat)))
2481 (define-public ladspa-bs2b
2483 (name "ladspa-bs2b")
2488 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2489 version "/" name "-" version ".tar.gz"))
2492 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2493 (build-system gnu-build-system)
2494 (native-inputs (list pkg-config))
2495 (inputs (list ladspa libbs2b))
2496 (home-page "https://sourceforge.net/projects/bs2b/")
2497 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2498 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2499 plugins is designed to improve headphone listening of stereo audio records.
2500 Recommended for headphone prolonged listening to disable superstereo fatigue
2501 without essential distortions. This package contains a LADSPA plugin for use
2502 with applications that support them (e.g. PulseAudio).")
2503 (license license:gpl2+)))
2505 (define-public liblo
2511 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2512 "/liblo-" version ".tar.gz"))
2515 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2516 (build-system gnu-build-system)
2518 `(;; liblo test FAILED
2519 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2521 (home-page "http://liblo.sourceforge.net")
2522 (synopsis "Implementation of the Open Sound Control protocol")
2524 "liblo is a lightweight library that provides an easy to use
2525 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2526 (license license:lgpl2.1+)))
2528 (define-public rtaudio
2536 (url "https://github.com/thestk/rtaudio")
2538 (file-name (git-file-name name version))
2540 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2541 (build-system cmake-build-system)
2544 (modify-phases %standard-phases
2545 ;; The header that pkg-config expects is include/rtaudio/RtAudio.h,
2546 ;; but this package installs it as include/RtAudio.h by default.
2547 (add-after 'install 'fix-inc-path
2548 (lambda* (#:key outputs #:allow-other-keys)
2549 (let* ((out (assoc-ref outputs "out"))
2550 (inc (string-append out "/include")))
2551 (mkdir-p (string-append inc "/rtaudio"))
2552 (rename-file (string-append inc "/RtAudio.h")
2553 (string-append inc "/rtaudio/RtAudio.h"))))))))
2557 (list alsa-lib jack-1 pulseaudio))
2558 (synopsis "Common API for real-time audio I/O")
2560 "RtAudio is a set of C++ classes that provides a common API for real-time
2561 audio input/output. It was designed with the following objectives:
2564 @item object-oriented C++ design
2565 @item simple, common API across all supported platforms
2566 @item only one source and one header file for easy inclusion in programming
2568 @item allow simultaneous multi-api support
2569 @item support dynamic connection of devices
2570 @item provide extensive audio device parameter control
2571 @item allow audio device capability probing
2572 @item automatic internal conversion for data format, channel number
2573 compensation, (de)interleaving, and byte-swapping
2575 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2576 ;; License is expat with a non-binding request to send modifications to
2577 ;; original developer.
2578 (license license:expat)))
2580 (define-public python-pyaudio
2582 (name "python-pyaudio")
2587 (uri (pypi-uri "PyAudio" version))
2590 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2591 (build-system python-build-system)
2594 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2595 (synopsis "Bindings for PortAudio v19")
2596 (description "This package provides bindings for PortAudio v19, the
2597 cross-platform audio input/output stream library.")
2598 (license license:expat)))
2600 (define-public python-pyliblo
2602 (name "python-pyliblo")
2606 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2610 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2611 (build-system python-build-system)
2612 (arguments `(#:tests? #f)) ;no tests
2614 (list python-cython))
2617 (home-page "http://das.nasophon.de/pyliblo/")
2618 (synopsis "Python bindings for liblo")
2620 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2621 library. It supports almost the complete functionality of liblo, allowing you
2622 to send and receive OSC messages using a nice and simple Python API. Also
2623 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2624 (license license:lgpl2.1+)))
2626 (define-public python-soundfile
2628 (name "python-soundfile")
2629 (version "0.10.3.post1")
2633 (uri (pypi-uri "SoundFile" version))
2636 "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
2637 (build-system python-build-system)
2639 (list python-cffi python-numpy libsndfile))
2641 (list python-pytest))
2643 `(#:tests? #f ; missing OGG support
2645 (modify-phases %standard-phases
2646 (add-after 'unpack 'patch
2647 (lambda* (#:key inputs #:allow-other-keys)
2648 (substitute* "soundfile.py"
2649 (("_find_library\\('sndfile'\\)")
2650 (string-append "\"" (assoc-ref inputs "libsndfile")
2651 "/lib/libsndfile.so\""))))))))
2652 (home-page "https://github.com/bastibe/SoundFile")
2653 (synopsis "Python bindings for libsndfile")
2654 (description "This package provides python bindings for libsndfile based on
2656 (license license:expat)))
2658 (define-public python-python3-midi
2660 (name "python-python3-midi")
2665 (uri (pypi-uri "python3_midi" version))
2668 "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
2669 (build-system python-build-system)
2670 (home-page "https://github.com/NFJones/python3-midi")
2671 (synopsis "Python MIDI API")
2672 (description "This package provides a python API to read and write MIDI
2674 (license license:expat)))
2676 (define-public audio-to-midi
2678 (name "audio-to-midi")
2684 (url "https://github.com/NFJones/audio-to-midi")
2685 (commit (string-append "v" version))))
2686 (file-name (git-file-name name version))
2689 "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
2690 (build-system python-build-system)
2703 (modify-phases %standard-phases
2704 (add-after 'unpack 'fix-versions
2706 (substitute* "requirements.txt" (("==") ">=")))))))
2707 (home-page "https://github.com/NFJones/audio-to-midi")
2708 (synopsis "Convert audio to multichannel MIDI")
2709 (description "@command{audio-to-midi} converts audio files to multichannel
2710 MIDI files. It accomplishes this by performing FFTs on all channels of the
2711 audio data at user-specified time steps. It then separates the resulting
2712 frequency analysis into equivalence classes which correspond to the twelve tone
2713 scale; the volume of each class being the average volume of its constituent
2714 frequencies. This data is then formatted to MIDI and written to disk.")
2715 (license license:expat)))
2723 (uri (string-append "https://download.drobilla.net/lilv-"
2724 version ".tar.bz2"))
2727 "0qchfsyrsrp2pdpd59025kllycr04ddpzd03ha1iz70ci687g8r6"))))
2728 (build-system waf-build-system)
2730 `(#:tests? #f ; no check target
2732 (modify-phases %standard-phases
2733 (add-before 'configure 'set-ldflags
2734 (lambda* (#:key outputs #:allow-other-keys)
2736 (string-append "-Wl,-rpath="
2737 (assoc-ref outputs "out") "/lib"))))
2738 (add-after 'unpack 'full-store-path-to-shared-library
2739 (lambda* (#:key outputs #:allow-other-keys)
2740 (with-directory-excursion "bindings/python"
2741 (substitute* "lilv.py"
2742 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2743 "/lib/liblilv-0.so")))))))))
2744 ;; Required by lilv-0.pc.
2746 (list lv2 serd sord sratom))
2748 (list python pkg-config))
2749 (home-page "https://drobilla.net/software/lilv")
2750 (synopsis "Library to simplify use of LV2 plugins in applications")
2752 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2753 for applications. Lilv is the successor to SLV2, rewritten to be
2754 significantly faster and have minimal dependencies.")
2755 (license license:isc)))
2763 (uri (string-append "https://lv2plug.in/spec/lv2-"
2764 version ".tar.bz2"))
2767 "0pp0n9x1rg8d4fw853z9cvfifjdi4bl85yjxxddqa1acfjy1z2af"))))
2768 (build-system waf-build-system)
2770 `(#:tests? #f ; no check target
2771 #:configure-flags '("--no-plugins")))
2773 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2777 (home-page "https://lv2plug.in/")
2778 (synopsis "LV2 audio plugin specification")
2780 "LV2 is an open specification for audio plugins and host applications.
2781 At its core, LV2 is a simple stable interface, accompanied by extensions which
2782 add functionality to support the needs of increasingly powerful audio
2784 (license license:isc)))
2786 (define-public ttl2c
2793 (url "https://github.com/lvtk/ttl2c")
2795 (file-name (git-file-name name version))
2798 "0aybx8i5i0sridi9130a3937xgmfmjkk8m48f9whvhlhbzwy3xbl"))))
2799 (build-system waf-build-system)
2802 #:tests? #false ;no check target
2804 `(modify-phases %standard-phases
2805 (add-before 'configure 'setup-waf
2806 (lambda* (#:key inputs #:allow-other-keys)
2807 (let ((waf (assoc-ref inputs "python-waf")))
2808 (copy-file (string-append waf "/bin/waf") "waf")))))))
2809 (inputs (list boost))
2810 (native-inputs (list python-waf))
2811 (home-page "https://github.com/lvtk/ttl2c")
2812 (synopsis "Turtle to C header conversion utility for LV2 plugins")
2814 "This package provides a conversion utility for LV2 Plugin developers to
2815 generate C headers from Turtle files.")
2816 (license license:gpl3+)))
2818 (define-public lv2-mda-piano
2820 (name "lv2-mda-piano")
2825 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2827 (file-name (git-file-name name version))
2830 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2831 (build-system gnu-build-system)
2833 `(#:make-flags (list
2835 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2836 #:tests? #f ; no check target
2837 #:phases (modify-phases %standard-phases (delete 'configure))))
2842 (native-search-paths
2843 (list (search-path-specification
2844 (variable "LV2_PATH")
2845 (files '("lib/lv2")))))
2846 (home-page "https://elephly.net/lv2/mdapiano.html")
2847 (synopsis "LV2 port of the mda Piano plugin")
2848 (description "An LV2 port of the mda Piano VSTi.")
2849 (license license:gpl3+)))
2851 (define-public lv2-mda-epiano
2852 (package (inherit lv2-mda-piano)
2853 (name "lv2-mda-epiano")
2855 `(#:make-flags (list
2857 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2858 #:tests? #f ; no check target
2859 #:phases (modify-phases %standard-phases (delete 'configure))))
2860 (home-page "https://elephly.net/lv2/mdaepiano.html")
2861 (synopsis "LV2 port of the mda EPiano plugin")
2862 (description "An LV2 port of the mda EPiano VSTi.")))
2865 ;; Use the latest commit, as the latest release was made in 2014 and depends
2867 (let ((commit "a73feabe772f9650aa071e6a4df660e549ab7c48")
2871 (version (git-version "1.2.0" revision commit))
2875 (url "https://github.com/lvtk/lvtk")
2877 (file-name (git-file-name name version))
2880 "0scmv8b4jlm88d21dqqchjy98wb93zclc9x960h213gdi871vsaj"))))
2881 (build-system waf-build-system)
2882 (arguments (list #:tests? #f)) ;no check target
2883 (inputs (list boost gtkmm lv2))
2884 (native-inputs (list pkg-config))
2885 (home-page "https://github.com/lvtk/lvtk")
2886 (synopsis "C++ libraries for LV2 plugins")
2888 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2889 extensions into easy to use C++ classes. It is the successor of
2891 (license license:isc))))
2893 (define-public openal
2900 "https://openal-soft.org/openal-releases/openal-soft-"
2901 version ".tar.bz2"))
2904 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2905 (build-system cmake-build-system)
2907 `(#:tests? #f ; no check target
2909 (modify-phases %standard-phases
2911 'unpack 'use-full-library-paths
2912 (lambda* (#:key inputs #:allow-other-keys)
2913 (substitute* "alc/backends/pulseaudio.cpp"
2914 (("#define PALIB \"libpulse\\.so\\.0\"")
2915 (string-append "#define PALIB \""
2916 (assoc-ref inputs "pulseaudio")
2917 "/lib/libpulse.so.0"
2919 (substitute* "alc/backends/alsa.cpp"
2920 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2921 (string-append "LoadLib(\""
2922 (assoc-ref inputs "alsa-lib")
2923 "/lib/libasound.so.2"
2927 (list alsa-lib pulseaudio))
2928 (synopsis "3D audio API")
2930 "OpenAL provides capabilities for playing audio in a virtual 3D
2931 environment. Distance attenuation, doppler shift, and directional sound
2932 emitters are among the features handled by the API. More advanced effects,
2933 including air absorption, occlusion, and environmental reverb, are available
2934 through the EFX extension. It also facilitates streaming audio, multi-channel
2935 buffers, and audio capture.")
2936 (home-page "https://openal-soft.org/")
2937 (license license:lgpl2.0+)))
2939 (define-public freealut
2945 ;; Upstream url is unclear, many systems use Fedora, there is also
2946 ;; https://github.com/vancegroup/freealut though the status of it
2947 ;; (official? unofficial?) is not clear.
2949 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2950 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2951 "-" version ".tar.gz"))
2954 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2955 (build-system cmake-build-system)
2957 `(#:tests? #f)) ; no check target
2960 (synopsis "Free implementation of OpenAL's ALUT standard")
2961 (description "freealut is the OpenAL Utility Toolkit.")
2962 (home-page "https://kcat.strangesoft.net/openal.html")
2963 (license license:lgpl2.0)))
2965 (define-public patchage
2971 (uri (string-append "https://download.drobilla.net/patchage-"
2976 "0gbakiw3mikgbvy3pssrmqmn7z5c7kp4vyaxj5rs4jnkscxgw9vw"))))
2977 (build-system waf-build-system)
2979 `(#:tests? #f)) ; no check target
2990 (home-page "https://drobilla.net/software/patchage.html")
2991 (synopsis "Modular patch bay for audio and MIDI systems")
2993 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2995 (license license:gpl3+)))
2997 (define-public pcaudiolib
3001 (home-page "https://github.com/espeak-ng/pcaudiolib")
3004 (uri (git-reference (url home-page) (commit version)))
3005 (file-name (git-file-name name version))
3008 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
3009 (build-system gnu-build-system)
3011 `(#:configure-flags '("--disable-static")))
3013 (list autoconf automake libtool pkg-config which))
3015 (list alsa-lib pulseaudio))
3016 (synopsis "Portable C audio library")
3018 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
3019 different audio devices such as ALSA or PulseAudio.")
3020 (license (list license:gpl3+
3021 ;; The bundled TPCircularBuffer uses a custom license.
3022 (license:non-copyleft
3023 "file://src/TPCircularBuffer/README.markdown")))))
3025 (define-public qjackctl
3031 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
3032 version "/qjackctl-" version ".tar.gz"))
3035 "104hfvr15v8cbkzil8slrqj48y3fl7lx060alj80q1sjh5hl6j2j"))))
3036 (build-system cmake-build-system)
3038 '(#:tests? #f)) ; no check target
3040 (list jack-1 alsa-lib portaudio qtbase-5 qtx11extras))
3042 (list pkg-config qttools))
3043 (home-page "https://qjackctl.sourceforge.io/")
3044 (synopsis "Jack server control application")
3045 (description "Control a Jack server. Allows you to plug various sources
3046 into various outputs and to start, stop and configure jackd")
3047 (license license:gpl2+)))
3049 (define-public qjackrcd
3056 (url "https://github.com/orouits/qjackrcd")
3057 (commit (string-append "v" version))))
3058 (file-name (git-file-name name version))
3061 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
3062 (build-system gnu-build-system)
3065 (modify-phases %standard-phases
3067 (lambda* (#:key outputs #:allow-other-keys)
3069 (string-append "PREFIX="
3070 (assoc-ref outputs "out"))))))))
3072 (list qtbase-5)) ; for qmake
3074 (list jack-1 libsndfile qtbase-5))
3075 (home-page "https://sourceforge.net/projects/qjackrcd/")
3076 (synopsis "Stereo audio recorder for JACK")
3077 (description "QJackRcd is a simple graphical stereo recorder for JACK
3078 supporting silence processing for automatic pause, file splitting, and
3079 background file post-processing.")
3080 (license license:gpl2+)))
3082 (define-public supercollider
3084 (name "supercollider")
3090 (url "https://github.com/supercollider/supercollider")
3091 (commit (string-append "Version-" version))
3092 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
3094 (file-name (git-file-name name version))
3097 "0id522338a464j1slcspajwc7klypbc9qpigw5mqjhrw970wij5z"))
3098 (modules '((guix build utils)
3101 ;; The build system doesn't allow us to unbundle the following
3102 ;; libraries. hidapi is also heavily patched and upstream not
3103 ;; actively maintained.
3104 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
3105 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
3106 (with-directory-excursion "./external_libraries"
3108 delete-file-recursively
3111 (and (eq? (stat:type (stat x)) 'directory)
3112 (not (member (basename x) keep-dirs)))))))
3113 ;; To find the Guix provided ableton-link library.
3114 (substitute* "lang/CMakeLists.txt"
3115 (("include\\(\\.\\./external_libraries/link/\
3116 AbletonLinkConfig\\.cmake\\)")
3117 "find_package(AbletonLink NAMES AbletonLink ableton-link \
3118 link REQUIRED)"))))))
3119 (build-system cmake-build-system)
3121 '("out" ;core language
3124 `(#:configure-flags '("-DSYSTEM_BOOST=ON"
3125 "-DSYSTEM_YAMLCPP=ON"
3127 "-DCMAKE_BUILD_TYPE=Release"
3129 ;; "-DLIBSCSYNTH=ON" ; TODO: Re-enable?
3130 "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel
3132 (modify-phases %standard-phases
3133 ;; HOME must be defined otherwise supercollider throws a "ERROR:
3134 ;; Primitive '_FileMkDir' failed." error when generating the doc.
3135 ;; The graphical tests also hang without it.
3136 (add-after 'unpack 'set-home-directory
3138 (setenv "HOME" (getcwd))))
3139 (add-after 'unpack 'patch-scclass-dir
3140 (lambda* (#:key outputs #:allow-other-keys)
3141 (let* ((out (assoc-ref outputs "out"))
3144 "/share/SuperCollider/SCClassLibrary")))
3145 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
3147 "SC_Filesystem::instance\\(\\)\\.getDirectory"
3148 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
3149 (string-append "Path(\"" scclass-dir "\")"))))))
3150 (add-before 'build 'prepare-x
3153 (setenv "DISPLAY" ":0")))
3154 (add-before 'install 'install-ide
3155 (lambda* (#:key outputs #:allow-other-keys)
3156 (let* ((out (assoc-ref outputs "out"))
3157 (ide (assoc-ref outputs "ide"))
3158 (scide "editors/sc-ide/scide"))
3160 (string-append ide "/bin"))
3161 (delete-file scide)))))))
3163 (list ableton-link pkg-config qttools xorg-server-for-tests))
3164 (inputs (list jack-1
3168 readline ;readline support for sclang's CLI
3169 alsa-lib ;for sclang's MIDI interface
3170 eudev ;for user interactions with devices
3171 avahi ;zeroconf service discovery support
3181 (propagated-inputs ;to get native-search-path
3183 (home-page "https://github.com/supercollider/supercollider")
3184 (synopsis "Synthesis engine and programming language")
3185 (description "SuperCollider is a synthesis engine (@code{scsynth} or
3186 @code{supernova}) and programming language (@code{sclang}). It can be used
3187 for experimenting with sound synthesis and algorithmic composition.
3189 SuperCollider requires jackd to be installed in your user profile and your
3190 user must be allowed to access the realtime features of the kernel. Search
3191 for \"realtime\" in the index of the Guix manual to learn how to achieve this
3192 using Guix System.")
3193 (license license:gpl2+)))
3195 (define-public libshout-idjc
3197 (name "libshout-idjc")
3202 (uri (string-append "mirror://sourceforge/libshoutidjc.idjc.p"
3203 "/libshout-idjc-" version ".tar.gz"))
3205 (base32 "1r9z8ggxylr2ab0isaljbm574rplnlcb12758j994h54nh2vikwb"))))
3206 (build-system gnu-build-system)
3210 (list libogg libtheora libvorbis speex))
3211 (home-page "http://idjc.sourceforge.net/")
3212 (synopsis "Broadcast streaming library with IDJC extensions")
3213 (description "This package provides libshout plus IDJC extensions.")
3214 ;; GNU Library (not Lesser) General Public License.
3215 (license license:lgpl2.0+)))
3217 (define-public resample
3223 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
3227 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
3228 (build-system gnu-build-system)
3230 (list autoconf automake pkg-config libtool))
3231 (synopsis "Sampling rate conversion and filter design utilities")
3232 (description "This package contains the @command{resample} and
3233 @command{windowfilter} command line utilities. The @command{resample} command
3234 allows changing the sampling rate of a sound file, while the
3235 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
3236 filters using the so-called @emph{window method}.")
3237 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
3238 (license license:lgpl2.1+)))
3240 (define-public rubberband
3247 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
3250 (file-name (string-append name "-" version ".tar.bz2"))
3253 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
3254 (build-system gnu-build-system)
3256 `(#:tests? #f ; no check target
3258 (modify-phases %standard-phases
3259 (add-after 'unpack 'skip-jni-installation
3260 ;; ‘make install’ unconditionally installs librubberband-jni.so,
3261 ;; which is never built by ‘make all’. Skip it.
3263 (substitute* "Makefile.in"
3264 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
3267 (list ladspa libsamplerate vamp))
3270 (home-page "https://breakfastquay.com/rubberband/")
3271 (synopsis "Audio time-stretching and pitch-shifting library")
3273 "Rubber Band is a library and utility program that permits changing the
3274 tempo and pitch of an audio recording independently of one another.")
3275 (license license:gpl2+)))
3277 (define-public rtmidi
3283 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3284 "/release/rtmidi-" version ".tar.gz"))
3285 (file-name (string-append "rtmidi-" version ".tar.gz"))
3288 "1ff2yfq3k4l209fr71v3w98fpjjv1chs09vkbmxj03lcikahxns8"))))
3289 (build-system gnu-build-system)
3291 (list jack-1 alsa-lib))
3293 (list autoconf automake libtool pkg-config))
3294 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3295 (synopsis "Cross-platform MIDI library for C++")
3297 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3298 classes) that provide a common cross-platform API for realtime MIDI
3300 (license license:expat)))
3302 (define-public rtmidi-4.0
3308 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3309 "/release/rtmidi-" version ".tar.gz"))
3310 (file-name (string-append "rtmidi-" version ".tar.gz"))
3313 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))))
3315 (define-public sratom
3321 (uri (string-append "https://download.drobilla.net/sratom-"
3322 version ".tar.bz2"))
3325 "178v90qvsp6lw4sqdmdz0bzyjkgwhv9m75ph1d1z8say5bv0p4gv"))))
3326 (build-system waf-build-system)
3327 (arguments `(#:tests? #f)) ;no check target
3329 ;; In Requires of sratom-0.pc.
3330 (list lv2 serd sord))
3333 (home-page "https://drobilla.net/software/sratom/")
3334 (synopsis "Library for serialising LV2 atoms to/from RDF")
3336 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3337 the Turtle syntax.")
3338 (license license:isc)))
3346 (uri (string-append "https://download.drobilla.net/suil-"
3347 version ".tar.bz2"))
3350 "1ysbazqlbyxlzyr9zk7dj2mgb6pn0amllj2cd5g1m56wnzk0h3vm"))))
3351 (build-system waf-build-system)
3353 `(#:tests? #f)) ;no check target
3361 (home-page "https://drobilla.net/software/suil/")
3362 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3364 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3366 Suil makes it possible to load a UI of a toolkit in a host using another
3367 toolkit. The API is designed such that hosts do not need to explicitly
3368 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3369 that toolkit will work in all hosts that use Suil automatically.
3371 Suil currently supports every combination of Gtk, Qt, and X11.")
3372 (license license:isc)))
3374 (define-public libebur128
3382 (url "https://github.com/jiixyj/libebur128")
3383 (commit (string-append "v" version))))
3384 (file-name (git-file-name name version))
3386 (base32 "0xkpz5rzz1j1srhprbh89669gw8z5f1njpvcnxqgf7qax69vd8sh"))))
3387 (build-system cmake-build-system)
3389 `(;; Tests require proprietary .wav files. See
3390 ;; https://github.com/jiixyj/libebur128/issues/82.
3392 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3393 (home-page "https://github.com/jiixyj/libebur128")
3394 (synopsis "Library implementing the EBU R 128 loudness standard")
3396 "@code{libebur128} is a C library that implements the EBU R 128 standard
3397 for loudness normalisation.")
3398 (license license:expat)))
3400 (define-public timidity++
3406 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3407 "/TiMidity++-" version
3408 "/TiMidity++-" version ".tar.bz2"))
3411 "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn"))))
3412 (build-system gnu-build-system)
3415 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3419 (string-append "--with-default-path="
3420 (assoc-ref %outputs "out") "/etc/timidity"))
3422 (modify-phases %standard-phases
3423 (add-after 'install 'install-config
3425 (let ((out (string-append (assoc-ref %outputs "out")
3428 (call-with-output-file
3429 (string-append out "/timidity.cfg")
3431 (format port (string-append "source "
3432 (assoc-ref %build-inputs "freepats")
3433 "/share/freepats/freepats.cfg")))))
3447 (home-page "http://timidity.sourceforge.net/")
3448 (synopsis "Software synthesizer for playing MIDI files")
3450 "TiMidity++ is a software synthesizer. It can play MIDI files by
3451 converting them into PCM waveform data; give it a MIDI data along with digital
3452 instrument data files, then it synthesizes them in real-time, and plays. It
3453 can not only play sounds, but also can save the generated waveforms into hard
3454 disks as various audio file formats.")
3455 (license license:gpl2+)))
3464 "https://code.soundsoftware.ac.uk"
3465 "/attachments/download/1520/vamp-plugin-sdk-"
3469 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3470 (build-system gnu-build-system)
3472 `(#:tests? #f ; no check target
3474 (modify-phases %standard-phases
3475 (add-after 'install 'remove-libvamp-hostsdk.la
3476 (lambda* (#:key outputs #:allow-other-keys)
3477 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3478 (for-each delete-file
3479 (let ((out (assoc-ref outputs "out")))
3480 (list (string-append out "/lib/libvamp-sdk.la")
3481 (string-append out "/lib/libvamp-hostsdk.la"))))
3487 (home-page "https://vamp-plugins.org")
3488 (synopsis "Modular and extensible audio processing system")
3490 "Vamp is an audio processing plugin system for plugins that extract
3491 descriptive information from audio data — typically referred to as audio
3492 analysis plugins or audio feature extraction plugins.")
3495 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3497 (define-public libsbsms
3504 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3505 "/libsbsms-" version ".tar.gz"))
3507 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3508 (build-system gnu-build-system)
3509 (native-inputs (list automake))
3512 ;; Disable the use of SSE unless on x86_64.
3513 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3514 (%current-system))))
3518 (modify-phases %standard-phases
3520 'unpack 'fix-ar-lib-path
3521 (lambda* (#:key inputs #:allow-other-keys)
3522 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3523 (delete-file "ar-lib")
3525 (search-input-file inputs
3526 (string-append "/share/automake-"
3527 ,(package-version automake)
3531 (home-page "http://sbsms.sourceforge.net/")
3532 (synopsis "Library for time stretching and pitch scaling of audio")
3534 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3535 stretching and pitch scaling of audio. This package contains the library.")
3536 ;; There is no explicit declaration of a license, but a COPYING file
3538 (license license:gpl2)))
3540 (define-public libkeyfinder
3542 (name "libkeyfinder")
3548 (url "https://github.com/mixxxdj/libkeyfinder")
3549 (commit (string-append "v" version))))
3550 (file-name (git-file-name name version))
3552 (base32 "0s7nqjmv44q5qjynfcs0j6h4a6qcz4mxzandkkdjjbnwv5rxc3zg"))))
3553 (build-system cmake-build-system)
3555 (list catch-framework2))
3558 (home-page "https://mixxxdj.github.io/libkeyfinder/")
3559 (synopsis "Musical key detection for digital audio")
3561 "@code{libkeyfinder} is a small C++11 library for estimating the musical
3562 key of digital audio.")
3563 (license license:gpl3+)))
3565 (define-public wavpack
3572 (uri (string-append "https://github.com/dbry/WavPack/releases/download/"
3573 version "/wavpack-" version ".tar.xz"))
3575 (base32 "0ycbqarw25x7208jilh86vwwiqklr7f617jps9mllqc659mnmpjb"))))
3576 (build-system gnu-build-system)
3579 (list "--disable-static"
3582 (modify-phases %standard-phases
3584 (lambda* (#:key tests? #:allow-other-keys)
3586 (invoke "./cli/wvtest" "--default" "--short"))
3588 (home-page "https://www.wavpack.com/")
3589 (synopsis "Hybrid lossless audio codec")
3591 "WavPack is an audio compression format with lossless, lossy and hybrid
3592 compression modes. This package contains command-line programs and library to
3593 encode and decode wavpack files.")
3594 (license license:bsd-3)))
3596 (define-public libmodplug
3603 "mirror://sourceforge/modplug-xmms/"
3604 name "/" version "/" name "-" version ".tar.gz"))
3607 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3608 (build-system gnu-build-system)
3609 (home-page "http://modplug-xmms.sourceforge.net/")
3610 (synopsis "Mod file playing library")
3612 "Libmodplug renders mod music files as raw audio data, for playing or
3613 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3614 supported. Optional features include high-quality resampling, bass expansion,
3615 surround and reverb.")
3616 (license license:public-domain)))
3618 (define-public libxmp
3624 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3625 name "-" version ".tar.gz"))
3628 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3629 (build-system gnu-build-system)
3630 (home-page "http://xmp.sourceforge.net/")
3631 (synopsis "Module player library")
3633 "Libxmp is a library that renders module files to PCM data. It supports
3634 over 90 mainstream and obscure module formats including Protracker (MOD),
3635 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3636 (license license:lgpl2.1+)))
3644 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3645 name "-" version ".tar.gz"))
3648 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3649 (build-system gnu-build-system)
3653 (list libxmp pulseaudio))
3654 (home-page "http://xmp.sourceforge.net/")
3655 (synopsis "Extended module player")
3657 "Xmp is a portable module player that plays over 90 mainstream and
3658 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3659 Tracker 3 S3M and Impulse Tracker IT files.")
3660 (license license:gpl2+)))
3662 (define-public soundtouch
3670 (url "https://gitlab.com/soundtouch/soundtouch.git")
3672 (file-name (git-file-name name version))
3674 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3675 (build-system gnu-build-system)
3677 (list autoconf automake libtool file))
3678 (home-page "https://www.surina.net/soundtouch/")
3680 "Audio processing library for changing tempo, pitch and playback rate")
3682 "SoundTouch is an audio processing library for changing the tempo, pitch
3683 and playback rates of audio streams or audio files. It is intended for
3684 application developers writing sound processing tools that require tempo/pitch
3685 control functionality, or just for playing around with the sound effects.")
3686 (license license:lgpl2.1+)))
3694 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3695 name "-" version ".tar.bz2"))
3698 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3699 (build-system gnu-build-system)
3702 ;; The upstream asks to identify the distribution to diagnose SoX
3704 '("--with-distro=Guix System Distribution")))
3718 (home-page "http://sox.sourceforge.net")
3719 (synopsis "Sound processing utility")
3721 "SoX (Sound eXchange) is a command line utility that can convert
3722 various formats of computer audio files to other formats. It can also
3723 apply various effects to these sound files, and, as an added bonus, SoX
3724 can play and record audio files.")
3725 ;; sox.c is distributed under GPL, while the files that make up
3726 ;; libsox are licensed under LGPL.
3727 (license (list license:gpl2+ license:lgpl2.1+))))
3737 (string-append "mirror://sourceforge/soxr/soxr-" version
3740 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3741 (build-system cmake-build-system)
3742 (arguments '(#:tests? #f)) ;no 'check' target
3743 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3744 (synopsis "One-dimensional sample-rate conversion library")
3746 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3747 conversion. It may be used, for example, to resample PCM-encoded audio.")
3748 (license license:lgpl2.1+)))
3750 (define-public twolame
3757 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3758 "/twolame-" version ".tar.gz"))
3760 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3761 (build-system gnu-build-system)
3765 (list perl which)) ;used in tests/test.pl
3766 (home-page "https://www.twolame.org/")
3767 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3769 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3770 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3772 (license license:lgpl2.1+)))
3774 (define-public portaudio
3777 (version "190600.20161030")
3782 "http://www.portaudio.com/archives/pa_stable_v"
3783 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3786 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3787 (patches (search-patches "portaudio-audacity-compat.patch"))))
3788 (build-system gnu-build-system)
3790 ;; TODO: Add ASIHPI.
3791 (list alsa-lib jack-1))
3792 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3795 (list autoconf automake libtool pkg-config))
3797 '(#:tests? #f ;no 'check' target
3798 #:parallel-build? #f ;fails on some systems
3799 #:configure-flags '("--with-pic"
3801 ;; XXX: The following prevents a build error
3802 ;; because of missing depcomp when C++ bindings are
3804 "--disable-dependency-tracking")
3806 (modify-phases %standard-phases
3807 ;; This is needed for linking the static libraries
3808 (add-after 'unpack 'build-only-position-independent-code
3810 (substitute* "configure.in"
3811 (("AC_PROG_LIBTOOL" m)
3812 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3813 (delete-file "configure")
3815 ;; Some headers are not installed by default, but are needed by
3816 ;; packages like Kaldi.
3817 (add-after 'install 'install-missing-headers
3818 (lambda* (#:key outputs #:allow-other-keys)
3819 (install-file "src/common/pa_ringbuffer.h"
3820 (string-append (assoc-ref outputs "out") "/include"))
3822 (home-page "http://www.portaudio.com/")
3823 (synopsis "Audio I/O library")
3825 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3826 to record and/or play sound using a callback function or a blocking read/write
3828 (license license:expat)))
3830 (define-public qsynth
3838 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3839 "/qsynth-" version ".tar.gz")
3840 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3841 "/qsynth-" version ".tar.gz")))
3843 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3844 (build-system gnu-build-system)
3846 `(#:tests? #f)) ; no "check" phase
3848 (list qttools pkg-config))
3850 (list fluidsynth qtbase-5 qtx11extras))
3851 (home-page "https://qsynth.sourceforge.io")
3852 (synopsis "Graphical user interface for FluidSynth")
3854 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3855 synthesizer written in C++.")
3856 (license license:gpl2+)))
3858 (define-public rsound
3866 (url "https://github.com/Themaister/RSound")
3867 (commit (string-append "v" version))))
3868 (file-name (git-file-name name version))
3870 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3871 (build-system gnu-build-system)
3882 (modify-phases %standard-phases
3884 (lambda* (#:key outputs #:allow-other-keys)
3886 (invoke "./configure"
3887 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3888 ;; No 'check' target.
3890 (home-page "https://themaister.net/rsound.html")
3891 (synopsis "Networked audio system")
3893 "RSound allows you to send audio from an application and transfer it
3894 directly to a different computer on your LAN network. It is an audio daemon
3895 with a much different focus than most other audio daemons.")
3896 (license license:gpl3+)))
3898 (define-public xjackfreak
3905 (url "https://github.com/johnhldavis/xjackfreak")
3906 (commit (string-append "v" version))))
3907 (file-name (git-file-name name version))
3910 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3911 (build-system gnu-build-system)
3914 (list (string-append "docdir=" (assoc-ref %outputs "out")
3915 "/share/doc/xjackfreak"))))
3917 (list jack-1 libx11 libxt libxext))
3920 (home-page "https://github.com/johnhldavis/xjackfreak")
3921 (synopsis "JACK audio frequency analyzer and display")
3923 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3924 Connection Kit. It can display the FFT of any input, modify it and output the
3926 (license license:gpl3+)))
3928 (define-public zita-convolver
3930 (name "zita-convolver")
3935 "http://kokkinizita.linuxaudio.org"
3936 "/linuxaudio/downloads/zita-convolver-"
3937 version ".tar.bz2"))
3939 ;; Don't optimize for a specific processor architecture.
3941 (substitute* "source/Makefile"
3942 (("^CXXFLAGS \\+= -march=native") ""))
3944 (modules '((guix build utils)))
3947 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3948 (build-system gnu-build-system)
3950 `(#:tests? #f ; no "check" target
3952 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3953 (string-append "SUFFIX="))
3955 (modify-phases %standard-phases
3956 (add-after 'unpack 'patch-makefile-and-enter-directory
3958 (substitute* "source/Makefile"
3959 (("ldconfig") "true")
3960 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3963 (add-after 'install 'install-symlink
3965 (symlink "libzita-convolver.so"
3966 (string-append (assoc-ref %outputs "out")
3967 "/lib/libzita-convolver.so.4"))
3969 ;; no configure script
3970 (delete 'configure))))
3971 (inputs (list fftwf))
3972 (home-page "https://kokkinizita.linuxaudio.org")
3973 (synopsis "Fast, partitioned convolution engine library")
3975 "Zita convolver is a C++ library providing a real-time convolution
3977 (license license:gpl3+)))
3979 (define-public zita-resampler
3981 (name "zita-resampler")
3986 "http://kokkinizita.linuxaudio.org"
3987 "/linuxaudio/downloads/zita-resampler-"
3988 version ".tar.bz2"))
3990 ;; Don't optimize for a specific processor architecture.
3992 (substitute* '("apps/Makefile" "source/Makefile")
3993 (("^CXXFLAGS \\+= -march=native") ""))
3995 (modules '((guix build utils)))
3998 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3999 (build-system gnu-build-system)
4001 `(#:tests? #f ; no "check" target
4003 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4004 (string-append "SUFFIX="))
4006 (modify-phases %standard-phases
4008 'unpack 'patch-makefile-and-enter-directory
4010 (substitute* "source/Makefile"
4011 (("ldconfig") "true")
4012 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4016 'install 'install-symlink
4018 (symlink "libzita-resampler.so"
4019 (string-append (assoc-ref %outputs "out")
4020 "/lib/libzita-resampler.so.1"))
4022 ;; no configure script
4023 (delete 'configure))))
4024 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
4025 (synopsis "C++ library for resampling audio signals")
4027 "Libzita-resampler is a C++ library for resampling audio signals. It is
4028 designed to be used within a real-time processing context, to be fast, and to
4029 provide high-quality sample rate conversion.")
4030 (license license:gpl3+)))
4032 (define-public zita-alsa-pcmi
4034 (name "zita-alsa-pcmi")
4039 "http://kokkinizita.linuxaudio.org"
4040 "/linuxaudio/downloads/zita-alsa-pcmi-"
4041 version ".tar.bz2"))
4044 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
4045 (build-system gnu-build-system)
4047 `(#:tests? #f ; no "check" target
4049 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4050 (string-append "SUFFIX="))
4052 (modify-phases %standard-phases
4053 (add-after 'unpack 'patch-makefile-and-enter-directory
4055 (substitute* "source/Makefile"
4056 (("ldconfig") "true")
4057 (("^LIBDIR =.*") "LIBDIR = lib\n"))
4060 (add-after 'install 'install-symlink
4062 (symlink "libzita-alsa-pcmi.so"
4063 (string-append (assoc-ref %outputs "out")
4064 "/lib/libzita-alsa-pcmi.so.0"))
4066 ;; no configure script
4067 (delete 'configure))))
4069 (list alsa-lib fftw))
4070 (home-page "https://kokkinizita.linuxaudio.org")
4071 (synopsis "C++ wrapper around the ALSA API")
4073 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
4074 access to ALSA PCM devices, taking care of the many functions required to
4075 open, initialise and use a hw: device in mmap mode, and providing floating
4077 (license license:gpl3+)))
4079 (define-public cuetools
4086 (url "https://github.com/svend/cuetools")
4088 (file-name (git-file-name name version))
4091 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
4092 (build-system gnu-build-system)
4093 ;; The source checkout is not bootstrapped.
4095 (list autoconf automake flex bison))
4096 (synopsis "Cue and toc file parsers and utilities")
4097 (description "Cuetools is a set of programs that are useful for manipulating
4098 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
4099 files are a way to represent the layout of a data or audio CD in a
4100 machine-readable ASCII format.")
4101 (home-page "https://github.com/svend/cuetools")
4102 (license license:gpl2+)))
4104 (define-public mp3guessenc
4106 (name "mp3guessenc")
4111 (uri (string-append "mirror://sourceforge/mp3guessenc/mp3guessenc-"
4112 (version-major+minor version) "/mp3guessenc-"
4115 (base32 "1fa3sbwwn4p2v1749lzy040bfy1xfd574mf2frwgg9ikgk3vlb3c"))))
4116 (build-system gnu-build-system)
4118 `(#:tests? #f ; no tests
4120 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4122 (modify-phases %standard-phases
4123 (delete 'configure)))) ; no configure phase
4124 (home-page "https://mp3guessenc.sourceforge.io")
4125 (synopsis "Analyze MPEG layer I/II/III files")
4126 (description "mp3guessenc is a command line utility that tries to detect the
4127 encoder used for an MPEG Layer III (MP3) file, as well as scan any MPEG audio
4128 file (any layer) and print a lot of useful information.")
4129 (license license:lgpl2.1+)))
4131 (define-public shntool
4138 (string-append "http://etree.org/shnutils/shntool/dist/src/"
4139 "shntool-" version ".tar.gz")
4140 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
4141 version ".orig.tar.gz")))
4144 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
4145 (build-system gnu-build-system)
4146 (synopsis "WAVE audio data processing tool")
4147 (description "shntool is a multi-purpose WAVE data processing and reporting
4148 utility. File formats are abstracted from its core, so it can process any file
4149 that contains WAVE data, compressed or not---provided there exists a format
4150 module to handle that particular file type. It can also generate CUE files, and
4151 use them split WAVE data into multiple files.")
4152 (home-page "http://etree.org/shnutils/shntool/")
4153 ;; 'install-sh' bears the x11 license
4154 (license (list license:gpl2+ license:x11))))
4156 (define-public dcadec
4163 (url "https://github.com/foo86/dcadec")
4164 (commit (string-append "v" version))))
4165 (file-name (git-file-name name version))
4168 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
4169 (build-system gnu-build-system)
4171 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
4174 (list (string-append "CC=" ,(cc-for-target))
4175 ;; Build shared library.
4177 (string-append "PREFIX=" (assoc-ref %outputs "out"))
4178 ;; Set proper runpath.
4179 (string-append "LDFLAGS=-Wl,-rpath="
4180 (assoc-ref %outputs "out")
4183 (modify-phases %standard-phases
4184 ;; No configure script, just a hand-written Makefile.
4185 (delete 'configure))))
4186 (synopsis "DTS Coherent Acoustics decoder")
4187 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
4188 with support for HD extensions.")
4189 (home-page "https://github.com/foo86/dcadec")
4190 (license license:lgpl2.1+)))
4199 (uri (string-append "mirror://sourceforge/drc-fir/drc-fir/"
4200 version "/drc-" version ".tar.gz"))
4203 "08ljj4776pjx119zjmfqa8w56bf7x0m7spmi27yk1m455bmiglrj"))))
4204 (build-system gnu-build-system)
4207 #:tests? #false ;there are none
4209 #~(list (string-append "INSTALL_PREFIX=" #$output)
4212 '(modify-phases %standard-phases
4213 (delete 'configure))))
4214 (inputs (list fftw))
4215 (home-page "http://drc-fir.sourceforge.net/")
4216 (synopsis "Digital room correction")
4218 "DRC is a program used to generate correction filters for acoustic
4219 compensation of HiFi and audio systems in general, including listening room
4220 compensation. DRC generates just the FIR correction filters, which can be
4221 used with a real time or offline convolver to provide real time or offline
4222 correction. DRC doesn't provide convolution features, and provides only some
4223 simplified, although really accurate, measuring tools.")
4224 (license license:gpl2+)))
4226 (define-public bs1770gain
4230 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
4234 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
4235 version "/bs1770gain-" version ".tar.gz"))
4237 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
4238 (modules '((guix build utils)))
4242 (substitute* (find-files "." "\\.[ch]$")
4243 (("^ \\* N..o.*") ""))
4244 (substitute* "libbg/bgx.c"
4245 (("#define BG.* ") "#define BS ")
4246 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
4247 (("\"( #|N).*\"") "\"\""))
4248 (substitute* (list "config.h"
4251 (("https?://bs1770gain[^/]*/")
4254 (build-system gnu-build-system)
4255 (inputs (list ffmpeg sox))
4256 (synopsis "Tool to adjust loudness of media files")
4258 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
4259 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
4260 loudness of audio and video files to the same level.")
4261 (license license:gpl2+)))
4263 (define-public filteraudio
4264 (let ((revision "1")
4265 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
4267 (name "filteraudio")
4268 (version (string-append "0.0.0-" revision "."
4269 (string-take commit 7)))
4274 (url "https://github.com/irungentoo/filter_audio")
4276 (file-name (string-append name "-" version "-checkout"))
4279 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
4280 (build-system gnu-build-system)
4282 `(#:make-flags (list (string-append "PREFIX=" %output)
4283 (string-append "CC=" ,(cc-for-target)))
4284 #:tests? #f ; No tests
4286 (modify-phases %standard-phases
4287 ;; No configure script
4288 (delete 'configure))))
4289 (synopsis "Lightweight audio filtering library")
4290 (description "An easy to use audio filtering library made from webrtc
4291 code, used in @code{libtoxcore}.")
4292 (home-page "https://github.com/irungentoo/filter_audio")
4293 (license license:bsd-3))))
4303 (string-append "http://www.quut.com/" name "/" name
4304 "-" version ".tar.gz"))
4307 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
4308 (build-system gnu-build-system)
4310 `(#:test-target "tst"
4311 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
4313 (modify-phases %standard-phases
4314 (add-after 'unpack 'add-fpic-ccflag
4316 ;; The -fPIC compiler option is needed when building
4318 (substitute* "Makefile"
4320 (string-append all "CCFLAGS += -fPIC\n")))
4322 (add-before 'install 'pre-install
4324 (let ((out (assoc-ref %outputs "out")))
4325 (mkdir-p (string-append out "/inc"))
4326 (mkdir-p (string-append out "/man"))
4327 (mkdir-p (string-append out "/man/man1"))
4328 (mkdir-p (string-append out "/man/man3"))
4329 (mkdir-p (string-append out "/bin"))
4330 (mkdir-p (string-append out "/lib")))
4332 (add-after 'install 'post-install
4334 (let ((out (assoc-ref %outputs "out")))
4335 (rename-file (string-append out "/inc")
4336 (string-append out "/include"))
4337 (mkdir-p (string-append out "/include/gsm"))
4338 (copy-recursively "inc"
4339 (string-append out "/include/gsm")))
4341 (delete 'configure)))) ; no configure script
4342 (synopsis "GSM 06.10 lossy speech compression library")
4343 (description "This C library provides an encoder and a decoder for the GSM
4344 06.10 RPE-LTP lossy speech compression algorithm.")
4345 (home-page "http://quut.com/gsm/")
4346 (license (license:non-copyleft "file://COPYRIGHT"))))
4348 (define-public python-pyalsaaudio
4350 (name "python-pyalsaaudio")
4354 (uri (pypi-uri "pyalsaaudio" version))
4357 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
4358 (build-system python-build-system)
4360 `(#:tests? #f)) ; tests require access to ALSA devices.
4363 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4364 (synopsis "ALSA wrappers for Python")
4366 "This package contains wrappers for accessing the ALSA API from Python.
4367 It is currently fairly complete for PCM devices, and has some support for
4369 (license license:psfl)))
4371 (define-public ldacbt
4377 (uri (string-append "https://github.com/EHfive/ldacBT"
4378 "/releases/download/v" version
4379 "/ldacBT-" version ".tar.gz"))
4382 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4383 (build-system cmake-build-system)
4384 (arguments `(#:tests? #f)) ; no check target
4385 (home-page "https://github.com/EHfive/ldacBT/")
4386 (synopsis "LDAC Bluetooth encoder and ABR library")
4387 (description "This package provides an encoder for the LDAC
4388 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4389 kbps at 24 bit/96 kHz.")
4390 (license license:asl2.0)))
4392 (define-public bluez-alsa
4397 ;; The tarballs are mere snapshots and don't contain a
4398 ;; bootstrapped build system.
4401 (url "https://github.com/Arkq/bluez-alsa")
4402 (commit (string-append "v" version))))
4403 (file-name (git-file-name name version))
4406 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4407 (build-system gnu-build-system)
4410 (list "--enable-ldac"
4411 (string-append "--with-alsaplugindir="
4412 (assoc-ref %outputs "out")
4414 (string-append "--with-dbusconfdir="
4415 (assoc-ref %outputs "out")
4416 "/etc/dbus-1/system.d"))))
4418 (list autoconf automake libtool pkg-config))
4429 (home-page "https://github.com/Arkq/bluez-alsa")
4430 (synopsis "Bluetooth ALSA backend")
4431 (description "This project is a rebirth of a direct integration between
4432 Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed
4433 in favor of 3rd party audio applications. From now on, Bluez acts as a
4434 middleware between an audio application, which implements Bluetooth audio
4435 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4436 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4437 capabilities) can be connected. In order to access the audio stream, one has
4438 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4439 on the ALSA software PCM plugin.")
4440 (license license:expat)))
4448 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4449 "snd-" version ".tar.gz"))
4452 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4453 (build-system glib-or-gtk-build-system)
4455 `(#:tests? #f ; no tests
4456 #:out-of-source? #f ; for the 'install-doc' phase
4458 (let* ((out (assoc-ref %outputs "out"))
4459 (docdir (string-append out "/share/doc/"
4460 ,name "-" ,version)))
4461 (list "--with-alsa" "--with-jack" "--with-gmp"
4462 (string-append "--with-doc-dir=" docdir)))
4464 (modify-phases %standard-phases
4465 (add-after 'install 'install-doc
4466 (lambda* (#:key outputs #:allow-other-keys)
4467 (let* ((out (assoc-ref outputs "out"))
4468 (doc (string-append out "/share/doc/"
4469 ,name "-" ,version)))
4472 (install-file f doc))
4473 (find-files "." "\\.html$"))
4474 (copy-recursively "pix" (string-append doc "/pix"))
4494 (synopsis "Sound editor")
4495 (home-page "https://ccrma.stanford.edu/software/snd/")
4497 "Snd is a sound editor modelled loosely after Emacs. It can be
4498 customized and extended using either the s7 Scheme implementation (included in
4499 the Snd sources), Ruby, or Forth.")
4500 (license (license:non-copyleft "file://COPYING"))))
4502 (define-public noise-repellent
4504 (name "noise-repellent")
4509 (url "https://github.com/lucianodato/noise-repellent")
4511 (file-name (string-append name "-" version "-checkout"))
4514 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4515 (build-system meson-build-system)
4518 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4524 (home-page "https://github.com/lucianodato/noise-repellent")
4525 (synopsis "LV2 plugin for broadband noise reduction")
4526 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4527 the following features:
4530 @item Spectral gating and spectral subtraction suppression rule
4531 @item Adaptive and manual noise thresholds estimation
4532 @item Adjustable noise floor
4533 @item Adjustable offset of thresholds to perform over-subtraction
4534 @item Time smoothing and a masking estimation to reduce artifacts
4535 @item Basic onset detector to avoid transients suppression
4536 @item Whitening of the noise floor to mask artifacts and to recover higher
4538 @item Option to listen to the residual signal
4540 @item Noise profile saved with the session
4543 (license license:lgpl3+)))
4545 (define-public lv2-speech-denoiser
4546 (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f")
4549 (name "lv2-speech-denoiser")
4550 (version (git-version "0" revision commit))
4555 (url "https://github.com/lucianodato/speech-denoiser/")
4557 (file-name (git-file-name name version))
4559 (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4"))))
4560 (build-system meson-build-system)
4562 `(;; Using a "release" build is recommended for performance
4563 #:build-type "release"
4565 (modify-phases %standard-phases
4566 (add-after 'unpack 'patch-meson-build
4568 (substitute* "meson.build"
4569 (("install_folder = 'sdenoise.lv2'")
4570 "install_folder = 'lib/lv2/sdenoise.lv2'")
4571 (("build/manifest.ttl") "../build/manifest.ttl"))
4573 (add-after 'unpack 'build-rnnoise
4575 (with-directory-excursion "rnnoise"
4576 (let ((old-CFLAGS (getenv "CFLAGS")))
4577 (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL")
4578 (setenv "CONFIG_SHELL" (which "bash"))
4579 (invoke "autoreconf" "-vif")
4580 (invoke "sh" "configure"
4581 "--disable-examples"
4586 (setenv "CFLAGS" old-CFLAGS))))))))
4590 (list autoconf automake libtool pkg-config))
4591 (home-page "https://github.com/werman/noise-suppression-for-voice")
4592 (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library")
4593 (description "RNNoise is a library that uses deep learning to apply
4594 noise suppression to audio sources with voice presence. This package provides
4595 an LV2 audio plugin.")
4596 (license license:lgpl3+))))
4598 (define-public cli-visualizer
4600 (name "cli-visualizer")
4606 (url "https://github.com/dpayne/cli-visualizer")
4607 (commit (string-append "v" version))))
4608 (file-name (git-file-name name version))
4610 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4611 (build-system cmake-build-system)
4613 ;; TODO: Try using the latest googletest for versions > 1.8.
4614 (list ;; ("googletest" ,googletest-1.8)
4617 (list fftw ncurses pulseaudio))
4620 ;; XXX Enable tests after patching them to use the system googletest.
4621 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4623 (modify-phases %standard-phases
4624 (add-after 'install 'install-examples
4625 (lambda* (#:key outputs #:allow-other-keys)
4626 (with-directory-excursion "../source/examples"
4627 (delete-file "mac_osx_config")
4628 (for-each (lambda (file)
4631 (assoc-ref outputs "out")
4635 (home-page "https://github.com/dpayne/cli-visualizer/")
4636 (synopsis "Command-line audio visualizer")
4637 (description "@code{cli-visualizer} displays fast-Fourier
4638 transforms (FFTs) of the sound being played, as well as other graphical
4640 (license license:expat)))
4649 (url "https://github.com/karlstav/cava")
4651 (file-name (git-file-name name version))
4654 "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))
4655 (modules '((guix build utils)))
4658 (delete-file-recursively "iniparser")
4659 (substitute* "configure.ac"
4660 (("AC_CONFIG_FILES\\(iniparser/Makefile\\)") ""))
4661 (substitute* "Makefile.am"
4662 (("SUBDIRS = iniparser") ""))))))
4663 (build-system gnu-build-system)
4664 (native-inputs (list autoconf automake libtool))
4665 (inputs (list fftw ncurses pulseaudio iniparser))
4667 (list #:configure-flags
4668 #~(list (string-append "PREFIX="
4670 (string-append "FONT_DIR="
4671 #$output "/share/consolefonts"))
4673 #~(let ((lib (string-append #$output "/lib")))
4674 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt")))
4676 #~(modify-phases %standard-phases
4681 (invoke "sh" "autogen.sh")))
4682 (add-before 'build 'make-cava-ldflags
4684 (mkdir-p (string-append #$output "/lib"))))
4685 (add-after 'install 'data
4687 (for-each (lambda (file)
4689 (string-append #$output
4690 "/share/doc/examples")))
4691 (find-files "example_files")))))))
4692 (home-page "https://karlstav.github.io/cava/")
4693 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4694 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4695 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4696 (license license:expat)))
4698 (define-public fluid-3
4699 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4706 ;; Only one file is required, but the release bundles the whole
4707 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4708 ;; directly links the soundfont release to the github file download.
4709 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4710 commit "/share/sound/FluidR3Mono_GM.sf3"))
4711 (file-name (string-append name "-" version ".sf3"))
4714 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4715 (build-system trivial-build-system)
4717 `(#:modules ((guix build utils))
4720 (use-modules (guix build utils))
4721 (let ((file (assoc-ref %build-inputs "source"))
4722 (out (string-append %output "/share/soundfonts")))
4724 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4726 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4727 (synopsis "Pro-quality GM soundfont")
4728 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4729 (license license:expat))))
4731 (define-public libfdk
4739 (url "https://github.com/mstorsjo/fdk-aac")
4740 (commit (string-append "v" version))))
4741 (file-name (git-file-name name version))
4744 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4745 (build-system gnu-build-system)
4747 (list autoconf automake libtool))
4748 (home-page "https://github.com/mstorsjo/fdk-aac")
4749 (synopsis "Fraunhofer FDK AAC library")
4750 (description "FDK is a library for encoding and decoding Advanced Audio
4751 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4752 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4753 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4754 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4755 library supports sample rates up to 96 kHz and up to eight channels (7.1
4757 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4758 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4760 (define-public libopenshot-audio
4762 (name "libopenshot-audio")
4767 (url "https://github.com/OpenShot/libopenshot-audio")
4768 (commit (string-append "v" version))))
4769 (file-name (git-file-name name version))
4772 "03dygh85riljk7dpn5a5a0d22a2kz45fs13gzwqgnbzzr1k17p2y"))))
4773 (build-system cmake-build-system)
4776 ;; The following are for JUCE GUI components:
4783 `(#:tests? #f ;there are no tests
4785 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4786 (assoc-ref %build-inputs "freetype")
4787 "/include/freetype2"))))
4788 (home-page "https://openshot.org")
4789 (synopsis "Audio editing and playback for OpenShot")
4790 (description "OpenShot Audio Library (libopenshot-audio) allows
4791 high-quality editing and playback of audio, and is based on the JUCE
4793 (license license:lgpl3+)))
4795 (define-public faudio
4803 (url "https://github.com/FNA-XNA/FAudio")
4805 (file-name (git-file-name name version))
4807 (base32 "0l9bicg8v1shsyq9k48zh4wv5kwfs6lfjmm9blzd13xrgmhd07w2"))))
4809 '(#:tests? #f ; No tests.
4810 #:configure-flags '("-DGSTREAMER=ON")))
4811 (build-system cmake-build-system)
4812 (native-inputs (list pkg-config))
4813 (inputs (list gstreamer gst-plugins-base sdl2))
4814 (home-page "https://github.com/FNA-XNA/FAudio")
4815 (synopsis "XAudio reimplementation")
4816 (description "FAudio is an XAudio reimplementation that focuses solely on
4817 developing fully accurate DirectX Audio runtime libraries.")
4820 ;; stb & utils/{ui,wav}common are dual-licenced under either of:
4822 license:public-domain))))
4824 (define-public gnaural
4827 (version "20110606")
4831 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4835 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4836 (build-system gnu-build-system)
4838 (list alsa-lib gtk+-2 libsndfile portaudio))
4841 (home-page "http://gnaural.sourceforge.net/")
4842 (synopsis "Binaural beat synthesizer")
4843 (description "Gnaural is a programmable auditory binaural beat synthesizer
4844 intended to be used for brainwave entrainment. Gnaural supports creation of
4845 binaural beat tracks of different frequencies and exporting of tracks into
4846 different audio formats. Gnaural can also be linked over the internet with
4847 other Gnaural instances, allowing synchronous sessions between many users.")
4848 (license license:gpl2+)))
4850 (define-public darkice
4856 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4857 "download/v" version "/darkice-"
4861 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4862 (build-system gnu-build-system)
4863 (native-inputs (list pkg-config))
4874 (list (string-append "--with-lame-prefix="
4875 (assoc-ref %build-inputs "lame")))))
4876 (home-page "http://www.darkice.org/")
4877 (synopsis "Live audio streamer")
4878 (description "DarkIce is a live audio streamer. It takes audio input from
4879 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4880 stream to one or more IceCast and/or ShoutCast servers.")
4881 (license license:gpl3+)))
4883 (define-public libltc
4891 (string-append "https://github.com/x42/libltc/releases/download/v"
4892 version "/libltc-" version ".tar.gz"))
4895 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4896 (build-system gnu-build-system)
4898 `(#:parallel-tests? #f)) ;tests fail otherwise
4900 (list doxygen pkg-config))
4901 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4902 (description "Libltc is a POSIX-C Library for handling
4903 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4904 (home-page "https://x42.github.io/libltc/")
4905 (license license:lgpl3+)))
4907 (define-public ttaenc
4914 (uri (string-append "mirror://sourceforge/tta/"
4916 "/ttaenc-" version "-src.tgz"))
4919 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4920 (build-system gnu-build-system)
4922 `(#:tests? #f ;no tests
4924 (list (string-append "CC=" ,(cc-for-target))
4925 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4927 (modify-phases %standard-phases
4928 (delete 'configure) ; no configure
4929 (add-before 'install 'make-bindir
4930 (lambda* (#:key outputs #:allow-other-keys)
4931 (let* ((out (assoc-ref outputs "out")))
4932 (mkdir-p (string-append out "/bin"))
4934 (synopsis "TTA lossless audio encoder")
4936 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4937 data of the Wav audio files. Being lossless means that no data-
4938 quality is lost in the compression - when uncompressed, the data will
4939 be identical to the original. The compression ratios of TTA depend on
4940 the type of music file being compressed, but the compression size
4941 will generally range between 30% - 70% of the original. TTA format
4942 supports both of ID3v1/v2 and APEv2 tags.")
4943 (home-page "http://tausoft.org/")
4944 (license license:gpl2+)))
4946 (define-public libsoundio
4954 (url "https://github.com/andrewrk/libsoundio")
4956 (file-name (git-file-name name version))
4959 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
4960 (build-system cmake-build-system)
4962 `(#:tests? #f)) ;no tests included
4964 (list alsa-lib jack-1 pulseaudio))
4967 (home-page "http://libsound.io")
4968 (synopsis "C library for real-time audio input and output")
4969 (description "@code{libsoundio} is a C library providing audio input and
4970 output. The API is suitable for real-time software such as digital audio
4971 workstations as well as consumer software such as music players.")
4972 (license license:expat)))
4974 (define-public redkite
4977 (version "1.3.1") ;marked unmaintained as of Oct. 2021
4982 (url "https://github.com/free-sm/redkite")
4983 (commit (string-append "v" version))))
4984 (file-name (git-file-name name version))
4986 (base32 "1zb2k2a4m7z2ravqrjn8fq8lic20wbr2m8kja3p3113jsk7j9zvd"))))
4987 (build-system cmake-build-system)
4989 `(#:tests? #f)) ;no tests included
4994 (synopsis "Small GUI toolkit")
4995 (description "Redkite is a small GUI toolkit developed in C++17 and
4996 inspired from other well known GUI toolkits such as Qt and GTK. It is
4997 minimal on purpose and is intended to be statically linked to applications,
4998 therefore satisfying any requirements they may have to be self contained,
4999 as is the case with audio plugins.")
5000 (home-page "https://gitlab.com/geontime/redkite")
5001 (license license:gpl3+)))
5003 (define-public carla
5012 (url "https://github.com/falkTX/Carla")
5013 (commit (string-append "v" version))))
5014 (file-name (git-file-name name version))
5016 (base32 "01ngkmfcxyg1bb4qmfvlkkjbx4lx62akxqhizl8zmqnhfcy4p9bx"))))
5017 (build-system gnu-build-system)
5019 (list #:tests? #f ; no "check" target
5021 #~(list (string-append "PREFIX=" #$output))
5023 #~(modify-phases %standard-phases
5024 (delete 'configure) ; no configure script
5025 (add-before 'build 'set-CC-variable-and-show-features
5027 (setenv "CC" #$(cc-for-target))
5028 (invoke "make" "features")))
5029 (add-after 'install 'make-carla-executable
5031 (chmod (string-append #$output "/share/carla/carla") #o555)))
5032 (add-after 'install 'wrap-executables
5033 (lambda* (#:key inputs #:allow-other-keys)
5034 (wrap-script (string-append #$output "/bin/carla")
5035 #:guile (search-input-file inputs "bin/guile")
5036 `("GUIX_PYTHONPATH" ":" prefix
5037 (,(getenv "GUIX_PYTHONPATH")))))))))
5046 gtk+-2 ;needed for bridging GTK2 plugins in GTK3 hosts
5051 ;; python-pyqt shows the following error without python-wrapper:
5052 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
5053 ;; (ModuleNotFoundError: No module named 'PyQt5')
5058 ;; For WRAP-SCRIPT above.
5062 (home-page "https://kx.studio/Applications:Carla")
5063 (synopsis "Audio plugin host")
5064 (description "Carla is a modular audio plugin host, with features like
5065 transport control, automation of parameters via MIDI CC and remote control
5066 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
5067 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
5068 default and preferred audio driver but also supports native drivers like ALSA.")
5069 (license license:gpl2+)))
5071 (define-public ecasound
5077 (uri (string-append "https://nosignal.fi/download/ecasound-"
5080 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
5081 (build-system gnu-build-system)
5082 (native-inputs (list pkg-config))
5083 ;; It would be nice to add mikmod to inputs if that gets packaged
5085 (inputs (list alsa-lib
5098 (home-page "https://nosignal.fi/ecasound/index.php")
5099 (synopsis "Multitrack audio processing")
5100 (description "Ecasound is a software package designed for multitrack audio
5101 processing. It can be used for simple tasks like audio playback, recording and
5102 format conversions, as well as for multitrack effect processing, mixing,
5103 recording and signal recycling. Ecasound supports a wide range of audio inputs,
5104 outputs and effect algorithms. Effects and audio objects can be combined in
5105 various ways, and their parameters can be controlled by operator objects like
5106 oscillators and MIDI-CCs. A versatile console mode user-interface is included
5108 ;; As an exception to the above, the C, C++ and python implementations
5109 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
5110 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
5111 ;; that are not licensed under GPL.
5112 (license (list license:gpl2 license:lgpl2.1))))
5114 (define-public libaudec
5122 (url "https://git.zrythm.org/zrythm/libaudec")
5123 (commit (string-append "v" version))))
5124 (file-name (git-file-name name version))
5127 "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz"))))
5128 (build-system meson-build-system)
5134 (list libsamplerate libsndfile))
5137 (synopsis "Library for reading and resampling audio files")
5138 (description "libaudec is a wrapper library over ffmpeg, sndfile and
5139 libsamplerate for reading and resampling audio files, based on Robin Gareus'
5140 @code{audio_decoder} code.")
5141 (home-page "https://git.zrythm.org/zrythm/libaudec")
5142 (license license:agpl3+)))
5144 (define-public lv2lint
5152 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
5154 (file-name (git-file-name name version))
5157 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
5158 (build-system meson-build-system)
5161 `("-Delf-tests=true" ; for checking symbol visibility
5162 "-Donline-tests=true"))) ; for checking URI existence
5164 (list curl libelf lilv))
5167 (synopsis "LV2 plugin lint tool")
5168 (description "lv2lint is an LV2 lint-like tool that checks whether a
5169 given plugin and its UI(s) match up with the provided metadata and adhere
5170 to well-known best practices.")
5171 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
5172 (license license:artistic2.0)))
5174 (define-public lv2toweb
5182 (url "https://github.com/x42/lv2toweb")
5183 (commit (string-append "v" version))))
5184 (file-name (git-file-name name version))
5187 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
5188 (build-system gnu-build-system)
5190 `(#:tests? #f ; no "check" target
5191 #:make-flags (list "CC=gcc"
5192 (string-append "PREFIX=" (assoc-ref %outputs "out")))
5194 (modify-phases %standard-phases
5195 (delete 'configure))))
5199 (list help2man pkg-config))
5200 (synopsis "Documentation generator for LV2 plugins")
5202 "lv2toweb allows the user to create an xhtml page with information
5203 about the given LV2 plugin, provided that the plugin and its UI(s) match up
5204 with the provided metadata and adhere to well-known best practices.")
5205 (home-page "https://github.com/x42/lv2toweb")
5206 (license (list license:isc license:gpl2))))
5208 (define-public ztoolkit
5216 (url "https://git.zrythm.org/zrythm/ztoolkit")
5217 (commit (string-append "v" version))))
5218 (file-name (git-file-name name version))
5221 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
5222 (build-system meson-build-system)
5225 ;; These are listed as propagated inputs because they are dependencies
5228 (list cairo libx11))
5229 (synopsis "GUI toolkit for LV2 plugins")
5230 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
5231 inspired by GTK. It handles events and low level drawing on behalf of
5232 the user and provides a high-level API for managing the UI and custom
5233 widgets. ZToolkit is written in C and was created to be used for building
5234 audio plugin UIs, where the dependencies often need to be kept to a
5236 (home-page "https://git.zrythm.org/zrythm/ztoolkit")
5237 (license license:agpl3+)))
5239 (define-public libinstpatch
5241 (name "libinstpatch")
5247 (url "https://github.com/swami/libinstpatch")
5248 (commit (string-append "v" version))))
5249 (file-name (git-file-name name version))
5251 (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir"))))
5252 (build-system cmake-build-system)
5254 `(#:tests? #f)) ;there are no tests
5256 `(("glib:bin" ,glib "bin")
5257 ("pkg-config" ,pkg-config)))
5259 (list glib libsndfile))
5260 (home-page "http://www.swamiproject.org/")
5261 (synopsis "Instrument file software library")
5263 "libInstPatch is a library for processing digital sample based MIDI
5264 instrument \"patch\" files. The types of files libInstPatch supports are used
5265 for creating instrument sounds for wavetable synthesis. libInstPatch provides
5266 an object framework (based on GObject) to load patch files, which can then be
5267 edited, converted, compressed and saved.")
5268 (license license:lgpl2.1)))
5270 (define-public ztoolkit-rsvg
5271 (package/inherit ztoolkit
5272 (name "ztoolkit-rsvg")
5274 `(#:configure-flags `("-Denable_rsvg=true")))
5276 `(("librsvg" ,librsvg)
5277 ,@(package-propagated-inputs ztoolkit)))
5278 (synopsis "ZToolkit with SVG support")))
5280 (define-public lsp-dsp-lib
5282 (name "lsp-dsp-lib")
5287 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
5288 "releases/download/" version
5289 "/lsp-dsp-lib-" version "-src.tar.gz"))
5291 (base32 "1gcznkyybywbgdi2fhx27i8sckhy6ahvxax72b213g1lr5aaw7bq"))))
5292 (build-system gnu-build-system)
5294 (list #:tests? #f ; no tests
5296 #~(list (string-append "CC=" #$(cc-for-target)))
5298 #~(modify-phases %standard-phases
5299 (add-after 'unpack 'omit-static-library
5301 (substitute* "src/Makefile"
5302 ((".*cp \\$\\(ARTIFACT_SLIB\\).*") "") ; don't install it
5303 ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it
5306 (invoke "make" "config"
5307 (string-append "PREFIX=" #$output)))))))
5308 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
5309 (synopsis "Digital signal processing library")
5310 (description "The LSP DSP library provides a set of functions that perform
5311 SIMD-optimized computing on several hardware architectures. All functions
5312 currently operate on IEEE-754 single-precision floating-point numbers.")
5313 (license license:lgpl3+)))
5315 (define-public codec2
5323 (url "https://github.com/drowe67/codec2")
5324 (commit (string-append "v" version))))
5325 (file-name (git-file-name name version))
5327 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
5328 (build-system cmake-build-system)
5330 (list bc octave valgrind))
5332 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
5334 (modify-phases %standard-phases
5335 (add-before 'check 'set-test-environment
5337 (setenv "HOME" "/tmp")
5339 (synopsis "Speech codec")
5341 "Codec 2 is a speech codec designed for communications quality speech
5342 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
5344 (home-page "https://www.rowetel.com/?page_id=452")
5345 (license license:lgpl2.1)))
5347 (define-public mbelib
5348 ;; No release since 2016, use commit directly.
5349 (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f")
5353 (version (git-version "1.3.0" revision commit))
5358 (url "https://github.com/szechyjs/mbelib")
5360 (file-name (git-file-name name version))
5362 (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h"))))
5363 (build-system cmake-build-system)
5364 (home-page "https://github.com/szechyjs/mbelib")
5365 (synopsis "P25 Phase 1 and ProVoice vocoder")
5367 "The mbelib library provides support for the 7200x4400 bit/s codec used
5368 in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half
5369 Rate} 3600x2250 bit/s vocoder used in various radio systems.")
5370 (license (list license:bsd-3 ; test/ framework
5371 license:isc))))) ; the rest
5373 (define-public ableton-link
5375 (name "ableton-link")
5380 (url "https://github.com/Ableton/link")
5381 (commit (string-append "Link-" version))))
5382 (file-name (git-file-name name version))
5385 "1wplqj11ww64gmw2kzlxpvfs3v04m2036f7k5ndm34zcv12b91fa"))
5386 (modules '((guix build utils)))
5388 (search-patches "ableton-link-system-libraries-debian.patch"))
5391 ;; Tests assume that CMake's "build" directory is a
5392 ;; sub-directory of the source tree, so we fix it.
5393 (substitute* "ci/run-tests.py"
5394 (("root_dir,") "root_dir, os.pardir,"))
5395 ;; Unbundle dependencies.
5396 (delete-file-recursively "third_party")
5397 (delete-file-recursively "modules")))))
5398 (build-system cmake-build-system)
5400 (list catch-framework
5401 python ;for running tests
5402 portaudio ;for portaudio examples
5403 qtbase-5 ;for Qt examples
5407 (list jack-1 ;for JACK examples
5408 qtquickcontrols)) ;for Qt examples
5410 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
5411 ;; contains '#include <asio.hpp>'.
5415 '("-DLINK_BUILD_QT_EXAMPLES=ON"
5416 "-DLINK_BUILD_JACK=ON")
5418 (modify-phases %standard-phases
5420 (lambda* (#:key inputs tests? #:allow-other-keys)
5422 (let* ((python (search-input-file inputs "/bin/python3"))
5423 (run-tests "../source/ci/run-tests.py"))
5424 (invoke python run-tests "--target" "LinkCoreTest")
5425 (invoke python run-tests "--target" "LinkDiscoveryTest")))))
5426 (add-before 'install 'patch-cmake
5427 (lambda* (#:key inputs #:allow-other-keys)
5428 (let* ((source "../source/"))
5429 (substitute* (string-append source
5430 "cmake_include/AsioStandaloneConfig.cmake")
5431 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5432 "modules/asio-standalone/asio/include"))
5433 (string-append (assoc-ref inputs "asio")
5435 (substitute* (string-append source "AbletonLinkConfig.cmake")
5436 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5437 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5438 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5439 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp")))))
5441 (lambda* (#:key outputs #:allow-other-keys)
5442 (let* ((out (assoc-ref outputs "out"))
5443 (bin (string-append out "/bin"))
5444 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5445 (source "../source"))
5446 (for-each (lambda (test-file)
5447 (delete-file test-file))
5448 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5449 (copy-recursively "bin" bin)
5450 (copy-recursively (string-append source "/include/ableton")
5451 (string-append out "/include/ableton"))
5452 (install-file (string-append source "/AbletonLinkConfig.cmake")
5454 (install-file (string-append source
5455 "/cmake_include/AsioStandaloneConfig.cmake")
5456 (string-append lib-cmake "/cmake_include"))))))))
5457 (home-page "https://github.com/Ableton/link")
5458 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5460 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5461 across multiple applications running on one or more devices. Applications on devices
5462 connected to a local network discover each other automatically and form a musical
5463 session in which each participant can perform independently: anyone can start or stop
5464 while still staying in time.")
5465 (license license:gpl2+)))
5473 (uri (string-append "mirror://sourceforge/butt/butt/butt-"
5474 version "/butt-" version ".tar.gz"))
5477 "0zd1g1673pv8z437y34fllxska8dzpd7mygpham35pzwpdyc5c1p"))
5478 (modules '((guix build utils)))
5480 '(substitute* "src/butt.cpp"
5481 ((".*zica.*") "")))))
5482 (build-system gnu-build-system)
5485 #~(modify-phases %standard-phases
5486 (add-after 'install 'install-documentation
5488 (let ((doc (string-append #$output "/share/doc/" #$name)))
5489 (install-file "README" doc)
5490 (copy-file #$(this-package-native-input "manual")
5491 (string-append doc "/butt-manual.pdf"))))))))
5493 `(("pkg-config" ,pkg-config)
5497 (uri (string-append "https://danielnoethen.de/butt/butt-"
5498 version "_manual.pdf"))
5500 (base32 "0kadqzzbk25n0aqxgbqhg4mq4hsbjq44phzcx5qj1b8847yzz8si"))))))
5518 (home-page "https://danielnoethen.de/butt/")
5519 (synopsis "Audio streaming tool")
5520 (description "Butt is a tool to stream audio to a ShoutCast or
5522 (license license:gpl2+)))
5524 (define-public siggen
5532 (url "https://github.com/bleskodev/siggen")
5533 (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210")))
5534 (file-name (git-file-name name version))
5537 "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb"))))
5538 (build-system gnu-build-system)
5540 `(#:make-flags (list (string-append "INSDIR=" %output "/bin")
5541 (string-append "MANDIR=" %output "/share/man"))
5542 #:tests? #f ; no tests
5544 (modify-phases %standard-phases
5545 ;; Patch misc.c to prevent a segfault.
5546 (add-after 'unpack 'patch-segfault
5548 (substitute* "misc.c"
5549 (("#include <stdio.h>\n" all)
5550 (string-append all "#include <string.h>\n")))))
5553 (lambda* (#:key make-flags outputs #:allow-other-keys)
5554 (let ((out (assoc-ref outputs "out")))
5555 (for-each (lambda (dir)
5556 (mkdir-p (string-append out dir)))
5557 (list "/bin" "/share/man/man1" "/share/man/man5"))
5558 (apply invoke "make" "sysinstall" make-flags)))))))
5562 `(("groff" ,groff-minimal) ; for nroff
5563 ("util-linux" ,util-linux))) ; for col
5564 (home-page "https://github.com/bleskodev/siggen")
5565 (synopsis "Signal generation tools")
5566 (description "siggen is a set of tools for imitating a laboratory signal
5567 generator, generating audio signals out of Linux's /dev/dsp audio
5568 device. There is support for mono and/or stereo and 8 or 16 bit samples.")
5569 (license license:gpl2)))
5571 (define-public python-pysox
5572 ;; PyPi does not include the data folder containing audio files for testing.
5573 (let ((commit "3d0053381c24ae3490f759d4de87194b85789d36")
5576 (name "python-pysox")
5577 (version (git-version "1.4.2" revision commit))
5582 (url "https://github.com/rabitt/pysox")
5584 (file-name (git-file-name name version))
5587 "0i62jx92vfpcr2z7lp69yzqdi9idfs3pifl3rzm2akc2c4cr1mac"))))
5588 (build-system python-build-system)
5591 (modify-phases %standard-phases
5592 (add-after 'unpack 'patch-sox
5593 (lambda* (#:key inputs #:allow-other-keys)
5594 (let* ((sox-store-path (assoc-ref inputs "sox"))
5595 (sox-bin (string-append sox-store-path "/bin/sox")))
5596 (substitute* "sox/__init__.py"
5598 (string-append sox-bin " -h")))
5599 (substitute* "sox/core.py"
5601 (string-append "['" sox-bin))))))
5603 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5605 (add-installed-pythonpath inputs outputs)
5606 (invoke "pytest")))))))
5608 (list python-numpy python-typing-extensions))
5610 (list sox python-pytest python-pytest-cov python-soundfile))
5611 (home-page "https://github.com/rabitt/pysox")
5612 (synopsis "Python wrapper around SoX")
5613 (description "@code{python-pysox} is a wrapper around the @command{sox}
5614 command line tool. The API offers @code{Transformer} and @code{Combiner}
5615 classes that allow the user to incrementally build up effects and audio
5616 manipulations. @code{python-pysox} also provides methods for querying audio
5617 information such as sample rate, determining whether an audio file is silent,
5619 (license license:bsd-3))))
5621 (define-public python-resampy
5623 (name "python-resampy")
5630 ;; PyPi does not include tests.
5631 (url "https://github.com/bmcfee/resampy")
5633 (file-name (git-file-name name version))
5635 (base32 "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs"))))
5636 (build-system python-build-system)
5639 (modify-phases %standard-phases
5641 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5643 (add-installed-pythonpath inputs outputs)
5644 (invoke "pytest" "tests")))))))
5646 (list python-numba python-numpy python-scipy python-six))
5648 (list python-pytest python-pytest-cov))
5649 (home-page "https://github.com/bmcfee/resampy")
5650 (synopsis "Efficient signal resampling")
5652 "@code{python-resampy} implements the band-limited sinc interpolation
5653 method for sampling rate conversion as described by Julius O. Smith at the
5654 @url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling
5656 (license license:isc)))
5658 (define-public python-librosa
5660 (name "python-librosa")
5665 (uri (pypi-uri "librosa" version))
5667 (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5"))))
5668 (build-system python-build-system)
5670 ;; Tests require internet connection to download MATLAB scripts for
5671 ;; generating the testing data.
5674 (list python-audioread
5685 (home-page "https://librosa.org")
5686 (synopsis "Python module for audio and music processing")
5688 "@code{librosa} is a python package for music and audio analysis. It
5689 provides the building blocks necessary to create music information retrieval
5691 (license license:isc)))
5693 (define-public mda-lv2
5700 (uri (string-append "http://download.drobilla.net/mda-lv2-"
5701 version ".tar.bz2"))
5703 (base32 "1nspk2j11l65m5r9z5isw8j749vh9a89wgx8mkrrq15f4iq12rnd"))))
5704 (build-system waf-build-system)
5706 `(#:tests? #f ; There are no tests.
5708 (list (string-append "--prefix="
5709 (assoc-ref %outputs "out")))))
5714 (native-search-paths
5715 (list (search-path-specification
5716 (variable "LV2_PATH")
5717 (files '("lib/lv2")))))
5718 (home-page "https://drobilla.net/software/mda-lv2")
5719 (synopsis "Audio plug-in pack for LV2")
5721 "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few
5722 instrument plugins.")
5723 (license license:gpl3+)))
5725 (define-public libodiosacd
5727 (name "libodiosacd")
5732 (url "https://github.com/tari01/libodiosacd")
5734 (file-name (git-file-name name version))
5737 "0iamf7wksbql0qfigdv5ahaax53ms2yligdav8dw6x0ay88x4lhi"))))
5738 (build-system gnu-build-system)
5740 `(#:tests? #f ; no check target
5742 (modify-phases %standard-phases
5743 (add-after 'unpack 'patch-makefile
5745 (substitute* "Makefile"
5746 (("\\$\\(DESTDIR\\)/usr")
5748 (delete 'configure)) ; no configure script
5750 (list (string-append "DESTDIR=" %output))))
5751 (synopsis "Library for decoding Super Audio CDs (SACD)")
5753 "The Odio SACD shared library is a decoding engine which takes a Super
5754 Audio CD source and extracts a 24-bit high resolution WAV file. It handles
5755 both DST and DSD streams.")
5756 (home-page "https://tari.in/www/software/libodiosacd/")
5757 (license license:gpl3+)))
5759 (define-public odio-sacd
5766 (url "https://github.com/tari01/odio-sacd")
5768 (file-name (git-file-name name version))
5771 "0314srqk0r4qv292qiaply619l2fw04nkdwvqhj3q1dqzv41g4qk"))))
5772 (inputs (list libodiosacd))
5773 ;; Build system and arguments for libodiosacd are identical.
5774 (build-system (package-build-system libodiosacd))
5775 (arguments (package-arguments libodiosacd))
5776 (synopsis "Rip Super Audio CDs (SACD)")
5778 "Odio SACD is a command-line application which takes a Super Audio CD
5779 source and extracts a 24-bit high resolution WAV file. It handles both DST
5781 (home-page "https://tari.in/www/software/odio-sacd/")
5782 (license license:gpl3+)))
5784 (define-public qpwgraph
5791 (url "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5792 (commit (string-append "v" version))))
5793 (file-name (git-file-name name version))
5796 "1zja4klvzbfwi14ihiahl8zm869h0c1yrpfkzvixxjcps372hh07"))))
5797 (build-system cmake-build-system)
5799 `(#:tests? #f)) ;; no tests
5800 (inputs (list alsa-lib
5802 ;; qtsvg is still on version 5; use qtbase-5 to match
5805 (native-inputs (list pkg-config))
5806 (synopsis "PipeWire graph manager")
5808 "qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++
5809 framework. It provides a visual interface to audio and video connections
5810 managed by PipeWire.")
5811 (home-page "https://gitlab.freedesktop.org/rncbc/qpwgraph")
5812 (license license:gpl2)))