projects/guix·blob java-team · refs

8729 lines · 330.6 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015-2026 Ricardo Wurmus <[email protected]>
3;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <[email protected]>
4;;; Copyright © 2015, 2025 Andreas Enge <[email protected]>
5;;; Copyright © 2015 Alex Kost <[email protected]>
6;;; Copyright © 2015, 2016 Mark H Weaver <[email protected]>
7;;; Copyright © 2016-2022, 2024 Efraim Flashner <[email protected]>
8;;; Copyright © 2016, 2017 Alex Griffin <[email protected]>
9;;; Copyright © 2016 Nikita <[email protected]>
10;;; Copyright © 2016 Lukas Gradl <[email protected]>
11;;; Copyright © 2016–2023 Tobias Geerinckx-Rice <[email protected]>
12;;; Copyright © 2018, 2020, 2024 Oleg Pykhalov <[email protected]>
13;;; Copyright © 2018 okapi <[email protected]>
14;;; Copyright © 2018, 2020, 2022-2026 Maxim Cournoyer <[email protected]>
15;;; Copyright © 2018 Clément Lassieur <[email protected]>
16;;; Copyright © 2018 Brett Gilio <[email protected]>
17;;; Copyright © 2018, 2019, 2022 Marius Bakke <[email protected]>
18;;; Copyright © 2018, 2021 Thorsten Wilms <[email protected]>
19;;; Copyright © 2018 Eric Bavier <[email protected]>
20;;; Copyright © 2018, 2022, 2023, 2024 Brendan Tildesley <[email protected]>
21;;; Copyright © 2019, 2021 Pierre Langlois <[email protected]>
22;;; Copyright © 2019, 2021 Leo Famulari <[email protected]>
23;;; Copyright © 2019 Rutger Helling <[email protected]>
24;;; Copyright © 2019, 2021 Arun Isaac <[email protected]>
25;;; Copyright © 2019 Mathieu Othacehe <[email protected]>
26;;; Copyright © 2019, 2020 Alexandros Theodotou <[email protected]>
27;;; Copyright © 2019 Christine Lemmer-Webber <[email protected]>
28;;; Copyright © 2019 Jan Wielkiewicz <[email protected]>
29;;; Copyright © 2019 Hartmt Goebel <[email protected]>
30;;; Copyright © 2019, 2021, 2025 Nicolas Goaziou <[email protected]>
31;;; Copyright © 2020 Vincent Legoll <[email protected]>
32;;; Copyright © 2020, 2021 Guillaume Le Vaillant <[email protected]>
33;;; Copyright © 2020 Jonathan Frederickson <[email protected]>
34;;; Copyright © 2020, 2024 Giacomo Leidi <[email protected]>
35;;; Copyright © 2020, 2021, 2023 Vinicius Monego <[email protected]>
36;;; Copyright © 2020 Michael Rohleder <[email protected]>
37;;; Copyright © 2021 jgart <[email protected]>
38;;; Copyright © 2021 Aleksandr Vityazev <[email protected]>
39;;; Copyright © 2022 Arjan Adriaanse <[email protected]>
40;;; Copyright © 2022, 2023 Juliana Sims <[email protected]>
41;;; Copyright © 2022, 2023 Simon Streit <[email protected]>
42;;; Copyright © 2022 Andy Tai <[email protected]>
43;;; Copyright © 2023 Sergiu Ivanov <[email protected]>
44;;; Copyright © 2023 David Thompson <[email protected]>
45;;; Copyright © 2023, 2025-2026 Sharlatan Hellseher <[email protected]>
46;;; Copyright © 2023 Gabriel Wicki <[email protected]>
47;;; Copyright © 2023 Zheng Junjie <[email protected]>
48;;; Copyright © 2023 Parnikkapore <[email protected]>
49;;; Copyright © 2024 hapster <[email protected]>
50;;; Copyright © 2024 mio <[email protected]>
51;;; Copyright © 2024 Nikita Domnitskii <[email protected]>
52;;; Copyright © 2024 Roman Scherer <[email protected]>
53;;; Copyright © 2024 Sughosha <[email protected]>
54;;; Copyright © 2025, 2026 Junker <[email protected]>
55;;; Copyright © 2025 Sughosha <[email protected]>
56;;; Copyright © 2025 Andrew Wong <[email protected]>
57;;; Copyright © 2025 Kjartan Oli Agustsson <[email protected]>
58;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
59;;; Copyright © 2025 Antoine Côté <[email protected]>
60;;; Copyright © 2025 Isidor Zeuner <[email protected]>
61;;; Copyright © 2025 Evgenii Klimov <[email protected]>
62;;; Copyright © 2026 Luis Guilherme Coelho <[email protected]>
63;;; Copyright © 2026 Noé Lopez <[email protected]>
64;;; Copyright © 2026 Carlos Durán Domínguez <[email protected]>
65;;; Copyright © 2026 Daniel Martins <[email protected]>
66;;; Copyright © 2026 Artyom V. Poptsov <[email protected]>
67;;; Copyright © 2026 Evgeny Pisemsky <[email protected]>
68;;; Copyright © 2026 Konstantin Suntsov <[email protected]>
69;;;
70;;; This file is part of GNU Guix.
71;;;
72;;; GNU Guix is free software; you can redistribute it and/or modify it
73;;; under the terms of the GNU General Public License as published by
74;;; the Free Software Foundation; either version 3 of the License, or (at
75;;; your option) any later version.
76;;;
77;;; GNU Guix is distributed in the hope that it will be useful, but
78;;; WITHOUT ANY WARRANTY; without even the implied warranty of
79;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
80;;; GNU General Public License for more details.
81;;;
82;;; You should have received a copy of the GNU General Public License
83;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
84
85(define-module (gnu packages audio)
86 #:use-module (gnu packages)
87 #:use-module (gnu packages algebra)
88 #:use-module (gnu packages autotools)
89 #:use-module (gnu packages backup)
90 #:use-module (gnu packages base)
91 #:use-module (gnu packages bash)
92 #:use-module (gnu packages bison)
93 #:use-module (gnu packages boost)
94 #:use-module (gnu packages build-tools)
95 #:use-module (gnu packages check)
96 #:use-module (gnu packages cdrom)
97 #:use-module (gnu packages cmake)
98 #:use-module (gnu packages compression)
99 #:use-module (gnu packages cpp)
100 #:use-module (gnu packages crypto)
101 #:use-module (gnu packages curl)
102 #:use-module (gnu packages dbm)
103 #:use-module (gnu packages dns)
104 #:use-module (gnu packages documentation)
105 #:use-module (gnu packages elf)
106 #:use-module (gnu packages emacs)
107 #:use-module (gnu packages file)
108 #:use-module (gnu packages compiler-tools)
109 #:use-module (gnu packages fltk)
110 #:use-module (gnu packages fontutils)
111 #:use-module (gnu packages freedesktop)
112 #:use-module (gnu packages gcc)
113 #:use-module (gnu packages gettext)
114 #:use-module (gnu packages gl)
115 #:use-module (gnu packages glib)
116 #:use-module (gnu packages gnome)
117 #:use-module (gnu packages gnunet) ; libmicrohttpd
118 #:use-module (gnu packages gperf)
119 #:use-module (gnu packages graphviz)
120 #:use-module (gnu packages groff)
121 #:use-module (gnu packages gstreamer)
122 #:use-module (gnu packages gtk)
123 #:use-module (gnu packages guile)
124 #:use-module (gnu packages icu4c)
125 #:use-module (gnu packages image)
126 #:use-module (gnu packages libbsd)
127 #:use-module (gnu packages libffi)
128 #:use-module (gnu packages libusb)
129 #:use-module (gnu packages linphone)
130 #:use-module (gnu packages linux)
131 #:use-module (gnu packages llvm)
132 #:use-module (gnu packages logging)
133 #:use-module (gnu packages machine-learning)
134 #:use-module (gnu packages man)
135 #:use-module (gnu packages maths)
136 #:use-module (gnu packages mp3) ;taglib
137 #:use-module (gnu packages multiprecision)
138 #:use-module (gnu packages music)
139 #:use-module (gnu packages ncurses)
140 #:use-module (gnu packages networking)
141 #:use-module (gnu packages onc-rpc)
142 #:use-module (gnu packages oneapi)
143 #:use-module (gnu packages perl)
144 #:use-module (gnu packages pkg-config)
145 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
146 #:use-module (gnu packages pretty-print)
147 #:use-module (gnu packages python)
148 #:use-module (gnu packages python-build)
149 #:use-module (gnu packages python-check)
150 #:use-module (gnu packages python-crypto)
151 #:use-module (gnu packages python-science)
152 #:use-module (gnu packages python-web)
153 #:use-module (gnu packages python-xyz)
154 #:use-module (gnu packages qt)
155 #:use-module (gnu packages rdf)
156 #:use-module (gnu packages readline)
157 #:use-module (gnu packages ruby)
158 #:use-module (gnu packages samba)
159 #:use-module (gnu packages sdl)
160 #:use-module (gnu packages serialization)
161 #:use-module (gnu packages sphinx)
162 #:use-module (gnu packages sqlite)
163 #:use-module (gnu packages telephony)
164 #:use-module (gnu packages tex)
165 #:use-module (gnu packages tls)
166 #:use-module (gnu packages toolkits)
167 #:use-module (gnu packages valgrind)
168 #:use-module (gnu packages version-control)
169 #:use-module (gnu packages video)
170 #:use-module (gnu packages vim) ;xxd
171 #:use-module (gnu packages web)
172 #:use-module (gnu packages webkit)
173 #:use-module (gnu packages wine)
174 #:use-module (gnu packages wxwidgets)
175 #:use-module (gnu packages xdisorg)
176 #:use-module (gnu packages xiph)
177 #:use-module (gnu packages xml)
178 #:use-module (gnu packages xorg)
179 #:use-module (guix build-system cargo)
180 #:use-module (guix build-system cmake)
181 #:use-module (guix build-system copy)
182 #:use-module (guix build-system glib-or-gtk)
183 #:use-module (guix build-system gnu)
184 #:use-module (guix build-system meson)
185 #:use-module (guix build-system pyproject)
186 #:use-module (guix build-system qt)
187 #:use-module (guix build-system trivial)
188 #:use-module (guix build-system waf)
189 #:use-module (guix download)
190 #:use-module (guix gexp)
191 #:use-module (guix git-download)
192 #:use-module ((guix licenses) #:prefix license:)
193 #:use-module (guix packages)
194 #:use-module (guix utils)
195 #:use-module (srfi srfi-1)
196 #:use-module (srfi srfi-26)
197 #:use-module (ice-9 match))
198
199(define-public adplug
200 (package
201 (name "adplug")
202 (version "2.4")
203 (source (origin
204 (method git-fetch)
205 (uri (git-reference
206 (url "https://github.com/adplug/adplug")
207 (commit (string-append "adplug-" version))))
208 (file-name (git-file-name name version))
209 (sha256
210 (base32
211 "0l31ya42g3q7ry2m0y5djgjb9ax8ciy8jn86252vdjkjswwqgscd"))))
212 (build-system cmake-build-system)
213 (arguments
214 (list #:configure-flags
215 #~(list "-DBUILD_SHARED_LIBS=ON")
216 #:modules
217 '((guix build cmake-build-system)
218 (guix build utils)
219 (srfi srfi-26)) ;for cute
220 #:phases
221 #~(modify-phases %standard-phases
222 (add-after 'install 'install-headers
223 (lambda _
224 (for-each (cute install-file <>
225 (string-append #$output "/include/adplug"))
226 (find-files "../source/src" "\\.h$")))))))
227 (propagated-inputs
228 (list libbinio))
229 (home-page "https://adplug.github.io/")
230 (synopsis "AdLib sound player library")
231 (description
232 "AdPlug is a hardware independent AdLib sound player library, mainly
233written in C++. AdPlug plays sound data, originally created for the AdLib
234(OPL2/3) audio board, on top of an OPL2/3 emulator or by using the real
235hardware. No OPL2/3 chips are required for playback.")
236 (license license:lgpl2.1+)))
237
238(define-public opensles
239 (package
240 (name "opensles")
241 (version "1.1.0")
242 (source
243 (origin
244 (method git-fetch)
245 (uri
246 (git-reference
247 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry")
248 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
249 (file-name (git-file-name name version))
250 (sha256
251 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
252 (patches
253 (search-patches "opensles-add-license-file.patch"))))
254 (build-system copy-build-system)
255 (arguments
256 `(#:phases
257 (modify-phases %standard-phases
258 (add-after 'install 'clean
259 (lambda* (#:key outputs #:allow-other-keys)
260 (let* ((out (assoc-ref outputs "out")))
261 (mkdir-p (string-append out "/etc"))
262 (mkdir-p (string-append out "/include"))
263 (mkdir-p (string-append out "/share"))
264 (rename-file
265 (string-append out "/api/1.1/OpenSLES_IID.c")
266 (string-append out "/etc/OpenSLES_IID.c"))
267 (rename-file
268 (string-append out "/api/1.1/OpenSLES.h")
269 (string-append out "/include/OpenSLES.h"))
270 (rename-file
271 (string-append out "/api/1.1/OpenSLES_Platform.h")
272 (string-append out "/include/OpenSLES_Platform.h"))
273 (rename-file
274 (string-append out "/api/1.1/README.txt")
275 (string-append out "/share/README.txt"))
276 (rename-file
277 (string-append out "/LICENSE.txt")
278 (string-append out "/share/LICENSE.txt"))
279 (for-each delete-file-recursively
280 (list
281 (string-append out "/api")
282 (string-append out "/specs")))
283 (for-each delete-file
284 (list
285 (string-append out "/CODE_OF_CONDUCT.md")
286 (string-append out "/index.php")
287 (string-append out "/README.md"))))
288 #t)))))
289 (synopsis "Embedded Audio Acceleration")
290 (description "OpenSLES is a royalty-free, cross-platform,
291hardware-accelerated audio API tuned for embedded systems. It provides a
292standardized, high-performance, low-latency method to access audio
293functionality for developers of native applications on embedded mobile
294multimedia devices, enabling straightforward cross-platform deployment of
295hardware and software audio capabilities, reducing implementation effort, and
296promoting the market for advanced audio.")
297 (home-page "https://www.khronos.org/opensles/")
298 (license (license:non-copyleft "file:///LICENSE.txt"))))
299
300(define-public python-sounddevice
301 (package
302 (name "python-sounddevice")
303 (version "0.5.3")
304 (source
305 (origin
306 (method url-fetch)
307 (uri (pypi-uri "sounddevice" version))
308 (sha256
309 (base32 "0b4vcaj79sy9aqsrgcszkp35x2fc0i4pqzk96d2viflg35h2pb6b"))))
310 (build-system pyproject-build-system)
311 (arguments
312 (list #:tests? #false ; no tests
313 #:phases
314 #~(modify-phases %standard-phases
315 (add-after 'patch-generated-file-shebangs 'add-path-to-portaudio
316 (lambda* (#:key inputs #:allow-other-keys)
317 (substitute* "sounddevice.py"
318 (("_find_library\\(_libname\\)")
319 (string-append "\""
320 (search-input-file inputs
321 "/lib/libportaudio.so.2")
322 "\""))))))))
323 (inputs (list portaudio))
324 (propagated-inputs (list python-cffi python-numpy))
325 (native-inputs (list python-setuptools))
326 (home-page "https://python-sounddevice.readthedocs.io/")
327 (synopsis "Play and record sound with Python")
328 (description "This Python module provides bindings for the PortAudio
329library and a few convenience functions to play and record NumPy arrays
330containing audio signals.")
331 (license license:expat)))
332
333(define-public wildmidi
334 (package
335 (name "wildmidi")
336 (version "0.4.6")
337 (source
338 (origin
339 (method git-fetch)
340 (uri
341 (git-reference
342 (url "https://github.com/Mindwerks/wildmidi")
343 (commit (string-append name "-" version))))
344 (file-name (git-file-name name version))
345 (sha256
346 (base32 "0cc8vg2alyzakmm132vljx228arisqcnfqh8xyjnnczr5vryqa5k"))))
347 (build-system cmake-build-system)
348 (arguments
349 `(#:tests? #f ; No target
350 #:configure-flags
351 (list
352 "-DWANT_ALSA=ON"
353 "-DWANT_OSS=ON"
354 "-DWANT_OPENAL=ON")))
355 (inputs
356 `(("alsa" ,alsa-lib)
357 ("openal" ,openal)))
358 (synopsis "Software Synthesizer")
359 (description "WildMIDI is a simple software midi player which has a core
360softsynth library that can be used with other applications.")
361 (home-page "https://www.mindwerks.net/projects/wildmidi/")
362 (license
363 (list
364 ;; Library.
365 license:lgpl3+
366 ;; Player.
367 license:gpl3+))))
368
369(define-public alsa-midi-latency-test
370 (let ((version "0.0.5")
371 (revision "0")
372 (commit "07e43f8a1e6fd6d3bd97a00f2ee5afb74cb66f95"))
373 (package
374 (name "alsa-midi-latency-test")
375 (version (git-version version revision commit))
376 (source
377 (origin
378 (method git-fetch)
379 (uri (git-reference
380 (url "https://github.com/koppi/alsa-midi-latency-test")
381 (commit commit)))
382 (file-name (git-file-name name version))
383 (sha256
384 (base32 "0b3xd4z7zx6mmh6q2q7wnyd0hzikny2cikwzhaab3q86b551vb9n"))))
385 (build-system gnu-build-system)
386 (arguments
387 (list
388 #:tests? #f ;there are no tests
389 #:phases #~(modify-phases %standard-phases
390 (replace 'bootstrap
391 (lambda _
392 (invoke "sh" "./autogen.sh"))))))
393 (native-inputs (list automake autoconf libtool))
394 (inputs (list alsa-lib))
395 (synopsis "Measure the roundtrip time of MIDI messages")
396 (description
397 "@code{alsa-midi-latency-test} measures the roundtrip time of a MIDI
398message in the alsa subsystem of the Linux kernel using a high precision timer.
399It calculates the worst case roundtrip time of all sent MIDI messages and
400displays a histogram of the roundtrip time jitter.")
401 (home-page "https://github.com/koppi/alsa-midi-latency-test")
402 (license license:gpl2+))))
403
404(define-public webrtc-audio-processing
405 (package
406 (name "webrtc-audio-processing")
407 (version "2.1")
408 (source
409 (origin
410 (method url-fetch)
411 (uri
412 (string-append "http://freedesktop.org/software/pulseaudio/"
413 name "/" name "-" version ".tar.gz"))
414 (sha256
415 (base32 "0lrjzhshwj1rkh4fxh7sq2dkkfimlyjs2ha7s3ribsh2dnc6ps1m"))
416 (patches (search-patches "webrtc-audio-processing-abseil-cpp.patch"
417 "webrtc-audio-processing-gcc-14.patch"))))
418 (build-system meson-build-system)
419 (arguments
420 (list #:configure-flags (if (target-x86-32?)
421 #~(list "-Dinline-sse=false")
422 #~'())))
423 (native-inputs (list pkg-config))
424 (inputs (list abseil-cpp))
425 (synopsis "WebRTC's Audio Processing Library")
426 (description "WebRTC-Audio-Processing library based on Google's
427implementation of WebRTC.")
428 (home-page
429 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
430 (license (license:non-copyleft "file:///COPYING"))))
431
432;; webrtc-audio-processing doesn't a have stable API, so we need to multiple
433;; versions of it.
434(define-public webrtc-audio-processing-0.3
435 (package
436 (inherit webrtc-audio-processing)
437 (version "0.3.1")
438 (source
439 (origin
440 (method url-fetch)
441 (uri
442 (string-append "http://freedesktop.org/software/pulseaudio/"
443 "webrtc-audio-processing/webrtc-audio-processing-"
444 version ".tar.xz"))
445 (sha256
446 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))
447 (patches (search-patches "webrtc-audio-processing-big-endian.patch"))))
448 (build-system gnu-build-system)
449 (arguments
450 (if (or (target-riscv64?)
451 (target-powerpc?))
452 (list
453 #:phases
454 #~(modify-phases %standard-phases
455 (add-after 'unpack 'patch-source
456 (lambda* (#:key inputs #:allow-other-keys)
457 (substitute* "webrtc/typedefs.h"
458 (("defined\\(__aarch64__\\)" all)
459 (string-append
460 ;; powerpc-linux
461 "(defined(__PPC__) && __SIZEOF_SIZE_T__ == 4)\n"
462 "#define WEBRTC_ARCH_32_BITS\n"
463 "#define WEBRTC_ARCH_BIG_ENDIAN\n"
464 ;; powerpc64-linux
465 "#elif (defined(__PPC64__) && defined(_BIG_ENDIAN))\n"
466 "#define WEBRTC_ARCH_64_BITS\n"
467 "#define WEBRTC_ARCH_BIG_ENDIAN\n"
468 ;; aarch64-linux
469 "#elif " all
470 ;; riscv64-linux
471 " || (defined(__riscv) && __riscv_xlen == 64)"
472 ;; powerpc64le-linux
473 " || (defined(__PPC64__) && defined(_LITTLE_ENDIAN))")))))))
474 '()))
475 (native-inputs (list pkg-config))))
476
477(define-public vo-aacenc
478 (package
479 (name "vo-aacenc")
480 (version "0.1.3")
481 (source
482 (origin
483 (method url-fetch)
484 (uri
485 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
486 name "/" name "-" version ".tar.gz"))
487 (sha256
488 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
489 (build-system gnu-build-system)
490 (synopsis "VisualOn AAC Encoder")
491 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
492Coding (AAC) encoder.")
493 (home-page "https://sourceforge.net/projects/opencore-amr/")
494 (license license:asl2.0)))
495
496(define-public tinyalsa
497 (package
498 (name "tinyalsa")
499 (version "2.0.0")
500 (source
501 (origin
502 (method git-fetch)
503 (uri
504 (git-reference
505 (url "https://github.com/tinyalsa/tinyalsa")
506 (commit (string-append "v" version))))
507 (file-name (git-file-name name version))
508 (sha256
509 (base32 "1p9khz3bdpdcrnc9p6w522a0ankdchj4nxd3ki41z9401rxmnljq"))))
510 (build-system gnu-build-system)
511 (arguments
512 `(#:tests? #f ; No target
513 #:phases
514 (modify-phases %standard-phases
515 (delete 'configure))
516 #:make-flags
517 (list
518 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
519 (synopsis "ALSA interfacing library")
520 (description "TinyALSA is a small library to interface with ALSA in the
521Linux kernel.")
522 (home-page "https://github.com/tinyalsa/tinyalsa")
523 (license (license:non-copyleft "file:///NOTICE"))))
524
525(define-public fmsynth-lv2
526 (let ((commit "b989b5c0efd46b312ce4edd89808d34dc5135bb4")
527 (revision "0"))
528 (package
529 (name "fmsynth-lv2")
530 (version (git-version "0.0.0" revision commit))
531 (source (origin
532 (method git-fetch)
533 (uri (git-reference
534 (url "https://github.com/Themaister/libfmsynth")
535 (commit commit)))
536 (file-name (git-file-name name version))
537 (sha256
538 (base32
539 "0nck4ih0rxyr8b2vw6m119lybfnmzmas859m784i73ind3rcy44k"))))
540 (properties '((tunable? . #true)))
541 (build-system gnu-build-system)
542 (arguments
543 (list
544 #:tests? #false ;no check target
545 #:make-flags
546 #~(list "CC=gcc"
547 (string-append "INSTALL_DIR=" #$output "/lib/lv2"))
548 #:phases
549 #~(modify-phases %standard-phases
550 (add-after 'unpack 'do-not-tune
551 (lambda _
552 (substitute* "GNUmakefile"
553 (("-march=native") ""))))
554 (add-after 'do-not-tune 'chdir
555 (lambda _ (chdir "lv2")))
556 (add-before 'install 'make-target-directory
557 (lambda _
558 (mkdir-p (string-append #$output "/lib/lv2"))))
559 (delete 'configure))))
560 (inputs (list gtkmm-2 lv2 lvtk))
561 (native-inputs (list pkg-config))
562 (home-page "https://github.com/Themaister/libfmsynth")
563 (synopsis "Frequency modulation synthesizer plugin")
564 (description
565 "fmsynth is an LV2 plugin which implements an @dfn{FM} (Frequency
566Modulation) synthesizer. Unlike most FM synth implementations in software,
567this FM synthesizer does not aim to emulate or replicate a particular
568synth (like DX7) or FM chip.")
569 (license license:expat))))
570
571(define-public libgme
572 (package
573 (name "libgme")
574 (version "0.6.5")
575 (source
576 (origin
577 (method git-fetch)
578 (uri
579 (git-reference
580 (url "https://github.com/libgme/game-music-emu")
581 (commit version)))
582 (file-name (git-file-name name version))
583 (sha256
584 (base32 "093pz3avnj6a230bqbwwzqlzcjxnxidfxipnn7zirwp3h396szff"))))
585 (build-system cmake-build-system)
586 (arguments
587 '(#:tests? #f ;no check target
588
589 ;; XXX: Building with '-fsanitize=undefined' leads to embedded C++ STL
590 ;; header file names in libgme.so, meaning that libgme retains a
591 ;; reference to GCC. Disable UBSAN to avoid that.
592 #:configure-flags '("-DENABLE_UBSAN=OFF")))
593 (home-page "https://github.com/libgme/game-music-emu/wiki")
594 (synopsis "Video game music file playback library")
595 (description
596 "Game-music-emu is a collection of video game music file emulators that
597support the following formats and systems:
598@table @code
599@item AY
600ZX Spectrum/Asmtrad CPC
601@item GBS
602Nintendo Game Boy
603@item GYM
604Sega Genesis/Mega Drive
605@item HES
606NEC TurboGrafx-16/PC Engine
607@item KSS
608MSX Home Computer/other Z80 systems (doesn't support FM sound)
609@item NSF/NSFE
610Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
611@item SAP
612Atari systems using POKEY sound chip
613@item SPC
614Super Nintendo/Super Famicom
615@item VGM/VGZ
616Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
617@end table")
618 (license (list license:lgpl2.1+
619 ;; demo and player directories are under the Expat license
620 license:expat))))
621
622(define-public libopenmpt
623 (package
624 (name "libopenmpt")
625 (version "0.7.12")
626 (source
627 (origin
628 (method url-fetch)
629 (uri
630 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
631 "libopenmpt-" version "+release.autotools.tar.gz"))
632 (sha256
633 (base32 "160cbvbzv8wc9jlclfbxycr31h40dh14z56cnljya096czikravr"))))
634 (build-system gnu-build-system)
635 (arguments
636 `(#:configure-flags
637 (list (string-append "--docdir=" (assoc-ref %outputs "out")
638 "/share/doc/" ,name "-" ,version))
639 #:phases
640 (modify-phases %standard-phases
641 (add-after 'install 'delete-static-libraries
642 (lambda* (#:key outputs #:allow-other-keys)
643 (let* ((out (assoc-ref outputs "out"))
644 (lib (string-append out "/lib")))
645 (for-each delete-file (find-files lib "\\.a$"))
646 #t))))))
647 (native-inputs
648 (list doxygen perl pkg-config))
649 (inputs
650 `(("alsa" ,alsa-lib)
651 ("flac" ,flac)
652 ("portaudio" ,portaudio)
653 ("pulseaudio" ,pulseaudio)
654 ("sdl2" ,sdl2)
655 ("sndfile" ,libsndfile)))
656 (propagated-inputs
657 ;; In Requires.private
658 (list libogg libvorbis libmpg123 zlib))
659 (synopsis "Audio tracking library")
660 (description "LibOpenMPT is a cross-platform C++ and C module playback
661library. It is based on the player code of the Open ModPlug Tracker project.")
662 (home-page "https://openmpt.org/")
663 (license (license:non-copyleft "file:///LICENSE"))))
664
665(define-public libofa
666 (package
667 (name "libofa")
668 (version "0.9.3")
669 (source
670 (origin
671 (method url-fetch)
672 (uri
673 (string-append "https://storage.googleapis.com/"
674 "google-code-archive-downloads/v2/code.google.com/"
675 "musicip-libofa/" name "-" version ".tar.gz"))
676 (sha256
677 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
678 (patches
679 (search-patches
680 "libofa-ftbfs-1.diff"
681 "libofa-curl.diff"
682 "libofa-ftbfs-2.diff"))))
683 (build-system gnu-build-system)
684 (native-inputs
685 (list pkg-config))
686 (inputs
687 (list curl expat))
688 (propagated-inputs
689 (list fftw))
690 (synopsis "Open Fingerprint Architecture")
691 (description "LibOFA is an audio fingerprint library, created and provided
692by MusicIP.")
693 (home-page "https://code.google.com/archive/p/musicip-libofa/")
694 (license license:gpl2+)))
695
696(define-public libtimidity
697 (package
698 (name "libtimidity")
699 (version "0.2.7")
700 (source
701 (origin
702 (method url-fetch)
703 (uri
704 (string-append "https://sourceforge.net/projects/" name "/files/"
705 name "/" version "/" name "-" version ".tar.gz"))
706 (sha256
707 (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16"))))
708 (build-system gnu-build-system)
709 (arguments
710 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
711 (native-inputs
712 (list pkg-config))
713 (inputs
714 (list ao))
715 (synopsis "MIDI to WAVE converter library")
716 (description "LibTiMidity is a MIDI to WAVE converter library that uses
717Gravis Ultrasound-compatible patch files to generate digital audio data from
718General MIDI files.")
719 (home-page "https://libtimidity.sourceforge.net/")
720 (license
721 ;; This project is dual-licensed.
722 ;; Either of the following licenses can be exercised.
723 (list
724 license:lgpl2.1+
725 license:artistic2.0))))
726
727(define-public vo-amrwbenc
728 (package
729 (name "vo-amrwbenc")
730 (version "0.1.3")
731 (source
732 (origin
733 (method url-fetch)
734 (uri
735 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
736 name "/" name "-" version ".tar.gz"))
737 (sha256
738 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
739 (build-system gnu-build-system)
740 (synopsis "Adaptive Multi Rate Codec")
741 (description "VO-AMR is a library of VisualOn implementation of
742Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
743 (home-page "https://sourceforge.net/projects/opencore-amr/")
744 (license license:asl2.0)))
745
746(define-public opencore-amr
747 (package
748 (name "opencore-amr")
749 (version "0.1.5")
750 (source
751 (origin
752 (method url-fetch)
753 (uri
754 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
755 name "/" name "-" version ".tar.gz"))
756 (sha256
757 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
758 (build-system gnu-build-system)
759 (synopsis "Adaptive Multi Rate Codec")
760 (description "OpenCore-AMR is a library of OpenCORE Framework
761implementation of Adaptive Multi Rate Narrowband and Wideband
762(AMR-NB and AMR-WB) speech codec.")
763 (home-page "https://sourceforge.net/projects/opencore-amr/")
764 (license license:asl2.0)))
765
766(define-public alsa-modular-synth
767 (package
768 (name "alsa-modular-synth")
769 (version "2.2.1")
770 (source (origin
771 (method url-fetch)
772 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
773 "/" version "/ams-" version ".tar.bz2"))
774 (sha256
775 (base32
776 "0l8lwa4wfw98fgidzwkmg0zzq60djrpfg6znzrpfxhr9x23149ps"))))
777 (build-system gnu-build-system)
778 (inputs
779 (list alsa-lib
780 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
781 ;; license incompatibility.
782 clalsadrv
783 fftw
784 jack-1
785 ladspa
786 liblo
787 qtbase-5))
788 (native-inputs
789 (list pkg-config qttools-5))
790 (home-page "https://alsamodular.sourceforge.net/")
791 (synopsis "Realtime modular synthesizer and effect processor")
792 (description
793 "AlsaModularSynth is a digital implementation of a classical analog
794modular synthesizer system. It uses virtual control voltages to control the
795parameters of the modules. The control voltages which control the frequency
796e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
797Filter) modules follow the convention of 1V / Octave.")
798 (license license:gpl2)))
799
800(define-public aubio
801 (package
802 (name "aubio")
803 (version "0.4.9")
804 (source (origin
805 (method url-fetch)
806 (uri (string-append
807 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
808 (sha256
809 (base32
810 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))
811 (patches (search-patches "aubio-waflib-python312-compat.patch"))))
812 (build-system waf-build-system)
813 (arguments
814 (list
815 #:tests? #f ; no check target
816 #:configure-flags
817 #~(list
818 (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
819 "--enable-fftw3f"
820 "--enable-jack"
821 "--enable-sndfile"
822 "--enable-samplerate"
823 "--enable-avcodec")
824 #:phases
825 '(modify-phases %standard-phases
826 (add-after 'unpack 'python3.11-compatibility
827 (lambda _
828 (substitute* '("waflib/Context.py"
829 "waflib/ConfigSet.py")
830 (("'rU'") "'r'")))))))
831 (inputs
832 (list jack-2
833 libsndfile
834 libsamplerate
835 ffmpeg-4 ;for libavcodec
836 fftwf))
837 (native-inputs
838 (list pkg-config))
839 (home-page "https://aubio.org/")
840 (synopsis "Library for audio labelling")
841 (description
842 "aubio is a tool designed for the extraction of annotations from audio
843signals. Its features include segmenting a sound file before each of its
844attacks, performing pitch detection, tapping the beat and producing MIDI
845streams from live audio.")
846 (license license:gpl3+)))
847
848(define-public dexed
849 (package
850 (name "dexed")
851 (version "1.0.1")
852 (source (origin
853 (method git-fetch)
854 (uri (git-reference
855 (url "https://github.com/asb2m10/dexed")
856 (commit (string-append "v" version))
857 ;; This is a JUCE project and so it bundles a particular
858 ;; version of the JUCE repository and the sources of
859 ;; other libraries.
860 (recursive? #true)))
861 (file-name (git-file-name name version))
862 (sha256
863 (base32
864 "1n604cvkjs11wqnaxnqzx8fgjj1klz85fnka15nnmhz49lqdlipl"))))
865 (build-system cmake-build-system)
866 (arguments
867 (list
868 #:tests? #false ;there are none
869 #:modules '((guix build utils)
870 (guix build cmake-build-system)
871 (guix base32)
872 (ice-9 string-fun)
873 (ice-9 regex)
874 (rnrs bytevectors))
875 #:imported-modules `((guix base32)
876 (guix build cmake-build-system)
877 ,@%default-gnu-imported-modules)
878 #:configure-flags
879 ;; We extract the build identifer from the output prefix. This is more
880 ;; useful than setting it to a constant string.
881 #~(let ((build-id
882 (lambda (out)
883 (let* ((nix-store (string-append
884 (or (getenv "NIX_STORE") "/gnu/store")
885 "/"))
886 (filename
887 (string-replace-substring out nix-store ""))
888 (hash (match:substring (string-match "[0-9a-z]{32}"
889 filename)))
890 (bv (nix-base32-string->bytevector hash)))
891 (format #f "0x~x"
892 (bytevector-u32-ref bv 0 (endianness big)))))))
893 (list (string-append "-DBUILD_ID=" (build-id #$output))))
894 #:phases
895 #~(modify-phases %standard-phases
896 ;; HOME must be defined for .vst3
897 (add-after 'unpack 'set-home-directory
898 (lambda _ (setenv "HOME" "HOME")))
899 (add-after 'unpack 'patch-libraries
900 (lambda* (#:key inputs #:allow-other-keys)
901 (substitute* "libs/JUCE/modules/juce_gui_basics/native/juce_XSymbols_linux.h"
902 (("libX11.so.6")
903 (search-input-file inputs "/lib/libX11.so.6"))
904 (("libXext.so.6")
905 (search-input-file inputs "/lib/libXext.so.6"))
906 (("libXcursor.so.1")
907 (search-input-file inputs "/lib/libXcursor.so.1"))
908 (("libXinerama.so.1")
909 (search-input-file inputs "/lib/libXinerama.so.1"))
910 (("libXrender.so.1")
911 (search-input-file inputs "/lib/libXrender.so.1"))
912 (("libXrandr.so.2")
913 (search-input-file inputs "/lib/libXrandr.so.2")))))
914 (add-after 'unpack 'enable-lv2-format
915 (lambda _
916 (substitute* "Source/CMakeLists.txt"
917 (("set\\(DEXED_JUCE_FORMATS Standalone\\).*" m)
918 (string-append m "
919if(NOT DEXED_SKIP_LV2)
920 list(APPEND DEXED_JUCE_FORMATS LV2)
921endif()
922"))
923 (("PRODUCT_NAME \"Dexed\".*" m)
924 (string-append m "
925LV2URI \"https://github.com/asb2m10/dexed\"
926")))))
927 (replace 'install
928 (lambda* (#:key build-type #:allow-other-keys)
929 (with-directory-excursion "Source/Dexed_artefacts"
930 (install-file (string-append build-type "/Standalone/Dexed")
931 (string-append #$output "/bin"))
932 (mkdir-p (string-append #$output:clap "/lib"))
933 (copy-recursively (string-append build-type "/CLAP")
934 (string-append #$output:clap "/lib"))
935 (mkdir-p (string-append #$output:lv2 "/lib"))
936 (copy-recursively (string-append build-type "/LV2")
937 (string-append #$output:lv2 "/lib"))
938 (mkdir-p (string-append #$output:vst3 "/lib"))
939 (copy-recursively (string-append build-type "/VST3")
940 (string-append #$output:vst3 "/lib"))))))))
941 (inputs
942 (list alsa-lib
943 freetype
944 gtk+
945 jack-2
946 libx11
947 libxcursor
948 libxext
949 libxinerama
950 libxrandr
951 libxrender
952 lv2
953 mesa))
954 (native-inputs
955 (list pkg-config))
956 (outputs '("out" "lv2" "clap" "vst3"))
957 (home-page "https://asb2m10.github.io/dexed/")
958 (synopsis "Frequency modulation (FM) plugin synthesizer")
959 (description
960 "Dexed is a multi-platform, multi-format plugin synthesizer. The sound
961engine is closely modeled on the original Yamaha DX7 characteristics. Dexed
962is also a MIDI cartridge librarian/manager for the DX7. Features include:
963
964@enumerate
965@item 144 DAW automatable DX7 parameters available from one single panel;
966@item It fully supports DX7 input and output Sysex messages; including
967 controller change. This means that you can use this with a native DX7/TX7 as
968 a patch editor and sysex manager.
969@item Every FM operator has a realtime VU meter to know which one is active.
970@item It can load/save any DX7/TX7 sysex programs. It is also possible to
971 save a single program into a different sysex file.
972@end enumerate
973
974Dexed can be configured to use some of the original math limitation of a DX
975synthesizer. This does not only apply to the DAC, it also involves the bit
976resolution of the sine waves and the way that the amplitude is applied to each
977operator. Dexed comes with three engine types:
978
979@enumerate
980@item Modern: this is the original 24-bit implementation.
981@item Mark I: Based on the OPL Series but at a higher resolution (LUT are
982 10-bits). The target of this engine is to be closest to the real DX7.
983@item OPL Series: this is an experimental 8-bit implementation of the reversed
984 engineered OPL family chips.
985@end enumerate
986")
987 (license license:gpl3+)))
988
989(define-public dsp
990 (package
991 (name "dsp")
992 (version "2.0")
993 (source (origin
994 (method git-fetch)
995 (uri (git-reference
996 (url "https://github.com/bmc0/dsp")
997 (commit (string-append "v" version))))
998 (file-name (git-file-name name version))
999 (sha256
1000 (base32
1001 "1kzjv972qbvzh7nml3brrdf6qmjmcapldbikbn2gxhpmkgxzhhar"))))
1002 (build-system gnu-build-system)
1003 (arguments
1004 (list
1005 #:tests? #false ;no tests
1006 #:make-flags
1007 #~(list (string-append "CC=" #$(cc-for-target)))
1008 #:phases
1009 #~(modify-phases %standard-phases
1010 (replace 'configure
1011 (lambda _
1012 (invoke "sh" "configure"
1013 (string-append "--prefix=" #$output)
1014 "--disable-pulse"))))))
1015 (inputs
1016 (list alsa-lib
1017 ao
1018 ffmpeg
1019 ladspa
1020 libmad
1021 libsndfile
1022 fftw
1023 fftwf
1024 zita-convolver))
1025 (native-inputs
1026 (list libtool pkg-config))
1027 (home-page "https://github.com/bmc0/dsp")
1028 (synopsis "Audio processing program with an interactive mode")
1029 (description
1030 "dsp is an audio processing program with an interactive mode.")
1031 (license license:isc)))
1032
1033(define-public qm-dsp
1034 (package
1035 (name "qm-dsp")
1036 (version "1.7.1")
1037 (source (origin
1038 (method git-fetch)
1039 (uri (git-reference
1040 (url "https://github.com/c4dm/qm-dsp")
1041 (commit (string-append "v" version))))
1042 (file-name (git-file-name name version))
1043 (sha256
1044 (base32
1045 "1vkb1xr2hjcaw88gig7rknlwsx01lm0w94d2z0rk5vz9ih4fslvv"))))
1046 (build-system gnu-build-system)
1047 (arguments
1048 (list
1049 #:make-flags
1050 #~(list #$(string-append "-f" "build/"
1051 (match (or (%current-target-system)
1052 (%current-system))
1053 ("x86_64-linux" "linux/Makefile.linux64")
1054 ("i686-linux" "linux/Makefile.linux32")
1055 (target
1056 (if (string-suffix? "-mingw32" target)
1057 "mingw32/Makefile.mingw32"
1058 "general/Makefile.inc"))))
1059 (string-append "CC=" #$(cc-for-target)))
1060 #:phases
1061 #~(modify-phases %standard-phases
1062 (delete 'configure) ;no configure script
1063 (replace 'install
1064 (lambda* (#:key outputs #:allow-other-keys)
1065 (let* ((lib (string-append #$output "/lib"))
1066 (include (string-append #$output "/include")))
1067 (install-file "libqm-dsp.a" lib)
1068 (mkdir-p include)
1069 (for-each (lambda (file)
1070 (unless (or (string-prefix? "./build" file)
1071 (string-prefix? "./include" file))
1072 (install-file file (string-append include "/"
1073 (dirname file)))))
1074 (find-files "." "\\.h$"))))))
1075 #:test-target "tests"))
1076 (home-page "https://code.soundsoftware.ac.uk/projects/qm-dsp")
1077 (synopsis "C++ library of functions for DSP and Music Informatics purposes")
1078 (description
1079 "QM-DSP is a C++ library of functions for DSP and Music Informatics
1080purposes developed at Queen Mary, University of London.")
1081 (license license:gpl2+)))
1082
1083(define-public jamesdsp
1084 (let ((commit "53cf0989681ba38755208c8aec063f29ed8586d3")
1085 (revision "0"))
1086 (package
1087 (name "jamesdsp")
1088 (version (git-version "2.7.0" revision commit))
1089 (source
1090 (origin
1091 (method git-fetch)
1092 (uri
1093 (git-reference
1094 (url "https://github.com/Audio4Linux/JDSP4Linux")
1095 (commit commit)
1096 ;; Recurse GraqhicEQWidget, FlatTabWidget, LiquidEqualizerWidget and
1097 ;; EELEditor.
1098 (recursive? #t)))
1099 (file-name (git-file-name name version))
1100 (sha256
1101 (base32 "1b5612gr2gfmj1h5hdzfa9xxdwixia06a34n2zs04cra94clif9i"))
1102 (modules '((guix build utils)))
1103 (snippet
1104 ;; Unbundle 3rd party libraries.
1105 '(begin
1106 ;; Delete the bundled 3rd party libraries.
1107 (for-each delete-file-recursively
1108 (list "3rdparty"
1109 "src/subprojects/EELEditor/3rdparty"
1110 "src/subprojects/EELEditor/QCodeEditor"
1111 "src/subprojects/EELEditor/src/EELEditor-Linker.pri"))
1112 (with-directory-excursion "src"
1113 (substitute* "src.pro"
1114 ;; Do not use bundled 3rd party libraries.
1115 ((".*3rdparty.*") "")
1116 ;; Link required libraries from system.
1117 (("-ldl")
1118 (string-join '("-ldl"
1119 "-lasync++"
1120 "-lQCodeEditor"
1121 "-lqcustomplot"
1122 "-lqtadvanceddocking-qt6"
1123 "-lqtcsv"
1124 "-lwaf")
1125 " ")))
1126 ;; Fix including WAF headers.
1127 (substitute* "MainWindow.cpp"
1128 (("<Animation") "<WAF/Animation"))
1129 ;; Do not use resources from the bundled docking-system.
1130 (substitute* '("interface/fragment/AppManagerFragment.ui")
1131 ((".*location.*3rdparty.*") "")
1132 ((" resource=.*>") ">"))
1133 (with-directory-excursion "subprojects/EELEditor/src"
1134 ;; Do not use bundled QCodeEditor and docking-system.
1135 (substitute* "EELEditor.pri"
1136 ((".*(QCodeEditor|docking-system).*") ""))
1137 ;; Do not link to bundled docking-system.
1138 (substitute* "src.pro"
1139 ((".*EELEditor-Linker.*") ""))
1140 ;; Fix including headers from the system.
1141 (substitute* (find-files "." "\\.(cpp|h)$")
1142 (("#include <Dock") "#include <qtadvanceddocking-qt6/Dock")
1143 (("#include <FloatingDock")
1144 "#include <qtadvanceddocking-qt6/FloatingDock")
1145 (("#include <QSyntaxStyle")
1146 "#include <QCodeEditor/QSyntaxStyle")
1147 (("#include <QStyleSyntaxHighlighter")
1148 "#include <QCodeEditor/QStyleSyntaxHighlighter")
1149 (("#include <QHighlightRule")
1150 "#include <QCodeEditor/QHighlightRule")
1151 (("#include <QLanguage") "#include <QCodeEditor/QLanguage")
1152 (("#include <QCodeEditor\\.hpp")
1153 "#include <QCodeEditor/QCodeEditor.hpp"))))))))
1154 (build-system qt-build-system)
1155 (arguments
1156 (list #:qtbase qtbase
1157 #:tests? #f ;no tests
1158 #:parallel-build? #f ;fails on some systems
1159 #:modules '((guix build qt-build-system)
1160 ((guix build gnu-build-system) #:prefix gnu:)
1161 (guix build utils))
1162 #:phases
1163 #~(modify-phases %standard-phases
1164 ;; Configure using qmake.
1165 (replace 'configure
1166 (lambda _
1167 (invoke "qmake" (string-append "PREFIX=" #$output))))
1168 (replace 'build (assoc-ref gnu:%standard-phases 'build))
1169 (replace 'check (assoc-ref gnu:%standard-phases 'check))
1170 (replace 'install (assoc-ref gnu:%standard-phases 'install))
1171 (add-after 'install 'install-icon
1172 (lambda _
1173 (let ((pixmaps (string-append #$output "/share/pixmaps")))
1174 (mkdir-p pixmaps)
1175 (copy-file "resources/icons/icon.png"
1176 (string-append pixmaps "/jamesdsp.png")))))
1177 (add-after 'install-icon 'create-desktop-entry-file
1178 (lambda _
1179 (make-desktop-entry-file
1180 (string-append #$output
1181 "/share/applications/jamesdsp.desktop")
1182 #:name "JamesDSP"
1183 #:comment "Audio effect processor"
1184 #:keywords '("equalizer" "audio" "effect")
1185 #:categories '("AudioVideo" "Audio")
1186 #:exec (string-append #$output "/bin/jamesdsp")
1187 #:icon (string-append #$output
1188 "/share/pixmaps/jamesdsp.png")
1189 #:startup-notify #f))))))
1190 (native-inputs
1191 (list pkg-config))
1192 (inputs
1193 (list asyncplusplus
1194 glibmm-2.66
1195 libarchive
1196 pipewire
1197 qcodeeditor
1198 qcustomplot
1199 qt-advanced-docking-system
1200 qtcsv
1201 qtpromise
1202 qtsvg
1203 qtwidgetanimationframework))
1204 (home-page "https://github.com/Audio4Linux/JDSP4Linux")
1205 (synopsis "Audio effect processor for PipeWire and PulseAudio clients")
1206 (description "JamesDSP is an audio effect processor for PipeWire and
1207PulseAudio clients, featuring:
1208@itemize
1209@item Automatic bass boost: Frequency-detecting bass-boost
1210@item Automatic dynamic range compressor: automated multiband dynamic range
1211 adjusting effect
1212@item Complex reverberation IIR network (Progenitor 2)
1213@item Interpolated FIR equalizer with flexible bands
1214@item Arbitrary response equalizer (also known as GraphicEQ from EqualizerAPO)
1215@item AutoEQ database integration (requires network connection)
1216@item Partitioned convolver (Auto segmenting convolution): Mono, stereo,
1217 full/true stereo (LL, LR, RL, RR) impulse response
1218@item Crossfeed: Realistic surround effects
1219@item Soundstage wideness: A multiband stereo wideness controller
1220@item ViPER-DDC: Parametric equalization on audio and creating VDC input files
1221@item Analog modeling: An aliasing-free even harmonic generator
1222@item Output limiter
1223@item Scripting engine: Live programmable DSP using the EEL2 scripting language
1224@item Scripting IDE featuring syntax highlighting, basic code completion,
1225 dynamic code outline window, console output support and detailed error
1226 messages with inline code highlighting
1227@end itemize")
1228 (license license:gpl3+))))
1229
1230(define ardour-bundled-media
1231 (origin
1232 (method url-fetch)
1233 (uri "http://stuff.ardour.org/loops/ArdourBundledMedia.zip")
1234 (sha256
1235 (base32
1236 "0k135sm559yywfidrya7h5cddwqa2p2abhimrar2khydf43f03d0"))))
1237
1238(define-public ardour
1239 (package
1240 (name "ardour")
1241 (version "9.2")
1242 (source (origin
1243 (method git-fetch)
1244 (uri (git-reference
1245 (url "git://git.ardour.org/ardour/ardour.git")
1246 (commit version)))
1247 (snippet
1248 ;; Ardour expects this file to exist at build time. The revision
1249 ;; is the output of
1250 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
1251 `(call-with-output-file
1252 "libs/ardour/revision.cc"
1253 (lambda (port)
1254 (format port ,(string-append "#include \"ardour/revision.h\"
1255namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }")))))
1256 (sha256
1257 (base32
1258 "14s6cq3x7l7b682ah9k8cdr6plfirlgm882dc2nm51lxwl91zcfd"))
1259 (file-name (git-file-name name version))))
1260 (build-system waf-build-system)
1261 (arguments
1262 (list
1263 #:configure-flags
1264 '(list "--optimize"
1265 "--no-phone-home" ;don't contact ardour.org
1266 "--freedesktop" ;build .desktop file
1267 "--test" ;build unit tests
1268 "--use-external-libs") ;use system libraries
1269 #:phases
1270 #~(modify-phases %standard-phases
1271 (add-after 'unpack 'set-rpath-in-LDFLAGS
1272 (lambda _
1273 (let ((libdir (string-append #$output
1274 "/lib/ardour"
1275 #$(version-major version))))
1276 (substitute* "wscript"
1277 (("linker_flags = \\[\\]")
1278 (string-append "linker_flags = [\""
1279 "-Wl,-rpath="
1280 libdir ":"
1281 libdir "/backends" ":"
1282 libdir "/engines" ":"
1283 libdir "/panners" ":"
1284 libdir "/surfaces" ":"
1285 libdir "/vamp" "\"]"))))))
1286 (add-after 'build 'build-i18n
1287 (lambda _
1288 (invoke "python" "waf" "i18n")))
1289 (add-after 'install 'install-freedesktop-files
1290 (lambda _
1291 (let ((share (string-append #$output "/share"))
1292 (ver #$(version-major version)))
1293 (for-each
1294 (lambda (size)
1295 (let ((dir (string-append share "/icons/hicolor/"
1296 size "x" size "/apps")))
1297 (mkdir-p dir)
1298 (copy-file
1299 (string-append "gtk2_ardour/resources/Ardour-icon_"
1300 size "px.png")
1301 (string-append dir "/ardour" ver ".png"))))
1302 '("16" "22" "32" "48" "256"))
1303 (install-file (string-append "build/gtk2_ardour/ardour"
1304 ver ".desktop")
1305 (string-append share "/applications/"))
1306 (install-file (string-append "build/gtk2_ardour/ardour"
1307 ver ".appdata.xml")
1308 (string-append share "/appdata/")))))
1309 (add-after 'install 'install-man-page
1310 (lambda _
1311 (install-file "ardour.1" (string-append #$output
1312 "/share/man/man1"))))
1313 (add-after 'install 'install-bundled-media
1314 (lambda _
1315 (invoke "unzip" "-d" (string-append #$output
1316 "/share/ardour"
1317 #$(version-major version)
1318 "/media/")
1319 #$ardour-bundled-media))))
1320 #:test-target "test"))
1321 (inputs
1322 (list alsa-lib
1323 atkmm
1324 aubio
1325 cairomm
1326 curl
1327 dbus
1328 eudev
1329 fftw
1330 fftwf
1331 flac
1332 fluidsynth
1333 glibmm
1334 gtkmm-2
1335 hicolor-icon-theme
1336 hidapi
1337 jack-2
1338 libarchive
1339 libart-lgpl
1340 libgnomecanvasmm
1341 liblo
1342 libltc
1343 libogg
1344 libsamplerate
1345 libsndfile
1346 libusb
1347 libvorbis
1348 libwebsockets
1349 libxinerama
1350 libxml2
1351 libxrandr
1352 lilv
1353 lrdf
1354 lv2
1355 openssl ; Required by libwebsockets.
1356 pangomm
1357 python-rdflib
1358 pulseaudio
1359 qm-dsp
1360 readline
1361 redland
1362 rubberband
1363 serd
1364 sord
1365 soundtouch
1366 sratom
1367 suil
1368 taglib
1369 vamp))
1370 (native-inputs
1371 (list boost
1372 cppunit
1373 gettext-minimal
1374 itstool
1375 perl
1376 pkg-config
1377 unzip))
1378 (native-search-paths
1379 (list (search-path-specification
1380 (variable "LADSPA_PATH")
1381 (files '("lib/ladspa")))
1382 (search-path-specification
1383 (variable "LV2_PATH")
1384 (files '("lib/lv2")))
1385 (search-path-specification
1386 (variable "LXVST_PATH")
1387 (files '("lib/lxvst")))))
1388 (home-page "https://ardour.org")
1389 (synopsis "Digital audio workstation")
1390 (description
1391 "Ardour is a multi-channel digital audio workstation, allowing users to
1392record, edit, mix and master audio and MIDI projects. It is targeted at audio
1393engineers, musicians, soundtrack editors and composers.")
1394 (license (list license:gpl2+
1395 license:cc0 ;used by MIDI Beats
1396 license:expat)))) ;used by MIDI Chords and Progressions
1397
1398(define-public audacity
1399 (package
1400 (name "audacity")
1401 (version "3.7.7")
1402 (source
1403 (origin
1404 (method git-fetch)
1405 (uri (git-reference
1406 (url "https://github.com/audacity/audacity")
1407 (commit (string-append "Audacity-" version))))
1408 (file-name (git-file-name name version))
1409 (sha256
1410 (base32 "0h2xdhbx6bjhlk2mxqalpbpzjcdj0sb8wf1rp3vj0fbgvxy1y92k"))
1411 (patches (search-patches "audacity-ffmpeg-fallback.patch"))
1412 (modules '((guix build utils)))
1413 (snippet
1414 ;; Remove bundled libraries.
1415 '(begin
1416 (for-each
1417 (lambda (dir)
1418 (delete-file-recursively (string-append "lib-src/" dir)))
1419 '("libsoxr" "libvamp" "lv2" "soundtouch" "sqlite" "twolame"
1420 ;; FIXME: these libraries have not been packaged yet:
1421 ;; "libnyquist"
1422 ;; "libscorealign"
1423 ;; "portburn"
1424 ;; "portsmf"
1425 ;; "portmixer"
1426
1427 ;; FIXME: we have this library, but it differs in that the Slide
1428 ;; class does not have a member "getInverseStretchedTime".
1429 ;; "sbsms"
1430 ))))))
1431 (build-system cmake-build-system)
1432 (inputs
1433 (list wxwidgets
1434 gtk+
1435 alsa-lib
1436 jack-1
1437 expat
1438 lame
1439 flac
1440 ffmpeg
1441 libid3tag
1442 libjpeg-turbo
1443 ;;("libsbsms" ,libsbsms) ;bundled version is modified
1444 libsndfile
1445 libmpg123
1446 opusfile
1447 rapidjson
1448 soundtouch
1449 soxr ;replaces libsamplerate
1450 sqlite
1451 twolame
1452 vamp
1453 libvorbis
1454 lv2
1455 lilv ;for lv2
1456 suil ;for lv2
1457 portaudio
1458 portmidi
1459 wavpack))
1460 (native-inputs
1461 (list autoconf
1462 automake
1463 gettext-minimal ;for msgfmt
1464 libtool
1465 pkg-config
1466 python
1467 which))
1468 (arguments
1469 `(#:configure-flags
1470 (list
1471 "-Daudacity_conan_enabled=off"
1472 "-Daudacity_lib_preference=system"
1473 ;; Disable support for VST 3 SDK, which is not yet in Guix (and has
1474 ;; a dubious licensing agreement despite GPL code).
1475 "-Daudacity_has_vst3=off"
1476 ;; TODO: enable this flag once we've packaged all dependencies
1477 ;; "-Daudacity_obey_system_dependencies=on"
1478 ;; disable crash reports, updates, ..., anything that phones home
1479 "-Daudacity_has_networking=off"
1480 ;; When building from Git — even from a release tag — this is undefined,
1481 ;; and Audacity assumes that is is an ‘alpha’ version and includes debug
1482 ;; symbols and extra code. Force level 2, ‘release’.
1483 "-DAUDACITY_BUILD_LEVEL=2")
1484 #:imported-modules ((guix build glib-or-gtk-build-system)
1485 ,@%cmake-build-system-modules)
1486 #:modules
1487 ((guix build utils)
1488 (guix build cmake-build-system)
1489 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
1490 #:phases
1491 (modify-phases %standard-phases
1492 (add-after 'unpack 'fix-cmake-rpath
1493 (lambda* (#:key outputs #:allow-other-keys)
1494 (substitute* "src/CMakeLists.txt"
1495 ;; Despite the name, this script breaks rpath. Don't run it.
1496 (("install.*linux/fix_rpath\\.cmake.*")
1497 "")
1498 (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags"))))
1499 (add-after 'unpack 'use-upstream-headers
1500 (lambda* (#:key inputs #:allow-other-keys)
1501 (substitute* '("libraries/lib-files/FileNames.cpp")
1502 (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>"))))
1503 (add-after 'install 'glib-or-gtk-wrap
1504 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
1505 ;; The test suite is not "well exercised" according to the developers,
1506 ;; and fails with various errors. See
1507 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
1508 #:tests? #f))
1509 (native-search-paths
1510 (list (search-path-specification
1511 (variable "AUDACITY_MODULES_PATH")
1512 (files '("lib/audacity/modules")))
1513 (search-path-specification
1514 (variable "AUDACITY_PATH")
1515 (files '("share/audacity")))))
1516 (home-page "https://www.audacityteam.org/")
1517 (synopsis "Software for recording and editing sounds")
1518 (description
1519 "Audacity is a multi-track audio editor designed for recording, playing
1520and editing digital audio. It features digital effects and spectrum analysis
1521tools.")
1522 (license license:gpl2+)))
1523
1524(define-public tenacity
1525 (package
1526 (name "tenacity")
1527 (version "1.3.4")
1528 (source
1529 (origin
1530 (method git-fetch)
1531 (uri (git-reference
1532 (url "https://codeberg.org/tenacityteam/tenacity")
1533 (commit (string-append "v" version))
1534 ;; TODO Unbundle vcpkg when packaged in Guix.
1535 (recursive? #t)))
1536 (file-name (git-file-name name version))
1537 (sha256
1538 (base32 "1wphm494517zmnhgrmzlzld2j4bfl2c73qr61nrss90410xxs2fs"))))
1539 (build-system cmake-build-system)
1540 (arguments
1541 (list
1542 #:imported-modules `((guix build glib-or-gtk-build-system)
1543 ,@%cmake-build-system-modules)
1544 #:modules
1545 '((guix build utils)
1546 (guix build cmake-build-system)
1547 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
1548 #:phases
1549 #~(modify-phases %standard-phases
1550 (add-after 'unpack 'use-upstream-headers
1551 (lambda* (#:key inputs #:allow-other-keys)
1552 (substitute* '("libraries/lib-files/FileNames.cpp")
1553 (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>"))))
1554 (add-after 'unpack
1555 'i-spy-with-my-little-eye-something-in-the-wrong-folder
1556 (lambda _
1557 (symlink (string-append (getcwd) "/images")
1558 "src/images")
1559
1560 (symlink (string-append (getcwd) "/images")
1561 "src/tracks/images"))
1562 )
1563 (add-after 'unpack 'fix-cmake-rpath
1564 (lambda* (#:key outputs #:allow-other-keys)
1565 (substitute* "CMakeLists.txt"
1566 (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}")
1567 (string-append (assoc-ref outputs "out") "/lib/tenacity"))
1568 (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*")
1569 "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE")
1570 (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*")
1571 "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE"))
1572 (substitute* "src/CMakeLists.txt"
1573 ;; Despite the name, this script breaks rpath. Don't run it.
1574 (("install.*linux/fix_rpath\\.cmake.*")
1575 "")
1576 (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags"))))
1577 (replace 'configure
1578 (lambda args
1579 (define %configure (assoc-ref %standard-phases 'configure))
1580 (with-exception-handler
1581 (lambda (error)
1582 (unless (invoke-error? error)
1583 (raise error))
1584 ;; Have you tried turning it off and on again?
1585 (apply invoke (invoke-error-program error)
1586 (invoke-error-arguments error)))
1587 (lambda ()
1588 (apply %configure args))
1589 #:unwind? #t)))
1590 (add-after 'install 'glib-or-gtk-wrap
1591 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
1592 ;; Test suite? Which test suite?
1593 #:tests? #f))
1594 (inputs
1595 (list wxwidgets
1596 gtk+
1597 alsa-lib
1598 jack-1
1599 expat
1600 lame
1601 flac
1602 ffmpeg
1603 libid3tag
1604 libjpeg-turbo
1605 ;;("libsbsms" ,libsbsms) ;bundled version is modified
1606 libsndfile
1607 libmpg123
1608 soundtouch
1609 soxr ;replaces libsamplerate
1610 sqlite
1611 twolame
1612 vamp
1613 libebml
1614 libmatroska
1615 libvorbis
1616 lv2
1617 lilv ;for lv2
1618 suil ;for lv2
1619 portaudio
1620 portmidi
1621 wavpack))
1622 (native-inputs
1623 (list gettext-minimal ;for msgfmt
1624 libtool
1625 pkg-config
1626 python
1627 which))
1628 (native-search-paths
1629 (list (search-path-specification
1630 (variable "TENACITY_MODULES_PATH")
1631 (files '("lib/tenacity/modules")))
1632 (search-path-specification
1633 (variable "TENACITY_PATH")
1634 (files '("share/tenacity")))))
1635 (home-page "https://tenacityaudio.org/")
1636 (synopsis "Software for recording and editing sounds")
1637 (description
1638 "Tenacity is a multi-track audio editor designed for recording, playing
1639and editing digital audio. It features digital effects and spectrum analysis
1640tools.")
1641 (license license:gpl2+)))
1642
1643(define-public audiofile
1644 (package
1645 (name "audiofile")
1646 (version "0.3.6")
1647 (source
1648 (origin
1649 (method url-fetch)
1650 (uri (string-append
1651 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
1652 (sha256
1653 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
1654 (patches
1655 ;; CVE references according to nixpgs
1656 (search-patches
1657 "audiofile-fix-datatypes-in-tests.patch"
1658 "audiofile-fix-sign-conversion.patch"
1659 "audiofile-hurd.patch"
1660 "audiofile-CVE-2015-7747.patch"
1661 ;; CVE-2017-6829:
1662 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
1663 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
1664 ;; CVE-2017-6837:
1665 "audiofile-check-number-of-coefficients.patch"
1666 ;; CVE-2017-6839:
1667 "audiofile-overflow-in-MSADPCM.patch"
1668 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
1669 "audiofile-multiply-overflow.patch"
1670 "audiofile-function-signature.patch"
1671 ;; CVE-2017-6831:
1672 "audiofile-Fail-on-error-in-parseFormat.patch"
1673 ;; CVE-2017-6833:
1674 "audiofile-division-by-zero.patch"
1675 "audiofile-CVE-2018-13440.patch"
1676 "audiofile-CVE-2018-17095.patch"
1677 "audiofile-CVE-2022-24599.patch"))))
1678 (properties `((lint-hidden-cve . ("CVE-2017-6829"
1679
1680 "CVE-2017-6827" "CVE-2017-6828"
1681 "CVE-2017-6832" "CVE-2017-6835"
1682 "CVE-2017-6837"
1683
1684 "CVE-2017-6839"
1685
1686 "CVE-2017-6830" "CVE-2017-6834"
1687 "CVE-2017-6836" "CVE-2017-6838"
1688
1689 "CVE-2017-6831" "CVE-2017-6833"))))
1690 (build-system gnu-build-system)
1691 (inputs
1692 (list alsa-lib))
1693 (home-page "https://audiofile.68k.org/")
1694 (synopsis "Library to handle various audio file formats")
1695 (description "This is a free software version of SGI's audiofile library.
1696It provides a uniform programming interface for processing of audio data to
1697and from audio files of many common formats.
1698
1699Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
1700.snd/.au, BICS, and raw data. Supported compression formats are currently
1701G.711 mu-law and A-law.")
1702 (license license:lgpl2.1+)))
1703
1704(define-public autotalent
1705 (package
1706 (name "autotalent")
1707 (version "0.2")
1708 (source (origin
1709 (method url-fetch)
1710 (uri (string-append "http://tombaran.info/autotalent-"
1711 version ".tar.gz"))
1712 (sha256
1713 (base32
1714 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
1715 (build-system gnu-build-system)
1716 (arguments
1717 `(#:tests? #f ; no check target
1718 #:phases
1719 (modify-phases %standard-phases
1720 ;; no configure script
1721 (delete 'configure)
1722 (add-before 'install 'prepare-target-directory
1723 (lambda* (#:key outputs #:allow-other-keys)
1724 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1725 #t))
1726 (add-after 'unpack 'override-target-directory
1727 (lambda* (#:key outputs #:allow-other-keys)
1728 (substitute* "Makefile"
1729 (("/usr/lib64/ladspa")
1730 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
1731 #t)))))
1732 (inputs
1733 (list ladspa))
1734 (home-page "http://tombaran.info/autotalent.html")
1735 (synopsis "Pitch-correction LADSPA audio plugin")
1736 (description
1737 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
1738controls are allowable notes, strength of correction, LFO for vibrato and
1739formant warp.")
1740 ;; All code except the FFT routine is licensed under GPLv2+.
1741 ;; The FFT routine is under BSD-3.
1742 (license license:gpl2+)))
1743
1744(define-public azr3
1745 (let ((commit "3391a0a509e7fa3fb46c7627fd5979b67e468038")
1746 (revision "1"))
1747 (package
1748 (name "azr3")
1749 (version (git-version "1.2.3" revision commit))
1750 (source (origin
1751 (method git-fetch)
1752 (uri (git-reference
1753 (url "https://git.savannah.gnu.org/git/ll-plugins/azr3-jack.git")
1754 (commit commit)))
1755 (file-name (git-file-name name version))
1756 (sha256
1757 (base32
1758 "09wy0z4kiid7mwf5b5j8rzzgxafi4mg88xs550n7864p0n351chx"))
1759 (patches (search-patches "azr3.patch"
1760 "azr3-remove-lash.patch"))))
1761 (build-system gnu-build-system)
1762 (arguments
1763 (list
1764 #:tests? #f ; no check target
1765 #:make-flags
1766 #~(list "LV2PEG=ttl2c"
1767 (string-append "prefix=" #$output)
1768 (string-append "pkgdatadir=" #$output "/share/azr3-jack"))
1769 #:phases
1770 #~(modify-phases %standard-phases
1771 (replace 'bootstrap
1772 (lambda _
1773 (call-with-output-file "Makefile.config"
1774 (lambda (port) (display "" port)))
1775 (substitute* "Makefile"
1776 (("^PACKAGE_VERSION =.*")
1777 (string-append "PACKAGE_VERSION = \"" #$version "\"\n")))))
1778 (add-before 'install 'fix-timestamp
1779 (lambda _
1780 (let ((early-1980 315619200)) ; 1980-01-02 UTC
1781 (utime "azr3.1" early-1980 early-1980)))))))
1782 (inputs
1783 (list gtkmm-2 jack-2 lvtk))
1784 (native-inputs
1785 (list pkg-config))
1786 (home-page "https://ll-plugins.nongnu.org/azr3/")
1787 (synopsis "Tonewheel organ synthesizer")
1788 (description
1789 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
1790with drawbars, distortion and rotating speakers. The organ has three
1791sections, two polyphonic sections with nine drawbars each and one monophonic
1792bass section with five drawbars. A standalone JACK application and LV2
1793plugins are provided.")
1794 (license license:gpl2))))
1795
1796(define-public bankstown-lv2
1797 (package
1798 (name "bankstown-lv2")
1799 (version "1.1.0")
1800 (source
1801 (origin
1802 (method url-fetch)
1803 (uri (crate-uri "bankstown-lv2" version))
1804 (file-name (string-append name "-" version ".tar.gz"))
1805 (sha256
1806 (base32 "1bcrn0b4b9v1mksaldhrdb6ncqlwldfwqxjlfp4gcpvl661qdmcb"))))
1807 (build-system cargo-build-system)
1808 (arguments
1809 (list
1810 #:phases
1811 #~(modify-phases %standard-phases
1812 (replace 'install
1813 (lambda* (#:key outputs #:allow-other-keys)
1814 (setenv "LIBDIR" (string-append (assoc-ref outputs "out") "/lib"))
1815 (invoke "make" "install"))))))
1816 (inputs (cargo-inputs 'bankstown-lv2))
1817 (home-page "https://github.com/chadmed/bankstown")
1818 (synopsis "Barebones, fast LV2 bass enhancement plugin.")
1819 (description
1820 "This package provides a barebones, fast LV2 bass enhancement plugin.")
1821 (license license:expat)))
1822
1823(define-public cable
1824 (package
1825 (name "cable")
1826 (version "0.9.21")
1827 (source (origin
1828 (method git-fetch)
1829 (uri (git-reference
1830 (url "https://github.com/magillos/Cable")
1831 (commit version)))
1832 (file-name (git-file-name name version))
1833 (sha256
1834 (base32
1835 "1c7fy92nwp2m96asls460s83xapzcc6pqvplmg5rqds1rddiva2h"))))
1836 (build-system pyproject-build-system)
1837 (arguments
1838 (list
1839 #:tests? #false ;there is no test target
1840 #:phases
1841 #~(modify-phases %standard-phases
1842 (add-after 'unpack 'patch-hardcoded-file-names
1843 (lambda _
1844 (substitute* "cable_core/process.py"
1845 (("/usr/share/cable")
1846 (string-append #$output "/share/cable/"))
1847 (("connection-manager.py")
1848 "cables/launch-connection-manager.py"))
1849 (rename-file "connection-manager.py"
1850 "cables/launch-connection-manager.py")))
1851 (add-after 'install 'install-more
1852 (lambda _
1853 (install-file "jack-plug.svg"
1854 (string-append #$output "/share/icons/hicolor/scalable/apps/"))
1855 (install-file "com.github.magillos.cable.desktop"
1856 (string-append #$output "/share/applications/")))))))
1857 (inputs
1858 (list python
1859 python-dbus-1.2
1860 python-jack-client
1861 python-pyqt-6
1862 python-requests))
1863 (native-inputs
1864 (list guile-3.0 pkg-config python-setuptools python-wheel))
1865 (home-page "https://github.com/magillos/Cable")
1866 (synopsis "GUI for pipewire and wireplumber settings and connections")
1867 (description
1868 "This is a PyQT GUI application to dynamically modify Pipewire and
1869Wireplumber settings at runtime, such as quantum. sample rate, latency offset
1870setting, services restart and more. It features side-by-side and graph style
1871connections manager, pw-top wrapper, simple ALSA mixer and jack_delay GUI.")
1872 (license license:gpl3+)))
1873
1874(define-public calf
1875 (package
1876 (name "calf")
1877 (version "0.90.8")
1878 (source (origin
1879 (method git-fetch)
1880 (uri (git-reference
1881 (url "https://github.com/calf-studio-gear/calf")
1882 (commit version)))
1883 (file-name (git-file-name name version))
1884 (sha256
1885 (base32
1886 "0wzkshqazw26w73h1lva5wr8v2bq0a20kjd6lfvbi1pj3ql3azk5"))))
1887 (build-system cmake-build-system)
1888 (arguments (list #:tests? #false)) ;there is no test target
1889 (inputs
1890 (list fluidsynth
1891 expat
1892 glib
1893 gtk+-2
1894 cairo
1895 jack-2
1896 lv2
1897 ladspa
1898 fftw))
1899 (native-inputs
1900 (list pkg-config))
1901 (home-page "https://calf-studio-gear.org/")
1902 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1903 (description
1904 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1905The suite contains lots of effects (delay, modulation, signal processing,
1906filters, equalizers, dynamics, distortion and mastering effects),
1907instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1908tools (analyzer, mono/stereo tools, crossovers).")
1909 ;; calfjackhost is released under GPLv2+
1910 ;; The plugins are released under LGPLv2.1+
1911 (license (list license:lgpl2.1+ license:gpl2+))))
1912
1913(define-public caps-plugins-lv2
1914 (package
1915 (name "caps-plugins-lv2")
1916 (version "0.9.26")
1917 (source
1918 (origin
1919 ;; The Github project hasn't tagged a release.
1920 (method git-fetch)
1921 (uri (git-reference
1922 (url "https://github.com/moddevices/caps-lv2.git")
1923 (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9")))
1924 (file-name (git-file-name name version))
1925 (sha256
1926 (base32
1927 "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa"))))
1928 (build-system gnu-build-system)
1929 (arguments
1930 `(#:tests? #f ; no check target
1931 #:phases
1932 (modify-phases %standard-phases
1933 ;; no configure script
1934 (delete 'configure)
1935 (add-after 'unpack 'override-target-directory
1936 (lambda* (#:key outputs #:allow-other-keys)
1937 (substitute* (find-files "plugins" "Makefile")
1938 (("/usr/local")(assoc-ref outputs "out")))
1939 #t)))))
1940 (inputs
1941 (list lv2))
1942 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1943 (home-page "https://github.com/moddevices/caps-lv2")
1944 (synopsis "LV2 port of the CAPS audio plugin collection")
1945 (description
1946 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1947guitar amplification and a small range of classic effects, signal processors and
1948generators of mostly elementary and occasionally exotic nature.")
1949 (license license:gpl3+)))
1950
1951(define-public chow-tape-model
1952 (package
1953 (name "chow-tape-model")
1954 (version "2.11.4")
1955 (source
1956 (origin
1957 (method git-fetch)
1958 (uri (git-reference
1959 (url "https://github.com/jatinchowdhury18/AnalogTapeModel")
1960 (commit (string-append "v" version))
1961 (recursive? #true)))
1962 (file-name (git-file-name name version))
1963 (sha256
1964 (base32
1965 "0qrqhlfzc2m5iwrkfzb53x8hll2ndn1fygh1mwn11shqmy5qgf2s"))))
1966 (build-system cmake-build-system)
1967 (arguments
1968 (list
1969 #:configure-flags
1970 (let ((libs "-lX11 -lXext -lXcursor -lXinerama -lXrandr"))
1971 `(list "-DBUILD_HEADLESS=ON"
1972 ,(string-append "-DCMAKE_SHARED_LINKER_FLAGS=" libs)
1973 ,(string-append "-DCMAKE_EXE_LINKER_FLAGS=" libs)))
1974 #:phases
1975 #~(modify-phases %standard-phases
1976 (add-after 'unpack 'build-manual
1977 (lambda _
1978 (with-directory-excursion "Manual"
1979 (invoke "make" "all"))))
1980 (add-after 'build-manual 'install-manual
1981 (lambda _
1982 (with-directory-excursion "Manual"
1983 (install-file "ChowTapeManual.pdf"
1984 (string-append #$output:doc "/share/doc/")))))
1985 (add-after 'install-manual 'chdir
1986 (lambda _ (chdir "Plugin")))
1987 (add-after 'chdir 'fix-includes
1988 (lambda _
1989 (substitute* "modules/JUCE/modules/juce_core/juce_core.h"
1990 (("#define JUCE_CORE_H_INCLUDED" all)
1991 (string-append all "\n#include <utility>")))))
1992 (replace 'check
1993 (lambda* (#:key tests? build-type #:allow-other-keys)
1994 (when tests?
1995 (with-directory-excursion
1996 (string-append "Source/Headless/ChowTapeModel_Headless_artefacts/" build-type)
1997 (invoke "./ChowTapeModel_Headless" "--unit-tests" "--all")))))
1998 (replace 'install
1999 (lambda* (#:key build-type #:allow-other-keys)
2000 (with-directory-excursion
2001 (string-append "CHOWTapeModel_artefacts/" build-type)
2002 (mkdir-p (string-append #$output:lv2 "/lib/lv2/"))
2003 (mkdir-p (string-append #$output "/bin/"))
2004 (install-file "Standalone/CHOWTapeModel"
2005 (string-append #$output "/bin/"))
2006 (install-file "CLAP/CHOWTapeModel.clap"
2007 (string-append #$output:clap "/lib/clap/"))
2008 (copy-recursively "LV2/CHOWTapeModel.lv2"
2009 (string-append #$output:lv2
2010 "/lib/lv2/CHOWTapeModel.lv2"))
2011 (copy-recursively "VST3/CHOWTapeModel.vst3"
2012 (string-append #$output:vst3
2013 "/lib/vst3/CHOWTapeModel.vst3"))))))))
2014 (outputs '("out" "doc" "clap" "lv2" "vst3"))
2015 (inputs
2016 (list alsa-lib
2017 freeglut
2018 freetype
2019 jack-2
2020 libxcursor
2021 libxext
2022 libxinerama
2023 libxrandr
2024 lv2))
2025 (native-inputs
2026 (list pkg-config
2027 (texlive-local-tree
2028 (list texlive-geometry
2029 texlive-xetex
2030 texlive-collection-pictures))))
2031 (home-page "https://chowdsp.com/products.html")
2032 (synopsis "Physical modeling for analog tape machines")
2033 (description
2034 "CHOW Tape is an analog tape machine physical model, originally based on
2035the Sony TC-260. The current version can be used to emulate a wide variety of
2036reel-to-reel tape machines.")
2037 (license license:gpl3)))
2038
2039(define-public iir
2040 (package
2041 (name "iir")
2042 (version "1.10.0")
2043 (source
2044 (origin
2045 (method git-fetch)
2046 (uri (git-reference
2047 (url "https://github.com/berndporr/iir1")
2048 (commit version)))
2049 (file-name (git-file-name name version))
2050 (sha256
2051 (base32 "0p64l0fmr7mfjhfxg6yc4f06aacbr6bb8kjmb5ffm95sq12rzdss"))))
2052 (build-system cmake-build-system)
2053 (arguments
2054 (list
2055 #:phases
2056 #~(modify-phases %standard-phases
2057 (add-after 'install 'delete-static-library
2058 (lambda* (#:key outputs #:allow-other-keys)
2059 (let ((out (assoc-ref outputs "out")))
2060 (delete-file (string-append out "/lib/libiir_static.a"))))))))
2061 (home-page "https://berndporr.github.io/iir1/")
2062 (synopsis
2063 "Real-time C++ @acronym{IIR, infinite impulse response} filter library")
2064 (description
2065 "This C++ library implements the Butterworth, RBJ, and Chebychev
2066@acronym{IIR, infinite impulse response} filters. Samples are processed one by
2067one, in real time. It can easily import coefficients generated with Python
2068(@code{scipy}). It also avoids memory leaks by allocating memory at compile
2069time, using templates, instead of calling @code{malloc()} or @code{new}.")
2070 (license license:expat)))
2071
2072(define-public infamous-plugins
2073 (package
2074 (name "infamous-plugins")
2075 (version "0.3.2")
2076 (source (origin
2077 (method git-fetch)
2078 (uri (git-reference
2079 (url "https://github.com/ssj71/infamousPlugins")
2080 (commit (string-append "v" version))))
2081 (file-name (git-file-name name version))
2082 (sha256
2083 (base32
2084 "1ay66lly6bgqr3nzb0y4b29rgl5y1slk6wf73kr3xiw2p62bh582"))))
2085 (build-system cmake-build-system)
2086 (arguments
2087 `(#:tests? #f ; there are no tests
2088 #:phases
2089 (modify-phases %standard-phases
2090 (add-after 'unpack 'remove-compiler-flags
2091 (lambda _
2092 (substitute* (find-files "." "CMakeLists.txt")
2093 (("-msse2 -mfpmath=sse") "")))))))
2094 (inputs
2095 (list cairo fftwf lv2 ntk zita-resampler))
2096 (native-inputs
2097 (list pkg-config))
2098 (home-page "https://ssj71.github.io/infamousPlugins")
2099 (synopsis "LV2 plugins for live use")
2100 (description
2101 "The infamous plugins are a collection of LV2 audio plugins for live
2102performances. The plugins include a cellular automaton synthesizer, an
2103envelope follower, distortion effects, tape effects and more.")
2104 (license license:gpl2+)))
2105
2106(define-public omins-lv2
2107 (let ((commit "058f341053067b69a84d4081107fda5058290ff9")
2108 (revision "1"))
2109 (package
2110 (name "omins-lv2")
2111 ;; No release despite being perfectly usable. 0.0.0 seems to be the only
2112 ;; version the author ever specified:
2113 (version (git-version "0.0.0" revision commit))
2114 (source
2115 (origin (method git-fetch)
2116 (uri
2117 (git-reference
2118 (url "https://git.drobilla.net/cgit.cgi/omins.lv2.git/")
2119 (commit commit)))
2120 (file-name (git-file-name name version))
2121 (sha256
2122 (base32
2123 "01hnx4hhbz3ap3bw15s42q4q1mw1mhdjwygq4550wvjfg6k4ga8w"))))
2124 (build-system waf-build-system)
2125 (arguments
2126 (list
2127 #:tests? #false ;There are no tests.
2128 #:phases
2129 '(modify-phases %standard-phases
2130 (add-after 'unpack 'python3.12-compatibility
2131 (lambda _
2132 (substitute* "waflib/Context.py"
2133 (("imp.new_module") "types.ModuleType")
2134 (("import os, re, imp, sys")
2135 "import os, re, types, sys")))))))
2136 (inputs (list lv2))
2137 (native-inputs (list pkg-config))
2138 (home-page "https://git.drobilla.net/cgit.cgi/omins.lv2.git/")
2139 (synopsis "LV2 audio plugins for modular synthesis")
2140 (description
2141 "Omins-lv2 is a small collection of LV2 audio plugins for modular
2142synthesis.")
2143 (license license:gpl2+))))
2144
2145(define-public snapcast
2146 (package
2147 (name "snapcast")
2148 (version "0.35.0")
2149 (source (origin
2150 (method git-fetch)
2151 (uri (git-reference
2152 (url "https://github.com/badaix/snapcast")
2153 (commit (string-append "v" version))))
2154 (file-name (git-file-name name version))
2155 (sha256
2156 (base32
2157 "1sm8xgijc6nd5zqwwahj2rzawpzfbjf2xxhiwb7hiij21b4khk4i"))))
2158 (build-system cmake-build-system)
2159 (arguments '(#:tests? #f)) ;no included tests
2160 (inputs
2161 (list alsa-lib
2162 avahi
2163 boost
2164 expat
2165 flac
2166 libvorbis
2167 openssl
2168 opus
2169 pulseaudio
2170 soxr))
2171 (native-inputs (list pkg-config))
2172 (home-page "https://github.com/badaix/snapcast")
2173 (synopsis "Synchronous multiroom audio player")
2174 (description
2175 "Snapcast is a multi-room client-server audio player. Clients are time
2176synchronized with the server to play synced audio.")
2177 (license license:gpl3+)))
2178
2179(define-public swh-plugins
2180 (package
2181 (name "swh-plugins")
2182 (version "0.4.17")
2183 (source (origin
2184 (method git-fetch)
2185 (uri (git-reference
2186 (url "https://github.com/swh/ladspa")
2187 (commit (string-append "v" version))))
2188 (file-name (git-file-name name version))
2189 (sha256
2190 (base32
2191 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
2192 (native-inputs
2193 (list autoconf
2194 automake
2195 gettext-minimal ;for autopoint
2196 libtool
2197 perl
2198 pkg-config
2199 which))
2200 (inputs
2201 (list fftwf perl-xml-parser))
2202 (build-system gnu-build-system)
2203 (home-page "http://plugin.org.uk")
2204 (synopsis "The SWH Plugins package for the LADSPA plugin system")
2205 (description "This package provides Steve Harris's LADSPA plugins.")
2206 (license license:gpl2+)))
2207
2208(define-public swh-plugins-lv2
2209 (package
2210 (name "swh-plugins-lv2")
2211 (version "1.0.16")
2212 (source (origin
2213 (method git-fetch)
2214 (uri (git-reference
2215 (url "https://github.com/swh/lv2")
2216 (commit (string-append "v" version))))
2217 (file-name (git-file-name name version))
2218 (sha256
2219 (base32
2220 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
2221 (build-system gnu-build-system)
2222 (arguments
2223 `(#:tests? #f ; no check target
2224 #:make-flags (list "CC=gcc"
2225 (string-append "PREFIX="
2226 (assoc-ref %outputs "out")))
2227 #:phases
2228 (modify-phases %standard-phases
2229 ;; no configure script
2230 (delete 'configure)
2231 (add-after 'unpack 'patch-makefile-and-enter-directory
2232 ;; The default install target doesn't install, but the
2233 ;; "install-system" target does.
2234 (lambda _
2235 (substitute* "Makefile"
2236 (("install:") "install: install-system"))
2237 #t)))))
2238 (inputs
2239 (list lv2 fftwf))
2240 (native-inputs
2241 (list libxslt pkg-config))
2242 (home-page "http://plugin.org.uk")
2243 (synopsis "SWH plugins in LV2 format")
2244 (description
2245 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
2246classes include: dynamics (compressor, limiter), time (delay, chorus,
2247flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
2248emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
2249 (license license:gpl3+)))
2250
2251(define-public libdjinterop
2252 (package
2253 (name "libdjinterop")
2254 (version "0.24.3")
2255 (source
2256 (origin
2257 (method git-fetch)
2258 (uri (git-reference
2259 (url "https://github.com/xsco/libdjinterop")
2260 (commit version)))
2261 (file-name (git-file-name name version))
2262 (sha256
2263 (base32 "0g0yfmwmrkvrkvynx84bays6jph3wq2hq1md5ylr7n5a8g0c17hn"))))
2264 (build-system cmake-build-system)
2265 (arguments
2266 (list #:tests? #f))
2267 (native-inputs
2268 (list boost pkg-config))
2269 (inputs
2270 (list sqlite zlib))
2271 (home-page "https://github.com/xsco/libdjinterop")
2272 (synopsis "C++ library for access to DJ record libraries")
2273 (description
2274 "@code{libdjinterop} is a C++ library that allows access to database
2275formats used to store information about DJ record libraries.")
2276 (license license:lgpl3+)))
2277
2278(define-public tao
2279 (package
2280 (name "tao")
2281 (version "1.0-beta-10May2006")
2282 (source (origin
2283 (method url-fetch)
2284 (uri (string-append "mirror://sourceforge/taopm/Tao/"
2285 "tao-" version "/"
2286 "tao-" version ".tar.gz"))
2287 (sha256
2288 (base32
2289 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
2290 (patches
2291 (search-patches "tao-add-missing-headers.patch"
2292 "tao-fix-parser-types.patch"))
2293 (modules '((guix build utils)))
2294 (snippet
2295 '(substitute* "configure"
2296 (("SHELL=/bin/sh") "")))))
2297 (build-system gnu-build-system)
2298 (arguments
2299 '(#:configure-flags '("TAO_RELEASE=-beta")
2300 #:phases
2301 (modify-phases %standard-phases
2302 (add-after 'unpack 'fix-references
2303 (lambda* (#:key outputs #:allow-other-keys)
2304 (substitute* "user-scripts/tao.in"
2305 (("taoparse")
2306 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
2307 (("grep") (which "grep"))
2308 (("sed -f \\$distdir/user-scripts/")
2309 (string-append (which "sed") " -f $distdir/"))
2310 (("distdir=.*")
2311 (string-append "distdir="
2312 (assoc-ref outputs "out") "/share/tao")))))
2313 (add-after 'install 'install-extra-files
2314 (lambda* (#:key outputs #:allow-other-keys)
2315 (let* ((out (assoc-ref outputs "out"))
2316 (share (string-append out "/share/tao/"))
2317 (inc (string-append out "/include/tao/")))
2318 (mkdir-p share)
2319 (mkdir-p inc)
2320 (install-file "user-scripts/error.parse" share)
2321 (copy-recursively "examples" (string-append share "examples"))
2322 (for-each (lambda (file) (install-file file inc))
2323 (find-files "include" "\\.h"))))))))
2324 (inputs
2325 (list audiofile
2326 libxi
2327 libxmu
2328 mesa
2329 freeglut
2330 flex
2331 bison
2332 sed
2333 grep))
2334 (home-page "https://taopm.sourceforge.net/")
2335 (synopsis "Sound Synthesis with Physical Models")
2336 (description "Tao is a software package for sound synthesis using physical
2337models. It provides a virtual acoustic material constructed from masses and
2338springs which can be used as the basis for building quite complex virtual
2339musical instruments. Tao comes with a synthesis language for creating and
2340playing instruments and a C++ API for those who would like to use it as an
2341object library.")
2342 (license license:gpl2+)))
2343
2344(define-public tao-synth
2345 (let ((commit "f3aedd81efbc775574e591081b57ae1c08427064")
2346 (revision "1"))
2347 (package
2348 (name "tao-synth")
2349 (version (git-version "0" revision commit))
2350 (source (origin
2351 (method git-fetch)
2352 (uri (git-reference
2353 (url "https://github.com/lucasw/tao_synth")
2354 (commit commit)))
2355 (file-name (git-file-name name version))
2356 (sha256
2357 (base32
2358 "1jds2l3cb96b02jxd7lmrjjl9s7mylnrvg6fpw0j8c141bk8vyg3"))
2359 (patches
2360 (search-patches "tao-synth-include-string-you-use.patch"))))
2361 (build-system cmake-build-system)
2362 (arguments (list #:tests? #false)) ;there are no tests
2363 (inputs
2364 (list glfw freeglut))
2365 (home-page "https://github.com/lucasw/tao_synth")
2366 (synopsis "Sound synthesis with physical models")
2367 (description "Tao is a software package for sound synthesis using physical
2368models. It provides a virtual acoustic material constructed from masses and
2369springs which can be used as the basis for building quite complex virtual
2370musical instruments. Tao comes with a synthesis language for creating and
2371playing instruments and a C++ API for those who would like to use it as an
2372object library.")
2373 (license license:lgpl2.0+))))
2374
2375(define-public csound
2376 (package
2377 (name "csound")
2378 (version "6.16.2")
2379 (source
2380 (origin
2381 (method git-fetch)
2382 (uri (git-reference
2383 (url "https://github.com/csound/csound")
2384 (commit version)))
2385 (file-name (git-file-name name version))
2386 (sha256
2387 (base32 "1lgasyk8j4cl9178vci1dph63nks3cgwhf8y1d04z9dc8gg15dyn"))))
2388 (build-system cmake-build-system)
2389 (arguments
2390 '(#:configure-flags '("-DBUILD_STATIC_LIBRARY=ON"))) ; required to build tests
2391 (native-inputs
2392 (list bison flex gettext-minimal zlib))
2393 (inputs
2394 (list alsa-lib
2395 boost
2396 cunit
2397 jack-1
2398 ladspa
2399 liblo
2400 libsndfile
2401 pulseaudio))
2402 (home-page "https://csound.com/")
2403 (synopsis "Sound and music computing system")
2404 (description
2405 "Csound is a user-programmable and user-extensible sound processing
2406language and software synthesizer.")
2407 (license license:lgpl2.1+)))
2408
2409(define-public midicomp
2410 ;; The latest tagged release is 9 years old and there have been
2411 ;; unreleased fixes, so we take the last commit.
2412 (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68")
2413 (revision "1"))
2414 (package
2415 (name "midicomp")
2416 (version (git-version "0.0.8" revision commit))
2417 (source
2418 (origin
2419 (method git-fetch)
2420 (uri (git-reference
2421 (url "https://github.com/markc/midicomp")
2422 (commit commit)))
2423 (file-name (git-file-name name version))
2424 (sha256
2425 (base32
2426 "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf"))))
2427 (build-system cmake-build-system)
2428 (arguments
2429 `(#:tests? #f)) ; no "check" target
2430 (synopsis "Convert SMF MIDI files to and from plain text")
2431 (description
2432 "midicomp can manipulate SMF (Standard MIDI File) files. It can both
2433 read and write SMF files in 0 or format 1 and also read and write its own
2434 plain text format. This means a SMF file can be turned into easily
2435 parseable text, edited with any text editor or filtered through any script
2436 language, and recompiled back into a binary SMF file.")
2437 (home-page "https://github.com/markc/midicomp")
2438 (license license:agpl3))))
2439
2440(define-public mt32emu
2441 (package
2442 (name "mt32emu")
2443 (version "2.7.1")
2444 (source
2445 (origin
2446 (method git-fetch)
2447 (uri (git-reference
2448 (url "https://github.com/munt/munt")
2449 (commit
2450 (string-append "libmt32emu_"
2451 (string-replace-substring version "." "_")))))
2452 (file-name (git-file-name name version))
2453 (sha256
2454 (base32 "06d3jzx69nwy9jj6jv9q6rhq5399mp51w6d5mijg3fmwr4al13fd"))))
2455 (build-system cmake-build-system)
2456 (arguments (list
2457 #:tests? #f ;no tests.
2458 #:configure-flags #~(list "-Dmunt_WITH_MT32EMU_SMF2WAV=FALSE"
2459 "-Dmunt_WITH_MT32EMU_QT=FALSE")))
2460 (home-page "https://sourceforge.net/projects/munt/")
2461 (synopsis "Pre-GM Roland MIDI device emulator")
2462 (description
2463 "libmt32emu is a C/C++ library which approximately emulates
2464the Roland MT-32, CM-32L and LAPC-I synthesizer modules. It is part of the
2465Munt project.")
2466 (license license:gpl2+)))
2467
2468(define-public clalsadrv
2469 (package
2470 (name "clalsadrv")
2471 (version "2.0.0")
2472 (source (origin
2473 (method url-fetch)
2474 (uri (string-append
2475 "http://kokkinizita.linuxaudio.org"
2476 "/linuxaudio/downloads/clalsadrv-"
2477 version ".tar.bz2"))
2478 (sha256
2479 (base32
2480 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
2481 (build-system gnu-build-system)
2482 (arguments
2483 `(#:tests? #f ; no "check" target
2484 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2485 #:phases
2486 (modify-phases %standard-phases
2487 (add-after 'unpack 'patch-makefile-and-enter-directory
2488 (lambda _
2489 (substitute* "libs/Makefile"
2490 (("/sbin/ldconfig") "true")
2491 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2492 (chdir "libs")
2493 #t))
2494 (add-after 'install 'install-symlink
2495 (lambda _
2496 (symlink "libclalsadrv.so"
2497 (string-append (assoc-ref %outputs "out")
2498 "/lib/libclalsadrv.so.2"))
2499 #t))
2500 ;; no configure script
2501 (delete 'configure))))
2502 (inputs
2503 (list alsa-lib fftw))
2504 (home-page "https://kokkinizita.linuxaudio.org")
2505 (synopsis "C++ wrapper around the ALSA API")
2506 (description
2507 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
2508ALSA PCM devices.")
2509 (license license:gpl2+)))
2510
2511(define-public amb-plugins
2512 (package
2513 (name "amb-plugins")
2514 (version "0.8.1")
2515 (source (origin
2516 (method url-fetch)
2517 (uri (string-append
2518 "http://kokkinizita.linuxaudio.org"
2519 "/linuxaudio/downloads/AMB-plugins-"
2520 version ".tar.bz2"))
2521 (sha256
2522 (base32
2523 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
2524 (build-system gnu-build-system)
2525 (arguments
2526 `(#:tests? #f ; no "check" target
2527 #:phases
2528 (modify-phases %standard-phases
2529 ;; no configure script
2530 (delete 'configure)
2531 (add-before 'install 'prepare-target-directory
2532 (lambda* (#:key outputs #:allow-other-keys)
2533 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2534 #t))
2535 (add-after 'unpack 'override-target-directory-and-tool-paths
2536 (lambda* (#:key outputs #:allow-other-keys)
2537 (substitute* "Makefile"
2538 (("/usr/lib/ladspa")
2539 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2540 (("/usr/bin/install") (which "install"))
2541 (("/bin/rm") "#"))
2542 #t)))))
2543 (home-page "https://kokkinizita.linuxaudio.org")
2544 (synopsis "LADSPA ambisonics plugins")
2545 (description
2546 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
2547used within Ardour. Features include: mono and stereo to B-format panning,
2548horizontal rotator, square, hexagon and cube decoders.")
2549 (license license:gpl2+)))
2550
2551(define-public mcp-plugins
2552 (package
2553 (name "mcp-plugins")
2554 (version "0.4.0")
2555 (source (origin
2556 (method url-fetch)
2557 (uri (string-append
2558 "http://kokkinizita.linuxaudio.org"
2559 "/linuxaudio/downloads/MCP-plugins-"
2560 version ".tar.bz2"))
2561 (sha256
2562 (base32
2563 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
2564 (build-system gnu-build-system)
2565 (arguments
2566 `(#:tests? #f ; no "check" target
2567 #:phases
2568 (modify-phases %standard-phases
2569 ;; no configure script
2570 (delete 'configure)
2571 (add-before 'install 'prepare-target-directory
2572 (lambda* (#:key outputs #:allow-other-keys)
2573 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2574 #t))
2575 (add-after 'unpack 'override-target-directory
2576 (lambda* (#:key outputs #:allow-other-keys)
2577 (substitute* "Makefile"
2578 (("/usr") (assoc-ref outputs "out")))
2579 #t)))))
2580 (home-page "https://kokkinizita.linuxaudio.org")
2581 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
2582 (description
2583 "This package provides various LADSPA plugins. @code{cs_chorus} and
2584@code{cs_phaser} provide chorus and phaser effects, respectively;
2585@code{mvclpf24} provides four implementations of the low-pass filter used in
2586vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
2587high-pass filter by Robert Moog. The filters attempt to accurately emulate
2588the non-linear circuit elements of their original analog counterparts.")
2589 (license license:gpl2+)))
2590
2591(define-public rev-plugins
2592 (package
2593 (name "rev-plugins")
2594 (version "0.8.1")
2595 (source (origin
2596 (method url-fetch)
2597 (uri (string-append
2598 "http://kokkinizita.linuxaudio.org"
2599 "/linuxaudio/downloads/REV-plugins-"
2600 version ".tar.bz2"))
2601 (sha256
2602 (base32
2603 "1yhnvjgr14qr0ni0n2x8dhlzbx1qfgyrnffbaaq0d5xbzfgrq543"))))
2604 (build-system gnu-build-system)
2605 (arguments
2606 (list #:tests? #f ; no "check" target
2607 #:phases
2608 #~(modify-phases %standard-phases
2609 ;; no configure script
2610 (delete 'configure)
2611 (add-after 'unpack 'change-directory
2612 (lambda _
2613 (chdir "source")))
2614 (add-after 'change-directory 'override-target-directory
2615 (lambda _
2616 (substitute* "Makefile"
2617 (("/usr") #$output))))
2618 (add-before 'install 'prepare-target-directory
2619 (lambda _
2620 (mkdir-p (string-append #$output "/lib/ladspa")))))))
2621 (home-page "https://kokkinizita.linuxaudio.org")
2622 (synopsis "LADSPA reverb plugin")
2623 (description
2624 "This package provides a stereo reverb LADSPA plugin based on the
2625well-known greverb.")
2626 (license license:gpl2+)))
2627
2628(define-public fil-plugins
2629 (package
2630 (name "fil-plugins")
2631 (version "0.3.0")
2632 (source (origin
2633 (method url-fetch)
2634 (uri (string-append
2635 "http://kokkinizita.linuxaudio.org"
2636 "/linuxaudio/downloads/FIL-plugins-"
2637 version ".tar.bz2"))
2638 (sha256
2639 (base32
2640 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
2641 (build-system gnu-build-system)
2642 (arguments
2643 `(#:tests? #f ; no "check" target
2644 #:phases
2645 (modify-phases %standard-phases
2646 ;; no configure script
2647 (delete 'configure)
2648 (add-before 'install 'prepare-target-directory
2649 (lambda* (#:key outputs #:allow-other-keys)
2650 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2651 #t))
2652 (add-after 'unpack 'override-target-directory
2653 (lambda* (#:key outputs #:allow-other-keys)
2654 (substitute* "Makefile"
2655 (("/usr") (assoc-ref outputs "out")))
2656 #t)))))
2657 (home-page "https://kokkinizita.linuxaudio.org")
2658 (synopsis "LADSPA four-band parametric equalizer plugin")
2659 (description
2660 "This package provides a LADSPA plugin for a four-band parametric
2661equalizer. Each section has an active/bypass switch, frequency, bandwidth and
2662gain controls. There is also a global bypass switch and gain control.
2663
2664The 2nd order resonant filters are implemented using a Mitra-Regalia style
2665lattice filter, which is stable even while parameters are being changed.
2666
2667All switches and controls are internally smoothed, so they can be used @code{live}
2668without any clicks or zipper noises. This makes this plugin suitable for use
2669in systems that allow automation of plugin control ports, such as Ardour, or
2670for stage use.")
2671 (license license:gpl2+)))
2672
2673(define-public ste-plugins
2674 (package
2675 (name "ste-plugins")
2676 (version "0.0.2")
2677 (source (origin
2678 (method url-fetch)
2679 (uri (string-append
2680 "http://kokkinizita.linuxaudio.org"
2681 "/linuxaudio/downloads/STE-plugins-"
2682 version ".tar.bz2"))
2683 (sha256
2684 (base32
2685 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
2686 (build-system gnu-build-system)
2687 (arguments
2688 `(#:tests? #f ; no "check" target
2689 #:phases
2690 (modify-phases %standard-phases
2691 ;; no configure script
2692 (delete 'configure)
2693 (add-before 'install 'prepare-target-directory
2694 (lambda* (#:key outputs #:allow-other-keys)
2695 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2696 #t))
2697 (add-after 'unpack 'override-target-directory
2698 (lambda* (#:key outputs #:allow-other-keys)
2699 (substitute* "Makefile"
2700 (("/usr") (assoc-ref outputs "out")))
2701 #t)))))
2702 (home-page "https://kokkinizita.linuxaudio.org")
2703 (synopsis "LADSPA stereo width plugin")
2704 (description
2705 "This package provides a LADSPA plugin to manipulate the stereo width of
2706audio signals.")
2707 (license license:gpl2+)))
2708
2709(define-public vco-plugins
2710 (package
2711 (name "vco-plugins")
2712 (version "0.3.0")
2713 (source (origin
2714 (method url-fetch)
2715 (uri (string-append
2716 "http://kokkinizita.linuxaudio.org"
2717 "/linuxaudio/downloads/VCO-plugins-"
2718 version ".tar.bz2"))
2719 (sha256
2720 (base32
2721 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
2722 (build-system gnu-build-system)
2723 (arguments
2724 `(#:tests? #f ; no "check" target
2725 #:phases
2726 (modify-phases %standard-phases
2727 ;; no configure script
2728 (delete 'configure)
2729 (add-before 'install 'prepare-target-directory
2730 (lambda* (#:key outputs #:allow-other-keys)
2731 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2732 #t))
2733 (add-after 'unpack 'override-target-directory
2734 (lambda* (#:key outputs #:allow-other-keys)
2735 (substitute* "Makefile"
2736 (("/usr") (assoc-ref outputs "out"))
2737 (("/bin/cp") (which "cp")))
2738 #t)))))
2739 (home-page "https://kokkinizita.linuxaudio.org")
2740 (synopsis "LADSPA plugin for synthesizer oscillators")
2741 (description
2742 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
2743
2744@enumerate
2745@item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
2746@item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
2747@item Rec-VCO, a square / rectangle oscillator
2748@end enumerate\n
2749
2750All oscillators are low-pass filtered to provide waveforms similar to the
2751output of analog synthesizers such as the Moog Voyager.")
2752 (license license:gpl2+)))
2753
2754(define-public wah-plugins
2755 (package
2756 (name "wah-plugins")
2757 (version "0.1.0")
2758 (source (origin
2759 (method url-fetch)
2760 (uri (string-append
2761 "http://kokkinizita.linuxaudio.org"
2762 "/linuxaudio/downloads/WAH-plugins-"
2763 version ".tar.bz2"))
2764 (sha256
2765 (base32
2766 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
2767 (build-system gnu-build-system)
2768 (arguments
2769 `(#:tests? #f ; no "check" target
2770 #:phases
2771 (modify-phases %standard-phases
2772 ;; no configure script
2773 (delete 'configure)
2774 (add-before 'install 'prepare-target-directory
2775 (lambda* (#:key outputs #:allow-other-keys)
2776 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2777 #t))
2778 (add-after 'unpack 'override-target-directory
2779 (lambda* (#:key outputs #:allow-other-keys)
2780 (substitute* "Makefile"
2781 (("/usr") (assoc-ref outputs "out")))
2782 #t)))))
2783 (home-page "https://kokkinizita.linuxaudio.org")
2784 (synopsis "LADSPA Autowah effect plugin")
2785 (description
2786 "This package provides a LADSPA plugin for a Wah effect with envelope
2787follower.")
2788 (license license:gpl2+)))
2789
2790(define-public g2reverb
2791 (package
2792 (name "g2reverb")
2793 (version "0.7.1")
2794 (source (origin
2795 (method url-fetch)
2796 (uri (string-append
2797 "http://kokkinizita.linuxaudio.org"
2798 "/linuxaudio/downloads/g2reverb-"
2799 version ".tar.bz2"))
2800 (sha256
2801 (base32
2802 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
2803 (build-system gnu-build-system)
2804 (arguments
2805 `(#:tests? #f ; no "check" target
2806 #:phases
2807 (modify-phases %standard-phases
2808 ;; no configure script
2809 (delete 'configure)
2810 (add-before 'install 'prepare-target-directory
2811 (lambda* (#:key outputs #:allow-other-keys)
2812 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
2813 #t))
2814 (add-after 'unpack 'override-target-directory
2815 (lambda* (#:key outputs #:allow-other-keys)
2816 (substitute* "Makefile"
2817 (("/usr") (assoc-ref outputs "out")))
2818 #t)))))
2819 (home-page "https://kokkinizita.linuxaudio.org")
2820 (synopsis "LADSPA stereo reverb plugin")
2821 (description
2822 "This package provides a LADSPA plugin for a stereo reverb effect.")
2823 (license license:gpl2+)))
2824
2825(define-public fluidsynth
2826 (package
2827 (name "fluidsynth")
2828 (version "2.4.8")
2829 (source (origin
2830 (method git-fetch)
2831 (uri (git-reference
2832 (url "https://github.com/FluidSynth/fluidsynth")
2833 (commit (string-append "v" version))))
2834 (file-name (git-file-name name version))
2835 (sha256
2836 (base32
2837 "1zx9pvarizjm98kqw47jzbiysywxl2z46sl8cr2vjnhdbm2yiqxc"))))
2838 (build-system cmake-build-system)
2839 (arguments
2840 '(#:tests? #f ; no check target
2841 #:phases
2842 (modify-phases %standard-phases
2843 (add-after 'unpack 'fix-libdir
2844 (lambda _
2845 ;; Install libraries to /lib, not /lib64.
2846 (substitute* "CMakeLists.txt"
2847 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
2848 "LIB_SUFFIX \"\"")))))))
2849 (inputs
2850 (list ladspa))
2851 (native-inputs
2852 (list pkg-config))
2853 (propagated-inputs
2854 ;; In Libs.private of fluidsynth.pc.
2855 (list alsa-lib
2856 glib
2857 jack-1
2858 pipewire
2859 libsndfile
2860 readline))
2861 (home-page "https://www.fluidsynth.org/")
2862 (synopsis "SoundFont synthesizer")
2863 (description
2864 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
2865specifications. FluidSynth reads and handles MIDI events from the MIDI input
2866device. It is the software analogue of a MIDI synthesizer. FluidSynth can
2867also play midifiles using a Soundfont.")
2868 (license license:lgpl2.1+)))
2869
2870(define-public faad2
2871 (package
2872 (name "faad2")
2873 (version "2.8.8")
2874 (source
2875 (origin
2876 (method url-fetch)
2877 (uri
2878 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
2879 (version-major+minor version) ".0/"
2880 "faad2-" version ".tar.gz"))
2881 (sha256
2882 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
2883 (build-system gnu-build-system)
2884 (home-page "https://www.audiocoding.com/faad2.html")
2885 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
2886 (description
2887 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
2888 (license license:gpl2+)))
2889
2890(define-public faust
2891 (package
2892 (name "faust")
2893 (version "0.9.90")
2894 (source (origin
2895 (method git-fetch)
2896 (uri (git-reference
2897 (url "https://github.com/grame-cncm/faust")
2898 (commit (string-append "v"
2899 (string-map (lambda (c)
2900 (if (char=? c #\.) #\- c))
2901 version)))))
2902 (file-name (string-append "faust-" version "-checkout"))
2903 (sha256
2904 (base32
2905 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
2906 (build-system gnu-build-system)
2907 (arguments
2908 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
2909 #:tests? #f
2910 #:phases
2911 (modify-phases %standard-phases
2912 ;; no "configure" script
2913 (delete 'configure)
2914 ;; Files appear under $out/share/faust that are read-only. The
2915 ;; install phase tries to overwrite them and fails, so we change
2916 ;; the permissions first.
2917 (add-before 'install 'fix-permissions
2918 (lambda _
2919 (for-each (lambda (file)
2920 (chmod file #o644))
2921 (find-files "architecture/max-msp" ".*"))
2922 #t)))))
2923 (native-inputs
2924 (list unzip))
2925 (home-page "https://faust.grame.fr/")
2926 (synopsis "Signal processing language")
2927 (description
2928 "Faust is a programming language for realtime audio signal processing.")
2929 (license license:gpl2+)))
2930
2931(define-public faust-2
2932 (package
2933 (inherit faust)
2934 (version "2.81.10")
2935 (source (origin
2936 (method url-fetch)
2937 (uri (string-append "https://github.com/grame-cncm/faust/"
2938 "releases/download/" version
2939 "/faust-" version ".tar.gz"))
2940 (sha256
2941 (base32
2942 "0mj7gn7xp6mzr94nqcyrrkcmzm81chq6qb1n76wspah71lw7g6f6"))))
2943 (build-system cmake-build-system)
2944 (arguments
2945 (list
2946 ;; There are tests, but they are unit/regression tests scattered in 17
2947 ;; different test directories, and little information indicating whether
2948 ;; they are worth running for Guix. Ignore tests for now.
2949 #:tests? #f
2950 #:configure-flags
2951 #~(list "-C" "backends/all.cmake"
2952 (string-append "-DCMAKE_INSTALL_PREFIX=" #$output))
2953 #:phases
2954 #~(modify-phases %standard-phases
2955 ;; The upstream package uses make to run cmake during the build stage.
2956 ;; Here we ignore the Makefile and call cmake directly.
2957 (replace 'configure
2958 (lambda* (#:key configure-flags #:allow-other-keys)
2959 (chdir "build")
2960 (apply invoke "cmake" configure-flags)))
2961 ;; The sound2faust tool would be built in the Makefile's "world" target
2962 (add-after 'install 'sound2faust
2963 (lambda _
2964 (chdir "../tools/sound2faust")
2965 (setenv "PREFIX" #$output)
2966 (invoke "make")
2967 (invoke "make" "install"))))))
2968 (native-inputs
2969 (list llvm-18 pkg-config which))
2970 (inputs
2971 (list libsndfile libmicrohttpd ncurses openssl zlib))))
2972
2973(define-public freepats
2974 (package
2975 (name "freepats")
2976 (version "20060219")
2977 (source (origin
2978 (method url-fetch)
2979 (uri (string-append "http://freepats.zenvoid.org/freepats-"
2980 version ".tar.bz2"))
2981 (sha256
2982 (base32
2983 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
2984 (build-system trivial-build-system)
2985 (arguments
2986 `(#:modules ((guix build utils))
2987 #:builder (begin
2988 (use-modules (guix build utils))
2989 (let ((out (string-append %output "/share/freepats")))
2990 (setenv "PATH" (string-append
2991 (assoc-ref %build-inputs "bzip2") "/bin:"
2992 (assoc-ref %build-inputs "tar") "/bin"))
2993 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2994 (chdir "freepats")
2995 ;; Use absolute pattern references
2996 (substitute* "freepats.cfg"
2997 (("Tone_000") (string-append out "/Tone_000"))
2998 (("Drum_000") (string-append out "/Drum_000")))
2999 (mkdir-p out)
3000 (copy-recursively "." out)
3001 #t))))
3002 (native-inputs
3003 (list tar bzip2))
3004 (home-page "https://freepats.zenvoid.org")
3005 (synopsis "GUS compatible patches for MIDI players")
3006 (description
3007 "FreePats is a project to create a free and open set of GUS compatible
3008patches that can be used with softsynths such as Timidity and WildMidi.")
3009 ;; GPLv2+ with exception for compositions using these patches.
3010 (license license:gpl2+)))
3011
3012(define-public freepats-gm
3013 (package
3014 (name "freepats-gm")
3015 (version "20210329")
3016 (source (origin
3017 (method url-fetch)
3018 (uri (string-append "https://freepats.zenvoid.org/SoundSets/"
3019 "FreePats-GeneralMIDI/FreePatsGM-SF2-" version ".7z"))
3020 (sha256
3021 (base32
3022 "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc"))))
3023 (build-system trivial-build-system)
3024 (native-inputs
3025 `(("p7zip" ,p7zip)))
3026 (arguments
3027 `(#:modules ((guix build utils))
3028 #:builder
3029 (let ((dir (string-append "FreePatsGM-SF2-" ,version))
3030 (file (string-append "FreePatsGM-" ,version ".sf2"))
3031 (out (string-append %output "/share/soundfonts"))
3032 (doc (string-append %output "/share/doc/freepats-gm-" ,version)))
3033 (use-modules (guix build utils))
3034 (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")
3035 "e" (assoc-ref %build-inputs "source")
3036 (string-append dir "/" file)
3037 (string-append dir "/gpl.txt")
3038 (string-append dir "/cc0.txt")
3039 (string-append dir "/readme.txt"))
3040 (mkdir-p out)
3041 (copy-file file (string-append out "/FreePatsGM.sf2"))
3042 (mkdir-p doc)
3043 (for-each
3044 (lambda (file)
3045 (copy-file file (string-append doc "/" file)))
3046 (find-files "." "\\.txt$"))
3047 #t)))
3048 (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html")
3049 (synopsis "General MIDI sound set")
3050 (description "FreePats is a project to create a free (as in free software)
3051collection of digital instruments for music production. This sound bank is a
3052partial release of the General MIDI sound set.")
3053 (license (list
3054 license:gpl3+ ; with sampling exception
3055 license:cc0))))
3056
3057(define-public guitarix
3058 (package
3059 (name "guitarix")
3060 (version "0.44.1")
3061 (source (origin
3062 (method url-fetch)
3063 (uri (string-append
3064 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
3065 version ".tar.xz"))
3066 (sha256
3067 (base32
3068 "063cdvrzrpnj08dm22z651hy5cz5bnsywf1z8b2kib2i9xskvs3p"))))
3069 (build-system waf-build-system)
3070 (arguments
3071 (list #:tests? #f ; no "check" target
3072 #:configure-flags
3073 #~(list
3074 ;; Add the output lib directory to the RUNPATH.
3075 (string-append "--ldflags=-Wl,-rpath=" #$output "/lib"))
3076 #:phases
3077 '(modify-phases %standard-phases
3078 (add-after 'unpack 'fix-includes
3079 (lambda _
3080 (substitute* "src/LV2/DSP/gx_common.h"
3081 (("#include <cstdlib>" all)
3082 (string-append all "\n#include <cstdint>")))))
3083 (add-after 'unpack 'python3.11-compatibility
3084 (lambda _
3085 (substitute* "wscript"
3086 (("'rU'") "'r'")))))))
3087 (inputs
3088 (list libsndfile
3089 boost-1.83
3090 curl
3091 avahi
3092 eigen
3093 lv2
3094 lilv
3095 ladspa
3096 jack-1
3097 gtkmm-3
3098 gtk+
3099 fftwf
3100 lrdf
3101 zita-resampler
3102 zita-convolver))
3103 (native-inputs
3104 (list gperf
3105 faust
3106 intltool
3107 gettext-minimal
3108 pkg-config
3109 sassc))
3110 (home-page "https://guitarix.org/")
3111 (synopsis "Virtual guitar amplifier")
3112 (description "Guitarix is a virtual guitar amplifier running JACK.
3113Guitarix takes the signal from your guitar as a mono-signal from your sound
3114card. The input is processed by a main amp and a rack-section. Both can be
3115routed separately and deliver a processed stereo-signal via JACK. You may
3116fill the rack with effects from more than 25 built-in modules including stuff
3117from a simple noise gate to modulation effects like flanger, phaser or
3118auto-wah.")
3119 (license license:gpl2+)))
3120
3121(define-public guitarix-lv2
3122 (package (inherit guitarix)
3123 (name "guitarix-lv2")
3124 (arguments
3125 (substitute-keyword-arguments arguments
3126 ((#:configure-flags flags)
3127 `(cons "--no-standalone" ,flags))))))
3128
3129(define-public rakarrack
3130 (package
3131 (name "rakarrack")
3132 (version "0.6.1")
3133 (source (origin
3134 (method url-fetch)
3135 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
3136 "rakarrack-" version "/rakarrack-"
3137 version ".tar.bz2"))
3138 (sha256
3139 (base32
3140 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
3141 (modules '((guix build utils)))
3142 (snippet
3143 '(begin
3144 (substitute* '("src/process.C"
3145 "src/global.h")
3146 (("#include <Fl/") "#include <FL/"))
3147 #t))))
3148 (build-system gnu-build-system)
3149 (inputs
3150 (list alsa-utils
3151 fltk-1.3
3152 libx11
3153 libxext
3154 libxfixes
3155 libxft
3156 libxrender
3157 libxpm
3158 fontconfig
3159 freetype
3160 jack-1
3161 alsa-lib
3162 libsndfile
3163 libsamplerate
3164 zlib))
3165 (home-page "https://rakarrack.sourceforge.net/")
3166 (synopsis "Audio effects processor")
3167 (description
3168 "Rakarrack is a richly featured multi-effects processor emulating a
3169guitar effects pedalboard. Effects include compressor, expander, noise gate,
3170equalizers, exciter, flangers, chorus, various delay and reverb effects,
3171distortion modules and many more. Most of the effects engine is built from
3172modules found in the excellent software synthesizer ZynAddSubFX. Presets and
3173user interface are optimized for guitar, but Rakarrack processes signals in
3174stereo while it does not apply internal band-limiting filtering, and thus is
3175well suited to all musical instruments and vocals.")
3176 ;; The code is explicitly licensed under the GPL version 2 only.
3177 (license license:gpl2)))
3178
3179(define-public ir
3180 (package
3181 (name "ir")
3182 (version "1.3.4")
3183 (source (origin
3184 (method git-fetch)
3185 (uri (git-reference
3186 (url "https://github.com/tomszilagyi/ir.lv2")
3187 (commit version)))
3188 (file-name (git-file-name name version))
3189 (sha256
3190 (base32
3191 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
3192 (build-system gnu-build-system)
3193 (arguments
3194 `(#:tests? #f ; no tests
3195 #:make-flags
3196 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3197 (string-append "INSTDIR="
3198 (assoc-ref %outputs "out") "/lib/lv2"))
3199 #:phases
3200 (modify-phases %standard-phases
3201 (delete 'configure) ; no configure script
3202 ;; See https://github.com/tomszilagyi/ir.lv2/pull/20
3203 (add-after 'unpack 'fix-type
3204 (lambda _
3205 (substitute* '("ir_gui.cc" "lv2_ui.h")
3206 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
3207 #t)))))
3208 (inputs
3209 (list libsndfile
3210 libsamplerate
3211 lv2
3212 glib
3213 gtk+-2
3214 zita-convolver))
3215 (native-inputs
3216 (list pkg-config))
3217 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
3218 (synopsis "LV2 convolution reverb")
3219 (description
3220 "IR is a low-latency, real-time, high performance signal convolver
3221especially for creating reverb effects. It supports impulse responses with 1,
32222 or 4 channels, in any soundfile format supported by libsndfile.")
3223 (license license:gpl2+)))
3224
3225;; Packages depending on JACK should always prefer jack-2.
3226;; JACK1 is provided for legacy applications
3227(define-public jack-1
3228 (package
3229 (name "jack")
3230 (version "0.125.0")
3231 (source
3232 (origin
3233 (method url-fetch)
3234 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
3235 ;; no longer exists (404). Use an unofficial mirror.
3236 (uri (string-append "https://crux.ster.zone/downloads/"
3237 "jack-audio-connection-kit/"
3238 "jack-audio-connection-kit-" version ".tar.gz"))
3239 (sha256
3240 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
3241 (build-system gnu-build-system)
3242 (arguments
3243 `(#:configure-flags
3244 '("CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types")
3245 #:phases (modify-phases %standard-phases
3246 (add-after 'unpack 'patch-configure
3247 (lambda _
3248 (substitute* "configure"
3249 ;; Install to <out/lib> regardless of platform.
3250 (("libnn=lib64") "libnn=lib")))))))
3251 (inputs
3252 (list alsa-lib readline))
3253 ;; uuid.h is included in the JACK type headers
3254 ;; db.h is included in the libjack metadata headers
3255 (propagated-inputs
3256 `(("libuuid" ,util-linux "lib")
3257 ("bdb" ,bdb)))
3258 (native-inputs
3259 (list pkg-config))
3260 (home-page "https://jackaudio.org/")
3261 (synopsis "JACK audio connection kit")
3262 (description
3263 "JACK is a low-latency audio server. It can connect a number of
3264different applications to an audio device, as well as allowing them to share
3265audio between themselves. JACK is different from other audio server efforts
3266in that it has been designed from the ground up to be suitable for
3267professional audio work. This means that it focuses on two key areas:
3268synchronous execution of all clients, and low latency operation.")
3269 ;; Most files are licensed under the GPL. However, the libjack/ tree is
3270 ;; licensed under the LGPL in order to allow for proprietary usage.
3271 (license (list license:gpl2+ license:lgpl2.1+))))
3272
3273;; Packages depending on JACK should always prefer jack-2. Both jack-1 and
3274;; jack-2 implement the same API.
3275(define-public jack-2
3276 (package
3277 (inherit jack-1)
3278 (name "jack2")
3279 ;; 1.9.22 does not compile with Python 3.12, use the latest commit instead.
3280 (properties '((commit . "17959465a722225a36a8b612aed26764036f258e")
3281 (revision . "0")))
3282 (version (git-version "1.9.22"
3283 (assoc-ref properties 'revision)
3284 (assoc-ref properties 'commit)))
3285 (source (origin
3286 (method git-fetch)
3287 (uri (git-reference
3288 (url "https://github.com/jackaudio/jack2")
3289 (commit (assoc-ref properties 'commit))))
3290 (file-name (git-file-name name version))
3291 (sha256
3292 (base32
3293 "18dbjq9y8mcp27j9aaqdlg4976hrisr7b88lk84ck09gmzlwqalp"))))
3294 (build-system waf-build-system)
3295 (arguments
3296 `(#:tests? #f ; no check target
3297 #:configure-flags '("--dbus" "--alsa")
3298 #:phases
3299 (modify-phases %standard-phases
3300 (add-before 'configure 'set-linkflags
3301 (lambda _
3302 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
3303 ;; will not link with undefined reference to symbol
3304 ;; '__gxx_personality_v0@@CXXABI_1.3'
3305 (setenv "LDFLAGS" "-lstdc++")
3306 ;; Add $libdir to the RUNPATH of all the binaries.
3307 (substitute* "wscript"
3308 ((".*CFLAGS.*-Wall.*" m)
3309 (string-append m
3310 " conf.env.append_unique('LINKFLAGS',"
3311 "'-Wl,-rpath=" %output "/lib')\n")))))
3312 (add-after 'install 'wrap-python-scripts
3313 (lambda* (#:key outputs #:allow-other-keys)
3314 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
3315 (wrap-program (search-input-file outputs "bin/jack_control")
3316 `("GUIX_PYTHONPATH" ":"
3317 prefix (,(getenv "GUIX_PYTHONPATH")))))))))
3318 (inputs
3319 (list alsa-lib
3320 bash-minimal
3321 dbus
3322 expat
3323 libsamplerate
3324 opus
3325 python-dbus
3326 readline))
3327 (native-inputs
3328 (list pkg-config))
3329 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
3330 (license (list license:gpl2+ license:lgpl2.1+))))
3331
3332(define-public jack-example-tools
3333 (package
3334 (name "jack-example-tools")
3335 (version "3")
3336 (source (origin
3337 (method git-fetch)
3338 (uri (git-reference
3339 (url "https://github.com/jackaudio/jack-example-tools")
3340 (commit version)))
3341 (file-name (git-file-name name version))
3342 (sha256
3343 (base32
3344 "0x684clxqib1bq3zvvrqlh7hb3arb1bf672xyx1jbwv76dcmm5mh"))))
3345 (build-system meson-build-system)
3346 (inputs
3347 (list alsa-lib
3348 jack-2
3349 libsndfile
3350 opus
3351 readline))
3352 (native-inputs
3353 (list pkg-config))
3354 (home-page "https://github.com/jackaudio/jack-example-tools")
3355 (synopsis "Tools for JACK connections")
3356 (description "This package provides tools for managing JACK connections
3357and testing or configuring the JACK session. Tools include @code{jack_lsp},
3358@code{jack_connect}, and @code{jack_transport}.")
3359 ;; Most files are under GPLv2+, but zalsa is GPLv3+.
3360 (license (list license:gpl2+ license:gpl3+))))
3361
3362(define-public jacktrip
3363 (package
3364 (name "jacktrip")
3365 (version "2.7.1")
3366 (source (origin
3367 (method git-fetch)
3368 (uri (git-reference
3369 (url "https://github.com/jacktrip/jacktrip/")
3370 (commit (string-append "v" version))))
3371 (file-name (git-file-name name version))
3372 (sha256
3373 (base32 "1d9cn4nny3kbf3f9x0bcsrqb0ir1h789nv7s72xmhf7r5rfd9xm4"))))
3374 (build-system gnu-build-system)
3375 (arguments
3376 (list
3377 #:phases
3378 '(modify-phases %standard-phases
3379 (replace 'configure
3380 (lambda* (#:key outputs #:allow-other-keys)
3381 (invoke "qmake"
3382 (string-append "PREFIX="
3383 (assoc-ref outputs "out"))
3384 "-config" "novs"
3385 "-config" "noupdater"
3386 "jacktrip.pro"))))))
3387 (inputs
3388 (list jack-2
3389 python
3390 python-jinja2
3391 python-pyyaml
3392 qtbase
3393 qtwayland
3394 rtaudio))
3395 (native-inputs
3396 (list pkg-config))
3397 (home-page "https://jacktrip.github.io/jacktrip/")
3398 (synopsis "Multi-machine audio system for network music performance")
3399 (description
3400 "JackTrip is a multi-machine audio system used for network music
3401performance over the Internet. It supports any number of channels (as many as
3402the computer/network can handle) of bidirectional, high quality, uncompressed
3403audio signal streaming.")
3404 (license (list license:gpl3+ license:lgpl3 license:expat))))
3405
3406(define-public jack-mixer
3407 (package
3408 (name "jack-mixer")
3409 (version "19")
3410 (source
3411 (origin
3412 (file-name (git-file-name name version))
3413 (method git-fetch)
3414 (uri (git-reference
3415 (url "https://github.com/jack-mixer/jack_mixer")
3416 (commit (string-append "release-" version))))
3417 (sha256
3418 (base32 "18m6a9asbwaslw418i2w04kgc6jgdpw01i3kawdqy903kw66hnhj"))))
3419 (build-system meson-build-system)
3420 (arguments
3421 (list
3422 #:build-type "release"
3423 #:phases #~(modify-phases %standard-phases
3424 (add-after 'unpack 'path-patch
3425 (lambda _
3426 (substitute* '("meson.build")
3427 (("'/', 'etc', 'xdg'")
3428 (string-append "'"
3429 #$output "'")))))
3430 (add-after 'install 'wrap-path
3431 (lambda* (#:key outputs #:allow-other-keys)
3432 (let* ((out (assoc-ref outputs "out"))
3433 (bin (string-append out "/bin/"))
3434 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
3435 (version #$(version-major+minor (package-version
3436 (this-package-input
3437 "python"))))
3438 (lib (string-append out "/lib/python" version
3439 "/site-packages")))
3440 (wrap-program (string-append bin "jack_mixer")
3441 `("GUIX_PYTHONPATH" ":" prefix
3442 (,(getenv "GUIX_PYTHONPATH") ,lib))
3443 `("GI_TYPELIB_PATH" ":" prefix
3444 (,gi-typelib-path)))))))))
3445 (native-inputs (list pkg-config python-cython python-docutils
3446 gettext-minimal glib))
3447 (inputs (list bash-minimal))
3448 (propagated-inputs (list gtk+
3449 `(,gtk+ "bin")
3450 python
3451 python-wrapper
3452 python-pygobject
3453 python-pycairo
3454 python-platformdirs
3455 jack-2))
3456 (synopsis
3457 "JACK Mixer: A multi-channel audio mixer for the JACK Audio Connection Kit")
3458 (description
3459 "The jack_mixer is a GTK+ JACK audio mixer app with a look & handling
3460similar to hardware mixing desks. It has lot of useful features, apart
3461from being able to mix multiple JACK audio streams.")
3462 (home-page "https://rdio.space/jackmixer/")
3463 (license license:gpl2+)))
3464
3465(define-public pipemixer
3466 (package
3467 (name "pipemixer")
3468 (version "0.5.0")
3469 (source
3470 (origin
3471 (method git-fetch)
3472 (uri (git-reference
3473 (url "https://github.com/heather7283/pipemixer")
3474 (commit (string-append "v" version))))
3475 (file-name (git-file-name name version))
3476 (sha256
3477 (base32 "104h2zdhqx5gdddnb7v7rhrflznh4v7d4g3s6vk2mxwf938zgm72"))))
3478 (build-system meson-build-system)
3479 (native-inputs
3480 (list pkg-config))
3481 (inputs
3482 (list libinih ncurses pipewire-minimal-1.4))
3483 (synopsis "TUI volume control app for pipewire.")
3484 (description "This is a TUI volume control application for pipewire built with
3485ncurses. Heavily inspired by pulsemixer and pwvucontrol.")
3486 (home-page "https://github.com/heather7283/pipemixer")
3487 (license license:gpl3)))
3488
3489(define-public jalv
3490 (package
3491 (name "jalv")
3492 (version "1.6.8")
3493 (source (origin
3494 (method url-fetch)
3495 (uri (string-append "https://download.drobilla.net/jalv-"
3496 version ".tar.xz"))
3497 (sha256
3498 (base32
3499 "1q8mzjv577vdi64s47gd4pg0ydzxvs32cwrb1d64v90f52qpgbpd"))))
3500 (build-system meson-build-system)
3501 (arguments
3502 (list #:tests? #f ; no check target
3503 #:phases
3504 #~(modify-phases %standard-phases
3505 (add-before 'configure 'build-PIC
3506 ;; The default -fPIE #errors when combined with our Qt
3507 ;; packages. Work around the broken meson.build script
3508 ;; clobbering c_args.
3509 (lambda _
3510 (substitute* "meson.build"
3511 (("'-DZIX_STATIC'" match)
3512 (string-append match ", '-fPIC'"))))))))
3513 (inputs
3514 (list lv2
3515 lilv
3516 suil
3517 gtk+
3518 jack-1
3519 qtbase-5))
3520 (native-inputs
3521 (list pkg-config))
3522 (native-search-paths
3523 (list (search-path-specification
3524 (variable "LV2_PATH")
3525 (files '("lib/lv2")))))
3526 (home-page "https://drobilla.net/software/jalv.html")
3527 (synopsis "Simple LV2 host for JACK")
3528 (description
3529 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
3530plugins and exposes their ports as JACK ports, essentially making any LV2
3531plugin function as a JACK application.")
3532 (license license:isc)))
3533
3534(define-public clap
3535 (package
3536 (name "clap")
3537 (version "1.2.6")
3538 (source (origin
3539 (method git-fetch)
3540 (uri (git-reference
3541 (url "https://github.com/free-audio/clap")
3542 (commit version)))
3543 (file-name (git-file-name name version))
3544 (sha256
3545 (base32
3546 "1ryg21qm4262n9hv259lfhlg25c8k3i2qgqav37r10q55jx2w8j3"))))
3547 (build-system cmake-build-system)
3548 (arguments
3549 ;; FIXME: With "-DCLAP_BUILD_TESTS=ON" the test executables do not build.
3550 (list #:tests? #f))
3551 (synopsis "Audio Plugin API")
3552 (description
3553 "CLAP stands for CLever Audio Plugin. It is an audio plugin ABI which
3554defines a standard for Digital Audio Workstations and audio plugins to work
3555together.")
3556 (home-page "https://cleveraudio.org/")
3557 (license license:expat)))
3558
3559(define-public clap-1.1
3560 (package/inherit clap
3561 (version "1.1.10")
3562 (source (origin
3563 (method git-fetch)
3564 (uri (git-reference
3565 (url "https://github.com/free-audio/clap")
3566 (commit version)))
3567 (file-name (git-file-name "clap" version))
3568 (sha256
3569 (base32
3570 "0skn3cvh7zs173v3i6ywdmddqzrhxvivwdisvmqc6hvq594f8z80"))))))
3571
3572(define-public clap-1.0
3573 (package/inherit clap
3574 (version "1.0.3")
3575 (source (origin
3576 (method git-fetch)
3577 (uri (git-reference
3578 (url "https://github.com/free-audio/clap")
3579 (commit version)))
3580 (file-name (git-file-name "clap" version))
3581 (sha256
3582 (base32
3583 "0ck07ihbmjlqfys5k942fn97f7z4sq1ikxdzcm5fs8nr9j0f1mfn"))))
3584 (arguments
3585 (substitute-keyword-arguments arguments
3586 ((#:phases phases
3587 #~%standard-phases)
3588 #~(modify-phases #$phases
3589 (add-after 'unpack 'include-headers-in-install
3590 (lambda _
3591 ;; The 1.0.x install rule is excluded from the default install
3592 ;; target.
3593 (substitute* "CMakeLists.txt"
3594 ((" OPTIONAL EXCLUDE_FROM_ALL")
3595 ""))))))))))
3596
3597(define-public ladspa
3598 (package
3599 (name "ladspa")
3600 (version "1.13")
3601 (source
3602 (origin
3603 (method url-fetch)
3604 ;; Since the official link is dead,
3605 ;; we download the tarball from Debian or Internet Archive.
3606 (uri (list (string-append "http://deb.debian.org"
3607 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
3608 version ".orig.tar.gz")
3609 (string-append "https://web.archive.org/web/20140717172251/"
3610 "http://www.ladspa.org/download/ladspa_sdk_"
3611 version ".tgz")))
3612 (sha256
3613 (base32
3614 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
3615 (build-system gnu-build-system)
3616 (arguments
3617 `(#:tests? #f ; the "test" target is a listening test only
3618 #:phases
3619 (modify-phases %standard-phases
3620 (replace 'configure
3621 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
3622 (chdir "src")
3623 (let ((out (assoc-ref outputs "out")))
3624 (substitute* "makefile"
3625 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
3626 (("/usr/include/") (string-append out "/include/"))
3627 (("/usr/bin/") (string-append out "/bin/"))
3628 (("-mkdirhier") "mkdir -p")
3629 (("^CC.*") "CC = gcc\n")
3630 (("^CPP.*") "CPP = g++\n")))
3631 #t))
3632 (delete 'build))))
3633 (native-search-paths
3634 (list (search-path-specification
3635 (variable "LADSPA_PATH")
3636 (files '("lib/ladspa")))))
3637 ;; Since the home page is gone, we provide a link to the archived version.
3638 (home-page
3639 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
3640 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
3641 (description
3642 "LADSPA is a standard that allows software audio processors and effects
3643to be plugged into a wide range of audio synthesis and recording packages.")
3644 (license license:lgpl2.1+)))
3645
3646(define-public libbs2b
3647 (package
3648 (name "libbs2b")
3649 (version "3.1.0")
3650 (source (origin
3651 (method url-fetch)
3652 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
3653 "/libbs2b-" version ".tar.lzma"))
3654 (sha256
3655 (base32
3656 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
3657 (build-system gnu-build-system)
3658 (native-inputs (list pkg-config))
3659 (inputs (list libsndfile))
3660 (home-page "https://sourceforge.net/projects/bs2b/")
3661 (synopsis "Bauer stereophonic-to-binaural DSP")
3662 (description
3663 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
3664designed to improve headphone listening of stereo audio records. Recommended
3665for headphone prolonged listening to disable superstereo fatigue without
3666essential distortions.")
3667 (license license:expat)))
3668
3669(define-public ladspa-bs2b
3670 (package
3671 (name "ladspa-bs2b")
3672 (version "0.9.1")
3673 (source (origin
3674 (method url-fetch)
3675 (uri (string-append
3676 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
3677 version "/" name "-" version ".tar.gz"))
3678 (sha256
3679 (base32
3680 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
3681 (build-system gnu-build-system)
3682 (native-inputs (list pkg-config))
3683 (inputs (list ladspa libbs2b))
3684 (home-page "https://sourceforge.net/projects/bs2b/")
3685 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
3686 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
3687plugins is designed to improve headphone listening of stereo audio records.
3688Recommended for headphone prolonged listening to disable superstereo fatigue
3689without essential distortions. This package contains a LADSPA plugin for use
3690with applications that support them (e.g. PulseAudio).")
3691 (license license:gpl2+)))
3692
3693(define-public liblo
3694 (package
3695 (name "liblo")
3696 (version "0.31")
3697 (source
3698 (origin
3699 (method git-fetch)
3700 (uri (git-reference
3701 (url "https://github.com/radarsat1/liblo")
3702 (commit version)))
3703 (file-name (git-file-name name version))
3704 (sha256
3705 (base32 "124c4mviqwxzzi59czk80qkdd8yi69wn46psrsqj49dz5xgn2w4s"))))
3706 (build-system gnu-build-system)
3707 (arguments
3708 (list
3709 #:configure-flags
3710 #~(list "--disable-network-tests")))
3711 (native-inputs (list autoconf automake libtool))
3712 (home-page "https://liblo.sourceforge.net")
3713 (synopsis "Implementation of the Open Sound Control protocol")
3714 (description
3715 "liblo is a lightweight library that provides an easy to use
3716implementation of the Open Sound Control (@dfn{OSC}) protocol.")
3717 (license license:lgpl2.1+)))
3718
3719(define-public rtaudio
3720 (package
3721 (name "rtaudio")
3722 (version "5.2.0")
3723 (source
3724 (origin
3725 (method git-fetch)
3726 (uri (git-reference
3727 (url "https://github.com/thestk/rtaudio")
3728 (commit version)))
3729 (file-name (git-file-name name version))
3730 (sha256
3731 (base32 "189xphhf0winf8b60dx1kk2biz811wk6ps44br7l1lyfhymxcjmi"))))
3732 (build-system cmake-build-system)
3733 (native-inputs
3734 (list pkg-config))
3735 (inputs
3736 (list alsa-lib jack-1 pulseaudio))
3737 (synopsis "Common API for real-time audio I/O")
3738 (description
3739 "RtAudio is a set of C++ classes that provides a common API for real-time
3740audio input/output. It was designed with the following objectives:
3741
3742@itemize
3743@item object-oriented C++ design
3744@item simple, common API across all supported platforms
3745@item only one source and one header file for easy inclusion in programming
3746projects
3747@item allow simultaneous multi-api support
3748@item support dynamic connection of devices
3749@item provide extensive audio device parameter control
3750@item allow audio device capability probing
3751@item automatic internal conversion for data format, channel number
3752compensation, (de)interleaving, and byte-swapping
3753@end itemize")
3754 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
3755 ;; License is expat with a non-binding request to send modifications to
3756 ;; original developer.
3757 (license license:expat)))
3758
3759(define-public rtcqs
3760 (package
3761 (name "rtcqs")
3762 (version "0.6.7")
3763 (source
3764 (origin
3765 (method git-fetch)
3766 (uri (git-reference
3767 (url "https://codeberg.org/rtcqs/rtcqs")
3768 (commit (string-append "v" version))))
3769 (file-name (git-file-name name version))
3770 (sha256
3771 (base32 "1kc3niyaq4m8di68832pgfb1b0m54q5gm68dwlzwwilgxi61ifzc"))))
3772 (build-system pyproject-build-system)
3773 (arguments
3774 (list
3775 #:tests? #f ;no test suite
3776 #:phases
3777 #~(modify-phases %standard-phases
3778 (add-after 'unpack 'remove-gui
3779 (lambda _
3780 (substitute* "pyproject.toml"
3781 (("\"FreeSimpleGUI\",?")
3782 "")
3783 (("rtcqs_gui = \"rtcqs\\.rtcqs_gui:main\"")
3784 ""))
3785 (delete-file "src/rtcqs/rtcqs_gui.py")
3786 (delete-file "src/rtcqs/rtcqs_qt_gui.py"))))))
3787 (native-inputs (list python-setuptools))
3788 (home-page "https://codeberg.org/rtcqs/rtcqs")
3789 (synopsis "Linux audio real-time performance analyzer")
3790 (description
3791 "rtcqs analyzes a Linux system to detect possible bottlenecks that could
3792have a negative impact on real-time audio performance. It checks kernel
3793configuration, IRQ priorities, CPU governor, swappiness, and other settings
3794relevant to low-latency audio work.")
3795 (license license:expat)))
3796
3797(define-public rtosc
3798 (package
3799 (name "rtosc")
3800 (version "0.3.1")
3801 (source (origin
3802 (method git-fetch)
3803 (uri (git-reference
3804 (url "https://github.com/fundamental/rtosc")
3805 (commit (string-append "v" version))))
3806 (file-name (git-file-name name version))
3807 (sha256
3808 (base32
3809 "1djvyq53cjwd0szkvhpk45zcmdgrlirjwr02nqq9hzdmh0n26pk2"))
3810 (patches
3811 (search-patches
3812 "rtosc-0.3.1-fix-invalid-comparison-operator.patch"))))
3813 (build-system cmake-build-system)
3814 (arguments
3815 (list #:configure-flags
3816 #~(list "-DPERF_TEST=ON"
3817 "-DRTOSC_BUILD_SHARED_LIBS=ON")
3818 #:phases
3819 #~(modify-phases %standard-phases
3820 (add-after 'build 'build-documentation
3821 (lambda _
3822 (invoke "make" "rtosc-doc")))
3823 (add-after 'install 'install-documentation
3824 (lambda _
3825 (copy-recursively "html"
3826 (string-append #$output:doc
3827 "/share/doc/rtosc/html")))))))
3828 (native-inputs
3829 (list doxygen pkg-config ruby))
3830 (inputs
3831 (list jack-1
3832 liblo
3833 libx11
3834 mesa))
3835 (outputs (list "out" "doc"))
3836 (home-page "https://fundamental-code.com/wiki/rtosc/")
3837 (synopsis "Realtime Safe OSC packet serialization and dispatch")
3838 (description
3839 "RtOSC is a realtime safe library for handling OSC messages.")
3840 (license license:expat)))
3841
3842(define-public python-jack-client
3843 (package
3844 (name "python-jack-client")
3845 (version "0.5.5")
3846 (source
3847 (origin
3848 (method url-fetch)
3849 (uri (pypi-uri "jack_client" version))
3850 (sha256
3851 (base32 "09l4c34klz73zikav94f1ws91s1j55kcb5gv1vpy5w12wnbj0j78"))))
3852 (build-system pyproject-build-system)
3853 (arguments
3854 (list
3855 #:tests? #f ;no test target
3856 #:phases
3857 #~(modify-phases %standard-phases
3858 (add-after 'unpack 'find-library
3859 (lambda _
3860 (substitute* "src/jack.py"
3861 (("_libname = _find_library\\('jack'\\)")
3862 (string-append "_libname = '"
3863 #$(this-package-input "pipewire")
3864 "/lib/pipewire-0.3/jack/libjack.so.0'"))))))))
3865 (inputs (list pipewire))
3866 (propagated-inputs (list python-cffi))
3867 (native-inputs (list python-setuptools python-wheel))
3868 (home-page "https://jackclient-python.readthedocs.io/")
3869 (synopsis "JACK Audio Connection Kit (JACK) client for Python")
3870 (description "This package provides a JACK Audio Connection Kit (JACK)
3871client for Python. This variant uses the compatibility JACK implementation
3872provided by Pipewire.")
3873 (license license:expat)))
3874
3875(define-public python-pyaudio
3876 (package
3877 (name "python-pyaudio")
3878 (version "0.2.14")
3879 (source
3880 (origin
3881 (method url-fetch)
3882 (uri (pypi-uri "PyAudio" version))
3883 (sha256
3884 (base32 "11rgpnahh2kr3x4plr0r7kpccmbplm35cj669wglv6dlg4wgzpvq"))))
3885 (build-system pyproject-build-system)
3886 (arguments
3887 (list
3888 ;; XXX: Most tests require access to devices.
3889 #:tests? #f
3890 #:phases
3891 #~(modify-phases %standard-phases
3892 (replace 'check
3893 (lambda* (#:key tests? test-flags #:allow-other-keys)
3894 (when tests?
3895 (setenv "PYTHONPATH" (string-append (getcwd) "/tests"))
3896 (apply invoke "python" test-flags)))))))
3897 (native-inputs
3898 (list python-numpy python-setuptools python-wheel))
3899 (inputs (list portaudio))
3900 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
3901 (synopsis "Bindings for PortAudio v19")
3902 (description "This package provides bindings for PortAudio v19, the
3903cross-platform audio input/output stream library.")
3904 (license license:expat)))
3905
3906(define-public python-pyroomacoustics
3907 (package
3908 (name "python-pyroomacoustics")
3909 (version "0.10.0")
3910 (source
3911 (origin
3912 (method git-fetch)
3913 (uri (git-reference
3914 (url "https://github.com/LCAV/pyroomacoustics")
3915 (commit (string-append "v" version))))
3916 (file-name (git-file-name name version))
3917 (sha256
3918 (base32 "0546506lg93nrybvilc4wgrgvn317w9zxv2jwikhpfy1i0qyrnkk"))))
3919 (build-system pyproject-build-system)
3920 (arguments
3921 (list
3922 #:test-flags
3923 #~(list
3924 ;; Want to download data from the internet:
3925 "--ignore"
3926 "pyroomacoustics/directivities/tests/test_sofa_directivities.py"
3927 "--ignore"
3928 "pyroomacoustics/datasets/tests/test_download_uncompress.py"
3929 ;; May fail because of slight numerical imprecision.
3930 "--ignore"
3931 "pyroomacoustics/experimental/tests/test_measure_rt60.py")
3932 #:phases
3933 #~(modify-phases %standard-phases
3934 (add-before 'build 'set-extra-include-paths
3935 (lambda* (#:key inputs #:allow-other-keys)
3936 (setenv "CPLUS_INCLUDE_PATH"
3937 (string-append
3938 (search-input-directory inputs "include/eigen3")
3939 ":"
3940 (or (getenv "CPLUS_INCLUDE_PATH") ""))))))))
3941 (propagated-inputs (list python-scipy))
3942 (native-inputs (list eigen
3943 pybind11
3944 python-cython
3945 python-matplotlib
3946 python-numpy
3947 python-pytest
3948 python-setuptools
3949 python-sofa))
3950 (inputs (list nanoflann))
3951 (home-page "https://github.com/LCAV/pyroomacoustics")
3952 (synopsis "Python library for room acoustics")
3953 (description "@code{pyroomacoustics} is a framework for simulating the
3954acustic behaviour of rooms, such as computing the impulse response using
3955different simulation methods.")
3956 (license license:expat)))
3957
3958(define-public python-pulsectl
3959 (package
3960 (name "python-pulsectl")
3961 (version "24.12.0")
3962 (source
3963 (origin
3964 (method git-fetch)
3965 (uri (git-reference
3966 (url "https://github.com/mk-fg/python-pulse-control")
3967 (commit version)))
3968 (file-name (git-file-name name version))
3969 (sha256
3970 (base32 "1f15w2312j2yc9bs689dvdgq891sjrp5x3q1vf08743px70gxc1m"))))
3971 (build-system pyproject-build-system)
3972 (arguments
3973 (list
3974 #:tests? #f ;tests try to communicate with PulseAudio
3975 #:phases
3976 #~(modify-phases %standard-phases
3977 (add-after 'unpack 'patch-path
3978 (lambda* (#:key inputs #:allow-other-keys)
3979 (substitute* "pulsectl/_pulsectl.py"
3980 (("libpulse.so.0")
3981 (search-input-file inputs "/lib/libpulse.so.0"))))))))
3982 (native-inputs (list python-setuptools))
3983 (inputs (list pulseaudio))
3984 (home-page "https://github.com/mk-fg/python-pulse-control")
3985 (synopsis "Python bindings for mixer-like controls in PulseAudio")
3986 (description
3987 "This package provides a Python high-level interface and ctypes-based
3988bindings for PulseAudio (libpulse), to use in simple synchronous code.
3989This wrapper is mostly for mixer-like controls and introspection-related
3990operations, as opposed to e.g. submitting sound samples to play and
3991player-like clients.")
3992 (license license:expat)))
3993
3994(define-public python-pyliblo3
3995 (package
3996 (name "python-pyliblo3")
3997 (version "0.16.3")
3998 (source (origin
3999 (method git-fetch)
4000 (uri (git-reference
4001 (url "https://github.com/gesellkammer/pyliblo3")
4002 (commit (string-append "v" version))))
4003 (file-name (git-file-name name version))
4004 (sha256
4005 (base32
4006 "1rr2m8jxa5yxyb3pw6h93kvdxg7x0m6sxxxvgn34vq8k8mg1kz21"))))
4007 (build-system pyproject-build-system)
4008 (arguments
4009 (list
4010 #:test-backend #~'custom
4011 #:test-flags #~(list "test/unit.py")
4012 #:phases
4013 #~(modify-phases %standard-phases
4014 ;; long is not available and replaced by int, proposed in
4015 ;; <https://github.com/gesellkammer/pyliblo3/pull/15>.
4016 (add-after 'unpack 'fix-compilation
4017 (lambda _
4018 (substitute* "pyliblo3/_liblo.pyx"
4019 (("long\\(") "int(")
4020 ((", long") "")))))))
4021 (native-inputs
4022 (list python-cython
4023 python-setuptools
4024 python-wheel))
4025 (inputs
4026 (list liblo))
4027 (home-page "https://github.com/gesellkammer/pyliblo3")
4028 (synopsis "Python bindings for liblo")
4029 (description
4030 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
4031library. It supports almost the complete functionality of liblo, allowing you
4032to send and receive OSC messages using a nice and simple Python API. Also
4033included are the command line utilities @code{send_osc} and @code{dump_osc}.")
4034 (license license:lgpl2.1+)))
4035
4036;; XXX: Deprecated on <2026-05-02>.
4037(define-deprecated-package python-pyliblo python-pyliblo3)
4038
4039(define-public python-sofa
4040 (package
4041 (name "python-sofa")
4042 (version "0.2.0")
4043 (source
4044 (origin
4045 (method git-fetch)
4046 (uri (git-reference
4047 (url "https://github.com/spatialaudio/python-sofa/")
4048 (commit (string-append "v" version))))
4049 (file-name (git-file-name name version))
4050 (sha256
4051 (base32 "0n6mdck2dawfm6napqhhxi8gjyvs6121pblcr7zjl37a8ldqvg29"))))
4052 (build-system pyproject-build-system)
4053 (arguments
4054 (list
4055 #:tests? #f ;No tests
4056 #:phases
4057 #~(modify-phases %standard-phases
4058 (add-after 'unpack 'remove-wrong-dependency
4059 (lambda _
4060 (substitute* "setup.py"
4061 (("'datetime'")
4062 "")))))))
4063 (propagated-inputs (list python-netcdf4 python-numpy python-scipy))
4064 (native-inputs (list python-setuptools))
4065 (home-page "https://github.com/spatialaudio/python-sofa/")
4066 (synopsis
4067 "Python @acronym{Spatially Oriented Format for Acoustics, SOFA} API")
4068 (description
4069 "Python API for @acronym{Spatially Oriented Format for Acoustics, SOFA} files
4070as specified in @url{https://www.sofaconventions.org, SOFA conventions}.")
4071 (license license:expat)))
4072
4073(define-public python-soundfile
4074 (package
4075 (name "python-soundfile")
4076 (version "0.13.1")
4077 (source
4078 (origin
4079 (method url-fetch)
4080 (uri (pypi-uri "soundfile" version))
4081 (sha256
4082 (base32
4083 "0nqf7z2wrb70vppjv5729565h0p3azgl6nqa10bp6a9h3smqvimj"))))
4084 (build-system pyproject-build-system)
4085 (arguments
4086 (list
4087 #:test-flags
4088 ;; Error opening 'tests/stereo.mp3': File contains data in an
4089 ;; unimplemented format.
4090 '(list "-k" "not test_write_mp3_compression")
4091 #:phases
4092 '(modify-phases %standard-phases
4093 (add-after 'unpack 'patch
4094 (lambda* (#:key inputs #:allow-other-keys)
4095 (substitute* "soundfile.py"
4096 (("_find_library\\('sndfile'\\)")
4097 (string-append "\"" (search-input-file inputs "/lib/libsndfile.so")
4098 "\""))))))))
4099 (propagated-inputs
4100 (list python-cffi python-numpy libsndfile))
4101 (native-inputs
4102 (list python-pytest python-setuptools python-wheel))
4103 (home-page "https://github.com/bastibe/SoundFile")
4104 (synopsis "Python bindings for libsndfile")
4105 (description "This package provides python bindings for libsndfile based on
4106CFFI and NumPy.")
4107 (license license:expat)))
4108
4109(define-public python-soxr
4110 (package
4111 (name "python-soxr")
4112 (version "1.0.0")
4113 (source
4114 (origin
4115 (method url-fetch)
4116 (uri (pypi-uri "soxr" version))
4117 (sha256
4118 (base32 "02a5balcm8dvlb938gl2k3kqvfdq1k300j2g0dbnkg2rsv0yczp0"))))
4119 (build-system pyproject-build-system)
4120 (arguments
4121 (list
4122 #:phases
4123 #~(modify-phases %standard-phases
4124 (add-after 'unpack 'find-nanobind
4125 (lambda* (#:key inputs #:allow-other-keys)
4126 (let* ((python #$(this-package-native-input "python"))
4127 (version (python-version python))
4128 (nanobind (search-input-file
4129 inputs
4130 (string-append "lib/python" version
4131 "/site-packages/nanobind/"
4132 "cmake/nanobind-config.cmake"))))
4133 (setenv "CMAKE_PREFIX_PATH"
4134 (string-append (dirname nanobind)
4135 ":" (getenv "CMAKE_PREFIX_PATH")))))))))
4136 (propagated-inputs (list python-numpy))
4137 (native-inputs (list cmake-minimal
4138 python
4139 python-linkify-it-py
4140 python-myst-parser
4141 python-nanobind
4142 python-pytest
4143 python-scikit-build-core
4144 python-setuptools
4145 python-setuptools-scm
4146 python-typing-extensions
4147 python-wheel))
4148 (home-page "https://github.com/dofuuz/python-soxr")
4149 (synopsis "High quality, one-dimensional sample-rate conversion library")
4150 (description
4151 "Python-SoXR is a Python wrapper of libsoxr, a high quality,
4152one-dimensional sample-rate conversion library.")
4153 (license license:lgpl2.1)))
4154
4155(define-public python-python3-midi
4156 (package
4157 (name "python-python3-midi")
4158 (version "0.2.5")
4159 (source
4160 (origin
4161 (method git-fetch)
4162 (uri (git-reference
4163 (url "https://github.com/NFJones/python3-midi")
4164 (commit (string-append "v" version))))
4165 (file-name (git-file-name name version))
4166 (sha256
4167 (base32 "1zihn7n9dr9jjgkjlpad515hhwh22k94irb21ji793sr5crh5s15"))))
4168 (build-system pyproject-build-system)
4169 (arguments
4170 (list #:tests? #f)) ; XXX: midi module has not been packaged yet.
4171 (native-inputs (list python-setuptools))
4172 (home-page "https://github.com/NFJones/python3-midi")
4173 (synopsis "Python MIDI API")
4174 (description
4175 "This package provides a python API to read and write MIDI files.")
4176 (license license:expat)))
4177
4178(define-public python-wavefile
4179 (package
4180 (name "python-wavefile")
4181 (version "1.6.3")
4182 (source
4183 (origin
4184 (method url-fetch)
4185 (uri (pypi-uri "wavefile" version))
4186 (sha256
4187 (base32 "120r003xy0cv6a4d4cjxv140im007klgkvzfgc57m70rcbnggi7p"))))
4188 (build-system pyproject-build-system)
4189 (arguments
4190 (list
4191 #:test-flags
4192 #~(list "-k" (string-join
4193 ;; Assertion fail to compare files.
4194 (list "not test_allFormats"
4195 "test_commonFormats"
4196 "test_majorFormats"
4197 "test_subtypeFormats")
4198 " and not "))
4199 #:phases
4200 #~(modify-phases %standard-phases
4201 (add-after 'unpack 'patch-libsndfile-path
4202 (lambda _
4203 (substitute* "wavefile/libsndfile.py"
4204 (("'libsndfile")
4205 (string-append "'" #$(this-package-input "libsndfile")
4206 "/lib/libsndfile"))))))))
4207 (native-inputs
4208 (list python-pytest python-setuptools))
4209 (inputs
4210 (list libsndfile
4211 portaudio))
4212 (propagated-inputs
4213 (list python-numpy
4214 python-pyaudio))
4215 (home-page "https://github.com/vokimon/python-wavefile")
4216 (synopsis "Pythonic audio file reader and writer")
4217 (description
4218 "This package provides pythonic libsndfile wrapper to read and write audio
4219files.")
4220 (license license:gpl3+)))
4221
4222(define-public audio-to-midi
4223 (package
4224 (name "audio-to-midi")
4225 (version "2020.7")
4226 (source
4227 (origin
4228 (method git-fetch)
4229 (uri (git-reference
4230 (url "https://github.com/NFJones/audio-to-midi")
4231 (commit (string-append "v" version))))
4232 (file-name (git-file-name name version))
4233 (sha256
4234 (base32
4235 "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
4236 (build-system pyproject-build-system)
4237 (propagated-inputs
4238 (list python-cffi
4239 python-cython
4240 python-numpy
4241 python-progressbar2
4242 python-pycparser
4243 python-python3-midi
4244 python-soundfile))
4245 (native-inputs
4246 (list libsndfile
4247 python-setuptools
4248 python-wheel))
4249 (arguments
4250 `(#:tests? #f ; There seem to be no tests
4251 #:phases
4252 (modify-phases %standard-phases
4253 (add-after 'unpack 'fix-versions
4254 (lambda _
4255 (substitute* "requirements.txt" (("==") ">=")))))))
4256 (home-page "https://github.com/NFJones/audio-to-midi")
4257 (synopsis "Convert audio to multichannel MIDI")
4258 (description "@command{audio-to-midi} converts audio files to multichannel
4259MIDI files. It accomplishes this by performing FFTs on all channels of the
4260audio data at user-specified time steps. It then separates the resulting
4261frequency analysis into equivalence classes which correspond to the twelve tone
4262scale; the volume of each class being the average volume of its constituent
4263frequencies. This data is then formatted to MIDI and written to disk.")
4264 (license license:expat)))
4265
4266(define-public lilv
4267 (package
4268 (name "lilv")
4269 (version "0.24.22")
4270 (source (origin
4271 (method url-fetch)
4272 (uri (string-append "https://download.drobilla.net/lilv-"
4273 version ".tar.xz"))
4274 (sha256
4275 (base32
4276 "1wwzkz91zv0cj8dkr7aqsryznihhbkhwaplv81ik7j4zwp84kybn"))))
4277 (build-system meson-build-system)
4278 (arguments
4279 (list
4280 #:phases
4281 #~(modify-phases %standard-phases
4282 (add-after 'unpack 'full-store-path-to-shared-library
4283 (lambda _
4284 (with-directory-excursion "bindings/python"
4285 (substitute* "lilv.py"
4286 (("liblilv-0.so") (string-append #$output "/lib/liblilv-0.so")))))))))
4287 ;; Required by lilv-0.pc.
4288 (propagated-inputs
4289 (list lv2 serd sord sratom))
4290 (native-inputs
4291 (list python pkg-config))
4292 (home-page "https://drobilla.net/software/lilv.html")
4293 (synopsis "Library to simplify use of LV2 plugins in applications")
4294 (description
4295 "Lilv is a C library to make the use of LV2 plugins as simple as possible
4296for applications. Lilv is the successor to SLV2, rewritten to be
4297significantly faster and have minimal dependencies.")
4298 (license license:isc)))
4299
4300(define-public lv2
4301 (package
4302 (name "lv2")
4303 (version "1.18.10")
4304 (source (origin
4305 (method url-fetch)
4306 (uri (string-append "https://lv2plug.in/spec/lv2-"
4307 version ".tar.xz"))
4308 (sha256
4309 (base32
4310 "0gwm63jrvg9lww0rl3sjkgbjwfz0vascpb19cfxmhkmm477ipibq"))))
4311 (build-system meson-build-system)
4312 (inputs
4313 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
4314 (list libsndfile))
4315 (native-inputs
4316 (list pkg-config))
4317 (native-search-paths
4318 (list (search-path-specification
4319 (variable "LV2_PATH")
4320 (files '("lib/lv2")))))
4321 (home-page "https://lv2plug.in/")
4322 (synopsis "LV2 audio plugin specification")
4323 (description
4324 "LV2 is an open specification for audio plugins and host applications.
4325At its core, LV2 is a simple stable interface, accompanied by extensions which
4326add functionality to support the needs of increasingly powerful audio
4327software.")
4328 (license license:isc)))
4329
4330(define-public ttl2c
4331 (package
4332 (name "ttl2c")
4333 (version "1.0.0")
4334 (source (origin
4335 (method git-fetch)
4336 (uri (git-reference
4337 (url "https://github.com/lvtk/ttl2c")
4338 (commit version)))
4339 (file-name (git-file-name name version))
4340 (sha256
4341 (base32
4342 "0aybx8i5i0sridi9130a3937xgmfmjkk8m48f9whvhlhbzwy3xbl"))))
4343 (build-system waf-build-system)
4344 (arguments
4345 (list
4346 #:tests? #false ;no check target
4347 #:phases
4348 `(modify-phases %standard-phases
4349 (add-before 'configure 'setup-waf
4350 (lambda* (#:key inputs #:allow-other-keys)
4351 (let ((waf (assoc-ref inputs "waf")))
4352 (copy-file (string-append waf "/bin/waf") "waf")))))))
4353 (inputs (list boost))
4354 (native-inputs (list waf))
4355 (home-page "https://github.com/lvtk/ttl2c")
4356 (synopsis "Turtle to C header conversion utility for LV2 plugins")
4357 (description
4358 "This package provides a conversion utility for LV2 Plugin developers to
4359generate C headers from Turtle files.")
4360 (license license:gpl3+)))
4361
4362(define-public lv2-mda-piano
4363 (package
4364 (name "lv2-mda-piano")
4365 (version "0.0.2")
4366 (source (origin
4367 (method git-fetch)
4368 (uri (git-reference
4369 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
4370 (commit version)))
4371 (file-name (git-file-name name version))
4372 (sha256
4373 (base32
4374 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
4375 (build-system gnu-build-system)
4376 (arguments
4377 `(#:make-flags (list
4378 "TYPE=mdaPiano"
4379 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4380 #:tests? #f ; no check target
4381 #:phases (modify-phases %standard-phases (delete 'configure))))
4382 (inputs
4383 (list lv2 lvtk))
4384 (native-inputs
4385 (list pkg-config ttl2c))
4386 (home-page "https://elephly.net/lv2/mdapiano.html")
4387 (synopsis "LV2 port of the mda Piano plugin")
4388 (description "An LV2 port of the mda Piano VSTi.")
4389 (license license:gpl3+)))
4390
4391(define-public lv2-mda-epiano
4392 (package (inherit lv2-mda-piano)
4393 (name "lv2-mda-epiano")
4394 (arguments
4395 `(#:make-flags (list
4396 "TYPE=mdaEPiano"
4397 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4398 #:tests? #f ; no check target
4399 #:phases (modify-phases %standard-phases (delete 'configure))))
4400 (home-page "https://elephly.net/lv2/mdaepiano.html")
4401 (synopsis "LV2 port of the mda EPiano plugin")
4402 (description "An LV2 port of the mda EPiano VSTi.")))
4403
4404(define-public lvtk-2
4405 ;; Use the latest commit, as the latest release was made in 2014 and depends
4406 ;; on Python 2.
4407 (let ((commit "a73feabe772f9650aa071e6a4df660e549ab7c48")
4408 (revision "0"))
4409 (package
4410 (name "lvtk")
4411 (version (git-version "2" revision commit))
4412 (source (origin
4413 (method git-fetch)
4414 (uri (git-reference
4415 (url "https://github.com/lvtk/lvtk")
4416 (commit commit)))
4417 (file-name (git-file-name name version))
4418 (sha256
4419 (base32
4420 "0scmv8b4jlm88d21dqqchjy98wb93zclc9x960h213gdi871vsaj"))))
4421 (build-system waf-build-system)
4422 (arguments (list #:tests? #f)) ;no check target
4423 (inputs (list boost gtkmm lv2))
4424 (native-inputs (list pkg-config))
4425 (home-page "https://github.com/lvtk/lvtk")
4426 (synopsis "C++ libraries for LV2 plugins")
4427 (description
4428 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
4429extensions into easy to use C++ classes. It is the successor of
4430lv2-c++-tools.")
4431 (license license:isc))))
4432
4433(define-public lvtk-1
4434 ;; Use the latest commit, as the latest release was made in 2014 and depends
4435 ;; on Python 2.
4436 (let ((commit "23dd99531d88d7821b69f6f0d60516ef322a6729")
4437 (revision "0"))
4438 (package
4439 (name "lvtk")
4440 (version (git-version "1.2.0" revision commit))
4441 (source (origin
4442 (method git-fetch)
4443 (uri (git-reference
4444 (url "https://github.com/lvtk/lvtk")
4445 (commit commit)))
4446 (file-name (git-file-name name version))
4447 (sha256
4448 (base32
4449 "0iw7skvsn3whw69dhcxbbdns7mssaf6z6iyzxjav53607ibyfr8d"))))
4450 (build-system waf-build-system)
4451 (arguments
4452 (list
4453 #:tests? #false ;no check target
4454 #:configure-flags
4455 #~(list (string-append "--boost-includes="
4456 #$(this-package-input "boost")
4457 "/include"))
4458 #:phases
4459 `(modify-phases %standard-phases
4460 (add-before 'configure 'setup-waf
4461 (lambda* (#:key inputs #:allow-other-keys)
4462 (let ((waf (assoc-ref inputs "waf")))
4463 (copy-file (string-append waf "/bin/waf") "waf")))))))
4464 (inputs (list boost gtkmm-2 lv2))
4465 (native-inputs (list pkg-config waf))
4466 (home-page "https://github.com/lvtk/lvtk")
4467 (synopsis "C++ libraries for LV2 plugins")
4468 (description
4469 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
4470extensions into easy to use C++ classes. It is the successor of
4471lv2-c++-tools.")
4472 (license license:isc))))
4473
4474(define-public lvtk lvtk-1)
4475
4476(define-public openal
4477 (package
4478 (name "openal")
4479 (version "1.23.1")
4480 (source (origin
4481 (method url-fetch)
4482 (uri (string-append
4483 "https://openal-soft.org/openal-releases/openal-soft-"
4484 version ".tar.bz2"))
4485 (sha256
4486 (base32
4487 "08avhhfd96x4c18p8ys3va85nhx31xgpa3bz1ckmfkjc2f4lnvvr"))))
4488 (build-system cmake-build-system)
4489 (arguments
4490 (list
4491 #:tests? #f ; no check target
4492 #:phases
4493 #~(modify-phases %standard-phases
4494 (add-after 'unpack 'use-full-library-paths
4495 (lambda* (#:key inputs #:allow-other-keys)
4496 (substitute* "alc/backends/pulseaudio.cpp"
4497 (("#define PALIB \"libpulse\\.so\\.0\"")
4498 (string-append "#define PALIB \""
4499 (search-input-file inputs "lib/libpulse.so.0")
4500 "\"")))
4501 (substitute* "alc/backends/alsa.cpp"
4502 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
4503 (string-append "LoadLib(\""
4504 (search-input-file inputs "lib/libasound.so.2")
4505 "/lib/libasound.so.2"
4506 "\")"))))))))
4507 (inputs (list alsa-lib pulseaudio))
4508 (synopsis "3D audio API")
4509 (description
4510 "OpenAL provides capabilities for playing audio in a virtual 3D
4511environment. Distance attenuation, doppler shift, and directional sound
4512emitters are among the features handled by the API. More advanced effects,
4513including air absorption, occlusion, and environmental reverb, are available
4514through the EFX extension. It also facilitates streaming audio, multi-channel
4515buffers, and audio capture.")
4516 (home-page "https://openal-soft.org/")
4517 (properties
4518 '((upstream-name . "openal-soft")))
4519 (license license:lgpl2.0+)))
4520
4521(define-public freealut
4522 (package
4523 (name "freealut")
4524 (version "1.1.0")
4525 (source (origin
4526 (method url-fetch)
4527 ;; Upstream url is unclear, many systems use Fedora, there is also
4528 ;; https://github.com/vancegroup/freealut though the status of it
4529 ;; (official? unofficial?) is not clear.
4530 (uri (string-append
4531 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
4532 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
4533 "-" version ".tar.gz"))
4534 (sha256
4535 (base32
4536 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
4537 (build-system cmake-build-system)
4538 (arguments
4539 `(#:tests? #f)) ; no check target
4540 (inputs
4541 (list openal))
4542 (synopsis "Free implementation of OpenAL's ALUT standard")
4543 (description "freealut is the OpenAL Utility Toolkit.")
4544 (home-page "https://kcat.strangesoft.net/openal.html")
4545 (license license:lgpl2.0)))
4546
4547(define-public alure
4548 (package
4549 (name "alure")
4550 (version "1.2")
4551 (source (origin
4552 (method git-fetch)
4553 (uri (git-reference
4554 (url "https://repo.or.cz/alure.git")
4555 (commit (string-append "alure-" version))))
4556 (file-name (git-file-name name version))
4557 (sha256
4558 (base32
4559 "0b65wxn8p0q6kwl8kgdicp91krsmxdf8qg0jllsbj1ssg1x7vbrs"))
4560 (patches
4561 (search-patches "alure-dumb-2.patch" "alure-cmake-4.patch"))))
4562 (build-system cmake-build-system)
4563 (arguments
4564 (list
4565 #:tests? #f ;no tests
4566 #:configure-flags #~(list "-DMODPLUG=ON" "-DBUILD_STATIC=OFF")))
4567 (native-inputs (list pkg-config))
4568 (inputs (list dumb
4569 flac
4570 libmodplug
4571 libmpg123
4572 libsndfile
4573 libvorbis
4574 openal))
4575 (home-page "https://web.archive.org/web/20210306051650/https://kcat.tomasu.net/alure.html")
4576 (synopsis "OpenAL utility library")
4577 (description
4578 "ALURE is a utility library to help manage common tasks with OpenAL applications.
4579This includes device enumeration and initialization, file loading, and
4580streaming.")
4581 (license license:expat)))
4582
4583(define-public wp-notifyd
4584 (package
4585 (name "wp-notifyd")
4586 (version "1.1.0")
4587 (source
4588 (origin
4589 (method git-fetch)
4590 (uri (git-reference
4591 (url "https://github.com/LDAP/wp-notifyd")
4592 (commit version)))
4593 (file-name (git-file-name name version))
4594 (sha256
4595 (base32 "1nkndz0li15maf0dc9x631p0dr8085wzz5358552wljv7chywrza"))))
4596 (build-system meson-build-system)
4597 (arguments
4598 (list #:tests? #f)) ;there are no tests
4599 (inputs (list libnotify
4600 wireplumber-minimal
4601 pipewire
4602 spdlog))
4603 (native-inputs (list pkg-config))
4604 (home-page "https://github.com/LDAP/wp-notifyd")
4605 (synopsis "Notification daemon for Wireplumber")
4606 (description "@command{wp-notifyd} is a lightweight notification daemon for
4607@dfn{WirePlumber} (the session and policy manager for PipeWire).")
4608 (license license:expat)))
4609
4610(define-public pa-notify
4611 (package
4612 (name "pa-notify")
4613 (version "1.5.0")
4614 (source
4615 (origin
4616 (method git-fetch)
4617 (uri (git-reference
4618 (url "https://github.com/ikrivosheev/pa-notify")
4619 (commit (string-append "v" version))))
4620 (file-name (git-file-name name version))
4621 (sha256
4622 (base32 "04wq0bdnb3r27l5wlf8c1ijq18ffywqmdv584l6hbi3i5k0sm7nz"))))
4623 (build-system cmake-build-system)
4624 (arguments '(#:tests? #f)) ;no check target
4625 (inputs (list glib
4626 libnotify
4627 pulseaudio))
4628 (native-inputs (list pkg-config))
4629 (home-page "https://github.com/ikrivosheev/pa-notify")
4630 (synopsis "PulseAudio or PipeWire volume notification")
4631 (description "The pa-notify daemon sends notifications about
4632the current volume level of PulseAudio or PipeWire using libnotify.")
4633 (license license:expat)))
4634
4635(define-public patchage
4636 (package
4637 (name "patchage")
4638 (version "1.0.10")
4639 (source (origin
4640 (method url-fetch)
4641 (uri (string-append "https://download.drobilla.net/patchage-"
4642 version ".tar.xz"))
4643 (sha256
4644 (base32
4645 "1m472rkvv7kr57xnvmvds3iq3fj129mbw878427djc21rfg2lq80"))))
4646 (build-system meson-build-system)
4647 (arguments `(#:tests? #f)) ;no check target
4648 (inputs
4649 (list alsa-lib
4650 jack-2
4651 fmt-9
4652 ganv
4653 glibmm
4654 gtkmm-2
4655 dbus-glib))
4656 (native-inputs
4657 (list pkg-config))
4658 (home-page "https://drobilla.net/software/patchage.html")
4659 (synopsis "Modular patch bay for audio and MIDI systems")
4660 (description
4661 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
4662and ALSA.")
4663 (license license:gpl3+)))
4664
4665(define-public pcaudiolib
4666 (package
4667 (name "pcaudiolib")
4668 (version "1.1")
4669 (home-page "https://github.com/espeak-ng/pcaudiolib")
4670 (source (origin
4671 (method git-fetch)
4672 (uri (git-reference (url home-page) (commit version)))
4673 (file-name (git-file-name name version))
4674 (sha256
4675 (base32
4676 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
4677 (build-system gnu-build-system)
4678 (arguments
4679 `(#:configure-flags '("--disable-static")))
4680 (native-inputs
4681 (list autoconf automake libtool pkg-config which))
4682 (inputs
4683 (list alsa-lib pulseaudio))
4684 (synopsis "Portable C audio library")
4685 (description
4686 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
4687different audio devices such as ALSA or PulseAudio.")
4688 (license (list license:gpl3+
4689 ;; The bundled TPCircularBuffer uses a custom license.
4690 (license:non-copyleft
4691 "file://src/TPCircularBuffer/README.markdown")))))
4692
4693(define-public projectm-eval
4694 (package
4695 (name "projectm-eval")
4696 (version "1.0.5")
4697 (source
4698 (origin
4699 (method git-fetch)
4700 (uri (git-reference
4701 (url "https://github.com/projectM-visualizer/projectm-eval")
4702 (commit (string-append "v" version))))
4703 (file-name (git-file-name name version))
4704 (sha256
4705 (base32 "04m5k6azji0fk3japzd8v4k04affbfpangfw4fgvk3ac5w75872a"))))
4706 (build-system cmake-build-system)
4707 (native-inputs (list googletest))
4708 (home-page "https://github.com/projectM-visualizer/projectm-eval")
4709 (synopsis "Re-implementation of the NullSoft Expression Evaluation Library")
4710 (description "This is an open-source re-implementation of the NullSoft
4711Expression Evaluation Library 2, as used in the Milkdrop music visualizer.")
4712 (license license:expat)))
4713
4714(define-public projectm
4715 (package
4716 (name "projectm")
4717 (version "4.1.6")
4718 (source
4719 (origin
4720 (method git-fetch)
4721 (uri (git-reference
4722 (url "https://github.com/projectM-visualizer/projectm")
4723 (commit (string-append "v" version))))
4724 (file-name (git-file-name name version))
4725 (sha256
4726 (base32 "0yw1q6zmx2683immxfxn2kxjwwv6xk9m6yja701m4z2brhdx1iw1"))))
4727 (build-system cmake-build-system)
4728 (arguments
4729 (list
4730 #:configure-flags
4731 #~(list
4732 "-DBUILD_TESTING=ON" "-DENABLE_SDL_UI=OFF" "-DENABLE_SYSTEM_GLM=ON")))
4733 (inputs (list mesa projectm-eval))
4734 (native-inputs (list googletest glm))
4735 (home-page "https://github.com/projectM-visualizer/projectm")
4736 (synopsis "Milkdrop-like music visualizer")
4737 (description "projectM is an open-source re-implementation of the MilkDrop
4738visualizer. This package contains only the libprojectm library.")
4739 (license license:lgpl2.1+)))
4740
4741(define-public projectm-presets
4742 (let ((commit "0180df21f5e0bd39b9060cc5de420ed2f1f9e509")
4743 (revision "0"))
4744 (package
4745 (name "projectm-presets")
4746 (version (git-version "0" revision commit))
4747 (source
4748 (origin
4749 (method git-fetch)
4750 (uri
4751 (git-reference
4752 (url "https://github.com/projectM-visualizer/presets-cream-of-the-crop")
4753 (commit commit)))
4754 (file-name (git-file-name name version))
4755 (sha256
4756 (base32 "1g64s6v4xbmx0skiy3ag9889adl8rvwahzd7rmrchiwbd1gap771"))))
4757 (build-system copy-build-system)
4758 (home-page "https://github.com/projectM-visualizer/presets-cream-of-the-crop")
4759 (synopsis "Curated selection of ProjectM/Milkdrop presets")
4760 (description "A curated selection of 9,795 ProjectM/Milkdrop presets,
4761meant to be included in any projectM-based application.")
4762 (license license:public-domain))))
4763
4764(define-public projectm-sdl
4765 (let ((source-commit "72e5632897c9d9bef452c679d3cbe8c7b4bb4157")
4766 (revision "0"))
4767 (package
4768 (name "projectm-sdl")
4769 (version (git-version "0" revision source-commit))
4770 (source
4771 (origin
4772 (method git-fetch)
4773 (uri
4774 (git-reference
4775 (url "https://github.com/projectM-visualizer/frontend-sdl-cpp")
4776 (commit source-commit)))
4777 (file-name (git-file-name name version))
4778 (sha256
4779 (base32 "14vsjn589lrcwkz0d4528i33aslqsgh7m17kxj0fyd21pwj5n54l"))
4780 (modules '((guix build utils)))
4781 ;;There are no icon files to install.
4782 (snippet #~(substitute* "install.cmake" (("install_icon.+") "")))))
4783 (build-system cmake-build-system)
4784 (arguments
4785 (list #:tests? #f ;There are no tests.
4786 #:phases
4787 #~(modify-phases %standard-phases
4788 (add-after 'unpack 'link-imgui
4789 (lambda* (#:key inputs #:allow-other-keys)
4790 (begin (delete-file-recursively "vendor/imgui")
4791 (symlink (assoc-ref %build-inputs "imgui-source")
4792 "vendor/imgui")))))
4793 #:configure-flags
4794 #~(list
4795 ;; There are texture repositories from both ProjectM and
4796 ;; Milkdrop, but their licensing is unclear, so they are not
4797 ;; packaged. ProjectM functions fine with only presets.
4798 (string-append "-DDEFAULT_PRESETS_PATH="
4799 (assoc-ref %build-inputs "projectm-presets"))
4800 ;; The config location search path can be changed, but the
4801 ;; install path stays the same, so only this value works.
4802 ;; And without it, only the binary's path is checked.
4803 (string-append "-DDEFAULT_CONFIG_PATH="
4804 #$output "/share/projectMSDL/"))))
4805 (inputs (list freetype poco projectm projectm-presets sdl2))
4806 (native-inputs (list `("imgui-source" ,(package-source imgui))))
4807 (home-page "https://github.com/projectM-visualizer/frontend-sdl-cpp")
4808 (synopsis "Reference frontend for the libprojectm music visualizer")
4809 (description "This is a simple Milkdrop-like music visualizer that uses
4810the projectM library to visualize audio input.")
4811 (license license:gpl3+)))) ;presets
4812
4813(define-public qjackctl
4814 (package
4815 (name "qjackctl")
4816 (version "1.0.4")
4817 (source (origin
4818 (method url-fetch)
4819 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
4820 version "/qjackctl-" version ".tar.gz"))
4821 (sha256
4822 (base32
4823 "1bhlfnlvqgircnlq014whaka01ki6ja44xzynjbwszclknc6zsz3"))))
4824 (build-system cmake-build-system)
4825 (arguments
4826 '(#:tests? #f)) ; no check target
4827 (inputs
4828 (list alsa-lib
4829 jack-1
4830 portaudio
4831 qtbase
4832 qtsvg))
4833 (native-inputs
4834 (list pkg-config qttools))
4835 (home-page "https://qjackctl.sourceforge.io/")
4836 (synopsis "Jack server control application")
4837 (description "Control a Jack server. Allows you to plug various sources
4838into various outputs and to start, stop and configure jackd")
4839 (license license:gpl2+)))
4840
4841(define-public qjackrcd
4842 (package
4843 (name "qjackrcd")
4844 (version "1.2.2")
4845 (source (origin
4846 (method git-fetch)
4847 (uri (git-reference
4848 (url "https://github.com/orouits/qjackrcd")
4849 (commit (string-append "v" version))))
4850 (file-name (git-file-name name version))
4851 (sha256
4852 (base32
4853 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
4854 (build-system gnu-build-system)
4855 (arguments
4856 `(#:phases
4857 (modify-phases %standard-phases
4858 (replace 'configure
4859 (lambda* (#:key outputs #:allow-other-keys)
4860 (invoke "qmake"
4861 (string-append "PREFIX="
4862 (assoc-ref outputs "out"))))))))
4863 (native-inputs
4864 (list qtbase-5)) ; for qmake
4865 (inputs
4866 (list jack-1 libsndfile qtbase-5))
4867 (home-page "https://sourceforge.net/projects/qjackrcd/")
4868 (synopsis "Stereo audio recorder for JACK")
4869 (description "QJackRcd is a simple graphical stereo recorder for JACK
4870supporting silence processing for automatic pause, file splitting, and
4871background file post-processing.")
4872 (license license:gpl2+)))
4873
4874(define-public supercollider
4875 (package
4876 (name "supercollider")
4877 (version "3.14.0")
4878 (source
4879 (origin
4880 (method git-fetch)
4881 (uri (git-reference
4882 (url "https://github.com/supercollider/supercollider")
4883 (commit (string-append "Version-" version))
4884 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
4885 (recursive? #t)))
4886 (file-name (git-file-name name version))
4887 (sha256
4888 (base32
4889 "1qp163c6mg1d8c59ar3v1yixryr1paa9bs8pkz6yd3c86qz24n0h"))
4890 (modules '((guix build utils)
4891 (ice-9 ftw)))
4892 (snippet
4893 ;; The build system doesn't allow us to unbundle the following
4894 ;; libraries. hidapi is also heavily patched and upstream not
4895 ;; actively maintained.
4896 #~(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
4897 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
4898 (with-directory-excursion "./external_libraries"
4899 (for-each
4900 delete-file-recursively
4901 (scandir "."
4902 (lambda (x)
4903 (and (eq? (stat:type (stat x)) 'directory)
4904 (not (member (basename x) keep-dirs)))))))
4905 ;; To find the Guix provided ableton-link library.
4906 (substitute* "lang/CMakeLists.txt"
4907 (("include\\(\\.\\./external_libraries/link/\
4908AbletonLinkConfig\\.cmake\\)")
4909 "find_package(AbletonLink NAMES AbletonLink ableton-link \
4910link REQUIRED)"))))))
4911 (build-system qt-build-system)
4912 (outputs
4913 '("out" ;core language
4914 "ide")) ;qt ide
4915 (arguments
4916 (list
4917 #:qtbase qtbase
4918 #:configure-flags
4919 #~(list "-DSYSTEM_BOOST=ON"
4920 "-DSYSTEM_YAMLCPP=ON"
4921 "-DSC_QT=ON"
4922 "-DCMAKE_BUILD_TYPE=Release"
4923 "-DFORTIFY=ON"
4924 "-DLIBSCSYNTH=ON"
4925 "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel
4926 #:modules '((guix build qt-build-system)
4927 ((guix build gnu-build-system) #:prefix gnu:)
4928 (guix build utils))
4929 #:phases
4930 #~(modify-phases %standard-phases
4931 ;; HOME must be defined otherwise supercollider throws a "ERROR:
4932 ;; Primitive '_FileMkDir' failed." error when generating the doc.
4933 ;; The graphical tests also hang without it.
4934 (add-after 'unpack 'set-home-directory
4935 (lambda _
4936 (setenv "HOME" (getcwd))))
4937 (add-after 'unpack 'patch-scclass-dir
4938 (lambda _
4939 (let* ((scclass-dir
4940 (string-append #$output
4941 "/share/SuperCollider/SCClassLibrary")))
4942 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
4943 (((string-append
4944 "SC_Filesystem::instance\\(\\)\\.getDirectory"
4945 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
4946 (string-append "Path(\"" scclass-dir "\")"))))))
4947 (replace 'install (assoc-ref gnu:%standard-phases 'install))
4948 (add-before 'install 'install-ide
4949 (lambda _
4950 (let* ((ide #$output:ide)
4951 (scide "editors/sc-ide/scide"))
4952 (install-file scide
4953 (string-append ide "/bin"))
4954 (delete-file scide)))))))
4955 (native-inputs
4956 (list ableton-link pkg-config qttools))
4957 (inputs (list jack-2
4958 libsndfile
4959 fftw
4960 libxt
4961 readline ;readline support for sclang's CLI
4962 alsa-lib ;for sclang's MIDI interface
4963 eudev ;for user interactions with devices
4964 avahi ;zeroconf service discovery support
4965 icu4c
4966 boost-1.83
4967 boost-sync
4968 yaml-cpp
4969 python-wrapper ;there were warnings in the build process
4970 ruby ;there were warnings in the build process
4971 qtdeclarative
4972 qtsvg
4973 qtwebchannel
4974 qtwebsockets))
4975 (propagated-inputs ;to get native-search-path
4976 (list qtwebengine))
4977 (home-page "https://github.com/supercollider/supercollider")
4978 (synopsis "Synthesis engine and programming language")
4979 (description "SuperCollider is a synthesis engine (@code{scsynth} or
4980@code{supernova}) and programming language (@code{sclang}). It can be used
4981for experimenting with sound synthesis and algorithmic composition.
4982
4983SuperCollider requires jackd to be installed in your user profile and your
4984user must be allowed to access the realtime features of the kernel. Search
4985for \"realtime\" in the index of the Guix manual to learn how to achieve this
4986using Guix System.")
4987 (license license:gpl2+)))
4988
4989(define-public libshout-idjc
4990 (package
4991 (name "libshout-idjc")
4992 (version "2.4.6-r2")
4993 (source
4994 (origin
4995 (method url-fetch)
4996 (uri (string-append "mirror://sourceforge/libshoutidjc.idjc.p"
4997 "/libshout-idjc-" version ".tar.gz"))
4998 (sha256
4999 (base32 "0cmvvkixx771mgap266yiji87kgv5bnqbj2y1j20r1d4adk9zy98"))))
5000 (build-system gnu-build-system)
5001 (native-inputs
5002 (list pkg-config))
5003 (inputs
5004 (list libshout))
5005 (propagated-inputs
5006 ;; In Requires.private of shout-idjc.pc.
5007 (list libogg libtheora libvorbis speex))
5008 (home-page "https://idjc.sourceforge.io/")
5009 (synopsis "Broadcast streaming library with IDJC extensions")
5010 (description "This package provides libshout plus IDJC extensions.")
5011 ;; GNU Library (not Lesser) General Public License.
5012 (license license:lgpl2.0+)))
5013
5014(define-public hiir
5015 (let ((commit "4a9a1e67fa6f8ce7688e1c0c8a2b017cecd206a3")
5016 (revision "0"))
5017 (package
5018 (name "hiir")
5019 (version (git-version "0" revision commit))
5020 (source
5021 (origin
5022 (method git-fetch)
5023 (uri (git-reference
5024 (url "https://github.com/LostRobotMusic/hiir")
5025 (commit commit)))
5026 (file-name (git-file-name name version))
5027 (sha256
5028 (base32 "1wzlg0di768mzcik6fij4pd6dnpmbw8q236h478c057d10qfp44g"))))
5029 (build-system copy-build-system)
5030 (arguments
5031 (list
5032 #:install-plan
5033 #~`(("." "/include/hiir"))))
5034 (home-page "https://github.com/LostRobotMusic/hiir")
5035 (synopsis "Header-only version of Laurent de Soras's HIIR 1.40 library")
5036 (description
5037 "This package provides a header-only version of the
5038@uref{http://ldesoras.free.fr/prod.html#src_hiir, HIIR library by Laurent De
5039Soras}, updated to version 1.40. HIIR is a C++ library for changing the
5040sampling rate of a signal by a factor two, in both directions (upsampling and
5041downsampling), obtaining two signals with a π/2 phase difference (Hilbert
5042transform). It is made of a two-path polyphase IIR filter, implemented with
5043FPU, 3DNow!, SSE, SSE2, AVX, AVX-512 and NEON instruction sets.
5044
5045This package contains the same as the original library, except with the
5046contents of one source file moved into a header file (and set as inline) to
5047make the library header-only, and with the test folder removed.")
5048 (license license:wtfpl2))))
5049
5050(define-public tuning-library
5051 (package
5052 (name "tuning-library")
5053 (version "1.1.0")
5054 (source
5055 (origin
5056 (method git-fetch)
5057 (uri (git-reference
5058 (url "https://github.com/surge-synthesizer/tuning-library")
5059 (commit (string-append "release_" version))))
5060 (file-name (git-file-name name version))
5061 (patches
5062 (search-patches
5063 "tuning-library-1.1.0-add-missing-cstring-include.patch"))
5064 (sha256
5065 (base32 "0f7915xn61sqbdla1zamjd2nkbvdzlm162dmqap2j40yhra73q65"))
5066 (modules '((guix build utils)))
5067 ;; Unbundle catch2.
5068 (snippet
5069 '(begin
5070 (delete-file-recursively "libs")
5071 (substitute* "tests/alltests.cpp"
5072 (("#include \"catch2.hpp\"") "#include <catch2/catch.hpp>"))))))
5073 (build-system cmake-build-system)
5074 (arguments
5075 (list
5076 #:modules
5077 '((guix build cmake-build-system)
5078 (guix build utils)
5079 (srfi srfi-26)) ;for cute
5080 #:phases
5081 #~(modify-phases %standard-phases
5082 (replace 'check
5083 (lambda* (#:key tests? #:allow-other-keys)
5084 (when tests?
5085 (with-directory-excursion "../source"
5086 (invoke "../build/tuning-library-tests" "-a")
5087 (invoke "../build/tuning-library-symbolcheck")))))
5088 (replace 'install
5089 (lambda _
5090 (for-each (cute install-file <>
5091 (string-append #$output "/bin"))
5092 '("showmapping" "parsecheck"))
5093 (with-directory-excursion "../source"
5094 (with-directory-excursion "include"
5095 (for-each (cute install-file <>
5096 (string-append #$output "/include"))
5097 '("Tunings.h" "TuningsImpl.h")))
5098 (install-file "README.md"
5099 (string-append #$output
5100 "/share/doc/tuning-library"))))))))
5101 (native-inputs (list catch2-2))
5102 (home-page "https://github.com/surge-synthesizer/tuning-library")
5103 (synopsis "C Library for micro-tuning and frequency finding")
5104 (description
5105 "Tuning Library is a header-only C library for micro-tuning format
5106parsing and frequency finding.")
5107 (license license:expat)))
5108
5109(define-public redumper
5110 (package
5111 (name "redumper")
5112 (version "746")
5113 (source (origin
5114 (method git-fetch)
5115 (uri (git-reference
5116 (url "https://github.com/superg/redumper")
5117 (commit (string-append "b" version))))
5118 (file-name (git-file-name name version))
5119 (sha256
5120 (base32
5121 "1mg3wvjpjy6nby8i4hq5h9gjccc0r0v37lybgx74xw9plj15y4bq"))))
5122 (build-system cmake-build-system)
5123 (arguments
5124 (list
5125 #:tests? #f
5126 #:build-type "Release"
5127 ;; The build system uses CMake modules features that are only available
5128 ;; when using Ninja.
5129 #:configure-flags #~(list "-GNinja"
5130 "-DREDUMPER_CLANG_USE_LIBCPP=ON"
5131 "-DREDUMPER_LINKER_FLAGS="
5132 (string-append "-DREDUMPER_VERSION_BUILD=b"
5133 #$version)
5134 "-DCMAKE_BUILD_TYPE=Release")
5135 #:phases
5136 #~(modify-phases %standard-phases
5137 (add-after 'unpack 'disable-tests
5138 (lambda _
5139 (substitute* "CMakeLists.txt"
5140 (("enable_testing\\(\\)")
5141 "# enable_testing()")
5142 (("add_subdirectory\\(\"tests\"\\)")
5143 "# add_subdirectory(\"tests\")")
5144 (("get_property\\(_tidy_gtest_targets\\s+DIRECTORY tests/gtest\\s+PROPERTY BUILDSYSTEM_TARGETS\\)")
5145 "set(_tidy_gtest_targets)")
5146 (("list\\(APPEND _tidy_deps \\$\\{_tidy_root_targets\\} \\$\\{_tidy_gtest_targets\\}\\)")
5147 "list(APPEND _tidy_deps ${_tidy_root_targets})"))))
5148 (add-after 'unpack 'patch-build-system
5149 (lambda _
5150 ;; The CMAKE_SYSTEM_VERSION is undefined when cross-compiling.
5151 (substitute* "CMakeLists.txt"
5152 (("\\$\\{CMAKE_SYSTEM_VERSION}")
5153 "\"${CMAKE_SYSTEM_VERSION}\""))))
5154 (add-after 'unpack 'adjust-CPLUS_INCLUDE_PATH
5155 ;; The libcxx include/c++/v1 directory is not exposed via
5156 ;; CPLUS_INCLUDE_PATH by default, causing errors like
5157 ;; "fatal error: 'format' file not found".
5158 (lambda* (#:key native-inputs inputs #:allow-other-keys)
5159 (setenv "CPLUS_INCLUDE_PATH"
5160 (string-append
5161 (search-input-directory inputs
5162 "/include/c++/v1")
5163 ":" (getenv "CPLUS_INCLUDE_PATH")))))
5164 (replace 'build
5165 (lambda* (#:key parallel-build? #:allow-other-keys)
5166 (invoke "cmake" "--build" "."
5167 "-j" (number->string
5168 (if parallel-build?
5169 (parallel-job-count)
5170 1)))))
5171 (replace 'check
5172 (lambda* (#:key build-type parallel-tests? tests?
5173 #:allow-other-keys)
5174 (when tests?
5175 (invoke "ctest" "-C" build-type
5176 "-j" (number->string
5177 (if parallel-tests?
5178 (parallel-job-count)
5179 1))))))
5180 (replace 'install
5181 (lambda _
5182 ;; There is no CMake install target; manually install the
5183 ;; binary.
5184 (install-file "redumper"
5185 (string-append #$output "/bin")))))))
5186 ;; As of GCC 14, the C++ modules feature is not complete enough, hence the
5187 ;; use of Clang.
5188 (native-inputs (list ninja clang-toolchain-19))
5189 (inputs (list libcxx))
5190 (home-page "https://github.com/superg/redumper")
5191 (synopsis "Low-level CD/DVD dumper")
5192 (description "@command{redumper} is a low-level byte perfect CD disc
5193dumper. It supports incremental dumps, advanced SCSI/C2 repair, intelligent
5194audio CD offset detection, among other features. @command{redumper} is also a
5195general purpose DVD/HD-DVD/Blu-ray disc dumper.")
5196 (license license:gpl3+)))
5197
5198(define-public resample
5199 (package
5200 (name "resample")
5201 (version "1.8.1")
5202 (source (origin
5203 (method url-fetch)
5204 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
5205 version
5206 ".tar.gz"))
5207 (sha256 (base32
5208 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))
5209 (snippet
5210 #~(begin
5211 (use-modules (ice-9 textual-ports))
5212 (let* ((sndlibextra.c "src/sndlibextra.c")
5213 (sndlibextra.c-original
5214 (call-with-input-file sndlibextra.c
5215 get-string-all)))
5216 (call-with-output-file sndlibextra.c
5217 (lambda (port)
5218 (display "#include <stdlib.h>\n" port)
5219 (display sndlibextra.c-original port))))))))
5220 (build-system gnu-build-system)
5221 (native-inputs
5222 (list autoconf automake pkg-config libtool))
5223 (synopsis "Sampling rate conversion and filter design utilities")
5224 (description "This package contains the @command{resample} and
5225@command{windowfilter} command line utilities. The @command{resample} command
5226allows changing the sampling rate of a sound file, while the
5227@command{windowfilter} command allows designing Finite Impulse Response (FIR)
5228filters using the so-called @emph{window method}.")
5229 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
5230 (license license:lgpl2.1+)))
5231
5232(define-public rubberband
5233 (package
5234 (name "rubberband")
5235 (version "4.0.0")
5236 (source (origin
5237 (method url-fetch)
5238 (uri
5239 (string-append "https://breakfastquay.com/files/releases/"
5240 "rubberband-" version ".tar.bz2"))
5241 (sha256
5242 (base32
5243 "1s98h0pzxlffha52paniysm7dch5rrflw1ifbfriig33xq9h61dg"))))
5244 (build-system meson-build-system)
5245 (arguments
5246 (list
5247 #:configure-flags
5248 '(list "-Dresampler=libsamplerate"
5249 "-Dfft=fftw" ;To avoid using bundled version
5250 "-Ddefault_library=shared"))) ;Don't build static library
5251 (inputs
5252 (list ladspa lv2 vamp))
5253 (propagated-inputs
5254 (list fftw libsamplerate)) ;required by rubberband.pc
5255 (native-inputs
5256 (list pkg-config))
5257 (home-page "https://breakfastquay.com/rubberband/")
5258 (synopsis "Audio time-stretching and pitch-shifting library")
5259 (description
5260 "Rubber Band is a library and utility program that permits changing the
5261tempo and pitch of an audio recording independently of one another.")
5262 (license license:gpl2+)))
5263
5264(define-public rtmidi
5265 (package
5266 (name "rtmidi")
5267 (version "6.0.0")
5268 (source (origin
5269 (method url-fetch)
5270 (uri (string-append "https://caml.music.mcgill.ca/~gary/rtmidi"
5271 "/release/rtmidi-" version ".tar.gz"))
5272 (file-name (string-append "rtmidi-" version ".tar.gz"))
5273 (sha256
5274 (base32
5275 "0nyvck6qlncbfpplgxspjk77fmi05w78ik0cf8039hj29gvcqq2r"))))
5276 (build-system gnu-build-system)
5277 (inputs
5278 (list alsa-lib jack-2))
5279 (native-inputs
5280 (list autoconf automake libtool pkg-config))
5281 (home-page "https://caml.music.mcgill.ca/~gary/rtmidi")
5282 (synopsis "Cross-platform MIDI library for C++")
5283 (description
5284 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
5285classes) that provide a common cross-platform API for realtime MIDI
5286input/output.")
5287 (license license:expat)))
5288
5289(define-public rtmidi-4.0
5290 (package
5291 (inherit rtmidi)
5292 (version "4.0.0")
5293 (source (origin
5294 (method url-fetch)
5295 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
5296 "/release/rtmidi-" version ".tar.gz"))
5297 (file-name (string-append "rtmidi-" version ".tar.gz"))
5298 (sha256
5299 (base32
5300 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))))
5301
5302(define-public sratom
5303 (package
5304 (name "sratom")
5305 (version "0.6.16")
5306 (source (origin
5307 (method url-fetch)
5308 (uri (string-append "https://download.drobilla.net/sratom-"
5309 version ".tar.xz"))
5310 (sha256
5311 (base32
5312 "1i12wcnv52r05zr5wjmpvbsvbjbm3hkv8frral2kvrc326cmghbi"))))
5313 (build-system meson-build-system)
5314 (propagated-inputs
5315 ;; In Requires of sratom-0.pc.
5316 (list lv2 serd sord))
5317 (native-inputs
5318 (list pkg-config))
5319 (home-page "https://drobilla.net/software/sratom.html")
5320 (synopsis "Library for serialising LV2 atoms to/from RDF")
5321 (description
5322 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
5323the Turtle syntax.")
5324 (license license:isc)))
5325
5326(define-public suil
5327 (package
5328 (name "suil")
5329 (version "0.10.20")
5330 (source (origin
5331 (method url-fetch)
5332 (uri (string-append "https://download.drobilla.net/suil-"
5333 version ".tar.xz"))
5334 (sha256
5335 (base32
5336 "0klkxzzx77bg0jwv3a7sn1ar30333y0bjg8b83zifpixwz9kwjik"))))
5337 (build-system meson-build-system)
5338 (arguments
5339 `(#:tests? #f)) ;no check target
5340 (inputs
5341 (list lv2
5342 gtk+-2
5343 gtk+
5344 qtbase-5
5345 qtx11extras))
5346 (native-inputs
5347 (list pkg-config))
5348 (home-page "https://drobilla.net/software/suil/")
5349 (synopsis "Library for loading and wrapping LV2 plugin UIs")
5350 (description
5351 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
5352
5353Suil makes it possible to load a UI of a toolkit in a host using another
5354toolkit. The API is designed such that hosts do not need to explicitly
5355support specific toolkits – if Suil supports a particular toolkit, then UIs in
5356that toolkit will work in all hosts that use Suil automatically.
5357
5358Suil currently supports every combination of Gtk, Qt, and X11.")
5359 (license license:isc)))
5360
5361(define-public libebur128
5362 (package
5363 (name "libebur128")
5364 (version "1.2.6")
5365 (source
5366 (origin
5367 (method git-fetch)
5368 (uri (git-reference
5369 (url "https://github.com/jiixyj/libebur128")
5370 (commit (string-append "v" version))))
5371 (file-name (git-file-name name version))
5372 (sha256
5373 (base32 "0xkpz5rzz1j1srhprbh89669gw8z5f1njpvcnxqgf7qax69vd8sh"))))
5374 (build-system cmake-build-system)
5375 (arguments
5376 `(;; Tests require proprietary .wav files. See
5377 ;; https://github.com/jiixyj/libebur128/issues/82.
5378 #:tests? #f
5379 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
5380 (home-page "https://github.com/jiixyj/libebur128")
5381 (synopsis "Library implementing the EBU R 128 loudness standard")
5382 (description
5383 "@code{libebur128} is a C library that implements the EBU R 128 standard
5384for loudness normalisation.")
5385 (license license:expat)))
5386
5387(define-public timidity++
5388 (package
5389 (name "timidity++")
5390 (version "2.15.0")
5391 (source (origin
5392 (method url-fetch)
5393 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
5394 "/TiMidity++-" version
5395 "/TiMidity++-" version ".tar.bz2"))
5396 (sha256
5397 (base32
5398 "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn"))))
5399 (build-system gnu-build-system)
5400 (arguments
5401 '(#:configure-flags
5402 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
5403 "--enable-ncurses"
5404 "--enable-server"
5405 "--enable-alsaseq"
5406 (string-append "--with-default-path="
5407 (assoc-ref %outputs "out") "/etc/timidity"))
5408 #:phases
5409 (modify-phases %standard-phases
5410 (add-after 'configure 'fix-config.h
5411 (lambda _
5412 (substitute* "config.h"
5413 (("/\\* #undef STDC_HEADERS \\*/")
5414 "#define STDC_HEADERS 1"))))
5415 (add-after 'install 'install-config
5416 (lambda _
5417 (let ((out (string-append (assoc-ref %outputs "out")
5418 "/etc/timidity")))
5419 (mkdir-p out)
5420 (call-with-output-file
5421 (string-append out "/timidity.cfg")
5422 (lambda (port)
5423 (format port (string-append "source "
5424 (assoc-ref %build-inputs "freepats")
5425 "/share/freepats/freepats.cfg")))))
5426 #t)))))
5427 (inputs
5428 (list alsa-lib
5429 ao
5430 flac
5431 jack-1
5432 libogg
5433 libvorbis
5434 speex
5435 ncurses
5436 freepats))
5437 (native-inputs
5438 (list pkg-config))
5439 (home-page "https://timidity.sourceforge.net/")
5440 (synopsis "Software synthesizer for playing MIDI files")
5441 (description
5442 "TiMidity++ is a software synthesizer. It can play MIDI files by
5443converting them into PCM waveform data; give it a MIDI data along with digital
5444instrument data files, then it synthesizes them in real-time, and plays. It
5445can not only play sounds, but also can save the generated waveforms into hard
5446disks as various audio file formats.")
5447 (license license:gpl2+)))
5448
5449(define-public vamp
5450 (package
5451 (name "vamp")
5452 (version "2.10.0")
5453 (source (origin
5454 (method url-fetch)
5455 (uri (string-append
5456 "https://code.soundsoftware.ac.uk/attachments/download/"
5457 "2691" ; This mysterious number changes with each update
5458 "/vamp-plugin-sdk-" version ".tar.gz"))
5459 (sha256
5460 (base32
5461 "0pzpkxrz71fzqd2m83kjyafzqzrifzsq5phcn7mqq52blii3gbxf"))))
5462 (build-system gnu-build-system)
5463 (arguments
5464 `(#:tests? #f ; no check target
5465 #:phases
5466 (modify-phases %standard-phases
5467 (add-after 'install 'remove-libvamp-hostsdk.la
5468 (lambda* (#:key outputs #:allow-other-keys)
5469 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
5470 (for-each delete-file
5471 (let ((out (assoc-ref outputs "out")))
5472 (list (string-append out "/lib/libvamp-sdk.la")
5473 (string-append out "/lib/libvamp-hostsdk.la"))))
5474 #t)))))
5475 (inputs
5476 (list libsndfile))
5477 (native-inputs
5478 (list pkg-config))
5479 (home-page "https://vamp-plugins.org")
5480 (synopsis "Modular and extensible audio processing system")
5481 (description
5482 "Vamp is an audio processing plugin system for plugins that extract
5483descriptive information from audio data — typically referred to as audio
5484analysis plugins or audio feature extraction plugins.")
5485 (license
5486 (license:x11-style
5487 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
5488
5489(define-public libsbsms
5490 (package
5491 (name "libsbsms")
5492 (version "2.0.2")
5493 (source
5494 (origin
5495 (method url-fetch)
5496 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
5497 "/libsbsms-" version ".tar.gz"))
5498 (sha256
5499 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
5500 (build-system gnu-build-system)
5501 (native-inputs (list automake))
5502 (arguments
5503 `(#:configure-flags
5504 ;; Disable the use of SSE unless on x86_64.
5505 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
5506 (%current-system))))
5507 ''("--disable-sse")
5508 ''())
5509 #:phases
5510 (modify-phases %standard-phases
5511 (add-after
5512 'unpack 'fix-ar-lib-path
5513 (lambda* (#:key inputs #:allow-other-keys)
5514 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
5515 (delete-file "ar-lib")
5516 (symlink
5517 (search-input-file inputs
5518 (string-append "/share/automake-"
5519 ,(version-major+minor
5520 (package-version automake))
5521 "/ar-lib"))
5522 "ar-lib")
5523 #t)))))
5524 (home-page "https://sbsms.sourceforge.net/")
5525 (synopsis "Library for time stretching and pitch scaling of audio")
5526 (description
5527 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
5528stretching and pitch scaling of audio. This package contains the library.")
5529 ;; There is no explicit declaration of a license, but a COPYING file
5530 ;; containing gpl2.
5531 (license license:gpl2)))
5532
5533(define-public stargate-sbsms
5534 ;; Stargate's fork of sbsms.
5535 (let ((commit "90fab3440063dc9b6c1c2a8f74c2d92bd0e423f9")
5536 (revision "0"))
5537 (package/inherit libsbsms
5538 (name "stargate-sbsms")
5539 (version (git-version "0" revision commit))
5540 (home-page "https://github.com/stargatedaw/stargate-sbsms")
5541 (source
5542 (origin
5543 (method git-fetch)
5544 (uri (git-reference (url home-page) (commit commit)))
5545 (file-name (git-file-name name version))
5546 (sha256
5547 (base32
5548 "11srnzgpavcj6n70zjdm7488jzrprk71mg9dgr1sa6vwp575hf2m"))))
5549 (arguments
5550 (substitute-keyword-arguments arguments
5551 ((#:phases phases)
5552 #~(modify-phases #$phases
5553 (delete 'fix-ar-lib-path)
5554 (add-before 'build 'change-directory
5555 (lambda _
5556 (chdir "cli")))
5557 (replace 'configure
5558 (lambda _
5559 (setenv "DESTDIR" #$output)
5560 (setenv "PREFIX" "/")))
5561 (add-after 'install 'rename-sbsms
5562 (lambda _
5563 (with-directory-excursion (string-append #$output
5564 "/bin")
5565 (rename-file "sbsms" "stargate-sbsms"))))
5566 (delete 'check)))))
5567 (native-inputs
5568 (list libsndfile))
5569 (properties '((hidden? . #t))))))
5570
5571(define-public libkeyfinder
5572 (package
5573 (name "libkeyfinder")
5574 (version "2.2.7")
5575 (source
5576 (origin
5577 (method git-fetch)
5578 (uri (git-reference
5579 (url "https://github.com/mixxxdj/libkeyfinder")
5580 (commit version)))
5581 (file-name (git-file-name name version))
5582 (sha256
5583 (base32 "0nvhdzy0m3bchk3dpnspv2f518p2v9fjcrv36z1sva1pv9a2g35w"))))
5584 (build-system cmake-build-system)
5585 (native-inputs
5586 (list catch2-2))
5587 (inputs
5588 (list fftw))
5589 (home-page "https://mixxxdj.github.io/libkeyfinder/")
5590 (synopsis "Musical key detection for digital audio")
5591 (description
5592 "@code{libkeyfinder} is a small C++11 library for estimating the musical
5593key of digital audio.")
5594 (license license:gpl3+)))
5595
5596(define-public wavpack
5597 (package
5598 (name "wavpack")
5599 (version "5.8.1")
5600 (source
5601 (origin
5602 (method url-fetch)
5603 (uri (string-append "https://github.com/dbry/WavPack/releases/download/"
5604 version "/wavpack-" version ".tar.xz"))
5605 (sha256
5606 (base32 "09hcbkjlg00gdcyqfviqa76wpx4xz4waxhfgmx88hb30k1a7f8kk"))))
5607 (build-system gnu-build-system)
5608 (arguments
5609 '(#:configure-flags
5610 (list "--disable-static"
5611 "--enable-tests")))
5612 (home-page "https://www.wavpack.com/")
5613 (synopsis "Hybrid lossless audio codec")
5614 (description
5615 "WavPack is an audio compression format with lossless, lossy and hybrid
5616compression modes. This package contains command-line programs and library to
5617encode and decode wavpack files.")
5618 (license license:bsd-3)))
5619
5620(define-public wstsound
5621 ;; XXX: Does not release anymore.
5622 (let ((commit "289cae8dd2b1e75c447b063a6a4299bf139d4249")
5623 (revision "0"))
5624 (package
5625 (name "wstsound")
5626 (version (git-version "0.3.0" revision commit))
5627 (source
5628 (origin
5629 (method git-fetch)
5630 (uri (git-reference
5631 (url "https://github.com/WindstilleTeam/wstsound")
5632 (commit commit)))
5633 (file-name (git-file-name name version))
5634 (sha256
5635 (base32 "14qgvwwl1jah85adbf7q6r954mpcxnszibjzip90839n2g112zwf"))))
5636 (build-system cmake-build-system)
5637 (arguments
5638 (list
5639 #:configure-flags
5640 #~(list "-DBUILD_TESTS=ON")))
5641 (native-inputs (list googletest tinycmmc))
5642 ;; XXX: CMake-built dependents currently require propagation.
5643 (propagated-inputs (list libmodplug libmpg123 libvorbis openal opusfile))
5644 (home-page "https://github.com/WindstilleTeam/wstsound")
5645 (synopsis "C++ sound library")
5646 (description "This package provides a simple sound library for C++.")
5647 (license license:gpl3+))))
5648
5649(define-public libmixed
5650 (package
5651 (name "libmixed")
5652 (version "2.4.0")
5653 (source
5654 (origin
5655 (method git-fetch)
5656 (uri (git-reference
5657 (url "https://github.com/Shirakumo/libmixed")
5658 (commit version)))
5659 (file-name (git-file-name name version))
5660 (sha256
5661 (base32 "0g9z8mzrdp1j4w4dv6z2xkgknip6m6384n953y20wdvhs71gia1v"))))
5662 (build-system cmake-build-system)
5663 (arguments
5664 (list
5665 #:configure-flags
5666 #~(list "-DBUILD_STATIC=OFF"
5667 "-DCMAKE_CXX_FLAGS=-O3 -fPIC"
5668 "-DCMAKE_C_FLAGS=-O3 -fPIC")
5669 #:phases
5670 #~(modify-phases %standard-phases
5671 (add-after 'unpack 'fix-paths
5672 (lambda _
5673 (substitute* "CMakeLists.txt"
5674 (("/usr/local") #$output))))
5675 (replace 'check
5676 (lambda* (#:key tests? #:allow-other-keys)
5677 (when tests?
5678 (invoke "./tester")))))))
5679 (native-inputs (list doxygen graphviz))
5680 (inputs (list libmpg123 ncurses))
5681 (home-page "https://github.com/Shirakumo/libmixed")
5682 (synopsis "Low-level audio mixer pipeline library")
5683 (description
5684 "Libmixed is a library for real-time audio processing pipelines for use
5685in audio/video/games. It can serve as a base architecture for complex DSP
5686systems.")
5687 (license (list license:bsd-2 ; libsamplerate
5688 license:gpl2 ; spiralfft
5689 license:zlib))))
5690
5691(define-public libmodplug
5692 (package
5693 (name "libmodplug")
5694 (version "0.8.9.0")
5695 (source (origin
5696 (method url-fetch)
5697 (uri (string-append
5698 "mirror://sourceforge/modplug-xmms/"
5699 name "/" version "/" name "-" version ".tar.gz"))
5700 (sha256
5701 (base32
5702 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
5703 (build-system gnu-build-system)
5704 (home-page "https://modplug-xmms.sourceforge.net/")
5705 (synopsis "Mod file playing library")
5706 (description
5707 "Libmodplug renders mod music files as raw audio data, for playing or
5708conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
5709supported. Optional features include high-quality resampling, bass expansion,
5710surround and reverb.")
5711 (license license:public-domain)))
5712
5713(define-public libxmp
5714 (package
5715 (name "libxmp")
5716 (version "4.6.3")
5717 (source
5718 (origin
5719 (method git-fetch)
5720 (uri (git-reference
5721 (url "https://github.com/libxmp/libxmp")
5722 (commit (string-append "libxmp-" version))))
5723 (file-name (git-file-name name version))
5724 (sha256
5725 (base32 "0mb54n2cqr8wvq02x9v8vdanvn01bhy0j1pyq2n3iykfnpjx4f2m"))))
5726 (build-system gnu-build-system)
5727 (native-inputs (list autoconf))
5728 (home-page "https://xmp.sourceforge.net/")
5729 (synopsis "Module player library")
5730 (description
5731 "Libxmp is a library that renders module files to PCM data. It supports
5732over 90 mainstream and obscure module formats including Protracker (MOD),
5733Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
5734 (license license:lgpl2.1+)))
5735
5736(define-public xmp
5737 (package
5738 (name "xmp")
5739 (version "4.2.0")
5740 (source
5741 (origin
5742 (method git-fetch)
5743 (uri (git-reference
5744 (url "https://github.com/libxmp/xmp-cli")
5745 (commit (string-append "xmp-" version))))
5746 (file-name (git-file-name name version))
5747 (sha256
5748 (base32 "0c015v8r91g5nspfn6lldkw76dg3xjyg3x6s2sbiw6b3n7bf8znk"))))
5749 (build-system gnu-build-system)
5750 (native-inputs (list autoconf automake pkg-config))
5751 (inputs (list libxmp pulseaudio))
5752 (home-page "https://xmp.sourceforge.net/")
5753 (synopsis "Extended module player")
5754 (description
5755 "Xmp is a portable module player that plays over 90 mainstream and
5756obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
5757Tracker 3 S3M and Impulse Tracker IT files.")
5758 (license license:gpl2+)))
5759
5760(define-public soundtouch
5761 (package
5762 (name "soundtouch")
5763 (version "2.3.1")
5764 (source
5765 (origin
5766 (method git-fetch)
5767 (uri (git-reference
5768 (url "https://gitlab.com/soundtouch/soundtouch.git")
5769 (commit version)))
5770 (file-name (git-file-name name version))
5771 (sha256
5772 (base32 "10znckb8mrnmvwj7vq12732al873qhqw27fpb5f8r0bkjdpcj3vr"))))
5773 (build-system gnu-build-system)
5774 (native-inputs
5775 (list autoconf automake libtool file))
5776 (home-page "https://www.surina.net/soundtouch/")
5777 (synopsis
5778 "Audio processing library for changing tempo, pitch and playback rate")
5779 (description
5780 "SoundTouch is an audio processing library for changing the tempo, pitch
5781and playback rates of audio streams or audio files. It is intended for
5782application developers writing sound processing tools that require tempo/pitch
5783control functionality, or just for playing around with the sound effects.")
5784 (license license:lgpl2.1+)))
5785
5786(define-public soundtouch-1/integer-samples
5787 (package
5788 (inherit soundtouch)
5789 (name "soundtouch")
5790 (version "1.9.2")
5791 (source
5792 (origin
5793 (method git-fetch)
5794 (uri (git-reference
5795 (url "https://gitlab.com/soundtouch/soundtouch.git")
5796 (commit (string-append name "-" version))))
5797 (file-name (git-file-name name version))
5798 (sha256
5799 (base32 "1ir961w5gz86cm6yivr1ypi6n2y52vn319gy2gvdkkbbz5wyjkrq"))))
5800 (arguments
5801 ;; Dolphin expects the samples to be of the integer type.
5802 (list #:configure-flags #~(list "--enable-integer-samples")
5803 #:phases #~(modify-phases %standard-phases
5804 (replace 'bootstrap
5805 (lambda _
5806 ;; Avoid the bootstrap script, which has a broken
5807 ;; shebang.
5808 (invoke "autoreconf" "-vif"))))))))
5809
5810(define-public stargate-soundtouch
5811 ;; Stargate's fork of soundtouch.
5812 (let ((commit "464f474c0be5d7e0970909dd30593012e4621468")
5813 (revision "0"))
5814 (package/inherit soundtouch
5815 (name "stargate-soundtouch")
5816 (version (git-version "0" revision commit))
5817 (home-page "https://github.com/stargatedaw/stargate-soundtouch")
5818 (source
5819 (origin
5820 (method git-fetch)
5821 (uri (git-reference (url home-page) (commit commit)))
5822 (file-name (git-file-name name version))
5823 (sha256
5824 (base32
5825 "1aw2j1f10p8n4s197b1nd3g1rjvwbrrszc9gwsbwk01c6nb3nr9v"))))
5826 (arguments
5827 (list #:phases
5828 #~(modify-phases %standard-phases
5829 (add-after 'install 'rename-soundstretch
5830 (lambda _
5831 (with-directory-excursion (string-append #$output
5832 "/bin")
5833 (rename-file "soundstretch"
5834 "stargate-soundstretch")))))))
5835 (properties '((hidden? . #t))))))
5836
5837(define-public sox
5838 (package
5839 (name "sox")
5840 (version "14.4.2")
5841 (source (origin
5842 (method url-fetch)
5843 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
5844 name "-" version ".tar.bz2"))
5845 (sha256
5846 (base32
5847 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
5848 (build-system gnu-build-system)
5849 (arguments
5850 '(#:configure-flags
5851 '("CFLAGS=-g -O2 -Wno-error=implicit-function-declaration"
5852 ;; Upstream asks to identify the distribution to diagnose SoX
5853 ;; bug reports.
5854 "--with-distro=Guix System Distribution")))
5855 (native-inputs
5856 (list pkg-config))
5857 (inputs
5858 (list alsa-lib
5859 ao
5860 flac
5861 lame
5862 libid3tag
5863 libltdl
5864 libmad
5865 libpng
5866 libvorbis
5867 pulseaudio))
5868 (home-page "https://sox.sourceforge.net")
5869 (synopsis "Sound processing utility")
5870 (description
5871 "SoX (Sound eXchange) is a command line utility that can convert
5872various formats of computer audio files to other formats. It can also
5873apply various effects to these sound files, and, as an added bonus, SoX
5874can play and record audio files.")
5875 ;; sox.c is distributed under GPL, while the files that make up
5876 ;; libsox are licensed under LGPL.
5877 (license (list license:gpl2+ license:lgpl2.1+))))
5878
5879(define-public soxr
5880 (package
5881 (name "soxr")
5882 (version "0.1.3")
5883 (source
5884 (origin
5885 (method url-fetch)
5886 (uri
5887 (string-append "mirror://sourceforge/soxr/soxr-" version
5888 "-Source.tar.xz"))
5889 (sha256
5890 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
5891 (build-system cmake-build-system)
5892 (arguments '(#:tests? #f)) ;no 'check' target
5893 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
5894 (synopsis "One-dimensional sample-rate conversion library")
5895 (description
5896 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
5897conversion. It may be used, for example, to resample PCM-encoded audio.")
5898 (license license:lgpl2.1+)))
5899
5900(define-public twolame
5901 (package
5902 (name "twolame")
5903 (version "0.4.0")
5904 (source
5905 (origin
5906 (method url-fetch)
5907 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
5908 "/twolame-" version ".tar.gz"))
5909 (sha256
5910 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
5911 (build-system gnu-build-system)
5912 (inputs
5913 (list libsndfile))
5914 (native-inputs
5915 (list perl which)) ;used in tests/test.pl
5916 (home-page "https://www.twolame.org/")
5917 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
5918 (description
5919 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
5920tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
5921portions of LAME.")
5922 (license license:lgpl2.1+)))
5923
5924(define-public portaudio
5925 (package
5926 (name "portaudio")
5927 (version "190600.20161030")
5928 (source
5929 (origin
5930 (method url-fetch)
5931 (uri (string-append
5932 "http://www.portaudio.com/archives/pa_stable_v"
5933 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
5934 ".tgz"))
5935 (sha256
5936 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
5937 (patches (search-patches "portaudio-audacity-compat.patch"))))
5938 (build-system gnu-build-system)
5939 (inputs
5940 ;; TODO: Add ASIHPI.
5941 (list alsa-lib jack-1))
5942 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
5943 ;; files.
5944 (native-inputs
5945 (list autoconf automake libtool pkg-config))
5946 (arguments
5947 '(#:tests? #f ;no 'check' target
5948 #:parallel-build? #f ;fails on some systems
5949 #:configure-flags '("--with-pic"
5950 "--enable-cxx"
5951 ;; XXX: The following prevents a build error
5952 ;; because of missing depcomp when C++ bindings are
5953 ;; requested.
5954 "--disable-dependency-tracking")
5955 #:phases
5956 (modify-phases %standard-phases
5957 ;; This is needed for linking the static libraries
5958 (add-after 'unpack 'build-only-position-independent-code
5959 (lambda _
5960 (substitute* "configure.in"
5961 (("AC_PROG_LIBTOOL" m)
5962 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
5963 (delete-file "configure")
5964 #t))
5965 ;; Some headers are not installed by default, but are needed by
5966 ;; packages like Kaldi.
5967 (add-after 'install 'install-missing-headers
5968 (lambda* (#:key outputs #:allow-other-keys)
5969 (install-file "src/common/pa_ringbuffer.h"
5970 (string-append (assoc-ref outputs "out") "/include"))
5971 #t)))))
5972 (home-page "http://www.portaudio.com/")
5973 (synopsis "Audio I/O library")
5974 (description
5975 "PortAudio is a portable C/C++ audio I/O library providing a simple API
5976to record and/or play sound using a callback function or a blocking read/write
5977interface.")
5978 (license license:expat)))
5979
5980(define-public qsynth
5981 (package
5982 (name "qsynth")
5983 (version "1.0.3")
5984 (source
5985 (origin
5986 (method url-fetch)
5987 (uri (list
5988 (string-append "mirror://sourceforge/qsynth/qsynth/" version
5989 "/qsynth-" version ".tar.gz")
5990 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
5991 "/qsynth-" version ".tar.gz")))
5992 (sha256
5993 (base32 "0rmskh0b0jacjhqi4qkfaa28m96dn46a5r796rvha4g8xlm7x2fg"))))
5994 (build-system cmake-build-system)
5995 (arguments
5996 `(#:tests? #f)) ; no "check" phase
5997 (native-inputs
5998 (list qttools pkg-config))
5999 (inputs
6000 (list fluidsynth qtbase qtsvg qtwayland))
6001 (home-page "https://qsynth.sourceforge.io")
6002 (synopsis "Graphical user interface for FluidSynth")
6003 (description
6004 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
6005synthesizer written in C++.")
6006 (license license:gpl2+)))
6007
6008(define-public rsound
6009 (package
6010 (name "rsound")
6011 (version "1.1")
6012 (source
6013 (origin
6014 (method git-fetch)
6015 (uri (git-reference
6016 (url "https://github.com/Themaister/RSound")
6017 (commit (string-append "v" version))))
6018 (file-name (git-file-name name version))
6019 (sha256
6020 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
6021 (build-system gnu-build-system)
6022 (inputs
6023 (list alsa-lib
6024 jack-1
6025 ao
6026 libsamplerate
6027 openal
6028 portaudio
6029 pulseaudio))
6030 (arguments
6031 '(#:phases
6032 (modify-phases %standard-phases
6033 (replace 'configure
6034 (lambda* (#:key outputs #:allow-other-keys)
6035 (setenv "CC" "gcc")
6036 (invoke "./configure"
6037 (string-append "--prefix=" (assoc-ref outputs "out"))))))
6038 ;; No 'check' target.
6039 #:tests? #f))
6040 (home-page "https://themaister.net/rsound.html")
6041 (synopsis "Networked audio system")
6042 (description
6043 "RSound allows you to send audio from an application and transfer it
6044directly to a different computer on your LAN network. It is an audio daemon
6045with a much different focus than most other audio daemons.")
6046 (license license:gpl3+)))
6047
6048(define-public xjackfreak
6049 (package
6050 (name "xjackfreak")
6051 (version "1.0")
6052 (source (origin
6053 (method git-fetch)
6054 (uri (git-reference
6055 (url "https://github.com/johnhldavis/xjackfreak")
6056 (commit (string-append "v" version))))
6057 (file-name (git-file-name name version))
6058 (sha256
6059 (base32
6060 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
6061 (build-system gnu-build-system)
6062 (arguments
6063 `(#:make-flags
6064 (list (string-append "docdir=" (assoc-ref %outputs "out")
6065 "/share/doc/xjackfreak"))))
6066 (inputs
6067 (list jack-1 libx11 libxt libxext))
6068 (native-inputs
6069 (list pkg-config))
6070 (home-page "https://github.com/johnhldavis/xjackfreak")
6071 (synopsis "JACK audio frequency analyzer and display")
6072 (description
6073 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
6074Connection Kit. It can display the FFT of any input, modify it and output the
6075result.")
6076 (license license:gpl3+)))
6077
6078(define-public zita-convolver
6079 (package
6080 (name "zita-convolver")
6081 (version "4.0.3")
6082 (source (origin
6083 (method url-fetch)
6084 (uri (string-append
6085 "http://kokkinizita.linuxaudio.org"
6086 "/linuxaudio/downloads/zita-convolver-"
6087 version ".tar.bz2"))
6088 (snippet
6089 ;; Don't optimize for a specific processor architecture.
6090 '(begin
6091 (substitute* "source/Makefile"
6092 (("^CXXFLAGS \\+= -march=native") ""))
6093 #t))
6094 (modules '((guix build utils)))
6095 (sha256
6096 (base32
6097 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
6098 (build-system gnu-build-system)
6099 (arguments
6100 `(#:tests? #f ; no "check" target
6101 #:make-flags
6102 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
6103 (string-append "SUFFIX="))
6104 #:phases
6105 (modify-phases %standard-phases
6106 (add-after 'unpack 'patch-makefile-and-enter-directory
6107 (lambda _
6108 (substitute* "source/Makefile"
6109 (("ldconfig") "true")
6110 (("^LIBDIR =.*") "LIBDIR = lib\n"))
6111 (chdir "source")
6112 #t))
6113 (add-after 'install 'install-symlink
6114 (lambda _
6115 (symlink "libzita-convolver.so"
6116 (string-append (assoc-ref %outputs "out")
6117 "/lib/libzita-convolver.so.4"))
6118 #t))
6119 ;; no configure script
6120 (delete 'configure))))
6121 (inputs (list fftwf))
6122 (home-page "https://kokkinizita.linuxaudio.org")
6123 (synopsis "Fast, partitioned convolution engine library")
6124 (description
6125 "Zita convolver is a C++ library providing a real-time convolution
6126engine.")
6127 (license license:gpl3+)))
6128
6129(define-public zita-resampler
6130 (package
6131 (name "zita-resampler")
6132 (version "1.6.2")
6133 (source (origin
6134 (method url-fetch)
6135 (uri (string-append
6136 "http://kokkinizita.linuxaudio.org"
6137 "/linuxaudio/downloads/zita-resampler-"
6138 version ".tar.bz2"))
6139 (snippet
6140 ;; Don't optimize for a specific processor architecture.
6141 '(begin
6142 (substitute* '("apps/Makefile" "source/Makefile")
6143 (("^CXXFLAGS \\+= -march=native") ""))
6144 #t))
6145 (modules '((guix build utils)))
6146 (sha256
6147 (base32
6148 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
6149 (build-system gnu-build-system)
6150 (arguments
6151 `(#:tests? #f ; no "check" target
6152 #:make-flags
6153 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
6154 (string-append "SUFFIX="))
6155 #:phases
6156 (modify-phases %standard-phases
6157 (add-after
6158 'unpack 'patch-makefile-and-enter-directory
6159 (lambda _
6160 (substitute* "source/Makefile"
6161 (("ldconfig") "true")
6162 (("^LIBDIR =.*") "LIBDIR = lib\n"))
6163 (chdir "source")
6164 #t))
6165 (add-after
6166 'install 'install-symlink
6167 (lambda _
6168 (symlink "libzita-resampler.so"
6169 (string-append (assoc-ref %outputs "out")
6170 "/lib/libzita-resampler.so.1"))
6171 #t))
6172 ;; no configure script
6173 (delete 'configure))))
6174 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
6175 (synopsis "C++ library for resampling audio signals")
6176 (description
6177 "Libzita-resampler is a C++ library for resampling audio signals. It is
6178designed to be used within a real-time processing context, to be fast, and to
6179provide high-quality sample rate conversion.")
6180 (license license:gpl3+)))
6181
6182(define-public zita-alsa-pcmi
6183 (package
6184 (name "zita-alsa-pcmi")
6185 (version "0.3.2")
6186 (source (origin
6187 (method url-fetch)
6188 (uri (string-append "http://kokkinizita.linuxaudio.org"
6189 "/linuxaudio/downloads/zita-alsa-pcmi-"
6190 version ".tar.bz2"))
6191 (sha256
6192 (base32
6193 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
6194 (build-system gnu-build-system)
6195 (arguments
6196 (list #:tests? #f ;no "check" target
6197 #:make-flags #~(list (string-append "PREFIX="
6198 (assoc-ref %outputs "out"))
6199 (string-append "SUFFIX=")
6200 (string-append "CXX="
6201 #$(cxx-for-target)))
6202 #:phases #~(modify-phases %standard-phases
6203 (add-after 'unpack 'patch-makefile-and-enter-directory
6204 (lambda _
6205 (substitute* "source/Makefile"
6206 (("ldconfig")
6207 "true")
6208 (("^LIBDIR =.*")
6209 "LIBDIR = lib\n")
6210 (("CXXFLAGS \\+= -march=native")
6211 ""))
6212 (chdir "source")))
6213 (add-after 'install 'install-symlink
6214 (lambda _
6215 (symlink "libzita-alsa-pcmi.so"
6216 (string-append (assoc-ref %outputs "out")
6217 "/lib/libzita-alsa-pcmi.so.0"))))
6218 ;; no configure script
6219 (delete 'configure))))
6220 (inputs (list alsa-lib fftw))
6221 (properties `((tunable? . #t)))
6222 (home-page "https://kokkinizita.linuxaudio.org")
6223 (synopsis "C++ wrapper around the ALSA API")
6224 (description
6225 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
6226access to ALSA PCM devices, taking care of the many functions required to
6227open, initialise and use a hw: device in mmap mode, and providing floating
6228point audio data.")
6229 (license license:gpl3+)))
6230
6231(define-public cuetools
6232 (package
6233 (name "cuetools")
6234 (version "1.4.1")
6235 (source (origin
6236 (method git-fetch)
6237 (uri (git-reference
6238 (url "https://github.com/svend/cuetools")
6239 (commit version)))
6240 (file-name (git-file-name name version))
6241 (sha256
6242 (base32
6243 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
6244 (build-system gnu-build-system)
6245 ;; The source checkout is not bootstrapped.
6246 (native-inputs
6247 (list autoconf automake flex bison))
6248 (synopsis "Cue and toc file parsers and utilities")
6249 (description "Cuetools is a set of programs that are useful for manipulating
6250and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
6251files are a way to represent the layout of a data or audio CD in a
6252machine-readable ASCII format.")
6253 (home-page "https://github.com/svend/cuetools")
6254 (license license:gpl2+)))
6255
6256(define-public mp3guessenc
6257 (package
6258 (name "mp3guessenc")
6259 (version "0.27.5")
6260 (source
6261 (origin
6262 (method url-fetch)
6263 (uri (string-append "mirror://sourceforge/mp3guessenc/mp3guessenc-"
6264 (version-major+minor version) "/mp3guessenc-"
6265 version ".tar.gz"))
6266 (sha256
6267 (base32 "1fa3sbwwn4p2v1749lzy040bfy1xfd574mf2frwgg9ikgk3vlb3c"))))
6268 (build-system gnu-build-system)
6269 (arguments
6270 `(#:tests? #f ; no tests
6271 #:make-flags
6272 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
6273 #:phases
6274 (modify-phases %standard-phases
6275 (delete 'configure)))) ; no configure phase
6276 (home-page "https://mp3guessenc.sourceforge.io")
6277 (synopsis "Analyze MPEG layer I/II/III files")
6278 (description "mp3guessenc is a command line utility that tries to detect the
6279encoder used for an MPEG Layer III (MP3) file, as well as scan any MPEG audio
6280file (any layer) and print a lot of useful information.")
6281 (license license:lgpl2.1+)))
6282
6283(define-public mp3cat
6284 (package
6285 (name "mp3cat")
6286 (version "0.5")
6287 (source
6288 (origin
6289 (method git-fetch)
6290 (uri (git-reference
6291 (url "https://github.com/tomclegg/mp3cat")
6292 (commit version)))
6293 (file-name (git-file-name name version))
6294 (sha256
6295 (base32 "0n6hjg2wgd06m561zc3ib5w2m3pwpf74njv2b2w4sqqh5md2ymfr"))))
6296 (build-system gnu-build-system)
6297 (arguments
6298 (list
6299 #:tests? #f ;upstream defines no tests
6300 #:make-flags
6301 #~(list (string-append "PREFIX="
6302 #$output))
6303 #:phases
6304 #~(modify-phases %standard-phases
6305 (delete 'configure)
6306 (add-before 'build 'patch-makefile
6307 (lambda _args
6308 (substitute* "Makefile"
6309 (("cc")
6310 #$(cc-for-target))))))))
6311 (home-page "http://tomclegg.net/mp3cat")
6312 (synopsis "MP3 stream copier and concatenator")
6313 (description
6314 "Copies a stream, skipping everything except MP3 frames with valid
6315headers. This can be used to copy and concatenate streams, even if
6316they contain extra garbage.")
6317 (license license:gpl2+)))
6318
6319(define-public shntool
6320 (package
6321 (name "shntool")
6322 (version "3.0.10")
6323 (source (origin
6324 (method url-fetch)
6325 (uri (list
6326 (string-append "http://etree.org/shnutils/shntool/dist/src/"
6327 "shntool-" version ".tar.gz")
6328 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
6329 version ".orig.tar.gz")))
6330 (sha256
6331 (base32
6332 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
6333 (build-system gnu-build-system)
6334 (synopsis "WAVE audio data processing tool")
6335 (description "shntool is a multi-purpose WAVE data processing and reporting
6336utility. File formats are abstracted from its core, so it can process any file
6337that contains WAVE data, compressed or not---provided there exists a format
6338module to handle that particular file type. It can also generate CUE files, and
6339use them split WAVE data into multiple files.")
6340 (home-page "http://etree.org/shnutils/shntool/")
6341 ;; 'install-sh' bears the x11 license
6342 (license (list license:gpl2+ license:x11))))
6343
6344(define-public dcadec
6345 (package
6346 (name "dcadec")
6347 (version "0.2.0")
6348 (source (origin
6349 (method git-fetch)
6350 (uri (git-reference
6351 (url "https://github.com/foo86/dcadec")
6352 (commit (string-append "v" version))))
6353 (file-name (git-file-name name version))
6354 (sha256
6355 (base32
6356 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
6357 (build-system gnu-build-system)
6358 (arguments
6359 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
6360 `(#:tests? #f
6361 #:make-flags
6362 (list (string-append "CC=" ,(cc-for-target))
6363 ;; Build shared library.
6364 "CONFIG_SHARED=1"
6365 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6366 ;; Set proper runpath.
6367 (string-append "LDFLAGS=-Wl,-rpath="
6368 (assoc-ref %outputs "out")
6369 "/lib"))
6370 #:phases
6371 (modify-phases %standard-phases
6372 ;; No configure script, just a hand-written Makefile.
6373 (delete 'configure))))
6374 (synopsis "DTS Coherent Acoustics decoder")
6375 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
6376with support for HD extensions.")
6377 (home-page "https://github.com/foo86/dcadec")
6378 (license license:lgpl2.1+)))
6379
6380(define-public drc
6381 (package
6382 (name "drc")
6383 (version "3.2.3")
6384 (source
6385 (origin
6386 (method url-fetch)
6387 (uri (string-append "mirror://sourceforge/drc-fir/drc-fir/"
6388 version "/drc-" version ".tar.gz"))
6389 (sha256
6390 (base32
6391 "08ljj4776pjx119zjmfqa8w56bf7x0m7spmi27yk1m455bmiglrj"))))
6392 (build-system gnu-build-system)
6393 (arguments
6394 (list
6395 #:tests? #false ;there are none
6396 #:make-flags
6397 #~(list (string-append "INSTALL_PREFIX=" #$output)
6398 "-C" "source")
6399 #:phases
6400 '(modify-phases %standard-phases
6401 (delete 'configure))))
6402 (inputs (list fftw))
6403 (home-page "https://drc-fir.sourceforge.net/")
6404 (synopsis "Digital room correction")
6405 (description
6406 "DRC is a program used to generate correction filters for acoustic
6407compensation of HiFi and audio systems in general, including listening room
6408compensation. DRC generates just the FIR correction filters, which can be
6409used with a real time or offline convolver to provide real time or offline
6410correction. DRC doesn't provide convolution features, and provides only some
6411simplified, although really accurate, measuring tools.")
6412 (license license:gpl2+)))
6413
6414(define-public bs1770gain
6415 (package
6416 (name "bs1770gain")
6417 (version "0.7.0")
6418 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
6419 (source
6420 (origin
6421 (method url-fetch)
6422 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
6423 version "/bs1770gain-" version ".tar.gz"))
6424 (sha256
6425 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
6426 (modules '((guix build utils)))
6427 (snippet
6428 `(begin
6429 ;; XXX
6430 (substitute* (find-files "." "\\.[ch]$")
6431 (("^ \\* N..o.*") ""))
6432 (substitute* "libbg/bgx.c"
6433 (("#define BG.* ") "#define BS ")
6434 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
6435 (("\"( #|N).*\"") "\"\""))
6436 (substitute* (list "config.h"
6437 "configure.ac"
6438 "configure")
6439 (("https?://bs1770gain[^/]*/")
6440 ,home-page))
6441 #t))))
6442 (build-system gnu-build-system)
6443 (inputs (list ffmpeg-4 sox))
6444 (synopsis "Tool to adjust loudness of media files")
6445 (description
6446 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
6447flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
6448loudness of audio and video files to the same level.")
6449 (license license:gpl2+)))
6450
6451(define-public r128gain
6452 ;; XXX: Upstream notice: This project was archived by the owner on Aug 17,
6453 ;; 2023. It is now read-only.
6454 (package
6455 (name "r128gain")
6456 (version "1.0.7")
6457 (source (origin
6458 (method git-fetch)
6459 (uri (git-reference
6460 (url "https://github.com/desbma/r128gain.git")
6461 (commit version)))
6462 (file-name (git-file-name name version))
6463 (sha256
6464 (base32
6465 "0zqclskkjb9hfdw9gq6iq4bs9dl1wj9nr8v1jz6s885379q9l8i7"))))
6466 (build-system pyproject-build-system)
6467 (arguments
6468 (list
6469 #:tests? #f ;require a complex set up, see <.github/workflows/ci.yml>.
6470 #:phases
6471 #~(modify-phases %standard-phases
6472 (add-after 'unpack 'hardcode-ffmpeg
6473 (lambda* (#:key inputs #:allow-other-keys)
6474 (substitute* "r128gain/__init__.py"
6475 (("ffmpeg_path or \"ffmpeg\"")
6476 (string-append "ffmpeg_path or \""
6477 (search-input-file inputs "bin/ffmpeg")
6478 "\""))))))))
6479 (inputs (list python-crcmod python-ffmpeg-python python-mutagen
6480 python-tqdm ffmpeg))
6481 (native-inputs (list python-future
6482 python-requests
6483 python-setuptools))
6484 (home-page "https://github.com/desbma/r128gain")
6485 (synopsis "Fast audio loudness scanner & tagger")
6486 (description
6487 "r128gain is a multi platform command line tool to scan your audio
6488files and tag them with loudness metadata (ReplayGain v2 or Opus R128 gain
6489format), to allow playback of several tracks or albums at a similar
6490loudness level. r128gain can also be used as a Python module from other
6491Python projects to scan and/or tag audio files.")
6492 ;; 'setup.py' claims LGPL2+, 'LICENSE' is LGPLv2.1.
6493 (license license:lgpl2.1+)))
6494
6495(define-public rsgain
6496 (package
6497 (name "rsgain")
6498 (version "3.6")
6499 (source (origin
6500 (method git-fetch)
6501 (uri (git-reference
6502 (url "https://github.com/complexlogic/rsgain.git")
6503 (commit (string-append "v" version))))
6504 (file-name (git-file-name name version))
6505 (sha256
6506 (base32
6507 "1bnpmm3bxij0l54i39vr70q3l1gdaac3l4vdv76pcdk9nlydmavn"))
6508 (modules '((guix build utils)))
6509 (snippet
6510 ;; Remove bundled dependencies.
6511 #~(delete-file-recursively "src/external"))))
6512 (build-system cmake-build-system)
6513 (arguments
6514 (list
6515 #:tests? #f ;no tests
6516 #:configure-flags
6517 #~(list "-DINSTALL_MANPAGE=ON")
6518 #:phases
6519 #~(modify-phases %standard-phases
6520 (add-after 'unpack 'link-unbundled-libraries
6521 (lambda* (#:key inputs #:allow-other-keys)
6522 (substitute* "CMakeLists.txt"
6523 (("find_package(PkgConfig MODULE REQUIRED)" all)
6524 (string-append all "\nfind_package (CRCpp REQUIRED)")))
6525 (substitute* "src/tag.cpp"
6526 (("external/CRC.h")
6527 "CRC.h")))))))
6528 (native-inputs (list pkg-config gzip))
6529 (inputs
6530 (list crcpp
6531 ffmpeg
6532 fmt
6533 libebur128
6534 libinih
6535 taglib
6536 zlib))
6537 (home-page "https://github.com/complexlogic/rsgain")
6538 (synopsis "ReplayGain 2.0 tagging utility")
6539 (description "This package provides @acronym{rsgain, really simple gain}, a
6540ReplayGain 2.0 command line utility. rsgain applies loudness metadata tags to
6541files, while leaving the audio stream untouched. A ReplayGain-compatible player
6542will dynamically adjust the volume of tagged files during playback.")
6543 (license license:bsd-2)))
6544
6545(define-public filteraudio
6546 (let ((revision "1")
6547 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
6548 (package
6549 (name "filteraudio")
6550 (version (string-append "0.0.0-" revision "."
6551 (string-take commit 7)))
6552 (source
6553 (origin
6554 (method git-fetch)
6555 (uri (git-reference
6556 (url "https://github.com/irungentoo/filter_audio")
6557 (commit commit)))
6558 (file-name (string-append name "-" version "-checkout"))
6559 (sha256
6560 (base32
6561 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
6562 (build-system gnu-build-system)
6563 (arguments
6564 `(#:make-flags (list (string-append "PREFIX=" %output)
6565 (string-append "CC=" ,(cc-for-target)))
6566 #:tests? #f ; No tests
6567 #:phases
6568 (modify-phases %standard-phases
6569 ;; No configure script
6570 (delete 'configure))))
6571 (synopsis "Lightweight audio filtering library")
6572 (description "An easy to use audio filtering library made from webrtc
6573code, used in @code{libtoxcore}.")
6574 (home-page "https://github.com/irungentoo/filter_audio")
6575 (license license:bsd-3))))
6576
6577(define-public gsm
6578 (package
6579 (name "gsm")
6580 (version "1.0.20")
6581 (source
6582 (origin
6583 (method url-fetch)
6584 (uri
6585 (string-append "http://www.quut.com/" name "/" name
6586 "-" version ".tar.gz"))
6587 (sha256
6588 (base32 "1gwhmqs24c14gc9qr91iqb2jkbr3qqy4dvf27yf8j7mq322w65b3"))))
6589 (build-system gnu-build-system)
6590 (arguments
6591 `(#:test-target "tst"
6592 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
6593 #:phases
6594 (modify-phases %standard-phases
6595 (add-after 'unpack 'add-fpic-ccflag
6596 (lambda _
6597 ;; The -fPIC compiler option is needed when building
6598 ;; mediastreamer.
6599 (substitute* "Makefile"
6600 (("^CCFLAGS.*" all)
6601 (string-append all "CCFLAGS += -fPIC\n")))))
6602 (add-before 'install 'pre-install
6603 (lambda _
6604 (let ((out (assoc-ref %outputs "out")))
6605 (mkdir-p (string-append out "/inc"))
6606 (mkdir-p (string-append out "/man"))
6607 (mkdir-p (string-append out "/man/man1"))
6608 (mkdir-p (string-append out "/man/man3"))
6609 (mkdir-p (string-append out "/bin"))
6610 (mkdir-p (string-append out "/lib")))))
6611 (add-after 'install 'post-install
6612 (lambda _
6613 (let ((out (assoc-ref %outputs "out")))
6614 (rename-file (string-append out "/inc")
6615 (string-append out "/include"))
6616 (mkdir-p (string-append out "/include/gsm"))
6617 (copy-recursively "inc"
6618 (string-append out "/include/gsm")))))
6619 (delete 'configure)))) ; no configure script
6620 (synopsis "GSM 06.10 lossy speech compression library")
6621 (description "This C library provides an encoder and a decoder for the GSM
662206.10 RPE-LTP lossy speech compression algorithm.")
6623 (home-page "https://quut.com/gsm/")
6624 (license (license:non-copyleft "file://COPYRIGHT"))))
6625
6626(define-public python-pyalsaaudio
6627 (package
6628 (name "python-pyalsaaudio")
6629 (version "0.11.0")
6630 (source (origin
6631 (method url-fetch)
6632 (uri (pypi-uri "pyalsaaudio" version))
6633 (sha256
6634 (base32
6635 "1p7xw2jrdwwjfnksj97k7hqp4hl7mgsj2kmkcj82qjsj6g59v2m7"))))
6636 (build-system pyproject-build-system)
6637 (arguments
6638 `(#:tests? #f)) ; tests require access to ALSA devices.
6639 (inputs
6640 (list alsa-lib))
6641 (native-inputs (list python-setuptools python-wheel))
6642 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
6643 (synopsis "ALSA wrappers for Python")
6644 (description
6645 "This package contains wrappers for accessing the ALSA API from Python.
6646It is currently fairly complete for PCM devices, and has some support for
6647mixers.")
6648 (license license:psfl)))
6649
6650(define-public python-pyo
6651 (package
6652 (name "python-pyo")
6653 (version "1.0.6")
6654 (source
6655 (origin
6656 (method git-fetch)
6657 (uri (git-reference
6658 (url "https://github.com/belangeo/pyo")
6659 (commit version)))
6660 (file-name (git-file-name name version))
6661 (sha256
6662 (base32 "1igz75kv94dav28rzz19gckgfgdli05q5ghadlvm03ia7xd9l5zm"))))
6663 (build-system pyproject-build-system)
6664 (arguments
6665 (list
6666 ;; TODO: collecting ... Fatal Python error: Segmentation fault
6667 #:tests? #f
6668 #:phases
6669 #~(modify-phases %standard-phases
6670 (add-before 'sanity-check 'set-HOME
6671 (lambda _
6672 (setenv "HOME" "/tmp"))))))
6673 (native-inputs
6674 (list python-pytest
6675 python-setuptools))
6676 (inputs
6677 (list liblo
6678 libsndfile
6679 portaudio
6680 portmidi))
6681 (propagated-inputs
6682 (list python-wxpython))
6683 (home-page "https://github.com/belangeo/pyo")
6684 (synopsis "Python module to build digital signal processing program")
6685 (description
6686 "pyo is a Python module containing classes for a wide variety of audio
6687signal processing types.
6688
6689With pyo, user will be able to include signal processing chains directly in
6690Python scripts or projects, and to manipulate them in real time through the
6691interpreter. Tools in pyo module offer primitives, like mathematical
6692operations on audio signal, basic signal processing (filters, delays,
6693synthesis generators, etc.), but also complex algorithms to create sound
6694granulation and others creative audio manipulations.
6695
6696pyo supports OSC protocol (Open Sound Control), to ease communications between
6697softwares, and MIDI protocol, for generating sound events and controlling
6698process parameters. pyo allows creation of sophisticated signal processing
6699chains with all the benefits of a mature, and widely used, general programming
6700language.")
6701 (license license:lgpl3+)))
6702
6703(define-public ldacbt
6704 (package
6705 (name "ldacbt")
6706 (version "2.0.2.3")
6707 (source (origin
6708 (method url-fetch)
6709 (uri (string-append "https://github.com/EHfive/ldacBT"
6710 "/releases/download/v" version
6711 "/ldacBT-" version ".tar.gz"))
6712 (sha256
6713 (base32
6714 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
6715 (build-system cmake-build-system)
6716 (arguments `(#:tests? #f)) ; no check target
6717 (home-page "https://github.com/EHfive/ldacBT/")
6718 (synopsis "LDAC Bluetooth encoder and ABR library")
6719 (description "This package provides an encoder for the LDAC
6720high-resolution Bluetooth audio streaming codec for streaming at up to 990
6721kbps at 24 bit/96 kHz.")
6722 (license license:asl2.0)))
6723
6724(define-public bluez-alsa
6725 (package
6726 (name "bluez-alsa")
6727 (version "4.3.1")
6728 (source (origin
6729 ;; The tarballs are mere snapshots and don't contain a
6730 ;; bootstrapped build system.
6731 (method git-fetch)
6732 (uri (git-reference
6733 (url "https://github.com/Arkq/bluez-alsa")
6734 (commit (string-append "v" version))))
6735 (file-name (git-file-name name version))
6736 (sha256
6737 (base32
6738 "05qzmcsihhd92vpjd45qr0gdzfqiw4jfcdjdg78mzimv9g5g3rjm"))))
6739 (build-system gnu-build-system)
6740 (arguments
6741 `(#:configure-flags
6742 (list "--enable-ldac"
6743 (string-append "--with-alsaplugindir="
6744 (assoc-ref %outputs "out")
6745 "/lib/alsa-lib")
6746 (string-append "--with-dbusconfdir="
6747 (assoc-ref %outputs "out")
6748 "/etc/dbus-1/system.d"))))
6749 (native-inputs
6750 (list autoconf
6751 automake
6752 `(,glib "bin")
6753 libtool
6754 pkg-config
6755 python-minimal))
6756 (inputs
6757 (list alsa-lib
6758 bluez
6759 dbus
6760 glib
6761 ldacbt
6762 libbsd
6763 ncurses
6764 ortp
6765 sbc))
6766 (home-page "https://github.com/Arkq/bluez-alsa")
6767 (synopsis "Bluetooth ALSA backend")
6768 (description "This project is a rebirth of a direct integration between
6769Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed
6770in favor of 3rd party audio applications. From now on, Bluez acts as a
6771middleware between an audio application, which implements Bluetooth audio
6772profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
6773audio profiles in Bluez, so in theory every Bluetooth device (with audio
6774capabilities) can be connected. In order to access the audio stream, one has
6775to connect to the ALSA PCM device called @code{bluealsa}. The device is based
6776on the ALSA software PCM plugin.")
6777 (license license:expat)))
6778
6779(define-public snd
6780 (package
6781 (name "snd")
6782 (version "26.3")
6783 (source
6784 (origin
6785 (method url-fetch)
6786 (uri (string-append "https://ccrma.stanford.edu/software/snd/snd-"
6787 version ".tar.gz"))
6788 (sha256
6789 (base32
6790 "1d573mjlrn9rhl9g0a3d1rkar34q60ln8mwlbibfalpn8lsz59a0"))))
6791 (build-system gnu-build-system)
6792 (arguments
6793 (list
6794 #:tests? #f ; No tests.
6795 #:out-of-source? #f ; Required by 'install-doc'.
6796 #:configure-flags
6797 #~(let
6798 ((docdir (string-append #$output "/share/doc/snd-" #$version)))
6799 (list "--with-alsa"
6800 "--with-jack"
6801 "--with-gmp"
6802 "--with-gui"
6803 (string-append "--with-doc-dir=" docdir)))
6804 #:phases
6805 #~(modify-phases %standard-phases
6806 (add-after 'install 'install-s7-h
6807 (lambda _
6808 (install-file "s7.h" (string-append #$output
6809 "/include"))))
6810 (add-after 'install 'install-doc
6811 (lambda _
6812 (let
6813 ((docdir (string-append #$output "/share/doc/snd-"
6814 #$version)))
6815 (for-each
6816 (lambda (f)
6817 (install-file f docdir))
6818 (find-files "." "\\.html$"))
6819 (copy-recursively "pix" (string-append docdir "/pix"))))))))
6820 (native-inputs
6821 (list pkg-config))
6822 (inputs
6823 (list alsa-lib
6824 fftw
6825 flac
6826 gmp
6827 gsl
6828 jack-2
6829 libmpg123
6830 libsamplerate
6831 motif
6832 mpc
6833 mpfr
6834 speex
6835 timidity++
6836 vorbis-tools
6837 wavpack))
6838 (home-page "https://ccrma.stanford.edu/software/snd/snd/snd.html")
6839 (synopsis "Sound editor")
6840 (description
6841 "Snd is a sound editor modelled loosely after Emacs. It can be
6842customized and extended using either the s7 Scheme implementation (included in
6843the Snd sources), Ruby, or Forth.")
6844 (license
6845 ;; INFO: pkgsrc classifies this as `esdl-license', a license not included
6846 ;; in OSI or FSF lists, despite being similar to ISC.
6847 (license:non-copyleft "file://COPYING"))))
6848
6849(define-public libspecbleach
6850 (package
6851 (name "libspecbleach")
6852 (version "0.1.6")
6853 (source (origin
6854 (method git-fetch)
6855 (uri (git-reference
6856 (url "https://github.com/lucianodato/libspecbleach")
6857 (commit (string-append "v" version))))
6858 (file-name (git-file-name name version))
6859 (sha256
6860 (base32
6861 "0czmzhggg5gl833karfrl2c0pr2k3jf7q7jd3y68hyj0cnn6f3jg"))))
6862 (build-system meson-build-system)
6863 (native-inputs
6864 (list pkg-config))
6865 (inputs
6866 (list fftwf))
6867 (home-page "https://github.com/lucianodato/libspecbleach")
6868 (synopsis "C library for audio noise reduction and other spectral effects")
6869 (description
6870 "This package provides a C library for audio noise reduction and other
6871spectral effects. It is based on the algorithms that were used in
6872@code{noise-repellent}. These were extracted into a this standalone library to
6873remove the lv2 dependency. It uses the concept of a spectral processor which
6874itself uses a @acronym{STFT, short time Fourier transform} to process the audio.")
6875 (license license:lgpl2.1+)))
6876
6877(define-public noise-repellent
6878 (package
6879 (name "noise-repellent")
6880 (version "0.2.3")
6881 (source (origin
6882 (method git-fetch)
6883 (uri (git-reference
6884 (url "https://github.com/lucianodato/noise-repellent")
6885 (commit (string-append "v" version))))
6886 (file-name (git-file-name name version))
6887 (sha256
6888 (base32
6889 "0dq0rv7mndw0lqacl2nf9dmj4zzq19hfminzk3fzbppk5mh2rivp"))))
6890 (build-system meson-build-system)
6891 (inputs
6892 (list fftwf libspecbleach lv2))
6893 (native-inputs
6894 (list pkg-config))
6895 (home-page "https://github.com/lucianodato/noise-repellent")
6896 (synopsis "LV2 plugin for broadband noise reduction")
6897 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
6898the following features:
6899
6900@enumerate
6901@item Spectral gating and spectral subtraction suppression rule
6902@item Adaptive and manual noise thresholds estimation
6903@item Adjustable noise floor
6904@item Adjustable offset of thresholds to perform over-subtraction
6905@item Time smoothing and a masking estimation to reduce artifacts
6906@item Basic onset detector to avoid transients suppression
6907@item Whitening of the noise floor to mask artifacts and to recover higher
6908 frequencies
6909@item Option to listen to the residual signal
6910@item Soft bypass
6911@item Noise profile saved with the session
6912@end enumerate
6913")
6914 (license license:lgpl3+)))
6915
6916(define-public normalize
6917 (package
6918 (name "normalize")
6919 (version "0.7.7")
6920 (source
6921 (origin
6922 (method url-fetch)
6923 (uri (string-append
6924 "http://download.savannah.gnu.org/releases/normalize/normalize-"
6925 version ".tar.gz"))
6926 (sha256
6927 (base32 "1n5khss10vjjp6w69q9qcl4kqfkd0pr555lgqghrchn6rjms4mb0"))))
6928 (build-system gnu-build-system)
6929 (arguments
6930 (list
6931 #:make-flags
6932 #~(list "CFLAGS=-g -O2 -Wno-error=implicit-function-declaration")
6933 #:phases
6934 #~(modify-phases %standard-phases
6935 (add-after 'unpack 'patch-shell-path
6936 (lambda* (#:key inputs #:allow-other-keys)
6937 (substitute* "test/Makefile.in"
6938 (("/bin/sh")
6939 (search-input-file inputs "/bin/sh"))))))))
6940 (inputs (list libmad))
6941 (home-page "https://normalize.nongnu.org/")
6942 (synopsis "Audio track volume normalizer")
6943 (description
6944 "@code{normalize} is an audio track normalizer.
6945For a collection of tracks with varying volumes, it is able to
6946make the loudness consistent between them. This is helpful
6947when making mixtapes, for example.
6948It can work with WAV and MP3 files.")
6949 (license license:gpl2)))
6950
6951(define-public lv2-speech-denoiser
6952 (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f")
6953 (revision "1"))
6954 (package
6955 (name "lv2-speech-denoiser")
6956 (version (git-version "0" revision commit))
6957 (source
6958 (origin
6959 (method git-fetch)
6960 (uri (git-reference
6961 (url "https://github.com/lucianodato/speech-denoiser/")
6962 (commit commit)))
6963 (file-name (git-file-name name version))
6964 (sha256
6965 (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4"))))
6966 (build-system meson-build-system)
6967 (arguments
6968 `(;; Using a "release" build is recommended for performance
6969 #:build-type "release"
6970 #:phases
6971 (modify-phases %standard-phases
6972 (add-after 'unpack 'patch-meson-build
6973 (lambda _
6974 (substitute* "meson.build"
6975 (("install_folder = 'sdenoise.lv2'")
6976 "install_folder = 'lib/lv2/sdenoise.lv2'")
6977 (("build/manifest.ttl") "../build/manifest.ttl"))
6978 #t))
6979 (add-after 'unpack 'build-rnnoise
6980 (lambda _
6981 (with-directory-excursion "rnnoise"
6982 (let ((old-CFLAGS (getenv "CFLAGS")))
6983 (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL")
6984 (setenv "CONFIG_SHELL" (which "bash"))
6985 (invoke "autoreconf" "-vif")
6986 (invoke "sh" "configure"
6987 "--disable-examples"
6988 "--disable-doc"
6989 "--disable-shared"
6990 "--enable-static")
6991 (invoke "make")
6992 (setenv "CFLAGS" old-CFLAGS))))))))
6993 (inputs
6994 (list lv2))
6995 (native-inputs
6996 (list autoconf automake libtool pkg-config))
6997 (home-page "https://github.com/werman/noise-suppression-for-voice")
6998 (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library")
6999 (description "RNNoise is a library that uses deep learning to apply
7000noise suppression to audio sources with voice presence. This package provides
7001an LV2 audio plugin.")
7002 (license license:lgpl3+))))
7003
7004(define-public cli-visualizer
7005 (package
7006 (name "cli-visualizer")
7007 (version "1.8")
7008 (source
7009 (origin
7010 (method git-fetch)
7011 (uri (git-reference
7012 (url "https://github.com/dpayne/cli-visualizer")
7013 (commit (string-append "v" version))))
7014 (file-name (git-file-name name version))
7015 (sha256
7016 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
7017 (build-system cmake-build-system)
7018 (native-inputs
7019 ;; TODO: Try using the latest googletest for versions > 1.8.
7020 (list ;; ("googletest" ,googletest-1.8)
7021 which))
7022 (inputs
7023 (list fftw ncurses pulseaudio))
7024 (arguments
7025 '(#:tests? #f
7026 ;; XXX Enable tests after patching them to use the system googletest.
7027 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
7028 #:phases
7029 (modify-phases %standard-phases
7030 (add-after 'install 'install-examples
7031 (lambda* (#:key outputs #:allow-other-keys)
7032 (with-directory-excursion "../source/examples"
7033 (delete-file "mac_osx_config")
7034 (for-each (lambda (file)
7035 (install-file file
7036 (string-append
7037 (assoc-ref outputs "out")
7038 "/share/doc")))
7039 (find-files ".")))
7040 #t)))))
7041 (home-page "https://github.com/dpayne/cli-visualizer/")
7042 (synopsis "Command-line audio visualizer")
7043 (description "@code{cli-visualizer} displays fast-Fourier
7044transforms (FFTs) of the sound being played, as well as other graphical
7045representations.")
7046 (license license:expat)))
7047
7048(define-public cava
7049 (package
7050 (name "cava")
7051 (version "0.10.6")
7052 (source (origin
7053 (method git-fetch)
7054 (uri (git-reference
7055 (url "https://github.com/karlstav/cava")
7056 (commit version)))
7057 (file-name (git-file-name name version))
7058 (sha256
7059 (base32
7060 "12ysxbm1di2m0qac4rgd5f94fvlxv64s7kyy5s0d2bbxyzvdcqvm"))))
7061 (build-system gnu-build-system)
7062 (native-inputs (list autoconf automake libtool pkg-config))
7063 (inputs (list alsa-lib fftw ncurses pipewire pulseaudio iniparser
7064 sdl2 autoconf-archive))
7065 (arguments
7066 (list #:configure-flags
7067 #~(list (string-append "PREFIX="
7068 #$output)
7069 (string-append "FONT_DIR="
7070 #$output "/share/consolefonts"))
7071 #:make-flags
7072 #~(let ((lib (string-append #$output "/lib")))
7073 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt")))
7074 #:phases
7075 #~(modify-phases %standard-phases
7076 (replace 'bootstrap
7077 (lambda _
7078 (setenv "HOME"
7079 (getcwd))
7080 (invoke "sh" "autogen.sh")))
7081 (add-before 'build 'make-cava-ldflags
7082 (lambda _
7083 (mkdir-p (string-append #$output "/lib"))))
7084 (add-after 'install 'data
7085 (lambda _
7086 (for-each (lambda (file)
7087 (install-file file
7088 (string-append #$output
7089 "/share/doc/examples")))
7090 (find-files "example_files")))))))
7091 (home-page "https://github.com/karlstav/cava")
7092 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
7093 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
7094using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
7095 (license license:expat)))
7096
7097(define-public libcava
7098 (package
7099 (inherit cava)
7100 (name "libcava")
7101 (version "0.10.6")
7102 (source
7103 (origin
7104 (method git-fetch)
7105 (uri (git-reference
7106 (url "https://github.com/LukashonakV/cava")
7107 (commit version)))
7108 (file-name (git-file-name name version))
7109 (sha256
7110 (base32 "17p7lxmk3v4x2gagd3skmb43llcqkg3qrb0f7jhjlcm91kbxwxpb"))))
7111 (build-system meson-build-system)
7112 (arguments (list #:configure-flags #~(list "-Dbuild_target=lib")))
7113 (home-page "https://github.com/LukashonakV/cava")
7114 (synopsis "Shared CAVA audio-visualization library")
7115 (description "Libcava is a soft fork of CAVA that additionally builds and
7116installs CAVA as a reusable shared library. It provides the public headers
7117and @code{pkg-config} metadata needed by applications that embed CAVA's
7118real-time audio analysis.")
7119 (license license:expat)))
7120
7121(define-public fluid-3
7122 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
7123 (package
7124 (name "fluid-3")
7125 (version "2.1")
7126 (source
7127 (origin
7128 (method url-fetch)
7129 ;; Only one file is required, but the release bundles the whole
7130 ;; software which is 50MiB as tar and 200MiB unpacked. The website
7131 ;; directly links the soundfont release to the github file download.
7132 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
7133 commit "/share/sound/FluidR3Mono_GM.sf3"))
7134 (file-name (string-append name "-" version ".sf3"))
7135 (sha256
7136 (base32
7137 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
7138 (build-system trivial-build-system)
7139 (arguments
7140 `(#:modules ((guix build utils))
7141 #:builder
7142 (begin
7143 (use-modules (guix build utils))
7144 (let ((file (assoc-ref %build-inputs "source"))
7145 (out (string-append %output "/share/soundfonts")))
7146 (mkdir-p out)
7147 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
7148 #t))))
7149 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
7150 (synopsis "Pro-quality GM soundfont")
7151 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
7152 (license license:expat))))
7153
7154(define-public libfdk
7155 (package
7156 (name "libfdk")
7157 (version "2.0.1")
7158 (source
7159 (origin
7160 (method git-fetch)
7161 (uri (git-reference
7162 (url "https://github.com/mstorsjo/fdk-aac")
7163 (commit (string-append "v" version))))
7164 (file-name (git-file-name name version))
7165 (sha256
7166 (base32
7167 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
7168 (build-system gnu-build-system)
7169 (native-inputs
7170 (list autoconf automake libtool))
7171 (home-page "https://github.com/mstorsjo/fdk-aac")
7172 (synopsis "Fraunhofer FDK AAC library")
7173 (description "FDK is a library for encoding and decoding Advanced Audio
7174Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
7175Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
7176LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
7177and AAC-ELD (enhanced low delay) for real-time communication. The encoding
7178library supports sample rates up to 96 kHz and up to eight channels (7.1
7179 surround).")
7180 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
7181 "https://www.gnu.org/licenses/license-list.html#fdk"))))
7182
7183(define-public fdkaac
7184 (package
7185 (name "fdkaac")
7186 (version "1.0.6")
7187 (source (origin
7188 (method git-fetch)
7189 (uri (git-reference
7190 (url "https://github.com/nu774/fdkaac.git")
7191 (commit (string-append "v" version))))
7192 (file-name (git-file-name name version))
7193 (sha256
7194 (base32
7195 "16af0l46qdr907dxkk3yjy02znxj72zb72n30vzykqzd9ri5wmcx"))))
7196 (build-system gnu-build-system)
7197 (native-inputs
7198 (list autoconf automake pkg-config))
7199 (inputs
7200 (list libfdk))
7201 (synopsis "Command-line AAC encoder")
7202 (description "This package provides a command-line AAC-encoder.")
7203 (home-page "https://github.com/nu774/fdkaac")
7204 ;; Most files are zlib.
7205 ;; Files missings/getopt.* are BSD-4-clause.
7206 ;; Files src/parson.* are Expat.
7207 ;; Files src/lpc.* are BSD.
7208 (license license:zlib)))
7209
7210(define-public libfreeaptx
7211 (package
7212 (name "libfreeaptx")
7213 (version "0.2.2")
7214 (source (origin
7215 (method git-fetch)
7216 (uri (git-reference
7217 (url "https://github.com/regularhunter/libfreeaptx")
7218 (commit version)))
7219 (file-name (git-file-name name version))
7220 (sha256
7221 (base32
7222 "0xk247w2l7jd51rbavqnmqk6sqnifhf46k4wwfj572pz7k9cbmly"))))
7223 (build-system gnu-build-system)
7224 (arguments
7225 (list #:tests? #f ;no tests.
7226 #:make-flags
7227 #~(list
7228 (string-append "PREFIX=" #$output)
7229 (string-append "LDFLAGS=" "-Wl,-rpath=" #$output "/lib")
7230 (string-append "CC=" #$(cc-for-target)))
7231 #:phases
7232 #~(modify-phases %standard-phases
7233 (delete 'configure))))
7234 (home-page "https://github.com/regularhunter/libfreeaptx")
7235 (synopsis "Free implementation of aptX")
7236 (description "libfreeaptx is an implementation of the Audio Processing
7237Technology codecs aptX and aptX HD, mainly intended for use with an A2DP
7238bluetooth profile.")
7239 (license license:lgpl2.1+)))
7240
7241(define-public libopenshot-audio
7242 (package
7243 (name "libopenshot-audio")
7244 (version "1.0.0")
7245 (source (origin
7246 (method git-fetch)
7247 (uri (git-reference
7248 (url "https://github.com/OpenShot/libopenshot-audio")
7249 (commit (string-append "v" version))))
7250 (file-name (git-file-name name version))
7251 (sha256
7252 (base32
7253 "0arwyjrrawcbw5scihy7d5jpgs3car66sxgi2g3mn20g37fjr4y6"))))
7254 (build-system cmake-build-system)
7255 (inputs
7256 (list alsa-lib
7257 ;; The following are for JUCE GUI components:
7258 libx11
7259 freetype
7260 libxrandr
7261 libxinerama
7262 libxcursor))
7263 (arguments
7264 (list
7265 #:tests? #f ; there are no tests
7266 #:configure-flags
7267 #~(list (string-append "-DCMAKE_CXX_FLAGS=-I"
7268 #$(this-package-input "freetype")
7269 "/include/freetype2"))))
7270 (home-page "https://www.openshot.org")
7271 (synopsis "Audio editing and playback for OpenShot")
7272 (description "OpenShot Audio Library (libopenshot-audio) allows
7273high-quality editing and playback of audio, and is based on the JUCE
7274library.")
7275 (license license:lgpl3+)))
7276
7277(define-public faudio
7278 (package
7279 (name "faudio")
7280 (version "22.11")
7281 (source
7282 (origin
7283 (method git-fetch)
7284 (uri (git-reference
7285 (url "https://github.com/FNA-XNA/FAudio")
7286 (commit version)))
7287 (file-name (git-file-name name version))
7288 (sha256
7289 (base32 "0jdfslxgzysqy0r3nfbsyj6dz0n36fncbsczm9zznxv5phic7g87"))))
7290 (arguments
7291 '(#:tests? #f ; No tests.
7292 #:configure-flags '("-DGSTREAMER=ON")))
7293 (build-system cmake-build-system)
7294 (native-inputs (list pkg-config))
7295 (inputs (list gstreamer gst-plugins-base sdl2))
7296 (home-page "https://github.com/FNA-XNA/FAudio")
7297 (synopsis "XAudio reimplementation")
7298 (description "FAudio is an XAudio reimplementation that focuses solely on
7299developing fully accurate DirectX Audio runtime libraries.")
7300 (license
7301 (list license:zlib
7302 ;; stb & utils/{ui,wav}common are dual-licenced under either of:
7303 license:expat
7304 license:public-domain))))
7305
7306(define-public darkice
7307 (package
7308 (name "darkice")
7309 (version "1.5")
7310 (source (origin
7311 (method url-fetch)
7312 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
7313 "download/v" version "/darkice-"
7314 version ".tar.gz"))
7315 (sha256
7316 (base32
7317 "13h58skz5xik75sjv9kf2299haly2nc5gswl22ff1kvw79bw9d0q"))))
7318 (build-system gnu-build-system)
7319 (native-inputs (list pkg-config))
7320 (inputs (list lame
7321 libvorbis
7322 opus
7323 twolame
7324 alsa-lib
7325 pulseaudio
7326 jack-1
7327 libsamplerate))
7328 (arguments
7329 `(#:configure-flags
7330 (list (string-append "--with-lame-prefix="
7331 (assoc-ref %build-inputs "lame")))
7332 #:make-flags
7333 (list "CXXFLAGS += -std=gnu++14")))
7334 (home-page "http://www.darkice.org/")
7335 (synopsis "Live audio streamer")
7336 (description "DarkIce is a live audio streamer. It takes audio input from
7337a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
7338stream to one or more IceCast and/or ShoutCast servers.")
7339 (license license:gpl3+)))
7340
7341(define-public libltc
7342 (package
7343 (name "libltc")
7344 (version "1.3.2")
7345 (source
7346 (origin
7347 (method url-fetch)
7348 (uri
7349 (string-append "https://github.com/x42/libltc/releases/download/v"
7350 version "/libltc-" version ".tar.gz"))
7351 (sha256
7352 (base32 "0j8j7cnw02arh8122d13bwkps1c0mi2xqq55gyi2bs91dk6l4v8a"))))
7353 (build-system gnu-build-system)
7354 (arguments
7355 `(#:parallel-tests? #f)) ;tests fail otherwise
7356 (native-inputs
7357 (list doxygen pkg-config))
7358 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
7359 (description "Libltc is a POSIX-C Library for handling
7360@dfn{Linear/Longitudinal Time Code} (LTC) data.")
7361 (home-page "https://x42.github.io/libltc/")
7362 (license license:lgpl3+)))
7363
7364(define-public ttaenc
7365 (package
7366 (name "ttaenc")
7367 (version "3.4.1")
7368 (source
7369 (origin
7370 (method url-fetch)
7371 (uri (string-append "mirror://sourceforge/tta/"
7372 "tta/ttaenc-src"
7373 "/ttaenc-" version "-src.tgz"))
7374 (sha256
7375 (base32
7376 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
7377 (build-system gnu-build-system)
7378 (arguments
7379 `(#:tests? #f ;no tests
7380 #:make-flags
7381 (list (string-append "CC=" ,(cc-for-target))
7382 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
7383 #:phases
7384 (modify-phases %standard-phases
7385 (delete 'configure) ; no configure
7386 (add-before 'install 'make-bindir
7387 (lambda* (#:key outputs #:allow-other-keys)
7388 (let* ((out (assoc-ref outputs "out")))
7389 (mkdir-p (string-append out "/bin"))
7390 #t))))))
7391 (synopsis "TTA lossless audio encoder")
7392 (description
7393 "TTA performs lossless compression on multichannel 8,16 and 24 bits
7394data of the Wav audio files. Being lossless means that no data-
7395quality is lost in the compression - when uncompressed, the data will
7396be identical to the original. The compression ratios of TTA depend on
7397the type of music file being compressed, but the compression size
7398will generally range between 30% - 70% of the original. TTA format
7399supports both of ID3v1/v2 and APEv2 tags.")
7400 (home-page "http://tausoft.org/")
7401 (license license:gpl2+)))
7402
7403(define-public libsoundio
7404 (package
7405 (name "libsoundio")
7406 (version "2.0.0")
7407 (source
7408 (origin
7409 (method git-fetch)
7410 (uri (git-reference
7411 (url "https://github.com/andrewrk/libsoundio")
7412 (commit version)))
7413 (file-name (git-file-name name version))
7414 (sha256
7415 (base32
7416 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
7417 (build-system cmake-build-system)
7418 (arguments
7419 `(#:tests? #f)) ;no tests included
7420 (inputs
7421 (list alsa-lib jack-1 pulseaudio))
7422 (native-inputs
7423 (list pkg-config))
7424 (home-page "http://libsound.io")
7425 (synopsis "C library for real-time audio input and output")
7426 (description "@code{libsoundio} is a C library providing audio input and
7427output. The API is suitable for real-time software such as digital audio
7428workstations as well as consumer software such as music players.")
7429 (license license:expat)))
7430
7431(define-public redkite
7432 (package
7433 (name "redkite")
7434 (version "2.1.0")
7435 (source
7436 (origin
7437 (method git-fetch)
7438 (uri (git-reference
7439 (url "https://github.com/quamplex/redkite")
7440 (commit (string-append "v" version))))
7441 (file-name (git-file-name name version))
7442 (sha256
7443 (base32 "1xn7vnv7zszy0f1ynxd7qn0131w0gmk3rp3my4xjh143dhck4q4b"))))
7444 (build-system cmake-build-system)
7445 (arguments
7446 `(#:tests? #f)) ;no tests included
7447 (propagated-inputs
7448 (list cairo))
7449 (native-inputs
7450 (list pkg-config))
7451 (synopsis "Lightweight graphics widget toolkit for embedded GUI")
7452 (description "Redkite is a small GUI toolkit developed in C++17 and
7453inspired from other well known GUI toolkits such as Qt and GTK. It is
7454minimal on purpose and is intended to be statically linked to applications,
7455therefore satisfying any requirements they may have to be self contained,
7456as is the case with audio plugins.")
7457 (home-page "https://github.com/quamplex/redkite")
7458 (license license:gpl3+)))
7459
7460(define-public carla
7461 (package
7462 (name "carla")
7463 (version "2.5.10")
7464 (source
7465 (origin
7466 (method git-fetch)
7467 (uri
7468 (git-reference
7469 (url "https://github.com/falkTX/Carla")
7470 (commit (string-append "v" version))))
7471 (file-name (git-file-name name version))
7472 (sha256
7473 (base32 "1p7nvydnmg5l457w3089bwj1a5z509ydlpwvf19k86i348a1lm6v"))))
7474 (build-system gnu-build-system)
7475 (arguments
7476 (list #:tests? #f ; no "check" target
7477 #:make-flags
7478 #~(list (string-append "PREFIX=" #$output))
7479 #:phases
7480 #~(modify-phases %standard-phases
7481 (delete 'configure) ; no configure script
7482 (add-before 'build 'set-CC-variable-and-show-features
7483 (lambda _
7484 (setenv "CC" #$(cc-for-target))
7485 (invoke "make" "features")))
7486 (add-after 'install 'make-carla-executable
7487 (lambda _
7488 (with-directory-excursion (string-append #$output
7489 "/share/carla")
7490 (for-each (lambda (file)
7491 (chmod file #o555))
7492 (list "carla"
7493 "carla-control"
7494 "carla-jack-multi"
7495 "carla-jack-single"
7496 "carla-patchbay"
7497 "carla-rack")))))
7498 (add-after 'install 'wrap-executables
7499 (lambda* (#:key inputs #:allow-other-keys)
7500 ;; Wrap only those executable files that other programs
7501 ;; (e.g. lmms) would call.
7502 (with-directory-excursion #$output
7503 (for-each (lambda (file)
7504 (when (and (executable-file? file)
7505 (not (symbolic-link? file))
7506 (not (string-suffix? ".py" file)))
7507 (wrap-program file
7508 `("GUIX_PYTHONPATH" ":" prefix
7509 (,(getenv "GUIX_PYTHONPATH")))
7510 `("QT_PLUGIN_PATH" ":" prefix
7511 (,(getenv "QT_PLUGIN_PATH"))))))
7512 (append (find-files "share/carla/resources")
7513 (find-files "bin")))))))))
7514 (inputs
7515 (list alsa-lib
7516 bash-minimal
7517 ffmpeg
7518 fluidsynth
7519 file
7520 liblo
7521 libsndfile
7522 libx11
7523 gtk+-2 ;needed for bridging GTK2 plugins in GTK3 hosts
7524 gtk+
7525 pulseaudio
7526 python-pyliblo3
7527 python-pyqt
7528 python-rdflib
7529 ;; python-pyqt shows the following error without python-wrapper:
7530 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
7531 ;; (ModuleNotFoundError: No module named 'PyQt5')
7532 python-wrapper
7533 qtbase-5
7534 qtwayland-5
7535 zlib))
7536 (native-inputs
7537 (list pkg-config))
7538 (native-search-paths
7539 (list (search-path-specification
7540 (variable "CLAP_PATH")
7541 (files '("lib/clap")))
7542 (search-path-specification
7543 (variable "LADSPA_PATH")
7544 (files '("lib/ladspa")))
7545 (search-path-specification
7546 (variable "LV2_PATH")
7547 (files '("lib/lv2")))
7548 (search-path-specification
7549 (variable "LXVST_PATH")
7550 (files '("lib/lxvst")))
7551 (search-path-specification
7552 (variable "VST2_PATH")
7553 (files '("lib/vst")))
7554 (search-path-specification
7555 (variable "VST3_PATH")
7556 (files '("lib/vst3")))
7557 (search-path-specification
7558 (variable "SF2_PATH")
7559 (files '("share/sf2")))
7560 (search-path-specification
7561 (variable "SFZ_PATH")
7562 (files '("share/sfz")))))
7563 (home-page "https://kx.studio/Applications:Carla")
7564 (synopsis "Audio plugin host")
7565 (description "Carla is a modular audio plugin host, with features like
7566transport control, automation of parameters via MIDI CC and remote control
7567over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
7568and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
7569default and preferred audio driver but also supports native drivers like ALSA.")
7570 (license license:gpl2+)))
7571
7572;;; This package variant tracks the latest in-development 2.6 release.
7573(define-public carla-2.6
7574 (let ((commit "294a80145e39c0755ab9073d90fd8b9524fbfc84")
7575 (revision "1"))
7576 (package
7577 (inherit carla)
7578 (name "carla")
7579 (version (git-version "2.6.0" revision commit))
7580 (source
7581 (origin
7582 (method git-fetch)
7583 (uri
7584 (git-reference
7585 (url "https://github.com/falkTX/Carla")
7586 (commit commit)))
7587 (file-name (git-file-name name version))
7588 (sha256
7589 (base32 "053yfwf9l9vqvq95c354by6nm8ym0wgkv3fr1434x5w9n1344z0z"))))
7590 (inputs
7591 (modify-inputs (package-inputs carla)
7592 (replace "python-pyqt" python-pyqt-6)
7593 (replace "qtbase" qtbase)
7594 (replace "qtwayland" qtwayland))))))
7595
7596;; This source is a fork of vst3sdk with the documentation and VSTGUI
7597;; submodules removed and a dummy `meson.build` file that just lists all
7598;; source files.
7599(define vst3sdk
7600 (let ((version "3.7.7_build_19-patched"))
7601 (origin
7602 (method git-fetch)
7603 (uri
7604 (git-reference
7605 (url "https://github.com/robbert-vdh/vst3sdk")
7606 (commit (string-append "v" version))
7607 ;; Required for vst3_base, vst3_pluginterfaces, and vst3_public_sdk.
7608 (recursive? #t)))
7609 (file-name (git-file-name "vst3sdk" version))
7610 (sha256
7611 (base32 "09axvpshwbf5061kcbl26v74dcmwxmgmlxb15b75bnqbh0zcghrf"))
7612 (patches
7613 (search-patches "vst3sdk-3.7.7-allow-winelib-compilation.patch")))))
7614
7615(define-public yabridge
7616 (package
7617 (name "yabridge")
7618 (version "5.1.1")
7619 (source (origin
7620 (method git-fetch)
7621 (uri (git-reference
7622 (url "https://github.com/robbert-vdh/yabridge")
7623 (commit version)))
7624 (file-name (git-file-name name version))
7625 (sha256
7626 (base32
7627 "0r7q72jmd44wynxphwhgm17wkfgm6zfdrpfnhsj8b53406ykgq71"))))
7628 (build-system meson-build-system)
7629 (arguments
7630 (list #:configure-flags
7631 #~(append (list "-Dsystem-asio=true"
7632 (string-append "--cross-file=" #$source
7633 "/cross-wine.conf"))
7634 ;; On 32bit system, without this flag it does not build
7635 ;; yabridge-host-32.exe and yabridge-host-32.exe.so. On
7636 ;; 64bit system do not enable it since gcc does not
7637 ;; support multilib.
7638 (if #$(target-32bit?) "-Dbitbridge=true" '()))
7639 #:phases
7640 #~(modify-phases %standard-phases
7641 (add-after 'unpack 'copy-vst3sdk
7642 (lambda* (#:key inputs #:allow-other-keys)
7643 (copy-recursively #$vst3sdk
7644 "subprojects/vst3")))
7645 (add-after 'copy-vst3sdk 'patch-paths
7646 (lambda* (#:key inputs #:allow-other-keys)
7647 (substitute* "src/chainloader/utils.cpp"
7648 (("(.*)\"\\/usr\\/lib\"," all indent)
7649 (string-append indent "\"" #$output "/lib\","))
7650 ((".*\\/usr.*$") ""))))
7651 (add-after 'patch-paths 'fix-dependencies
7652 (lambda _
7653 (substitute* "meson.build"
7654 ;; FIXME: gurlrak-filesystem does not provide
7655 ;; ghc_filesystem-config-version.cmake.
7656 (("(ghc_filesystem_dep .*)version :.*(\\))" all start end)
7657 (string-append start end)))))
7658 (replace 'install
7659 (lambda _
7660 (for-each
7661 (lambda (file)
7662 (install-file file (string-append #$output "/bin")))
7663 (find-files "." "-host(-32|)\\.exe(|\\.so)$"))
7664 (for-each
7665 (lambda (file)
7666 (install-file file (string-append #$output "/lib")))
7667 (find-files "." "libyabridge.*\\.so$"))))
7668 (add-after 'install 'patch-appdir
7669 (lambda _
7670 (substitute* (find-files #$output "-host(-32|)\\.exe$")
7671 (("`dirname \"\\$0\"`")
7672 (string-append #$output "/bin")))))
7673 (add-after 'patch-appdir 'wrap-program
7674 (lambda _
7675 (with-directory-excursion (string-append #$output "/bin")
7676 (wrap-program (if #$(target-64bit?)
7677 "yabridge-host.exe"
7678 "yabridge-host-32.exe")
7679 `("PATH" ":" prefix
7680 (,(string-append (or #$(this-package-input "wine64")
7681 #$(this-package-input "wine"))
7682 "/bin"))))))))))
7683 (native-inputs
7684 (list cmake-minimal pkg-config))
7685 (inputs
7686 (list bash-minimal
7687 asio-1.28
7688 bitsery
7689 clap-1.1
7690 dbus
7691 function2
7692 gulrak-filesystem
7693 libxcb
7694 tomlplusplus
7695 (wine-for-system)))
7696 (home-page "https://github.com/robbert-vdh/yabridge")
7697 (synopsis "Implementation of Windows VST2, VST3 and CLAP plugin APIs")
7698 (description
7699 "@code{yabridge} is Yet Another way to use Windows audio plugins. It
7700supports using Windows VST2, VST3, and CLAP plugins in plugin hosts as if they
7701were native plugins, with optional support for plugin groups to enable
7702inter-plugin communication for VST2 plugins and quick startup times.")
7703 (license license:gpl3+)))
7704
7705(define-public yabridgectl
7706 (package
7707 (inherit yabridge)
7708 (name "yabridgectl")
7709 (build-system cargo-build-system)
7710 (arguments
7711 (list #:install-source? #f
7712 #:phases
7713 #~(modify-phases %standard-phases
7714 (add-after 'unpack 'change-directory
7715 (lambda _
7716 (chdir "tools/yabridgectl")))
7717 (add-after 'change-directory 'patch-paths
7718 (lambda _
7719 (with-directory-excursion "src"
7720 (substitute* '("config.rs" "main.rs")
7721 (("\"\\/usr\\/lib\"")
7722 (string-append "\""
7723 #$(this-package-input "yabridge")
7724 "/lib\""))
7725 ((".*\\/usr\\/(lib(\\/|64)|local).*") ""))
7726 (substitute* "util.rs"
7727 (("libdbus-1\\.so" all)
7728 (string-append #$(this-package-input "dbus")
7729 "/lib/" all))))))
7730 (add-after 'patch-paths 'use-guix-vendored-dependencies
7731 (lambda _
7732 (substitute* "Cargo.toml"
7733 ;; Use reflink from the inputs.
7734 (("git.*, rev.*}") "version = \"*\"}")))))))
7735 (native-inputs '())
7736 (inputs
7737 (cons* dbus yabridge (cargo-inputs 'yabridgectl)))
7738 (synopsis "Utility to set up and update yabridge")
7739 (description
7740 "@command{yabridgectl} is a tool to setup and update @code{yabridge}.")))
7741
7742(define-public ecasound
7743 (package
7744 (name "ecasound")
7745 (version "2.9.3")
7746 (source (origin
7747 (method url-fetch)
7748 (uri (string-append "https://nosignal.fi/download/ecasound-"
7749 version ".tar.gz"))
7750 (sha256
7751 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
7752 (build-system gnu-build-system)
7753 (native-inputs (list pkg-config))
7754 ;; It would be nice to add mikmod to inputs if that gets packaged
7755 ;; eventually.
7756 (inputs (list alsa-lib
7757 faad2
7758 flac
7759 jack-1
7760 ladspa
7761 lame
7762 libmpg123
7763 libsamplerate
7764 libsndfile
7765 lilv
7766 ncurses
7767 timidity++
7768 vorbis-tools))
7769 (home-page "https://nosignal.fi/ecasound/index.php")
7770 (synopsis "Multitrack audio processing")
7771 (description "Ecasound is a software package designed for multitrack audio
7772processing. It can be used for simple tasks like audio playback, recording and
7773format conversions, as well as for multitrack effect processing, mixing,
7774recording and signal recycling. Ecasound supports a wide range of audio inputs,
7775outputs and effect algorithms. Effects and audio objects can be combined in
7776various ways, and their parameters can be controlled by operator objects like
7777oscillators and MIDI-CCs. A versatile console mode user-interface is included
7778in the package.")
7779 ;; As an exception to the above, the C, C++ and python implementations
7780 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
7781 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
7782 ;; that are not licensed under GPL.
7783 (license (list license:gpl2 license:lgpl2.1))))
7784
7785(define-public libaudec
7786 (package
7787 (name "libaudec")
7788 (version "0.3.4")
7789 (source
7790 (origin
7791 (method git-fetch)
7792 (uri (git-reference
7793 (url "https://git.zrythm.org/zrythm/libaudec")
7794 (commit (string-append "v" version))))
7795 (file-name (git-file-name name version))
7796 (sha256
7797 (base32
7798 "02hhhpcfkycicygh6g9hzps255zkbbi33vks6yv6zk5wp9p2nspj"))))
7799 (build-system meson-build-system)
7800 (arguments
7801 `(#:configure-flags
7802 ;; Build the tests.
7803 `("-Dtests=true")))
7804 (inputs
7805 (list libsamplerate libsndfile))
7806 (native-inputs
7807 (list pkg-config))
7808 (synopsis "Library for reading and resampling audio files")
7809 (description "libaudec is a wrapper library over ffmpeg, sndfile and
7810libsamplerate for reading and resampling audio files, based on Robin Gareus'
7811@code{audio_decoder} code.")
7812 (home-page "https://git.zrythm.org/zrythm/libaudec")
7813 (license license:agpl3+)))
7814
7815(define-public lv2lint
7816 (package
7817 (name "lv2lint")
7818 (version "0.8.0")
7819 (source
7820 (origin
7821 (method git-fetch)
7822 (uri (git-reference
7823 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
7824 (commit version)))
7825 (file-name (git-file-name name version))
7826 (sha256
7827 (base32
7828 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
7829 (build-system meson-build-system)
7830 (arguments
7831 `(#:configure-flags
7832 `("-Delf-tests=true" ; for checking symbol visibility
7833 "-Donline-tests=true"))) ; for checking URI existence
7834 (inputs
7835 (list curl libelf lilv))
7836 (native-inputs
7837 (list pkg-config))
7838 (synopsis "LV2 plugin lint tool")
7839 (description "lv2lint is an LV2 lint-like tool that checks whether a
7840given plugin and its UI(s) match up with the provided metadata and adhere
7841to well-known best practices.")
7842 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
7843 (license license:artistic2.0)))
7844
7845(define-public lv2toweb
7846 (package
7847 (name "lv2toweb")
7848 (version "0.4")
7849 (source
7850 (origin
7851 (method git-fetch)
7852 (uri (git-reference
7853 (url "https://github.com/x42/lv2toweb")
7854 (commit (string-append "v" version))))
7855 (file-name (git-file-name name version))
7856 (sha256
7857 (base32
7858 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
7859 (build-system gnu-build-system)
7860 (arguments
7861 `(#:tests? #f ; no "check" target
7862 #:make-flags (list "CC=gcc"
7863 (string-append "PREFIX=" (assoc-ref %outputs "out")))
7864 #:phases
7865 (modify-phases %standard-phases
7866 (delete 'configure))))
7867 (inputs
7868 (list jalv lilv))
7869 (native-inputs
7870 (list help2man pkg-config))
7871 (synopsis "Documentation generator for LV2 plugins")
7872 (description
7873 "lv2toweb allows the user to create an xhtml page with information
7874about the given LV2 plugin, provided that the plugin and its UI(s) match up
7875with the provided metadata and adhere to well-known best practices.")
7876 (home-page "https://github.com/x42/lv2toweb")
7877 (license (list license:isc license:gpl2))))
7878
7879(define-public ztoolkit
7880 (package
7881 (name "ztoolkit")
7882 (version "0.1.2")
7883 (source
7884 (origin
7885 (method git-fetch)
7886 (uri (git-reference
7887 (url "https://git.zrythm.org/zrythm/ztoolkit")
7888 (commit (string-append "v" version))))
7889 (file-name (git-file-name name version))
7890 (sha256
7891 (base32
7892 "1k60zklrrnch4l0iyzwb4q0srdj3gggwq8cpldwgdhn26ddqkl0d"))))
7893 (build-system meson-build-system)
7894 (native-inputs
7895 (list pkg-config))
7896 ;; These are listed as propagated inputs because they are dependencies
7897 ;; in pkgconfig.
7898 (propagated-inputs
7899 (list cairo libx11))
7900 (synopsis "GUI toolkit for LV2 plugins")
7901 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
7902inspired by GTK. It handles events and low level drawing on behalf of
7903the user and provides a high-level API for managing the UI and custom
7904widgets. ZToolkit is written in C and was created to be used for building
7905audio plugin UIs, where the dependencies often need to be kept to a
7906minimum.")
7907 (home-page "https://git.zrythm.org/zrythm/ztoolkit")
7908 (license license:agpl3+)))
7909
7910(define-public ztoolkit-rsvg
7911 (package/inherit ztoolkit
7912 (name "ztoolkit-rsvg")
7913 (arguments
7914 (list #:configure-flags '(list "-Denable_rsvg=true")))
7915 (propagated-inputs
7916 (modify-inputs propagated-inputs
7917 (prepend (librsvg-for-system))))
7918 (synopsis "ZToolkit with SVG support")))
7919
7920(define-public libinstpatch
7921 (package
7922 (name "libinstpatch")
7923 (version "1.1.6")
7924 (source
7925 (origin
7926 (method git-fetch)
7927 (uri (git-reference
7928 (url "https://github.com/swami/libinstpatch")
7929 (commit (string-append "v" version))))
7930 (file-name (git-file-name name version))
7931 (sha256
7932 (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir"))))
7933 (build-system cmake-build-system)
7934 (arguments
7935 `(#:tests? #f)) ;there are no tests
7936 (native-inputs
7937 `(("glib:bin" ,glib "bin")
7938 ("pkg-config" ,pkg-config)))
7939 (inputs
7940 (list glib libsndfile))
7941 (home-page "http://www.swamiproject.org/")
7942 (synopsis "Instrument file software library")
7943 (description
7944 "libInstPatch is a library for processing digital sample based MIDI
7945instrument \"patch\" files. The types of files libInstPatch supports are used
7946for creating instrument sounds for wavetable synthesis. libInstPatch provides
7947an object framework (based on GObject) to load patch files, which can then be
7948edited, converted, compressed and saved.")
7949 (license license:lgpl2.1)))
7950
7951(define-public lsp-dsp-lib
7952 (package
7953 (name "lsp-dsp-lib")
7954 (version "1.0.26")
7955 (source
7956 (origin
7957 (method url-fetch)
7958 (uri (string-append "https://github.com/lsp-plugins/lsp-dsp-lib/"
7959 "releases/download/" version
7960 "/lsp-dsp-lib-src-" version ".tar.gz"))
7961 (sha256
7962 (base32 "07g02nglzrq9yp267m1aflrmr7i35pc3anlhasp35048i0xvy51i"))))
7963 (build-system gnu-build-system)
7964 (arguments
7965 (list #:tests? #f ; no tests
7966 #:make-flags
7967 #~(list (string-append "CC=" #$(cc-for-target)))
7968 #:phases
7969 #~(modify-phases %standard-phases
7970 (add-after 'unpack 'omit-static-library
7971 (lambda _
7972 (substitute* "src/Makefile"
7973 ((".*cp \\$\\(ARTIFACT_SLIB\\).*") "") ; don't install it
7974 ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it
7975 (replace 'configure
7976 (lambda _
7977 (invoke "make" "config"
7978 (string-append "PREFIX=" #$output)))))))
7979 (home-page "https://github.com/lsp-plugins/lsp-dsp-lib")
7980 (synopsis "Digital signal processing library")
7981 (description "The LSP DSP library provides a set of functions that perform
7982SIMD-optimized computing on several hardware architectures. All functions
7983currently operate on IEEE-754 single-precision floating-point numbers.")
7984 (license license:lgpl3+)))
7985
7986(define-public codec2
7987 (package
7988 (name "codec2")
7989 (version "0.9.2")
7990 (source
7991 (origin
7992 (method git-fetch)
7993 (uri (git-reference
7994 (url "https://github.com/drowe67/codec2")
7995 (commit (string-append "v" version))))
7996 (file-name (git-file-name name version))
7997 (sha256
7998 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
7999 (build-system cmake-build-system)
8000 (native-inputs
8001 (list bc octave valgrind/pinned))
8002 (arguments
8003 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
8004 #:phases
8005 (modify-phases %standard-phases
8006 (add-before 'check 'set-test-environment
8007 (lambda _
8008 (setenv "HOME" "/tmp")
8009 #t)))))
8010 (synopsis "Speech codec")
8011 (description
8012 "Codec 2 is a speech codec designed for communications quality speech
8013between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
8014digital radio.")
8015 (home-page "https://www.rowetel.com/?page_id=452")
8016 (license license:lgpl2.1)))
8017
8018(define-public codec2-1
8019 (package
8020 (inherit codec2)
8021 (version "1.2.0")
8022 (source
8023 (origin
8024 (method git-fetch)
8025 (uri (git-reference
8026 (url "https://github.com/drowe67/codec2")
8027 (commit version)))
8028 (file-name (git-file-name "codec2" version))
8029 (sha256
8030 (base32 "00rx0p8b01ycb6lgp859cp1x165zf65qpnm72ry5z0fcipi2klzb"))))))
8031
8032(define-public mbelib
8033 ;; No release since 2016, use commit directly.
8034 (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f")
8035 (revision "1"))
8036 (package
8037 (name "mbelib")
8038 (version (git-version "1.3.0" revision commit))
8039 (source
8040 (origin
8041 (method git-fetch)
8042 (uri (git-reference
8043 (url "https://github.com/szechyjs/mbelib")
8044 (commit commit)))
8045 (file-name (git-file-name name version))
8046 (sha256
8047 (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h"))))
8048 (build-system cmake-build-system)
8049 (home-page "https://github.com/szechyjs/mbelib")
8050 (synopsis "P25 Phase 1 and ProVoice vocoder")
8051 (description
8052 "The mbelib library provides support for the 7200x4400 bit/s codec used
8053in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half
8054Rate} 3600x2250 bit/s vocoder used in various radio systems.")
8055 (license (list license:bsd-3 ; test/ framework
8056 license:isc))))) ; the rest
8057
8058(define-public ableton-link
8059 (package
8060 (name "ableton-link")
8061 (version "3.0.3")
8062 (source (origin
8063 (method git-fetch)
8064 (uri (git-reference
8065 (url "https://github.com/Ableton/link")
8066 (commit (string-append "Link-" version))))
8067 (file-name (git-file-name name version))
8068 (sha256
8069 (base32
8070 "1wplqj11ww64gmw2kzlxpvfs3v04m2036f7k5ndm34zcv12b91fa"))
8071 (modules '((guix build utils)))
8072 (patches
8073 (search-patches "ableton-link-system-libraries-debian.patch"))
8074 (snippet
8075 '(begin
8076 ;; Tests assume that CMake's "build" directory is a
8077 ;; sub-directory of the source tree, so we fix it.
8078 (substitute* "ci/run-tests.py"
8079 (("root_dir,") "root_dir, os.pardir,"))
8080 ;; Unbundle dependencies.
8081 (delete-file-recursively "third_party")
8082 (delete-file-recursively "modules")))))
8083 (build-system cmake-build-system)
8084 (arguments
8085 (list
8086 #:configure-flags
8087 #~(list "-DLINK_BUILD_QT_EXAMPLES=ON"
8088 "-DLINK_BUILD_JACK=ON")
8089 #:phases
8090 #~(modify-phases %standard-phases
8091 (replace 'check
8092 (lambda* (#:key inputs tests? #:allow-other-keys)
8093 (when tests?
8094 (let* ((python (search-input-file inputs "/bin/python3"))
8095 (run-tests "../source/ci/run-tests.py"))
8096 (invoke python run-tests "--target" "LinkCoreTest")
8097 (invoke python run-tests "--target" "LinkDiscoveryTest")))))
8098 (add-before 'install 'patch-cmake
8099 (lambda* (#:key inputs #:allow-other-keys)
8100 (let* ((source "../source/"))
8101 (substitute* (string-append source
8102 "cmake_include/AsioStandaloneConfig.cmake")
8103 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
8104 "modules/asio-standalone/asio/include"))
8105 (dirname (search-input-file inputs "include/asio.hpp"))))
8106 (substitute* (string-append source "AbletonLinkConfig.cmake")
8107 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
8108 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
8109 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
8110 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp")))))
8111 (replace 'install
8112 (lambda _
8113 (let* ((out #$output)
8114 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
8115 (source "../source"))
8116 (for-each delete-file
8117 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
8118 (copy-recursively "bin" (string-append out "/bin"))
8119 (copy-recursively (string-append source "/include/ableton")
8120 (string-append out "/include/ableton"))
8121 (install-file (string-append source "/AbletonLinkConfig.cmake")
8122 lib-cmake)
8123 (install-file (string-append source
8124 "/cmake_include/AsioStandaloneConfig.cmake")
8125 (string-append lib-cmake "/cmake_include"))))))))
8126 (native-inputs
8127 (list catch-framework
8128 portaudio ;for portaudio examples
8129 python ;for running tests
8130 python-setuptools)) ;for running tests
8131 (inputs
8132 (list jack-1)) ;for JACK examples
8133 (propagated-inputs
8134 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
8135 ;; contains '#include <asio.hpp>'.
8136 (list asio-1.28))
8137 (home-page "https://github.com/Ableton/link")
8138 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
8139 (description
8140 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
8141across multiple applications running on one or more devices. Applications on devices
8142connected to a local network discover each other automatically and form a musical
8143session in which each participant can perform independently: anyone can start or stop
8144while still staying in time.")
8145 (license license:gpl2+)))
8146
8147(define-public butt
8148 (package
8149 (name "butt")
8150 (version "1.45.0")
8151 (source (origin
8152 (method url-fetch)
8153 (uri (string-append "https://danielnoethen.de/butt/release/"
8154 version "/butt-" version ".tar.gz"))
8155 (sha256
8156 (base32
8157 "0r43xph6xf02c9zldhyj82mvy82xv0f9wbv653gg2kkcjh88ajc8"))
8158 (modules '((guix build utils)))
8159 (snippet
8160 '(substitute* "src/butt.cpp"
8161 ((".*zica.*") "")))))
8162 (build-system gnu-build-system)
8163 (arguments
8164 (list #:phases
8165 #~(modify-phases %standard-phases
8166 (add-after 'install 'install-documentation
8167 (lambda _
8168 (let ((doc (string-append #$output:doc "/share/doc/" #$name)))
8169 (install-file "README" doc)
8170 (copy-file #$(this-package-native-input "manual")
8171 (string-append doc "/butt-manual.pdf"))))))))
8172 (outputs '("out" "doc"))
8173 (native-inputs
8174 `(("pkg-config" ,pkg-config)
8175 ("manual"
8176 ,(origin
8177 (method url-fetch)
8178 (uri (string-append "https://danielnoethen.de/butt/release/" version
8179 "/butt-"
8180 version "_manual.pdf"))
8181 (sha256
8182 (base32 "07mr25k26xrpns3s7ci27jmp71c49a23r0mi662ir5v35rz4bf4q"))))))
8183 (inputs
8184 (list curl
8185 dbus
8186 flac
8187 fltk-1.3
8188 lame
8189 libfdk
8190 libsamplerate
8191 libvorbis
8192 libx11
8193 libxext
8194 libxfixes
8195 libxft
8196 libxrender
8197 libogg
8198 openssl
8199 opus
8200 portaudio
8201 portmidi-2))
8202 (home-page "https://danielnoethen.de/butt/")
8203 (synopsis "Audio streaming tool")
8204 (description "Butt is a tool to stream audio to a ShoutCast or
8205Icecast server.")
8206 (license license:gpl2+)))
8207
8208(define-public siggen
8209 (package
8210 (name "siggen")
8211 (version "2.3.10")
8212 (source
8213 (origin
8214 (method git-fetch)
8215 (uri (git-reference
8216 (url "https://github.com/bleskodev/siggen")
8217 (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210")))
8218 (file-name (git-file-name name version))
8219 (sha256
8220 (base32
8221 "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb"))))
8222 (build-system gnu-build-system)
8223 (arguments
8224 (list
8225 #:make-flags
8226 #~(list (string-append "INSDIR=" #$output "/bin")
8227 (string-append "MANDIR=" #$output "/share/man"))
8228 #:tests? #f ; no tests
8229 #:phases
8230 #~(modify-phases %standard-phases
8231 ;; Patch misc.c to prevent a segfault.
8232 (add-after 'unpack 'patch-segfault
8233 (lambda _
8234 (substitute* "misc.c"
8235 (("#include <stdio.h>\n" all)
8236 (string-append all "#include <string.h>\n")))
8237 (substitute* "wavsubs.c"
8238 (("#include \"wavsubs.h\"\n" all)
8239 (string-append all "#include <stdlib.h>")))
8240 (substitute* "wavfile.c"
8241 (("#include \"wavsubs.h\"\n" all)
8242 (string-append all "#include <stdlib.h>")))
8243 (substitute* "generator.c"
8244 (("#include \"wavsubs.h\"\n" all)
8245 (string-append all "#include <stdlib.h>")))))
8246 (delete 'configure)
8247 (replace 'install
8248 (lambda* (#:key make-flags #:allow-other-keys)
8249 (for-each (lambda (dir)
8250 (mkdir-p (string-append #$output dir)))
8251 (list "/bin" "/share/man/man1" "/share/man/man5"))
8252 (apply invoke "make" "sysinstall" make-flags))))))
8253 (inputs
8254 (list ncurses))
8255 (native-inputs
8256 (list gcc-9
8257 groff-minimal ; for nroff
8258 util-linux)) ; for col
8259 (home-page "https://github.com/bleskodev/siggen")
8260 (synopsis "Signal generation tools")
8261 (description "siggen is a set of tools for imitating a laboratory signal
8262generator, generating audio signals out of Linux's /dev/dsp audio
8263device. There is support for mono and/or stereo and 8 or 16 bit samples.")
8264 (license license:gpl2)))
8265
8266(define-public python-pysox
8267 (package
8268 (name "python-pysox")
8269 (version "1.5.0")
8270 (source
8271 (origin
8272 (method git-fetch)
8273 (uri (git-reference
8274 (url "https://github.com/rabitt/pysox")
8275 (commit (string-append "v" version))))
8276 (file-name (git-file-name name version))
8277 (sha256
8278 (base32 "0039gksdcca5npnfvzy7dqc315f26mcy734la5v3hgvjj84cpcz8"))))
8279 (build-system pyproject-build-system)
8280 (arguments
8281 (list
8282 #:phases
8283 #~(modify-phases %standard-phases
8284 (add-after 'unpack 'patch-sox
8285 (lambda _
8286 (let* ((sox-store-path #$(this-package-input "sox"))
8287 (sox-bin (string-append sox-store-path "/bin/sox")))
8288 (substitute* "sox/__init__.py"
8289 (("sox -h")
8290 (string-append sox-bin " -h")))
8291 (substitute* "sox/core.py"
8292 (("\\['sox")
8293 (string-append "['" sox-bin)))))))))
8294 (native-inputs
8295 (list python-pytest
8296 python-soundfile
8297 python-setuptools
8298 python-wheel))
8299 (inputs
8300 (list sox))
8301 (propagated-inputs
8302 (list python-numpy
8303 python-typing-extensions))
8304 (home-page "https://github.com/rabitt/pysox")
8305 (synopsis "Python wrapper around SoX")
8306 (description
8307 "@code{python-pysox} is a wrapper around the @command{sox} command line
8308tool. The API offers @code{Transformer} and @code{Combiner} classes that
8309allow the user to incrementally build up effects and audio manipulations.
8310@code{python-pysox} also provides methods for querying audio information such
8311as sample rate, determining whether an audio file is silent, and much more.")
8312 (license license:bsd-3)))
8313
8314(define-public python-resampy
8315 (package
8316 (name "python-resampy")
8317 (version "0.4.3")
8318 (source
8319 (origin
8320 (method git-fetch)
8321 (uri
8322 (git-reference
8323 ;; PyPi does not include tests.
8324 (url "https://github.com/bmcfee/resampy")
8325 (commit version)))
8326 (file-name (git-file-name name version))
8327 (sha256
8328 (base32 "0dlm9ksm7yzgg582sic0vqwfcwdya1g4gnydxldfhaq4y0wakr9c"))))
8329 (build-system pyproject-build-system)
8330 (propagated-inputs
8331 (list python-numba python-numpy python-scipy python-six))
8332 (native-inputs
8333 (list python-pytest python-setuptools python-wheel))
8334 (home-page "https://github.com/bmcfee/resampy")
8335 (synopsis "Efficient signal resampling")
8336 (description
8337 "@code{python-resampy} implements the band-limited sinc interpolation
8338method for sampling rate conversion as described by Julius O. Smith at the
8339@url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling
8340Home Page}.")
8341 (license license:isc)))
8342
8343(define-public python-librosa
8344 (package
8345 (name "python-librosa")
8346 (version "0.11.0")
8347 (source
8348 (origin
8349 (method git-fetch)
8350 (uri (git-reference
8351 (url "https://github.com/librosa/librosa/")
8352 (commit version)
8353 ;; TODO: Package test data.
8354 (recursive? #true)))
8355 (file-name (git-file-name name version))
8356 (sha256
8357 (base32 "065x43hx670rjrclxi4hiqxscllb16v9s7myjvg7rd5pd3y0k7sg"))))
8358 (build-system pyproject-build-system)
8359 (arguments
8360 (list
8361 #:test-flags
8362 #~(list "-k" (string-append
8363 ;; Resampling tests require python-samplerate.
8364 "not resample"
8365 ;; These tests use Pooch and download data files.
8366 " and not example and not test_cite"
8367 ;; XXX assert 22050 == 31744
8368 " and not test_stream"))))
8369 (propagated-inputs
8370 (list python-audioread
8371 python-decorator
8372 python-joblib
8373 python-lazy-loader
8374 python-msgpack
8375 python-numba
8376 python-numpy
8377 python-pooch
8378 python-scikit-learn
8379 python-scipy
8380 python-soundfile
8381 python-soxr
8382 python-typing-extensions))
8383 (native-inputs
8384 (list python-matplotlib
8385 python-packaging
8386 python-pytest
8387 python-pytest-mpl
8388 python-resampy
8389 python-setuptools))
8390 (home-page "https://librosa.org")
8391 (synopsis "Python module for audio and music processing")
8392 (description
8393 "@code{librosa} is a python package for music and audio analysis. It
8394provides the building blocks necessary to create music information retrieval
8395systems.")
8396 (license license:isc)))
8397
8398(define-public mda-lv2
8399 (package
8400 (name "mda-lv2")
8401 (version "1.2.10")
8402 (source
8403 (origin
8404 (method url-fetch)
8405 (uri (string-append "http://download.drobilla.net/mda-lv2-"
8406 version ".tar.xz"))
8407 (sha256
8408 (base32 "0nm7qahkrxjydv1wii46ca6948srwhjilhlp54z9bpcnln35ksmf"))))
8409 (build-system meson-build-system)
8410 (inputs
8411 (list lv2))
8412 (native-inputs
8413 (list pkg-config))
8414 (home-page "https://drobilla.net/software/mda-lv2.html")
8415 (synopsis "Audio plug-in pack for LV2")
8416 (description
8417 "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few
8418instrument plugins.")
8419 (license license:gpl3+)))
8420
8421(define-public libodiosacd
8422 (package
8423 (name "libodiosacd")
8424 (version "21.8.30")
8425 (source (origin
8426 (method git-fetch)
8427 (uri (git-reference
8428 (url "https://github.com/tari01/libodiosacd")
8429 (commit version)))
8430 (file-name (git-file-name name version))
8431 (sha256
8432 (base32
8433 "0iamf7wksbql0qfigdv5ahaax53ms2yligdav8dw6x0ay88x4lhi"))))
8434 (build-system gnu-build-system)
8435 (arguments
8436 `(#:tests? #f ; no check target
8437 #:phases
8438 (modify-phases %standard-phases
8439 (add-after 'unpack 'patch-makefile
8440 (lambda _
8441 (substitute* "Makefile"
8442 (("\\$\\(DESTDIR\\)/usr")
8443 "\\$(DESTDIR)"))))
8444 (delete 'configure)) ; no configure script
8445 #:make-flags
8446 (list (string-append "DESTDIR=" %output))))
8447 (synopsis "Library for decoding Super Audio CDs (SACD)")
8448 (description
8449 "The Odio SACD shared library is a decoding engine which takes a Super
8450Audio CD source and extracts a 24-bit high resolution WAV file. It handles
8451both DST and DSD streams.")
8452 (home-page "https://tari.in/www/software/libodiosacd/")
8453 (license license:gpl3+)))
8454
8455(define-public odio-sacd
8456 (package
8457 (name "odio-sacd")
8458 (version "21.1.9")
8459 (source (origin
8460 (method git-fetch)
8461 (uri (git-reference
8462 (url "https://github.com/tari01/odio-sacd")
8463 (commit version)))
8464 (file-name (git-file-name name version))
8465 (sha256
8466 (base32
8467 "0314srqk0r4qv292qiaply619l2fw04nkdwvqhj3q1dqzv41g4qk"))))
8468 (inputs (list libodiosacd))
8469 ;; Build system and arguments for libodiosacd are identical.
8470 (build-system (package-build-system libodiosacd))
8471 (arguments (package-arguments libodiosacd))
8472 (synopsis "Rip Super Audio CDs (SACD)")
8473 (description
8474 "Odio SACD is a command-line application which takes a Super Audio CD
8475source and extracts a 24-bit high resolution WAV file. It handles both DST
8476and DSD streams.")
8477 (home-page "https://tari.in/www/software/odio-sacd/")
8478 (license license:gpl3+)))
8479
8480(define-public qpwgraph
8481 (package
8482 (name "qpwgraph")
8483 (version "1.0.2")
8484 (source (origin
8485 (method git-fetch)
8486 (uri (git-reference
8487 (url "https://gitlab.freedesktop.org/rncbc/qpwgraph")
8488 (commit (string-append "v" version))))
8489 (file-name (git-file-name name version))
8490 (sha256
8491 (base32
8492 "0jh10jw3cnpb8ijbq22r4nz5bwrb4qqk7r4vq6jjdqrh8hv26awq"))))
8493 (build-system cmake-build-system)
8494 (arguments
8495 (list #:tests? #f)) ; no tests
8496 (inputs (list alsa-lib
8497 libxkbcommon
8498 pipewire
8499 qtbase
8500 qtsvg))
8501 (native-inputs (list pkg-config))
8502 (synopsis "PipeWire graph manager")
8503 (description
8504 "qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++
8505framework. It provides a visual interface to audio and video connections
8506managed by PipeWire.")
8507 (home-page "https://gitlab.freedesktop.org/rncbc/qpwgraph")
8508 (license license:gpl2)))
8509
8510(define-public raysession
8511 (package
8512 (name "raysession")
8513 (version "0.14.4")
8514 (source
8515 (origin
8516 (method git-fetch)
8517 (uri (git-reference
8518 (url "https://github.com/Houston4444/RaySession")
8519 (commit (string-append "v" version))
8520 (recursive? #true)))
8521 (file-name (git-file-name name version))
8522 (sha256
8523 (base32 "1m44n6p192i5cvbj98jkmp4ywmm2bjzdbbipaa9xgg07x0jz1mcr"))))
8524 (build-system gnu-build-system)
8525 (arguments
8526 (list
8527 #:tests? #false ;no test target
8528 #:make-flags #~(list (string-append "PREFIX=" #$output))
8529 #:modules '((guix build gnu-build-system) (guix build qt-utils)
8530 (guix build utils))
8531 #:imported-modules (cons '(guix build qt-utils)
8532 %default-gnu-imported-modules)
8533 #:phases
8534 #~(modify-phases %standard-phases
8535 (delete 'configure)
8536 (add-after 'unpack 'patch-build-system
8537 (lambda _
8538 (substitute* "Makefile"
8539 (("\\$\\(DESTDIR\\)/etc/xdg")
8540 "$(PREFIX)/etc/xdg"))))
8541 (add-after 'install 'wrap-scripts
8542 (lambda* (#:key inputs #:allow-other-keys)
8543 (with-directory-excursion (string-append #$output "/share/raysession/src/bin")
8544 (for-each (lambda (script)
8545 (wrap-script script
8546 #:guile (search-input-file inputs "bin/guile")
8547 `("PYTHONPATH" ":" prefix
8548 (,(string-append #$output "/share/raysession/src/gui")
8549 ,(string-append #$output "/share/raysession/src/daemon")
8550 ,(string-append #$output "/share/raysession/src/control")
8551 ,(getenv "GUIX_PYTHONPATH")))))
8552 '("raysession"
8553 "ray_control"
8554 "ray-daemon"
8555 "ray-proxy")))))
8556 (add-after 'wrap-scripts 'wrap-qt
8557 (lambda* (#:key inputs outputs #:allow-other-keys)
8558 (wrap-all-qt-programs #:outputs outputs #:inputs inputs))))))
8559 (native-inputs (list qtbase-5 qttools-5 which))
8560 (inputs
8561 (list guile-3.0 jack-2 pipewire python-pyliblo3 python-pyqt python-wrapper))
8562 (home-page "https://github.com/Houston4444/RaySession")
8563 (synopsis "Audio session manager")
8564 (description "RaySession is a session manager for audio programs such as
8565Ardour, Carla, QTractor, Guitarix, Patroneo, Jack Mixer, etc. The principle
8566is to load together audio programs, then be able to save or close all
8567documents together. Its main purpose is to manage NSM compatible programs,
8568but it also helps for other programs. It offers a patchbay for visualizing
8569and editing connections.")
8570 (license license:gpl2+)))
8571
8572(define-public cubeb
8573 (let ((commit "9e29d728b0025c674904f83f5a13a88d1a6a5edc")
8574 (revision "1"))
8575 (package
8576 (name "cubeb")
8577 (version (git-version "0" revision commit))
8578 (source (origin
8579 (method git-fetch)
8580 (uri (git-reference
8581 (url "https://github.com/mozilla/cubeb")
8582 (commit commit)))
8583 (file-name (git-file-name name version))
8584 (sha256
8585 (base32
8586 "1sxkr3h8a4hd3c3a3cjydrszz6npxk3vh6ra3y67lds3zgc69c7n"))))
8587 (build-system cmake-build-system)
8588 (arguments
8589 '(#:configure-flags
8590 ;; Sanitizers-cmake requires a git submodule.
8591 '("-DUSE_SANITIZERS=0"
8592 ;; Tests require a git submodule for googletest.
8593 "-DBUILD_TESTS=0"
8594 ;; Use our speex, not a bundled one.
8595 "-DBUNDLE_SPEEX=0"
8596 ;; A static library would be built by default.
8597 "-DBUILD_SHARED_LIBS=1"
8598 ;; Explicitly link against audio libraries so they are on the
8599 ;; runpath. Otherwise cubeb tries to dlopen them at runtime.
8600 "-DCMAKE_SHARED_LINKER_FLAGS=-lasound -lpulse -lspeex")
8601 #:tests? #f))
8602 (inputs (list alsa-lib pulseaudio speex))
8603 (synopsis "Cross-platform audio library")
8604 (description "Cubeb is Mozilla's cross-platform audio library.")
8605 (home-page "https://github.com/mozilla/cubeb")
8606 (license license:isc))))
8607
8608(define-public cyanrip
8609 (package
8610 (name "cyanrip")
8611 (version "0.9.3.1")
8612 (source
8613 (origin
8614 (method git-fetch)
8615 (uri (git-reference
8616 (url "https://github.com/cyanreg/cyanrip")
8617 (commit (string-append "v" version))))
8618 (file-name (git-file-name name version))
8619 (sha256
8620 (base32 "13v6gjbxw6ybviq802wmgwlwy846ma4yw94aay0h698qhjqwf0qq"))))
8621 (build-system meson-build-system)
8622 (native-inputs (list pkg-config))
8623 (inputs (list curl
8624 ffmpeg
8625 libcdio-paranoia
8626 libmusicbrainz
8627 libxml2
8628 neon))
8629 (synopsis "Command line CD ripper and encoder")
8630 (description
8631 "cyanrip is a command line tool for ripping CDs. It uses
8632MusicBrainz to name and tag each track, and to download and embed cover art.
8633cyanrip supports encoding tracks to multiple formats in parallel and automatically
8634verifies checksums.")
8635 (home-page "https://github.com/cyanreg/cyanrip")
8636 (license license:lgpl2.1+)))
8637
8638(define-public easyeffects
8639 (package
8640 (name "easyeffects")
8641 (version "7.2.5")
8642 (source (origin
8643 (method git-fetch)
8644 (uri (git-reference
8645 (url "https://github.com/wwmm/easyeffects")
8646 (commit (string-append "v" version))))
8647 (file-name (git-file-name name version))
8648 (sha256
8649 (base32 "0k4l77hsmifqsw00mr28575b5fmhvskawjf7h4pmyj6ffbbinwy3"))))
8650 (build-system meson-build-system)
8651 (native-inputs
8652 (list `(,glib "bin") ;for glib-compile-resources
8653 gettext-minimal
8654 itstool
8655 pkg-config))
8656 (inputs
8657 (list fftwf
8658 fmt
8659 gsl
8660 gtk
8661 nlohmann-json
8662 libadwaita
8663 libbs2b
8664 libebur128
8665 libportal
8666 libsamplerate
8667 libsigc++
8668 libsndfile
8669 lilv
8670 pango
8671 pipewire
8672 rnnoise
8673 speexdsp
8674 onetbb
8675 zita-convolver
8676 soundtouch))
8677 ;; Propagating these allows EasyEffects to find the plugins via their
8678 ;; search-path specification
8679 (propagated-inputs
8680 (list lv2
8681 calf
8682 `(,lsp-plugins "lv2")
8683 mda-lv2
8684 zam-plugins
8685 ladspa))
8686 (arguments
8687 `(#:glib-or-gtk? #t
8688 #:phases
8689 (modify-phases %standard-phases
8690 (add-after 'unpack 'skip-gtk-update-icon-cache
8691 (lambda _ ; Remove dependency on needless desktop cache stuff.
8692 (substitute* "meson.build"
8693 (("gtk_update_icon_cache: true") "gtk_update_icon_cache: false")
8694 (("update_desktop_database: true") "update_desktop_database: false")))))))
8695 (home-page "https://github.com/wwmm/easyeffects")
8696 (synopsis "Realtime Audio effects interface for Pipewire")
8697 (description "EasyEffects is an advanced audio manipulation tool providing
8698a graphical user interface to apply various effects and filters to audio
8699streams using Pipewire. Effects can be applied in real time to audio inputs or
8700outputs such as a microphone to reduce noise or apply many other effects
8701including:
8702
8703@itemize
8704@item Auto gain
8705@item Bass enhancer
8706@item Bass loudness
8707@item Compressor
8708@item Convolver
8709@item Crossfeed
8710@item Crystalizer
8711@item De-esser
8712@item Delay
8713@item Echo Canceller
8714@item Equalizer
8715@item Exciter
8716@item Filter (low-pass, high-pass, band-pass and band-reject modes)
8717@item Gate
8718@item Limiter
8719@item Loudness
8720@item Maximizer
8721@item Multiband compressor
8722@item Multiband gate
8723@item Noise reduction
8724@item Pitch
8725@item Reverberation
8726@item Speech Processor
8727@item Stereo tools
8728@end itemize")
8729 (license license:gpl3+)))