gnu: lv2lint: Update to 0.8.0.
[jackhill/guix/guix.git] / gnu / packages / audio.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 Nikita <nikita@n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
13 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
14 ;;; Copyright © 2018, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
15 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
16 ;;; Copyright © 2018 Brett Gilio <brettg@gnu.org>
17 ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
19 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
20 ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
21 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
22 ;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
23 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
26 ;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org>
27 ;;; Copyright © 2019 Christopher Lemmer Webber <cwebber@dustycloud.org>
28 ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
29 ;;; Copyright © 2019 Hartmt Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
31 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 Jonathan Frederickson <jonathan@terracrypt.net>
34 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
35 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
36 ;;;
37 ;;; This file is part of GNU Guix.
38 ;;;
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
43 ;;;
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
48 ;;;
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51
52 (define-module (gnu packages audio)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages avahi)
57 #:use-module (gnu packages backup)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages boost)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages dbm)
65 #:use-module (gnu packages documentation)
66 #:use-module (gnu packages elf)
67 #:use-module (gnu packages emacs)
68 #:use-module (gnu packages file)
69 #:use-module (gnu packages flex)
70 #:use-module (gnu packages fltk)
71 #:use-module (gnu packages fontutils)
72 #:use-module (gnu packages gcc)
73 #:use-module (gnu packages gettext)
74 #:use-module (gnu packages gl)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages gnunet) ; libmicrohttpd
78 #:use-module (gnu packages gperf)
79 #:use-module (gnu packages gtk)
80 #:use-module (gnu packages guile)
81 #:use-module (gnu packages icu4c)
82 #:use-module (gnu packages image)
83 #:use-module (gnu packages libbsd)
84 #:use-module (gnu packages libusb)
85 #:use-module (gnu packages linux)
86 #:use-module (gnu packages llvm)
87 #:use-module (gnu packages man)
88 #:use-module (gnu packages maths)
89 #:use-module (gnu packages mp3) ;taglib
90 #:use-module (gnu packages multiprecision)
91 #:use-module (gnu packages music)
92 #:use-module (gnu packages ncurses)
93 #:use-module (gnu packages networking)
94 #:use-module (gnu packages onc-rpc)
95 #:use-module (gnu packages perl)
96 #:use-module (gnu packages pkg-config)
97 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
98 #:use-module (gnu packages python)
99 #:use-module (gnu packages python-xyz)
100 #:use-module (gnu packages qt)
101 #:use-module (gnu packages rdf)
102 #:use-module (gnu packages readline)
103 #:use-module (gnu packages sdl)
104 #:use-module (gnu packages serialization)
105 #:use-module (gnu packages telephony)
106 #:use-module (gnu packages linphone)
107 #:use-module (gnu packages tls)
108 #:use-module (gnu packages valgrind)
109 #:use-module (gnu packages video)
110 #:use-module (gnu packages vim) ;xxd
111 #:use-module (gnu packages webkit)
112 #:use-module (gnu packages wxwidgets)
113 #:use-module (gnu packages xiph)
114 #:use-module (gnu packages xml)
115 #:use-module (gnu packages xorg)
116 #:use-module (guix build-system cmake)
117 #:use-module (guix build-system copy)
118 #:use-module (guix build-system glib-or-gtk)
119 #:use-module (guix build-system gnu)
120 #:use-module (guix build-system meson)
121 #:use-module (guix build-system python)
122 #:use-module (guix build-system trivial)
123 #:use-module (guix build-system waf)
124 #:use-module (guix download)
125 #:use-module (guix git-download)
126 #:use-module ((guix licenses) #:prefix license:)
127 #:use-module (guix packages)
128 #:use-module (guix utils)
129 #:use-module (srfi srfi-1)
130 #:use-module (srfi srfi-26))
131
132 (define-public opensles
133 (package
134 (name "opensles")
135 (version "1.1.0")
136 (source
137 (origin
138 (method git-fetch)
139 (uri
140 (git-reference
141 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry.git")
142 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
143 (file-name (git-file-name name version))
144 (sha256
145 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
146 (patches
147 (search-patches "opensles-add-license-file.patch"))))
148 (build-system copy-build-system)
149 (arguments
150 `(#:phases
151 (modify-phases %standard-phases
152 (add-after 'install 'clean
153 (lambda* (#:key outputs #:allow-other-keys)
154 (let* ((out (assoc-ref outputs "out")))
155 (mkdir-p (string-append out "/etc"))
156 (mkdir-p (string-append out "/include"))
157 (mkdir-p (string-append out "/share"))
158 (rename-file
159 (string-append out "/api/1.1/OpenSLES_IID.c")
160 (string-append out "/etc/OpenSLES_IID.c"))
161 (rename-file
162 (string-append out "/api/1.1/OpenSLES.h")
163 (string-append out "/include/OpenSLES.h"))
164 (rename-file
165 (string-append out "/api/1.1/OpenSLES_Platform.h")
166 (string-append out "/include/OpenSLES_Platform.h"))
167 (rename-file
168 (string-append out "/api/1.1/README.txt")
169 (string-append out "/share/README.txt"))
170 (rename-file
171 (string-append out "/LICENSE.txt")
172 (string-append out "/share/LICENSE.txt"))
173 (for-each delete-file-recursively
174 (list
175 (string-append out "/api")
176 (string-append out "/specs")))
177 (for-each delete-file
178 (list
179 (string-append out "/CODE_OF_CONDUCT.md")
180 (string-append out "/index.php")
181 (string-append out "/README.md"))))
182 #t)))))
183 (synopsis "Embedded Audio Acceleration")
184 (description "OpenSLES is a royalty-free, cross-platform,
185 hardware-accelerated audio API tuned for embedded systems. It provides a
186 standardized, high-performance, low-latency method to access audio
187 functionality for developers of native applications on embedded mobile
188 multimedia devices, enabling straightforward cross-platform deployment of
189 hardware and software audio capabilities, reducing implementation effort, and
190 promoting the market for advanced audio.")
191 (home-page "https://www.khronos.org/opensles/")
192 (license (license:non-copyleft "file:///LICENSE.txt"))))
193
194 (define-public wildmidi
195 (package
196 (name "wildmidi")
197 (version "0.4.3")
198 (source
199 (origin
200 (method git-fetch)
201 (uri
202 (git-reference
203 (url "https://github.com/Mindwerks/wildmidi.git")
204 (commit (string-append name "-" version))))
205 (file-name (git-file-name name version))
206 (sha256
207 (base32 "01f4a9c5xlap5a4pkfnlgkzk5pjlk43zkq6fnw615ghya04g6hrl"))))
208 (build-system cmake-build-system)
209 (arguments
210 `(#:tests? #f ; No target
211 #:configure-flags
212 (list
213 "-DWANT_ALSA=ON"
214 "-DWANT_OSS=ON"
215 "-DWANT_OPENAL=ON")))
216 (inputs
217 `(("alsa" ,alsa-lib)
218 ("openal" ,openal)))
219 (synopsis "Software Synthesizer")
220 (description "WildMIDI is a simple software midi player which has a core
221 softsynth library that can be use with other applications.")
222 (home-page "https://www.mindwerks.net/projects/wildmidi/")
223 (license
224 (list
225 ;; Library.
226 license:lgpl3+
227 ;; Player.
228 license:gpl3+))))
229
230 (define-public webrtc-audio-processing
231 (package
232 (name "webrtc-audio-processing")
233 (version "0.3.1")
234 (source
235 (origin
236 (method url-fetch)
237 (uri
238 (string-append "http://freedesktop.org/software/pulseaudio/"
239 name "/" name "-" version ".tar.xz"))
240 (sha256
241 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
242 (build-system gnu-build-system)
243 (synopsis "WebRTC's Audio Processing Library")
244 (description "WebRTC-Audio-Processing library based on Google's
245 implementation of WebRTC.")
246 (home-page
247 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
248 (license (license:non-copyleft "file:///COPYING"))))
249
250 (define-public vo-aacenc
251 (package
252 (name "vo-aacenc")
253 (version "0.1.3")
254 (source
255 (origin
256 (method url-fetch)
257 (uri
258 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
259 name "/" name "-" version ".tar.gz"))
260 (sha256
261 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
262 (build-system gnu-build-system)
263 (synopsis "VisualOn AAC Encoder")
264 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
265 Coding (AAC) encoder.")
266 (home-page "https://sourceforge.net/projects/opencore-amr/")
267 (license license:asl2.0)))
268
269 (define-public tinyalsa
270 (package
271 (name "tinyalsa")
272 (version "1.1.1")
273 (source
274 (origin
275 (method git-fetch)
276 (uri
277 (git-reference
278 (url "https://github.com/tinyalsa/tinyalsa.git")
279 (commit version)))
280 (file-name (git-file-name name version))
281 (sha256
282 (base32 "0ajyvml5bnzvhiyyrn42gqwgg23ssxkfh09rvsnywhzxhd0xai4h"))))
283 (build-system gnu-build-system)
284 (arguments
285 `(#:tests? #f ; No target
286 #:phases
287 (modify-phases %standard-phases
288 (delete 'configure))
289 #:make-flags
290 (list
291 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
292 (synopsis "ALSA interfacing library")
293 (description "TinyALSA is a small library to interface with ALSA in the
294 Linux kernel.")
295 (home-page "https://github.com/tinyalsa/tinyalsa")
296 (license (license:non-copyleft "file:///NOTICE"))))
297
298 (define-public libopenmpt
299 (package
300 (name "libopenmpt")
301 (version "0.5.2")
302 (source
303 (origin
304 (method url-fetch)
305 (uri
306 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
307 "libopenmpt-" version "+release.autotools.tar.gz"))
308 (sha256
309 (base32 "1cwpc4j90dpxa2siia68rg9qwwm2xk6bhxnslfjj364507jy6s4l"))))
310 (build-system gnu-build-system)
311 (arguments
312 `(#:configure-flags
313 (list (string-append "--docdir=" (assoc-ref %outputs "out")
314 "/share/doc/" ,name "-" ,version))
315 #:phases
316 (modify-phases %standard-phases
317 (add-after 'install 'delete-static-libraries
318 (lambda* (#:key outputs #:allow-other-keys)
319 (let* ((out (assoc-ref outputs "out"))
320 (lib (string-append out "/lib")))
321 (for-each delete-file (find-files lib "\\.a$"))
322 #t))))))
323 (native-inputs
324 `(("doxygen" ,doxygen)
325 ("perl" ,perl)
326 ("pkg-config" ,pkg-config)))
327 (inputs
328 `(("alsa" ,alsa-lib)
329 ("flac" ,flac)
330 ("mpg123" ,mpg123)
331 ("portaudio" ,portaudio)
332 ("pulseaudio" ,pulseaudio)
333 ("sdl2" ,sdl2)
334 ("sndfile" ,libsndfile)
335 ("vorbis" ,libvorbis)
336 ("zlib" ,zlib)))
337 (synopsis "Audio tracking library")
338 (description "LibOpenMPT is a cross-platform C++ and C module playback
339 library. It is based on the player code of the Open ModPlug Tracker project.")
340 (home-page "https://openmpt.org/")
341 (license (license:non-copyleft "file:///LICENSE"))))
342
343 (define-public libofa
344 (package
345 (name "libofa")
346 (version "0.9.3")
347 (source
348 (origin
349 (method url-fetch)
350 (uri
351 (string-append "https://storage.googleapis.com/"
352 "google-code-archive-downloads/v2/code.google.com/"
353 "musicip-libofa/" name "-" version ".tar.gz"))
354 (sha256
355 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
356 (patches
357 (search-patches
358 "libofa-ftbfs-1.diff"
359 "libofa-curl.diff"
360 "libofa-ftbfs-2.diff"))))
361 (build-system gnu-build-system)
362 (native-inputs
363 `(("pkg-config" ,pkg-config)))
364 (inputs
365 `(("curl" ,curl)
366 ("expat" ,expat)))
367 (propagated-inputs
368 `(("fftw" ,fftw)))
369 (synopsis "Open Fingerprint Architecture")
370 (description "LibOFA is an audio fingerprint library, created and provided
371 by MusicIP.")
372 (home-page "https://code.google.com/archive/p/musicip-libofa/")
373 (license license:gpl2+)))
374
375 (define-public faac
376 (package
377 (name "faac")
378 (version "1.30")
379 (source
380 (origin
381 (method url-fetch)
382 (uri
383 (string-append "https://sourceforge.net/projects/faac/files/faac-src/"
384 "faac-1.30/faac-1_30.tar.gz/download"))
385 (sha256
386 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
387 (build-system gnu-build-system)
388 (native-inputs
389 `(("autoconf" ,autoconf)
390 ("automake" ,automake)
391 ("libtool" ,libtool)
392 ("pkg-config" ,pkg-config)))
393 (synopsis "Freeware Advanced Audio Coder")
394 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
395 (home-page "https://www.audiocoding.com/faac.html")
396 (license
397 (list
398 ;; ISO MPEG-4 reference code.
399 license:gpl2+
400 ;; Others.
401 license:lgpl2.0+))))
402
403 (define-public libtimidity
404 (package
405 (name "libtimidity")
406 (version "0.2.6")
407 (source
408 (origin
409 (method url-fetch)
410 (uri
411 (string-append "https://sourceforge.net/projects/" name "/files/"
412 name "/" version "/" name "-" version ".tar.gz"))
413 (sha256
414 (base32 "0p2px0m907gi1zpdr0l9adq25jl89j85c11ag9s2g4yc6n1nhgfm"))))
415 (build-system gnu-build-system)
416 (arguments
417 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
418 (native-inputs
419 `(("pkg-config" ,pkg-config)))
420 (inputs
421 `(("ao" ,ao)))
422 (synopsis "MIDI to WAVE converter library")
423 (description "LibTiMidity is a MIDI to WAVE converter library that uses
424 Gravis Ultrasound-compatible patch files to generate digital audio data from
425 General MIDI files.")
426 (home-page "http://libtimidity.sourceforge.net/")
427 (license
428 ;; This project is dual-licensed.
429 ;; Either of the following licenses can be exercised.
430 (list
431 license:lgpl2.1+
432 license:artistic2.0))))
433
434 (define-public vo-amrwbenc
435 (package
436 (name "vo-amrwbenc")
437 (version "0.1.3")
438 (source
439 (origin
440 (method url-fetch)
441 (uri
442 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
443 name "/" name "-" version ".tar.gz"))
444 (sha256
445 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
446 (build-system gnu-build-system)
447 (synopsis "Adaptive Multi Rate Codec")
448 (description "VO-AMR is a library of VisualOn implementation of
449 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
450 (home-page "https://sourceforge.net/projects/opencore-amr/")
451 (license license:asl2.0)))
452
453 (define-public opencore-amr
454 (package
455 (name "opencore-amr")
456 (version "0.1.5")
457 (source
458 (origin
459 (method url-fetch)
460 (uri
461 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
462 name "/" name "-" version ".tar.gz"))
463 (sha256
464 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
465 (build-system gnu-build-system)
466 (synopsis "Adaptive Multi Rate Codec")
467 (description "OpenCore-AMR is a library of OpenCORE Framework
468 implementation of Adaptive Multi Rate Narrowband and Wideband
469 (AMR-NB and AMR-WB) speech codec.")
470 (home-page "https://sourceforge.net/projects/opencore-amr/")
471 (license license:asl2.0)))
472
473 (define-public alsa-modular-synth
474 (package
475 (name "alsa-modular-synth")
476 (version "2.1.2")
477 (source (origin
478 (method url-fetch)
479 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
480 "/" version "/ams-" version ".tar.bz2"))
481 (sha256
482 (base32
483 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))
484 (patches
485 (search-patches "alsa-modular-synth-fix-vocoder.patch"))))
486 (build-system gnu-build-system)
487 (arguments
488 `(#:configure-flags
489 '("--enable-qt5"
490 "CXXFLAGS=-std=gnu++11")
491 #:phases
492 (modify-phases %standard-phases
493 (add-after 'set-paths 'hide-default-gcc
494 (lambda* (#:key inputs #:allow-other-keys)
495 (let ((gcc (assoc-ref inputs "gcc")))
496 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
497 ;; conflicts with the GCC 5 input.
498 (setenv "CPLUS_INCLUDE_PATH"
499 (string-join
500 (delete (string-append gcc "/include/c++")
501 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
502 ":"))
503 #t)))
504 ;; Insert an extra space between linker flags.
505 (add-before 'configure 'add-missing-space
506 (lambda _
507 (substitute* "configure"
508 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
509 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
510 #t)))))
511 (inputs
512 `(("alsa-lib" ,alsa-lib)
513 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
514 ;; license incompatibility.
515 ("clalsadrv" ,clalsadrv)
516 ("fftw" ,fftw)
517 ("jack" ,jack-1)
518 ("ladspa" ,ladspa)
519 ("liblo" ,liblo)
520 ("qtbase" ,qtbase)))
521 (native-inputs
522 `(("pkg-config" ,pkg-config)
523 ("qttools" ,qttools)
524 ("gcc@5" ,gcc-5)))
525 (home-page "http://alsamodular.sourceforge.net/")
526 (synopsis "Realtime modular synthesizer and effect processor")
527 (description
528 "AlsaModularSynth is a digital implementation of a classical analog
529 modular synthesizer system. It uses virtual control voltages to control the
530 parameters of the modules. The control voltages which control the frequency
531 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
532 Filter) modules follow the convention of 1V / Octave.")
533 (license license:gpl2)))
534
535 (define-public aubio
536 (package
537 (name "aubio")
538 (version "0.4.9")
539 (source (origin
540 (method url-fetch)
541 (uri (string-append
542 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
543 (sha256
544 (base32
545 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
546 (build-system waf-build-system)
547 (arguments
548 `(#:tests? #f ; no check target
549 #:configure-flags
550 (list
551 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
552 "--enable-fftw3f"
553 "--enable-jack"
554 "--enable-sndfile"
555 "--enable-samplerate"
556 "--enable-avcodec")
557 #:python ,python-2))
558 (inputs
559 `(("jack" ,jack-1)
560 ("libsndfile" ,libsndfile)
561 ("libsamplerate" ,libsamplerate)
562 ("fftwf" ,fftwf)
563 ("ffmpeg" ,ffmpeg))) ; for libavcodec
564 (native-inputs
565 `(("pkg-config" ,pkg-config)))
566 (home-page "https://aubio.org/")
567 (synopsis "Library for audio labelling")
568 (description
569 "aubio is a tool designed for the extraction of annotations from audio
570 signals. Its features include segmenting a sound file before each of its
571 attacks, performing pitch detection, tapping the beat and producing MIDI
572 streams from live audio.")
573 (license license:gpl3+)))
574
575 (define (ardour-rpath-phase major-version)
576 `(lambda* (#:key outputs #:allow-other-keys)
577 (let ((libdir (string-append (assoc-ref outputs "out")
578 "/lib/ardour" ,major-version)))
579 (substitute* "wscript"
580 (("linker_flags = \\[\\]")
581 (string-append "linker_flags = [\""
582 "-Wl,-rpath="
583 libdir ":"
584 libdir "/backends" ":"
585 libdir "/engines" ":"
586 libdir "/panners" ":"
587 libdir "/surfaces" ":"
588 libdir "/vamp" "\"]"))))
589 #t))
590
591 (define-public ardour
592 (package
593 (name "ardour")
594 (version "5.12")
595 (source (origin
596 (method git-fetch)
597 (uri (git-reference
598 (url "https://git.ardour.org/ardour/ardour.git")
599 (commit version)))
600 (snippet
601 ;; Ardour expects this file to exist at build time. The revision
602 ;; is the output of
603 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
604 `(call-with-output-file
605 "libs/ardour/revision.cc"
606 (lambda (port)
607 (format port ,(string-append "#include \"ardour/revision.h\"
608 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
609 #t)))
610 (sha256
611 (base32
612 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
613 (file-name (string-append name "-" version))))
614 (build-system waf-build-system)
615 (arguments
616 `(#:configure-flags '("--cxx11" ; required by gtkmm
617 "--no-phone-home" ; don't contact ardour.org
618 "--freedesktop" ; build .desktop file
619 "--test") ; build unit tests
620 #:phases
621 (modify-phases %standard-phases
622 (add-after 'unpack 'set-rpath-in-LDFLAGS
623 ,(ardour-rpath-phase (version-major version)))
624 (add-after 'install 'install-freedesktop-files
625 (lambda* (#:key outputs #:allow-other-keys)
626 (let* ((out (assoc-ref outputs "out"))
627 (share (string-append out "/share"))
628 (ver ,(version-major version)))
629 (for-each
630 (lambda (size)
631 (let ((dir (string-append share "/icons/hicolor/"
632 size "x" size "/apps")))
633 (mkdir-p dir)
634 (copy-file
635 (string-append "gtk2_ardour/resources/Ardour-icon_"
636 size "px.png")
637 (string-append dir "/ardour" ver ".png"))))
638 '("16" "22" "32" "48" "256"))
639 (install-file (string-append "build/gtk2_ardour/ardour"
640 ver ".desktop")
641 (string-append share "/applications/"))
642 (install-file (string-append "build/gtk2_ardour/ardour"
643 ver ".appdata.xml")
644 (string-append share "/appdata/")))
645 #t)))
646 #:test-target "test"
647 #:python ,python-2))
648 (inputs
649 `(("alsa-lib" ,alsa-lib)
650 ("atkmm" ,atkmm)
651 ("aubio" ,aubio)
652 ("boost" ,boost)
653 ("cairomm" ,cairomm)
654 ("curl" ,curl)
655 ("eudev" ,eudev)
656 ("fftw" ,fftw)
657 ("fftwf" ,fftwf)
658 ("flac" ,flac)
659 ("glibmm" ,glibmm)
660 ("gtkmm" ,gtkmm-2)
661 ("jack" ,jack-1)
662 ("libarchive" ,libarchive)
663 ("libart-lgpl" ,libart-lgpl)
664 ("libgnomecanvasmm" ,libgnomecanvasmm)
665 ("liblo" ,liblo)
666 ("libogg" ,libogg)
667 ("libsamplerate" ,libsamplerate)
668 ("libsndfile" ,libsndfile)
669 ("libusb" ,libusb)
670 ("libvorbis" ,libvorbis)
671 ("libxml2" ,libxml2)
672 ("lilv" ,lilv)
673 ("lrdf" ,lrdf)
674 ("lv2" ,lv2)
675 ("pangomm" ,pangomm)
676 ("python-rdflib" ,python-rdflib)
677 ("readline" ,readline)
678 ("redland" ,redland)
679 ("rubberband" ,rubberband)
680 ("serd" ,serd)
681 ("sord" ,sord)
682 ("sratom" ,sratom)
683 ("suil" ,suil)
684 ("taglib" ,taglib)
685 ("vamp" ,vamp)))
686 (native-inputs
687 `(("cppunit" ,cppunit)
688 ("gettext" ,gettext-minimal)
689 ("itstool" ,itstool)
690 ("perl" ,perl)
691 ("pkg-config" ,pkg-config)))
692 (home-page "https://ardour.org")
693 (synopsis "Digital audio workstation")
694 (description
695 "Ardour is a multi-channel digital audio workstation, allowing users to
696 record, edit, mix and master audio and MIDI projects. It is targeted at audio
697 engineers, musicians, soundtrack editors and composers.")
698 (license license:gpl2+)))
699
700 (define-public audacity
701 (package
702 (name "audacity")
703 (version "2.4.1")
704 (source
705 (origin
706 (method git-fetch)
707 (uri (git-reference
708 (url "https://github.com/audacity/audacity")
709 (commit (string-append "Audacity-" version))))
710 (file-name (git-file-name name version))
711 (sha256
712 (base32
713 "1xk0piv72d2xd3p7igr916fhcbrm76fhjr418k1rlqdzzg1hfljn"))
714 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
715 (modules '((guix build utils)))
716 (snippet
717 ;; Remove bundled libraries.
718 '(begin
719 (for-each
720 (lambda (dir)
721 (delete-file-recursively (string-append "lib-src/" dir)))
722 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
723 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
724 "portaudio-v19" "portmidi" "soundtouch" "twolame"
725 ;; FIXME: these libraries have not been packaged yet:
726 ;; "libnyquist"
727 ;; "libscorealign"
728 ;; "libwidgetextra"
729 ;; "portburn"
730 ;; "portsmf"
731 ;; "portmixer"
732
733 ;; FIXME: we have this library, but it differs in that the Slide
734 ;; class does not have a member "getInverseStretchedTime".
735 ;; "sbsms"
736 ))
737 #t))))
738 (build-system glib-or-gtk-build-system)
739 (inputs
740 `(("wxwidgets" ,wxwidgets)
741 ("gtk+" ,gtk+)
742 ("alsa-lib" ,alsa-lib)
743 ("jack" ,jack-1)
744 ("expat" ,expat)
745 ("ffmpeg" ,ffmpeg)
746 ("lame" ,lame)
747 ("flac" ,flac)
748 ("libid3tag" ,libid3tag)
749 ("libmad" ,libmad)
750 ;;("libsbsms" ,libsbsms) ;bundled version is modified
751 ("libsndfile" ,libsndfile)
752 ("soundtouch" ,soundtouch)
753 ("soxr" ,soxr) ;replaces libsamplerate
754 ("twolame" ,twolame)
755 ("vamp" ,vamp)
756 ("libvorbis" ,libvorbis)
757 ("lv2" ,lv2)
758 ("lilv" ,lilv) ;for lv2
759 ("suil" ,suil) ;for lv2
760 ("portaudio" ,portaudio)
761 ("portmidi" ,portmidi)))
762 (native-inputs
763 `(("autoconf" ,autoconf)
764 ("automake" ,automake)
765 ("gettext" ,gettext-minimal) ;for msgfmt
766 ("libtool" ,libtool)
767 ("pkg-config" ,pkg-config)
768 ("python" ,python-2)
769 ("which" ,which)))
770 (arguments
771 `(#:configure-flags
772 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
773 (libmad (assoc-ref %build-inputs "libmad"))
774 (portmidi (assoc-ref %build-inputs "portmidi")))
775 (list
776 ;; Loading FFmpeg dynamically is problematic.
777 "--disable-dynamic-loading"
778 ;; SSE instructions are available on Intel systems only.
779 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
780 (%current-system)))
781 '("x86_64" "i686"))
782 '()
783 '("--enable-sse=no"))
784 ;; portmidi, libid3tag and libmad provide no .pc files, so
785 ;; pkg-config fails to find them. Force their inclusion.
786 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
787 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
788 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
789 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
790 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
791 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
792 "EXPAT_USE_SYSTEM=yes"
793 "FFMPEG_USE_SYSTEM=yes"
794 "LAME_USE_SYSTEM=yes"
795 "LIBFLAC_USE_SYSTEM=yes"
796 "LIBID3TAG_USE_SYSTEM=yes"
797 "LIBMAD_USE_SYSTEM=yes"
798 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
799 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
800 "LIBSNDFILE_USE_SYSTEM=yes"
801 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
802 "LIBSOXR_USE_SYSTEM=yes"
803 "LIBTWOLAME_USE_SYSTEM=yes"
804 "LIBVAMP_USE_SYSTEM=yes"
805 "LIBVORBIS_USE_SYSTEM=yes"
806 "LV2_USE_SYSTEM=yes"
807 "PORTAUDIO_USE_SYSTEM=yes"))
808 #:phases
809 (modify-phases %standard-phases
810 (add-after 'unpack 'fix-sbsms-check
811 (lambda _
812 ;; This check is wrong: there is no 2.2.0 release; not even the
813 ;; bundled sources match this release string.
814 (substitute* '("m4/audacity_checklib_libsbsms.m4"
815 "configure")
816 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
817 #t))
818 (add-after 'unpack 'use-upstream-headers
819 (lambda* (#:key inputs #:allow-other-keys)
820 (substitute* '("src/NoteTrack.cpp"
821 "src/AudioIO.cpp"
822 "src/AudioIO.h"
823 "src/AudioIOBase.cpp")
824 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
825 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
826 (substitute* "src/prefs/MidiIOPrefs.cpp"
827 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
828 #t)))
829 ;; The test suite is not "well exercised" according to the developers,
830 ;; and fails with various errors. See
831 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
832 #:tests? #f))
833 (home-page "https://www.audacityteam.org/")
834 (synopsis "Software for recording and editing sounds")
835 (description
836 "Audacity is a multi-track audio editor designed for recording, playing
837 and editing digital audio. It features digital effects and spectrum analysis
838 tools.")
839 (license license:gpl2+)))
840
841 (define-public audiofile
842 (package
843 (name "audiofile")
844 (version "0.3.6")
845 (source
846 (origin
847 (method url-fetch)
848 (uri (string-append
849 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
850 (sha256
851 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
852 (patches
853 ;; CVE references according to nixpgs
854 (search-patches
855 "audiofile-fix-datatypes-in-tests.patch"
856 "audiofile-fix-sign-conversion.patch"
857 "audiofile-hurd.patch"
858 "audiofile-CVE-2015-7747.patch"
859 ;; CVE-2017-6829:
860 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
861 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
862 ;; CVE-2017-6837:
863 "audiofile-Check-the-number-of-coefficients.patch"
864 ;; CVE-2017-6839:
865 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
866 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
867 "audiofile-Fix-multiply-overflow-sfconvert.patch"
868 "audiofile-signature-of-multiplyCheckOverflow.patch"
869 ;; CVE-2017-6831:
870 "audiofile-Fail-on-error-in-parseFormat.patch"
871 ;; CVE-2017-6833:
872 "audiofile-division-by-zero-BlockCodec-runPull.patch"
873 "audiofile-CVE-2018-13440.patch"
874 "audiofile-CVE-2018-17095.patch"))))
875 (build-system gnu-build-system)
876 (inputs
877 `(("alsa-lib" ,alsa-lib)))
878 (home-page "https://audiofile.68k.org/")
879 (synopsis "Library to handle various audio file formats")
880 (description "This is an open-source version of SGI's audiofile library.
881 It provides a uniform programming interface for processing of audio data to
882 and from audio files of many common formats.
883
884 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
885 .snd/.au, BICS, and raw data. Supported compression formats are currently
886 G.711 mu-law and A-law.")
887 (license license:lgpl2.1+)))
888
889 (define-public autotalent
890 (package
891 (name "autotalent")
892 (version "0.2")
893 (source (origin
894 (method url-fetch)
895 (uri (string-append "http://tombaran.info/autotalent-"
896 version ".tar.gz"))
897 (sha256
898 (base32
899 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
900 (build-system gnu-build-system)
901 (arguments
902 `(#:tests? #f ; no check target
903 #:phases
904 (modify-phases %standard-phases
905 ;; no configure script
906 (delete 'configure)
907 (add-before 'install 'prepare-target-directory
908 (lambda* (#:key outputs #:allow-other-keys)
909 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
910 #t))
911 (add-after 'unpack 'override-target-directory
912 (lambda* (#:key outputs #:allow-other-keys)
913 (substitute* "Makefile"
914 (("/usr/lib64/ladspa")
915 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
916 #t)))))
917 (inputs
918 `(("ladspa" ,ladspa)))
919 (home-page "http://tombaran.info/autotalent.html")
920 (synopsis "Pitch-correction LADSPA audio plugin")
921 (description
922 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
923 controls are allowable notes, strength of correction, LFO for vibrato and
924 formant warp.")
925 ;; All code except the FFT routine is licensed under GPLv2+.
926 ;; The FFT routine is under BSD-3.
927 (license license:gpl2+)))
928
929 (define-public azr3
930 (package
931 (name "azr3")
932 (version "1.2.3")
933 (source (origin
934 (method url-fetch)
935 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
936 version
937 ".tar.bz2"))
938 (sha256
939 (base32
940 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
941 (patches (search-patches "azr3.patch"))))
942 (build-system gnu-build-system)
943 (arguments
944 `(#:tests? #f ; no check target
945 #:make-flags
946 (list "LV2PEG=ttl2c"
947 (string-append "prefix=" %output)
948 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
949 #:phases
950 (modify-phases %standard-phases
951 (add-before 'install 'fix-timestamp
952 (lambda _
953 (let ((early-1980 315619200)) ; 1980-01-02 UTC
954 (utime "azr3.1" early-1980 early-1980))
955 #t)))))
956 (inputs
957 `(("gtkmm" ,gtkmm-2)
958 ("lvtk" ,lvtk)
959 ("jack" ,jack-1)
960 ("lash" ,lash)))
961 (native-inputs
962 `(("pkg-config" ,pkg-config)))
963 (home-page "http://ll-plugins.nongnu.org/azr3/")
964 (synopsis "Tonewheel organ synthesizer")
965 (description
966 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
967 with drawbars, distortion and rotating speakers. The organ has three
968 sections, two polyphonic sections with nine drawbars each and one monophonic
969 bass section with five drawbars. A standalone JACK application and LV2
970 plugins are provided.")
971 (license license:gpl2)))
972
973 (define-public calf
974 (package
975 (name "calf")
976 (version "0.90.3")
977 (source (origin
978 (method url-fetch)
979 (uri (string-append "https://calf-studio-gear.org/files/calf-"
980 version ".tar.gz"))
981 (sha256
982 (base32
983 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
984 (build-system gnu-build-system)
985 (inputs
986 `(("fluidsynth" ,fluidsynth)
987 ("expat" ,expat)
988 ("glib" ,glib)
989 ("gtk" ,gtk+-2)
990 ("cairo" ,cairo)
991 ("lash" ,lash)
992 ("jack" ,jack-1)
993 ("lv2" ,lv2)
994 ("ladspa" ,ladspa)
995 ("fftw" ,fftw)))
996 (native-inputs
997 `(("pkg-config" ,pkg-config)))
998 (native-search-paths
999 (list (search-path-specification
1000 (variable "LV2_PATH")
1001 (files '("lib/lv2")))))
1002 (home-page "http://calf.sourceforge.net/")
1003 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1004 (description
1005 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1006 The suite contains lots of effects (delay, modulation, signal processing,
1007 filters, equalizers, dynamics, distortion and mastering effects),
1008 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1009 tools (analyzer, mono/stereo tools, crossovers).")
1010 ;; calfjackhost is released under GPLv2+
1011 ;; The plugins are released under LGPLv2.1+
1012 (license (list license:lgpl2.1+ license:gpl2+))))
1013
1014 (define-public caps-plugins-lv2
1015 (package
1016 (name "caps-plugins-lv2")
1017 (version "0.9.24") ; version that has been ported.
1018 (source
1019 (origin
1020 ;; The Github project hasn't tagged a release.
1021 (method git-fetch)
1022 (uri (git-reference
1023 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
1024 ;; missing fixes for newer glibc, so using the origin of a pull
1025 ;; request regarding this issue:
1026 (url "https://github.com/jujudusud/caps-lv2")
1027 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
1028 (file-name (git-file-name name version))
1029 (sha256
1030 (base32
1031 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
1032 (build-system gnu-build-system)
1033 (arguments
1034 `(#:tests? #f ; no check target
1035 #:phases
1036 (modify-phases %standard-phases
1037 ;; no configure script
1038 (delete 'configure)
1039 (add-after 'unpack 'override-target-directory
1040 (lambda* (#:key outputs #:allow-other-keys)
1041 (substitute* (find-files "plugins" "Makefile")
1042 (("/usr/local")(assoc-ref outputs "out")))
1043 #t)))))
1044 (inputs
1045 `(("lv2" ,lv2)))
1046 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1047 (home-page "https://github.com/moddevices/caps-lv2")
1048 (synopsis "LV2 port of the CAPS audio plugin colection")
1049 (description
1050 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1051 guitar amplification and a small range of classic effects, signal processors and
1052 generators of mostly elementary and occasionally exotic nature.")
1053 (license license:gpl3+)))
1054
1055 (define-public infamous-plugins
1056 (package
1057 (name "infamous-plugins")
1058 (version "0.2.04")
1059 (source (origin
1060 (method git-fetch)
1061 (uri (git-reference
1062 (url "https://github.com/ssj71/infamousPlugins")
1063 (commit (string-append "v" version))))
1064 (file-name (git-file-name name version))
1065 (sha256
1066 (base32
1067 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
1068 (build-system cmake-build-system)
1069 (arguments
1070 `(#:tests? #f ; there are no tests
1071 #:phases
1072 (modify-phases %standard-phases
1073 (add-after 'unpack 'remove-compiler-flags
1074 (lambda _
1075 (substitute* (find-files "." "CMakeLists.txt")
1076 (("-msse2 -mfpmath=sse") ""))
1077 #t)))))
1078 (inputs
1079 `(("cairo" ,cairo)
1080 ("fftwf" ,fftwf)
1081 ("lv2" ,lv2)
1082 ("ntk" ,ntk)
1083 ("zita-resampler" ,zita-resampler)))
1084 (native-inputs
1085 `(("pkg-config" ,pkg-config)))
1086 (home-page "https://ssj71.github.io/infamousPlugins")
1087 (synopsis "LV2 plugins for live use")
1088 (description
1089 "The infamous plugins are a collection of LV2 audio plugins for live
1090 performances. The plugins include a cellular automaton synthesizer, an
1091 envelope follower, distortion effects, tape effects and more.")
1092 (license license:gpl2+)))
1093
1094 (define-public swh-plugins
1095 (package
1096 (name "swh-plugins")
1097 (version "0.4.17")
1098 (source (origin
1099 (method git-fetch)
1100 (uri (git-reference
1101 (url "https://github.com/swh/ladspa")
1102 (commit (string-append "v" version))))
1103 (file-name (git-file-name name version))
1104 (sha256
1105 (base32
1106 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1107 (native-inputs
1108 `(("autoconf" ,autoconf)
1109 ("automake" ,automake)
1110 ("gettext" ,gettext-minimal) ;for autopoint
1111 ("libtool" ,libtool)
1112 ("perl" ,perl)
1113 ("pkg-config" ,pkg-config)
1114 ("which" ,which)))
1115 (inputs
1116 `(("fftwf" ,fftwf)
1117 ("perl-xml-parser" ,perl-xml-parser)))
1118 (build-system gnu-build-system)
1119 (home-page "http://plugin.org.uk")
1120 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1121 (description "This package provides Steve Harris's LADSPA plugins.")
1122 (license license:gpl2+)))
1123
1124 (define-public swh-plugins-lv2
1125 (package
1126 (name "swh-plugins-lv2")
1127 (version "1.0.16")
1128 (source (origin
1129 (method git-fetch)
1130 (uri (git-reference
1131 (url "https://github.com/swh/lv2")
1132 (commit (string-append "v" version))))
1133 (file-name (git-file-name name version))
1134 (sha256
1135 (base32
1136 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1137 (build-system gnu-build-system)
1138 (arguments
1139 `(#:tests? #f ; no check target
1140 #:make-flags (list "CC=gcc"
1141 (string-append "PREFIX="
1142 (assoc-ref %outputs "out")))
1143 #:phases
1144 (modify-phases %standard-phases
1145 ;; no configure script
1146 (delete 'configure)
1147 (add-after 'unpack 'patch-makefile-and-enter-directory
1148 ;; The default install target doesn't install, but the
1149 ;; "install-system" target does.
1150 (lambda _
1151 (substitute* "Makefile"
1152 (("install:") "install: install-system"))
1153 #t)))))
1154 (inputs
1155 `(("lv2" ,lv2)
1156 ("fftwf" ,fftwf)))
1157 (native-inputs
1158 `(("libxslt" ,libxslt)
1159 ("pkg-config" ,pkg-config)))
1160 (home-page "http://plugin.org.uk")
1161 (synopsis "SWH plugins in LV2 format")
1162 (description
1163 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1164 classes include: dynamics (compressor, limiter), time (delay, chorus,
1165 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1166 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1167 (license license:gpl3+)))
1168
1169 (define-public tao
1170 (package
1171 (name "tao")
1172 (version "1.0-beta-10May2006")
1173 (source (origin
1174 (method url-fetch)
1175 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1176 "tao-" version "/"
1177 "tao-" version ".tar.gz"))
1178 (sha256
1179 (base32
1180 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1181 (patches
1182 (search-patches "tao-add-missing-headers.patch"
1183 "tao-fix-parser-types.patch"))
1184 (modules '((guix build utils)))
1185 (snippet
1186 '(begin
1187 (substitute* "configure"
1188 (("SHELL=/bin/sh") ""))
1189 #t))))
1190 (build-system gnu-build-system)
1191 (arguments
1192 '(#:configure-flags '("TAO_RELEASE=-beta")
1193 #:phases
1194 (modify-phases %standard-phases
1195 (add-after 'unpack 'fix-references
1196 (lambda* (#:key outputs #:allow-other-keys)
1197 (substitute* "user-scripts/tao.in"
1198 (("taoparse")
1199 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1200 (("grep") (which "grep"))
1201 (("sed -f \\$distdir/user-scripts/")
1202 (string-append (which "sed") " -f $distdir/"))
1203 (("distdir=.*")
1204 (string-append "distdir="
1205 (assoc-ref outputs "out") "/share/tao")))
1206 #t))
1207 (add-after 'install 'install-extra-files
1208 (lambda* (#:key outputs #:allow-other-keys)
1209 (let* ((out (assoc-ref outputs "out"))
1210 (share (string-append out "/share/tao/"))
1211 (inc (string-append out "/include/tao/")))
1212 (mkdir-p share)
1213 (mkdir-p inc)
1214 (install-file "user-scripts/error.parse" share)
1215 (copy-recursively "examples" (string-append share "examples"))
1216 (for-each (lambda (file) (install-file file inc))
1217 (find-files "include" "\\.h"))
1218 #t))))))
1219 (inputs
1220 `(("audiofile" ,audiofile)
1221 ("libxi" ,libxi)
1222 ("libxmu" ,libxmu)
1223 ("mesa" ,mesa)
1224 ("glut" ,freeglut)
1225 ("flex" ,flex)
1226 ("bison" ,bison)
1227 ("sed" ,sed)
1228 ("grep" ,grep)))
1229 (home-page "http://taopm.sourceforge.net/")
1230 (synopsis "Sound Synthesis with Physical Models")
1231 (description "Tao is a software package for sound synthesis using physical
1232 models. It provides a virtual acoustic material constructed from masses and
1233 springs which can be used as the basis for building quite complex virtual
1234 musical instruments. Tao comes with a synthesis language for creating and
1235 playing instruments and a C++ API for those who would like to use it as an
1236 object library.")
1237 (license license:gpl2+)))
1238
1239 (define-public csound
1240 (package
1241 (name "csound")
1242 (version "6.14.0")
1243 (source
1244 (origin
1245 (method git-fetch)
1246 (uri (git-reference
1247 (url "https://github.com/csound/csound")
1248 (commit version)))
1249 (file-name (git-file-name name version))
1250 (sha256
1251 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1252 (build-system cmake-build-system)
1253 (native-inputs
1254 `(("bison" ,bison)
1255 ("flex" ,flex)
1256 ("gettext" ,gettext-minimal)
1257 ("zlib" ,zlib)))
1258 (inputs
1259 `(("alsa-lib" ,alsa-lib)
1260 ("boost" ,boost)
1261 ("jack" ,jack-1)
1262 ("ladspa" ,ladspa)
1263 ("liblo" ,liblo)
1264 ("libsndfile" ,libsndfile)
1265 ("pulseaudio" ,pulseaudio)))
1266 (home-page "https://csound.com/")
1267 (synopsis "Sound and music computing system")
1268 (description
1269 "Csound is a user-programmable and user-extensible sound processing
1270 language and software synthesizer.")
1271 (license license:lgpl2.1+)))
1272
1273 (define-public clalsadrv
1274 (package
1275 (name "clalsadrv")
1276 (version "2.0.0")
1277 (source (origin
1278 (method url-fetch)
1279 (uri (string-append
1280 "http://kokkinizita.linuxaudio.org"
1281 "/linuxaudio/downloads/clalsadrv-"
1282 version ".tar.bz2"))
1283 (sha256
1284 (base32
1285 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1286 (build-system gnu-build-system)
1287 (arguments
1288 `(#:tests? #f ; no "check" target
1289 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1290 #:phases
1291 (modify-phases %standard-phases
1292 (add-after 'unpack 'patch-makefile-and-enter-directory
1293 (lambda _
1294 (substitute* "libs/Makefile"
1295 (("/sbin/ldconfig") "true")
1296 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1297 (chdir "libs")
1298 #t))
1299 (add-after 'install 'install-symlink
1300 (lambda _
1301 (symlink "libclalsadrv.so"
1302 (string-append (assoc-ref %outputs "out")
1303 "/lib/libclalsadrv.so.2"))
1304 #t))
1305 ;; no configure script
1306 (delete 'configure))))
1307 (inputs
1308 `(("alsa-lib" ,alsa-lib)
1309 ("fftw" ,fftw)))
1310 (home-page "https://kokkinizita.linuxaudio.org")
1311 (synopsis "C++ wrapper around the ALSA API")
1312 (description
1313 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1314 ALSA PCM devices.")
1315 (license license:gpl2+)))
1316
1317 (define-public amb-plugins
1318 (package
1319 (name "amb-plugins")
1320 (version "0.8.1")
1321 (source (origin
1322 (method url-fetch)
1323 (uri (string-append
1324 "http://kokkinizita.linuxaudio.org"
1325 "/linuxaudio/downloads/AMB-plugins-"
1326 version ".tar.bz2"))
1327 (sha256
1328 (base32
1329 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1330 (build-system gnu-build-system)
1331 (arguments
1332 `(#:tests? #f ; no "check" target
1333 #:phases
1334 (modify-phases %standard-phases
1335 ;; no configure script
1336 (delete 'configure)
1337 (add-before 'install 'prepare-target-directory
1338 (lambda* (#:key outputs #:allow-other-keys)
1339 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1340 #t))
1341 (add-after 'unpack 'override-target-directory-and-tool-paths
1342 (lambda* (#:key outputs #:allow-other-keys)
1343 (substitute* "Makefile"
1344 (("/usr/lib/ladspa")
1345 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1346 (("/usr/bin/install") (which "install"))
1347 (("/bin/rm") "#"))
1348 #t)))))
1349 (home-page "https://kokkinizita.linuxaudio.org")
1350 (synopsis "LADSPA ambisonics plugins")
1351 (description
1352 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1353 used within Ardour. Features include: mono and stereo to B-format panning,
1354 horizontal rotator, square, hexagon and cube decoders.")
1355 (license license:gpl2+)))
1356
1357 (define-public mcp-plugins
1358 (package
1359 (name "mcp-plugins")
1360 (version "0.4.0")
1361 (source (origin
1362 (method url-fetch)
1363 (uri (string-append
1364 "http://kokkinizita.linuxaudio.org"
1365 "/linuxaudio/downloads/MCP-plugins-"
1366 version ".tar.bz2"))
1367 (sha256
1368 (base32
1369 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1370 (build-system gnu-build-system)
1371 (arguments
1372 `(#:tests? #f ; no "check" target
1373 #:phases
1374 (modify-phases %standard-phases
1375 ;; no configure script
1376 (delete 'configure)
1377 (add-before 'install 'prepare-target-directory
1378 (lambda* (#:key outputs #:allow-other-keys)
1379 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1380 #t))
1381 (add-after 'unpack 'override-target-directory
1382 (lambda* (#:key outputs #:allow-other-keys)
1383 (substitute* "Makefile"
1384 (("/usr") (assoc-ref outputs "out")))
1385 #t)))))
1386 (home-page "https://kokkinizita.linuxaudio.org")
1387 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1388 (description
1389 "This package provides various LADSPA plugins. @code{cs_chorus} and
1390 @code{cs_phaser} provide chorus and phaser effects, respectively;
1391 @code{mvclpf24} provides four implementations of the low-pass filter used in
1392 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1393 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1394 the non-linear circuit elements of their original analog counterparts.")
1395 (license license:gpl2+)))
1396
1397 (define-public rev-plugins
1398 (package
1399 (name "rev-plugins")
1400 (version "0.7.1")
1401 (source (origin
1402 (method url-fetch)
1403 (uri (string-append
1404 "http://kokkinizita.linuxaudio.org"
1405 "/linuxaudio/downloads/REV-plugins-"
1406 version ".tar.bz2"))
1407 (sha256
1408 (base32
1409 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1410 (build-system gnu-build-system)
1411 (arguments
1412 `(#:tests? #f ; no "check" target
1413 #:phases
1414 (modify-phases %standard-phases
1415 ;; no configure script
1416 (delete 'configure)
1417 (add-before 'install 'prepare-target-directory
1418 (lambda* (#:key outputs #:allow-other-keys)
1419 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1420 #t))
1421 (add-after 'unpack 'override-target-directory
1422 (lambda* (#:key outputs #:allow-other-keys)
1423 (substitute* "Makefile"
1424 (("/usr") (assoc-ref outputs "out")))
1425 #t)))))
1426 (home-page "https://kokkinizita.linuxaudio.org")
1427 (synopsis "LADSPA reverb plugin")
1428 (description
1429 "This package provides a stereo reverb LADSPA plugin based on the
1430 well-known greverb.")
1431 (license license:gpl2+)))
1432
1433 (define-public fil-plugins
1434 (package
1435 (name "fil-plugins")
1436 (version "0.3.0")
1437 (source (origin
1438 (method url-fetch)
1439 (uri (string-append
1440 "http://kokkinizita.linuxaudio.org"
1441 "/linuxaudio/downloads/FIL-plugins-"
1442 version ".tar.bz2"))
1443 (sha256
1444 (base32
1445 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1446 (build-system gnu-build-system)
1447 (arguments
1448 `(#:tests? #f ; no "check" target
1449 #:phases
1450 (modify-phases %standard-phases
1451 ;; no configure script
1452 (delete 'configure)
1453 (add-before 'install 'prepare-target-directory
1454 (lambda* (#:key outputs #:allow-other-keys)
1455 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1456 #t))
1457 (add-after 'unpack 'override-target-directory
1458 (lambda* (#:key outputs #:allow-other-keys)
1459 (substitute* "Makefile"
1460 (("/usr") (assoc-ref outputs "out")))
1461 #t)))))
1462 (home-page "https://kokkinizita.linuxaudio.org")
1463 (synopsis "LADSPA four-band parametric equalizer plugin")
1464 (description
1465 "This package provides a LADSPA plugin for a four-band parametric
1466 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1467 gain controls. There is also a global bypass switch and gain control.
1468
1469 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1470 lattice filter, which is stable even while parameters are being changed.
1471
1472 All switches and controls are internally smoothed, so they can be used @code{live}
1473 without any clicks or zipper noises. This makes this plugin suitable for use
1474 in systems that allow automation of plugin control ports, such as Ardour, or
1475 for stage use.")
1476 (license license:gpl2+)))
1477
1478 (define-public ste-plugins
1479 (package
1480 (name "ste-plugins")
1481 (version "0.0.2")
1482 (source (origin
1483 (method url-fetch)
1484 (uri (string-append
1485 "http://kokkinizita.linuxaudio.org"
1486 "/linuxaudio/downloads/STE-plugins-"
1487 version ".tar.bz2"))
1488 (sha256
1489 (base32
1490 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1491 (build-system gnu-build-system)
1492 (arguments
1493 `(#:tests? #f ; no "check" target
1494 #:phases
1495 (modify-phases %standard-phases
1496 ;; no configure script
1497 (delete 'configure)
1498 (add-before 'install 'prepare-target-directory
1499 (lambda* (#:key outputs #:allow-other-keys)
1500 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1501 #t))
1502 (add-after 'unpack 'override-target-directory
1503 (lambda* (#:key outputs #:allow-other-keys)
1504 (substitute* "Makefile"
1505 (("/usr") (assoc-ref outputs "out")))
1506 #t)))))
1507 (home-page "https://kokkinizita.linuxaudio.org")
1508 (synopsis "LADSPA stereo width plugin")
1509 (description
1510 "This package provides a LADSPA plugin to manipulate the stereo width of
1511 audio signals.")
1512 (license license:gpl2+)))
1513
1514 (define-public vco-plugins
1515 (package
1516 (name "vco-plugins")
1517 (version "0.3.0")
1518 (source (origin
1519 (method url-fetch)
1520 (uri (string-append
1521 "http://kokkinizita.linuxaudio.org"
1522 "/linuxaudio/downloads/VCO-plugins-"
1523 version ".tar.bz2"))
1524 (sha256
1525 (base32
1526 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1527 (build-system gnu-build-system)
1528 (arguments
1529 `(#:tests? #f ; no "check" target
1530 #:phases
1531 (modify-phases %standard-phases
1532 ;; no configure script
1533 (delete 'configure)
1534 (add-before 'install 'prepare-target-directory
1535 (lambda* (#:key outputs #:allow-other-keys)
1536 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1537 #t))
1538 (add-after 'unpack 'override-target-directory
1539 (lambda* (#:key outputs #:allow-other-keys)
1540 (substitute* "Makefile"
1541 (("/usr") (assoc-ref outputs "out"))
1542 (("/bin/cp") (which "cp")))
1543 #t)))))
1544 (home-page "https://kokkinizita.linuxaudio.org")
1545 (synopsis "LADSPA plugin for synthesizer oscillators")
1546 (description
1547 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1548
1549 @enumerate
1550 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1551 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1552 @item Rec-VCO, a square / rectangle oscillator
1553 @end enumerate\n
1554
1555 All oscillators are low-pass filtered to provide waveforms similar to the
1556 output of analog synthesizers such as the Moog Voyager.")
1557 (license license:gpl2+)))
1558
1559 (define-public wah-plugins
1560 (package
1561 (name "wah-plugins")
1562 (version "0.1.0")
1563 (source (origin
1564 (method url-fetch)
1565 (uri (string-append
1566 "http://kokkinizita.linuxaudio.org"
1567 "/linuxaudio/downloads/WAH-plugins-"
1568 version ".tar.bz2"))
1569 (sha256
1570 (base32
1571 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1572 (build-system gnu-build-system)
1573 (arguments
1574 `(#:tests? #f ; no "check" target
1575 #:phases
1576 (modify-phases %standard-phases
1577 ;; no configure script
1578 (delete 'configure)
1579 (add-before 'install 'prepare-target-directory
1580 (lambda* (#:key outputs #:allow-other-keys)
1581 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1582 #t))
1583 (add-after 'unpack 'override-target-directory
1584 (lambda* (#:key outputs #:allow-other-keys)
1585 (substitute* "Makefile"
1586 (("/usr") (assoc-ref outputs "out")))
1587 #t)))))
1588 (home-page "https://kokkinizita.linuxaudio.org")
1589 (synopsis "LADSPA Autowah effect plugin")
1590 (description
1591 "This package provides a LADSPA plugin for a Wah effect with envelope
1592 follower.")
1593 (license license:gpl2+)))
1594
1595 (define-public g2reverb
1596 (package
1597 (name "g2reverb")
1598 (version "0.7.1")
1599 (source (origin
1600 (method url-fetch)
1601 (uri (string-append
1602 "http://kokkinizita.linuxaudio.org"
1603 "/linuxaudio/downloads/g2reverb-"
1604 version ".tar.bz2"))
1605 (sha256
1606 (base32
1607 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1608 (build-system gnu-build-system)
1609 (arguments
1610 `(#:tests? #f ; no "check" target
1611 #:phases
1612 (modify-phases %standard-phases
1613 ;; no configure script
1614 (delete 'configure)
1615 (add-before 'install 'prepare-target-directory
1616 (lambda* (#:key outputs #:allow-other-keys)
1617 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1618 #t))
1619 (add-after 'unpack 'override-target-directory
1620 (lambda* (#:key outputs #:allow-other-keys)
1621 (substitute* "Makefile"
1622 (("/usr") (assoc-ref outputs "out")))
1623 #t)))))
1624 (home-page "https://kokkinizita.linuxaudio.org")
1625 (synopsis "LADSPA stereo reverb plugin")
1626 (description
1627 "This package provides a LADSPA plugin for a stereo reverb effect.")
1628 (license license:gpl2+)))
1629
1630 (define-public fluidsynth
1631 (package
1632 (name "fluidsynth")
1633 (version "2.1.4")
1634 (source (origin
1635 (method git-fetch)
1636 (uri (git-reference
1637 (url "https://github.com/FluidSynth/fluidsynth")
1638 (commit (string-append "v" version))))
1639 (file-name (git-file-name name version))
1640 (sha256
1641 (base32
1642 "1r3khwyw57ybg5m4x0rvdzq7hgw2484sd52k6bm19akbw8yicfna"))))
1643 (build-system cmake-build-system)
1644 (arguments
1645 '(#:tests? #f ; no check target
1646 #:phases
1647 (modify-phases %standard-phases
1648 (add-after 'unpack 'fix-libdir
1649 (lambda _
1650 ;; Install libraries to /lib, not /lib64.
1651 (substitute* "CMakeLists.txt"
1652 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1653 "LIB_SUFFIX \"\""))
1654 #t)))))
1655 (inputs
1656 `(("libsndfile" ,libsndfile)
1657 ("alsa-lib" ,alsa-lib)
1658 ("jack" ,jack-1)
1659 ("ladspa" ,ladspa)
1660 ("lash" ,lash)
1661 ("readline" ,readline)
1662 ("glib" ,glib)))
1663 (native-inputs
1664 `(("pkg-config" ,pkg-config)))
1665 (home-page "http://www.fluidsynth.org/")
1666 (synopsis "SoundFont synthesizer")
1667 (description
1668 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1669 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1670 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1671 also play midifiles using a Soundfont.")
1672 (license license:lgpl2.1+)))
1673
1674 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1675 ;; needed.
1676 (define-public fluidsynth-1
1677 (package
1678 (inherit fluidsynth)
1679 (version "1.1.11")
1680 (source (origin
1681 (inherit (package-source fluidsynth))
1682 (uri (git-reference
1683 (url "https://github.com/FluidSynth/fluidsynth")
1684 (commit (string-append "v" version))))
1685 (file-name (git-file-name "fluidsynth" version))
1686 (sha256
1687 (base32
1688 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1689
1690 (define-public faad2
1691 (package
1692 (name "faad2")
1693 (version "2.8.8")
1694 (source
1695 (origin
1696 (method url-fetch)
1697 (uri
1698 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1699 (version-major+minor version) ".0/"
1700 "faad2-" version ".tar.gz"))
1701 (sha256
1702 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1703 (build-system gnu-build-system)
1704 (home-page "https://www.audiocoding.com/faad2.html")
1705 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1706 (description
1707 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1708 (license license:gpl2+)))
1709
1710 (define-public faust
1711 (package
1712 (name "faust")
1713 (version "0.9.90")
1714 (source (origin
1715 (method git-fetch)
1716 (uri (git-reference
1717 (url "https://github.com/grame-cncm/faust")
1718 (commit (string-append "v"
1719 (string-map (lambda (c)
1720 (if (char=? c #\.) #\- c))
1721 version)))))
1722 (file-name (string-append "faust-" version "-checkout"))
1723 (sha256
1724 (base32
1725 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1726 (build-system gnu-build-system)
1727 (arguments
1728 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1729 #:tests? #f
1730 #:phases
1731 (modify-phases %standard-phases
1732 ;; no "configure" script
1733 (delete 'configure)
1734 ;; Files appear under $out/share/faust that are read-only. The
1735 ;; install phase tries to overwrite them and fails, so we change
1736 ;; the permissions first.
1737 (add-before 'install 'fix-permissions
1738 (lambda _
1739 (for-each (lambda (file)
1740 (chmod file #o644))
1741 (find-files "architecture/max-msp" ".*"))
1742 #t)))))
1743 (native-inputs
1744 `(("unzip" ,unzip)))
1745 (home-page "https://faust.grame.fr/")
1746 (synopsis "Signal processing language")
1747 (description
1748 "Faust is a programming language for realtime audio signal processing.")
1749 (license license:gpl2+)))
1750
1751 (define-public faust-2
1752 (package
1753 (inherit faust)
1754 (version "2.5.23")
1755 (source (origin
1756 (method url-fetch)
1757 (uri (string-append "https://github.com/grame-cncm/faust/"
1758 "releases/download/" version
1759 "/faust-" version ".tar.gz"))
1760 (sha256
1761 (base32
1762 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1763 (build-system gnu-build-system)
1764 (arguments
1765 (substitute-keyword-arguments (package-arguments faust)
1766 ((#:make-flags flags)
1767 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1768 "world"))))
1769 (native-inputs
1770 `(("llvm" ,llvm-3.8)
1771 ("which" ,which)
1772 ("xxd" ,xxd)
1773 ("ctags" ,emacs-minimal) ; for ctags
1774 ("pkg-config" ,pkg-config)))
1775 (inputs
1776 `(("libsndfile" ,libsndfile)
1777 ("libmicrohttpd" ,libmicrohttpd)
1778 ("ncurses" ,ncurses)
1779 ("openssl" ,openssl)
1780 ("zlib" ,zlib)))))
1781
1782 (define-public freepats
1783 (package
1784 (name "freepats")
1785 (version "20060219")
1786 (source (origin
1787 (method url-fetch)
1788 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1789 version ".tar.bz2"))
1790 (sha256
1791 (base32
1792 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1793 (build-system trivial-build-system)
1794 (arguments
1795 `(#:modules ((guix build utils))
1796 #:builder (begin
1797 (use-modules (guix build utils))
1798 (let ((out (string-append %output "/share/freepats")))
1799 (setenv "PATH" (string-append
1800 (assoc-ref %build-inputs "bzip2") "/bin:"
1801 (assoc-ref %build-inputs "tar") "/bin"))
1802 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1803 (chdir "freepats")
1804 ;; Use absolute pattern references
1805 (substitute* "freepats.cfg"
1806 (("Tone_000") (string-append out "/Tone_000"))
1807 (("Drum_000") (string-append out "/Drum_000")))
1808 (mkdir-p out)
1809 (copy-recursively "." out)
1810 #t))))
1811 (native-inputs
1812 `(("tar" ,tar)
1813 ("bzip2" ,bzip2)))
1814 (home-page "http://freepats.zenvoid.org")
1815 (synopsis "GUS compatible patches for MIDI players")
1816 (description
1817 "FreePats is a project to create a free and open set of GUS compatible
1818 patches that can be used with softsynths such as Timidity and WildMidi.")
1819 ;; GPLv2+ with exception for compositions using these patches.
1820 (license license:gpl2+)))
1821
1822 (define-public guitarix
1823 (package
1824 (name "guitarix")
1825 (version "0.38.1")
1826 (source (origin
1827 (method url-fetch)
1828 (uri (string-append
1829 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1830 version ".tar.xz"))
1831 (sha256
1832 (base32
1833 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1834 (build-system waf-build-system)
1835 (arguments
1836 `(#:tests? #f ; no "check" target
1837 #:python ,python-2
1838 #:configure-flags
1839 (list
1840 ;; Add the output lib directory to the RUNPATH.
1841 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1842 #:phases
1843 (modify-phases %standard-phases
1844 (add-after 'unpack 'fix-boost-includes
1845 (lambda _
1846 (substitute* "src/headers/gx_internal_plugins.h"
1847 (("namespace gx_jack" m)
1848 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1849 (substitute* '("src/headers/gx_system.h"
1850 "src/headers/gx_parameter.h"
1851 "src/headers/gx_json.h")
1852 (("namespace gx_system" m)
1853 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1854 #t)))))
1855 (inputs
1856 `(("libsndfile" ,libsndfile)
1857 ("boost" ,boost)
1858 ("curl" ,curl)
1859 ("avahi" ,avahi)
1860 ("eigen" ,eigen)
1861 ("lv2" ,lv2)
1862 ("lilv" ,lilv)
1863 ("ladspa" ,ladspa)
1864 ("jack" ,jack-1)
1865 ("gtkmm" ,gtkmm-2)
1866 ("gtk+" ,gtk+-2)
1867 ("fftwf" ,fftwf)
1868 ("lrdf" ,lrdf)
1869 ("zita-resampler" ,zita-resampler)
1870 ("zita-convolver" ,zita-convolver)))
1871 (native-inputs
1872 `(("gperf" ,gperf)
1873 ("faust" ,faust)
1874 ("intltool" ,intltool)
1875 ("gettext" ,gettext-minimal)
1876 ("pkg-config" ,pkg-config)))
1877 (native-search-paths
1878 (list (search-path-specification
1879 (variable "LV2_PATH")
1880 (files '("lib/lv2")))))
1881 (home-page "https://guitarix.org/")
1882 (synopsis "Virtual guitar amplifier")
1883 (description "Guitarix is a virtual guitar amplifier running JACK.
1884 Guitarix takes the signal from your guitar as a mono-signal from your sound
1885 card. The input is processed by a main amp and a rack-section. Both can be
1886 routed separately and deliver a processed stereo-signal via JACK. You may
1887 fill the rack with effects from more than 25 built-in modules including stuff
1888 from a simple noise gate to modulation effects like flanger, phaser or
1889 auto-wah.")
1890 (license license:gpl2+)))
1891
1892 (define-public guitarix-lv2
1893 (package (inherit guitarix)
1894 (name "guitarix-lv2")
1895 (arguments
1896 (substitute-keyword-arguments (package-arguments guitarix)
1897 ((#:configure-flags flags)
1898 `(cons "--no-standalone" ,flags))))))
1899
1900 (define-public rakarrack
1901 (package
1902 (name "rakarrack")
1903 (version "0.6.1")
1904 (source (origin
1905 (method url-fetch)
1906 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1907 "rakarrack-" version "/rakarrack-"
1908 version ".tar.bz2"))
1909 (sha256
1910 (base32
1911 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1912 (modules '((guix build utils)))
1913 (snippet
1914 '(begin
1915 (substitute* '("src/process.C"
1916 "src/global.h")
1917 (("#include <Fl/") "#include <FL/"))
1918 #t))))
1919 (build-system gnu-build-system)
1920 (inputs
1921 `(("alsa-utils" ,alsa-utils)
1922 ("fltk" ,fltk)
1923 ("libx11" ,libx11)
1924 ("libxext" ,libxext)
1925 ("libxfixes" ,libxfixes)
1926 ("libxft" ,libxft)
1927 ("libxrender" ,libxrender)
1928 ("libxpm" ,libxpm)
1929 ("fontconfig" ,fontconfig)
1930 ("freetype" ,freetype)
1931 ("jack" ,jack-1)
1932 ("alsa-lib" ,alsa-lib)
1933 ("libsndfile" ,libsndfile)
1934 ("libsamplerate" ,libsamplerate)
1935 ("zlib" ,zlib)))
1936 (home-page "http://rakarrack.sourceforge.net/")
1937 (synopsis "Audio effects processor")
1938 (description
1939 "Rakarrack is a richly featured multi-effects processor emulating a
1940 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1941 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1942 distortion modules and many more. Most of the effects engine is built from
1943 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1944 user interface are optimized for guitar, but Rakarrack processes signals in
1945 stereo while it does not apply internal band-limiting filtering, and thus is
1946 well suited to all musical instruments and vocals.")
1947 ;; The code is explicitly licensed under the GPL version 2 only.
1948 (license license:gpl2)))
1949
1950 (define-public ir
1951 (package
1952 (name "ir")
1953 (version "1.3.4")
1954 (source (origin
1955 (method git-fetch)
1956 (uri (git-reference
1957 (url "https://github.com/tomszilagyi/ir.lv2")
1958 (commit version)))
1959 (file-name (git-file-name name version))
1960 (sha256
1961 (base32
1962 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1963 (build-system gnu-build-system)
1964 (arguments
1965 `(#:tests? #f ; no tests
1966 #:make-flags
1967 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1968 (string-append "INSTDIR="
1969 (assoc-ref %outputs "out") "/lib/lv2"))
1970 #:phases (modify-phases %standard-phases
1971 (delete 'configure)))) ; no configure script
1972 (inputs
1973 `(("libsndfile" ,libsndfile)
1974 ("libsamplerate" ,libsamplerate)
1975 ("lv2" ,lv2)
1976 ("glib" ,glib)
1977 ("gtk+" ,gtk+-2)
1978 ("zita-convolver" ,zita-convolver)))
1979 (native-inputs
1980 `(("pkg-config" ,pkg-config)))
1981 (native-search-paths
1982 (list (search-path-specification
1983 (variable "LV2_PATH")
1984 (files '("lib/lv2")))))
1985 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1986 (synopsis "LV2 convolution reverb")
1987 (description
1988 "IR is a low-latency, real-time, high performance signal convolver
1989 especially for creating reverb effects. It supports impulse responses with 1,
1990 2 or 4 channels, in any soundfile format supported by libsndfile.")
1991 (license license:gpl2+)))
1992
1993 (define-public jack-1
1994 (package
1995 (name "jack")
1996 (version "0.125.0")
1997 (source
1998 (origin
1999 (method url-fetch)
2000 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2001 ;; no longer exists (404). Use an unofficial mirror.
2002 (uri (string-append "https://crux.ster.zone/downloads/"
2003 "jack-audio-connection-kit/"
2004 "jack-audio-connection-kit-" version ".tar.gz"))
2005 (sha256
2006 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2007 (build-system gnu-build-system)
2008 (arguments
2009 `(#:phases (modify-phases %standard-phases
2010 (add-after 'unpack 'patch-configure
2011 (lambda _
2012 (substitute* "configure"
2013 ;; Install to <out/lib> regardless of platform.
2014 (("libnn=lib64") "libnn=lib"))
2015 #t)))))
2016 (inputs
2017 `(("alsa-lib" ,alsa-lib)
2018 ("readline" ,readline)))
2019 ;; uuid.h is included in the JACK type headers
2020 ;; db.h is included in the libjack metadata headers
2021 (propagated-inputs
2022 `(("libuuid" ,util-linux "lib")
2023 ("bdb" ,bdb)))
2024 (native-inputs
2025 `(("pkg-config" ,pkg-config)))
2026 (home-page "https://jackaudio.org/")
2027 (synopsis "JACK audio connection kit")
2028 (description
2029 "JACK is a low-latency audio server. It can connect a number of
2030 different applications to an audio device, as well as allowing them to share
2031 audio between themselves. JACK is different from other audio server efforts
2032 in that it has been designed from the ground up to be suitable for
2033 professional audio work. This means that it focuses on two key areas:
2034 synchronous execution of all clients, and low latency operation.")
2035 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2036 ;; licensed under the LGPL in order to allow for proprietary usage.
2037 (license (list license:gpl2+ license:lgpl2.1+))))
2038
2039 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2040 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2041 ;; program for users who might benefit from the D-BUS features.
2042 (define-public jack-2
2043 (package (inherit jack-1)
2044 (name "jack2")
2045 (version "1.9.13")
2046 (source (origin
2047 (method url-fetch)
2048 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
2049 "download/v" version "/jack2-"
2050 version ".tar.gz"))
2051 (file-name (string-append name "-" version ".tar.gz"))
2052 (sha256
2053 (base32
2054 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
2055 (build-system waf-build-system)
2056 (arguments
2057 `(#:tests? #f ; no check target
2058 #:configure-flags '("--dbus"
2059 "--alsa")
2060 #:phases
2061 (modify-phases %standard-phases
2062 (add-before 'configure 'set-linkflags
2063 (lambda _
2064 ;; Add $libdir to the RUNPATH of all the binaries.
2065 (substitute* "wscript"
2066 ((".*CFLAGS.*-Wall.*" m)
2067 (string-append m
2068 " conf.env.append_unique('LINKFLAGS',"
2069 "'-Wl,-rpath=" %output "/lib')\n")))
2070 #t))
2071 (add-after 'install 'wrap-python-scripts
2072 (lambda* (#:key inputs outputs #:allow-other-keys)
2073 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2074 (let* ((out (assoc-ref outputs "out"))
2075 (path (getenv "PYTHONPATH")))
2076 (wrap-program (string-append out "/bin/jack_control")
2077 `("PYTHONPATH" ":" prefix (,path))))
2078 #t)))))
2079 (inputs
2080 `(("alsa-lib" ,alsa-lib)
2081 ("dbus" ,dbus)
2082 ("expat" ,expat)
2083 ("libsamplerate" ,libsamplerate)
2084 ("opus" ,opus)
2085 ("python-dbus" ,python-dbus)
2086 ("readline" ,readline)))
2087 (native-inputs
2088 `(("pkg-config" ,pkg-config)))
2089 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2090 (license (list license:gpl2+ license:lgpl2.1+))))
2091
2092 (define-public jalv
2093 (package
2094 (name "jalv")
2095 (version "1.6.4")
2096 (source (origin
2097 (method url-fetch)
2098 (uri (string-append "https://download.drobilla.net/jalv-"
2099 version ".tar.bz2"))
2100 (sha256
2101 (base32
2102 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2103 (build-system waf-build-system)
2104 (arguments
2105 `(#:tests? #f ; no check target
2106 #:python ,python-2))
2107 (inputs
2108 `(("lv2" ,lv2)
2109 ("lilv" ,lilv)
2110 ("suil" ,suil)
2111 ("gtk2" ,gtk+-2)
2112 ("gtk3" ,gtk+)
2113 ("gtkmm" ,gtkmm-2)
2114 ("qtbase" ,qtbase)
2115 ("jack" ,jack-1)))
2116 (native-inputs
2117 `(("pkg-config" ,pkg-config)))
2118 (home-page "https://drobilla.net/software/jalv/")
2119 (synopsis "Simple LV2 host for JACK")
2120 (description
2121 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2122 plugins and exposes their ports as JACK ports, essentially making any LV2
2123 plugin function as a JACK application.")
2124 (license license:isc)))
2125
2126 (define-public ladspa
2127 (package
2128 (name "ladspa")
2129 (version "1.13")
2130 (source
2131 (origin
2132 (method url-fetch)
2133 ;; Since the official link is dead,
2134 ;; we download the tarball from Debian or Internet Archive.
2135 (uri (list (string-append "http://http.debian.net"
2136 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2137 version ".orig.tar.gz")
2138 (string-append "https://web.archive.org/web/20140717172251/"
2139 "http://www.ladspa.org/download/ladspa_sdk_"
2140 version ".tgz")))
2141 (sha256
2142 (base32
2143 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2144 (build-system gnu-build-system)
2145 (arguments
2146 `(#:tests? #f ; the "test" target is a listening test only
2147 #:phases
2148 (modify-phases %standard-phases
2149 (replace 'configure
2150 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2151 (chdir "src")
2152 (let ((out (assoc-ref outputs "out")))
2153 (substitute* "makefile"
2154 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2155 (("/usr/include/") (string-append out "/include/"))
2156 (("/usr/bin/") (string-append out "/bin/"))
2157 (("-mkdirhier") "mkdir -p")
2158 (("^CC.*") "CC = gcc\n")
2159 (("^CPP.*") "CPP = g++\n")))
2160 #t))
2161 (delete 'build))))
2162 ;; Since the home page is gone, we provide a link to the archived version.
2163 (home-page
2164 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2165 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2166 (description
2167 "LADSPA is a standard that allows software audio processors and effects
2168 to be plugged into a wide range of audio synthesis and recording packages.")
2169 (license license:lgpl2.1+)))
2170
2171 (define-public lash
2172 (package
2173 (name "lash")
2174 (version "0.6.0-rc2")
2175 (source (origin
2176 (method url-fetch)
2177 ;; The tilde is not permitted in the builder name, but is used
2178 ;; in the tarball.
2179 (uri (string-append
2180 "mirror://savannah/lash/lash-"
2181 (string-join (string-split version #\-) "~")
2182 ".tar.bz2"))
2183 (file-name (string-append name "-" version ".tar.bz2"))
2184 (sha256
2185 (base32
2186 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2187 (build-system gnu-build-system)
2188 (arguments
2189 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2190 ;; to use libtirpc instead.
2191 #:make-flags (list (string-append "CFLAGS=-I"
2192 (assoc-ref %build-inputs "libtirpc")
2193 "/include/tirpc -ltirpc"))
2194 #:phases
2195 (modify-phases %standard-phases
2196 ;; lashd embeds an ancient version of sigsegv so we just skip it
2197 (add-after 'unpack 'skip-lashd
2198 (lambda _
2199 (substitute* '("Makefile.am" "Makefile.in")
2200 (("lashd ") ""))
2201 #t)))
2202 #:configure-flags '("--disable-static")))
2203 (inputs
2204 `(("bdb" ,bdb)
2205 ("gtk" ,gtk+-2)
2206 ("jack" ,jack-1)
2207 ("libtirpc" ,libtirpc)
2208 ("readline" ,readline)
2209 ("python" ,python-2)))
2210 ;; According to pkg-config, packages depending on lash also need to have
2211 ;; at least the following packages declared as inputs.
2212 (propagated-inputs
2213 `(("alsa-lib" ,alsa-lib)
2214 ("dbus" ,dbus)
2215 ("libxml2" ,libxml2)))
2216 (native-inputs
2217 `(("pkg-config" ,pkg-config)))
2218 (home-page "https://www.nongnu.org/lash/")
2219 (synopsis "Audio application session manager")
2220 (description
2221 "LASH is a session management system for audio applications. It allows
2222 you to save and restore audio sessions consisting of multiple interconneced
2223 applications, restoring program state (i.e. loaded patches) and the
2224 connections between them.")
2225 (license license:gpl2+)))
2226
2227 (define-public libbs2b
2228 (package
2229 (name "libbs2b")
2230 (version "3.1.0")
2231 (source (origin
2232 (method url-fetch)
2233 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2234 "/libbs2b-" version ".tar.lzma"))
2235 (sha256
2236 (base32
2237 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2238 (build-system gnu-build-system)
2239 (native-inputs `(("pkg-config" ,pkg-config)))
2240 (inputs `(("libsndfile" ,libsndfile)))
2241 (home-page "https://sourceforge.net/projects/bs2b/")
2242 (synopsis "Bauer stereophonic-to-binaural DSP")
2243 (description
2244 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2245 designed to improve headphone listening of stereo audio records. Recommended
2246 for headphone prolonged listening to disable superstereo fatigue without
2247 essential distortions.")
2248 (license license:expat)))
2249
2250 (define-public ladspa-bs2b
2251 (package
2252 (name "ladspa-bs2b")
2253 (version "0.9.1")
2254 (source (origin
2255 (method url-fetch)
2256 (uri (string-append
2257 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2258 version "/" name "-" version ".tar.gz"))
2259 (sha256
2260 (base32
2261 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2262 (build-system gnu-build-system)
2263 (native-inputs `(("pkg-config" ,pkg-config)))
2264 (inputs `(("ladspa" ,ladspa)
2265 ("libbs2b" ,libbs2b)))
2266 (home-page "https://sourceforge.net/projects/bs2b/")
2267 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2268 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2269 plugins is designed to improve headphone listening of stereo audio records.
2270 Recommended for headphone prolonged listening to disable superstereo fatigue
2271 without essential distortions. This package contains a LADSPA plugin for use
2272 with applications that support them (e.g. PulseAudio).")
2273 (license license:gpl2+)))
2274
2275 (define-public liblo
2276 (package
2277 (name "liblo")
2278 (version "0.31")
2279 (source (origin
2280 (method url-fetch)
2281 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2282 "/liblo-" version ".tar.gz"))
2283 (sha256
2284 (base32
2285 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2286 (build-system gnu-build-system)
2287 (arguments
2288 `(;; liblo test FAILED
2289 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2290 #:tests? #f))
2291 (home-page "http://liblo.sourceforge.net")
2292 (synopsis "Implementation of the Open Sound Control protocol")
2293 (description
2294 "liblo is a lightweight library that provides an easy to use
2295 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2296 (license license:lgpl2.1+)))
2297
2298 (define-public rtaudio
2299 (package
2300 (name "rtaudio")
2301 (version "5.1.0")
2302 (source
2303 (origin
2304 (method git-fetch)
2305 (uri (git-reference
2306 (url "https://github.com/thestk/rtaudio")
2307 (commit version)))
2308 (file-name (git-file-name name version))
2309 (sha256
2310 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2311 (build-system cmake-build-system)
2312 (native-inputs
2313 `(("pkg-config" ,pkg-config)))
2314 (inputs
2315 `(("alsa-lib" ,alsa-lib)
2316 ("jack" ,jack-1)
2317 ("pulseaudio" ,pulseaudio)))
2318 (synopsis "Common API for real-time audio I/O")
2319 (description
2320 "RtAudio is a set of C++ classes that provides a common API for real-time
2321 audio input/output. It was designed with the following objectives:
2322
2323 @itemize
2324 @item object-oriented C++ design
2325 @item simple, common API across all supported platforms
2326 @item only one source and one header file for easy inclusion in programming
2327 projects
2328 @item allow simultaneous multi-api support
2329 @item support dynamic connection of devices
2330 @item provide extensive audio device parameter control
2331 @item allow audio device capability probing
2332 @item automatic internal conversion for data format, channel number
2333 compensation, (de)interleaving, and byte-swapping
2334 @end itemize")
2335 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2336 ;; License is expat with a non-binding request to send modifications to
2337 ;; original developer.
2338 (license license:expat)))
2339
2340 (define-public python-pyaudio
2341 (package
2342 (name "python-pyaudio")
2343 (version "0.2.11")
2344 (source
2345 (origin
2346 (method url-fetch)
2347 (uri (pypi-uri "PyAudio" version))
2348 (sha256
2349 (base32
2350 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2351 (build-system python-build-system)
2352 (inputs
2353 `(("portaudio" ,portaudio)))
2354 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2355 (synopsis "Bindings for PortAudio v19")
2356 (description "This package provides bindings for PortAudio v19, the
2357 cross-platform audio input/output stream library.")
2358 (license license:expat)))
2359
2360 (define-public python2-pyaudio
2361 (package-with-python2 python-pyaudio))
2362
2363 (define-public python-pyliblo
2364 (package
2365 (name "python-pyliblo")
2366 (version "0.10.0")
2367 (source (origin
2368 (method url-fetch)
2369 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2370 version ".tar.gz"))
2371 (sha256
2372 (base32
2373 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2374 (build-system python-build-system)
2375 (arguments `(#:tests? #f)) ;no tests
2376 (native-inputs
2377 `(("python-cython" ,python-cython)))
2378 (inputs
2379 `(("liblo" ,liblo)))
2380 (home-page "http://das.nasophon.de/pyliblo/")
2381 (synopsis "Python bindings for liblo")
2382 (description
2383 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2384 library. It supports almost the complete functionality of liblo, allowing you
2385 to send and receive OSC messages using a nice and simple Python API. Also
2386 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2387 (license license:lgpl2.1+)))
2388
2389 (define-public python2-pyliblo
2390 (package-with-python2 python-pyliblo))
2391
2392 (define-public lilv
2393 (package
2394 (name "lilv")
2395 (version "0.24.8")
2396 (source (origin
2397 (method url-fetch)
2398 (uri (string-append "https://download.drobilla.net/lilv-"
2399 version ".tar.bz2"))
2400 (sha256
2401 (base32
2402 "0063i5zgf3d3accwmyx651hw0wh5ik7kji2hvfkcdbl1qia3dp6a"))))
2403 (build-system waf-build-system)
2404 (arguments
2405 `(#:tests? #f ; no check target
2406 #:phases
2407 (modify-phases %standard-phases
2408 (add-before 'configure 'set-ldflags
2409 (lambda* (#:key outputs #:allow-other-keys)
2410 (setenv "LDFLAGS"
2411 (string-append "-Wl,-rpath="
2412 (assoc-ref outputs "out") "/lib"))
2413 #t))
2414 (add-after 'unpack 'full-store-path-to-shared-library
2415 (lambda* (#:key outputs #:allow-other-keys)
2416 (with-directory-excursion "bindings/python"
2417 (substitute* "lilv.py"
2418 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2419 "/lib/liblilv-0.so"))))
2420 #t)))))
2421 ;; Required by lilv-0.pc.
2422 (propagated-inputs
2423 `(("lv2" ,lv2)
2424 ("serd" ,serd)
2425 ("sord" ,sord)
2426 ("sratom" ,sratom)))
2427 (native-inputs
2428 `(("python" ,python)
2429 ("pkg-config" ,pkg-config)))
2430 (home-page "https://drobilla.net/software/lilv")
2431 (synopsis "Library to simplify use of LV2 plugins in applications")
2432 (description
2433 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2434 for applications. Lilv is the successor to SLV2, rewritten to be
2435 significantly faster and have minimal dependencies.")
2436 (license license:isc)))
2437
2438 (define-public lv2
2439 (package
2440 (name "lv2")
2441 (version "1.18.0")
2442 (source (origin
2443 (method url-fetch)
2444 (uri (string-append "https://lv2plug.in/spec/lv2-"
2445 version ".tar.bz2"))
2446 (sha256
2447 (base32
2448 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2449 (build-system waf-build-system)
2450 (arguments
2451 `(#:tests? #f ; no check target
2452 #:configure-flags '("--no-plugins")))
2453 (inputs
2454 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2455 `(("libsndfile" ,libsndfile)))
2456 (native-inputs
2457 `(("pkg-config" ,pkg-config)))
2458 (home-page "https://lv2plug.in/")
2459 (synopsis "LV2 audio plugin specification")
2460 (description
2461 "LV2 is an open specification for audio plugins and host applications.
2462 At its core, LV2 is a simple stable interface, accompanied by extensions which
2463 add functionality to support the needs of increasingly powerful audio
2464 software.")
2465 (license license:isc)))
2466
2467 (define-public lv2-mda-piano
2468 (package
2469 (name "lv2-mda-piano")
2470 (version "0.0.2")
2471 (source (origin
2472 (method git-fetch)
2473 (uri (git-reference
2474 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2475 (commit version)))
2476 (file-name (git-file-name name version))
2477 (sha256
2478 (base32
2479 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2480 (build-system gnu-build-system)
2481 (arguments
2482 `(#:make-flags (list
2483 "TYPE=mdaPiano"
2484 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2485 #:tests? #f ; no check target
2486 #:phases (modify-phases %standard-phases (delete 'configure))))
2487 (inputs
2488 `(("lv2" ,lv2)
2489 ("lvtk" ,lvtk)))
2490 (native-inputs
2491 `(("pkg-config" ,pkg-config)))
2492 (native-search-paths
2493 (list (search-path-specification
2494 (variable "LV2_PATH")
2495 (files '("lib/lv2")))))
2496 (home-page "https://elephly.net/lv2/mdapiano.html")
2497 (synopsis "LV2 port of the mda Piano plugin")
2498 (description "An LV2 port of the mda Piano VSTi.")
2499 (license license:gpl3+)))
2500
2501 (define-public lv2-mda-epiano
2502 (package (inherit lv2-mda-piano)
2503 (name "lv2-mda-epiano")
2504 (arguments
2505 `(#:make-flags (list
2506 "TYPE=mdaEPiano"
2507 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2508 #:tests? #f ; no check target
2509 #:phases (modify-phases %standard-phases (delete 'configure))))
2510 (home-page "https://elephly.net/lv2/mdaepiano.html")
2511 (synopsis "LV2 port of the mda EPiano plugin")
2512 (description "An LV2 port of the mda EPiano VSTi.")))
2513
2514 (define-public lvtk
2515 (package
2516 (name "lvtk")
2517 (version "1.2.0")
2518 (source (origin
2519 (method git-fetch)
2520 (uri (git-reference
2521 (url "https://github.com/lvtk/lvtk")
2522 (commit version)))
2523 (file-name (git-file-name name version))
2524 (sha256
2525 (base32
2526 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2527 (build-system waf-build-system)
2528 (arguments
2529 `(#:tests? #f ; no check target
2530 #:python ,python-2
2531 #:configure-flags
2532 (list (string-append "--boost-includes="
2533 (assoc-ref %build-inputs "boost")
2534 "/include"))))
2535 (inputs
2536 `(("boost" ,boost)
2537 ("gtkmm" ,gtkmm-2)
2538 ("lv2" ,lv2)))
2539 (native-inputs
2540 `(("pkg-config" ,pkg-config)))
2541 (home-page "https://github.com/lvtk/lvtk")
2542 (synopsis "C++ libraries for LV2 plugins")
2543 (description
2544 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2545 extensions into easy to use C++ classes. It is the successor of
2546 lv2-c++-tools.")
2547 (license license:gpl3+)))
2548
2549 (define-public openal
2550 (package
2551 (name "openal")
2552 (version "1.20.1")
2553 (source (origin
2554 (method url-fetch)
2555 (uri (string-append
2556 "https://openal-soft.org/openal-releases/openal-soft-"
2557 version ".tar.bz2"))
2558 (sha256
2559 (base32
2560 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2561 (build-system cmake-build-system)
2562 (arguments
2563 `(#:tests? #f ; no check target
2564 #:phases
2565 (modify-phases %standard-phases
2566 (add-after
2567 'unpack 'use-full-library-paths
2568 (lambda* (#:key inputs #:allow-other-keys)
2569 (substitute* "alc/backends/pulseaudio.cpp"
2570 (("#define PALIB \"libpulse\\.so\\.0\"")
2571 (string-append "#define PALIB \""
2572 (assoc-ref inputs "pulseaudio")
2573 "/lib/libpulse.so.0"
2574 "\"")))
2575 (substitute* "alc/backends/alsa.cpp"
2576 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2577 (string-append "LoadLib(\""
2578 (assoc-ref inputs "alsa-lib")
2579 "/lib/libasound.so.2"
2580 "\")")))
2581 #t)))))
2582 (inputs
2583 `(("alsa-lib" ,alsa-lib)
2584 ("pulseaudio" ,pulseaudio)))
2585 (synopsis "3D audio API")
2586 (description
2587 "OpenAL provides capabilities for playing audio in a virtual 3D
2588 environment. Distance attenuation, doppler shift, and directional sound
2589 emitters are among the features handled by the API. More advanced effects,
2590 including air absorption, occlusion, and environmental reverb, are available
2591 through the EFX extension. It also facilitates streaming audio, multi-channel
2592 buffers, and audio capture.")
2593 (home-page "https://openal-soft.org/")
2594 (license license:lgpl2.0+)))
2595
2596 (define-public freealut
2597 (package
2598 (name "freealut")
2599 (version "1.1.0")
2600 (source (origin
2601 (method url-fetch)
2602 ;; Upstream url is unclear, many systems use Fedora, there is also
2603 ;; https://github.com/vancegroup/freealut though the status of it
2604 ;; (official? unofficial?) is not clear.
2605 (uri (string-append
2606 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2607 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2608 "-" version ".tar.gz"))
2609 (sha256
2610 (base32
2611 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2612 (build-system cmake-build-system)
2613 (arguments
2614 `(#:tests? #f)) ; no check target
2615 (inputs
2616 `(("openal" ,openal)))
2617 (synopsis "Free implementation of OpenAL's ALUT standard")
2618 (description "freealut is the OpenAL Utility Toolkit.")
2619 (home-page "https://kcat.strangesoft.net/openal.html")
2620 (license license:lgpl2.0)))
2621
2622 (define-public patchage
2623 (package
2624 (name "patchage")
2625 (version "1.0.2")
2626 (source (origin
2627 (method url-fetch)
2628 (uri (string-append "https://download.drobilla.net/patchage-"
2629 version
2630 ".tar.bz2"))
2631 (sha256
2632 (base32
2633 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2634 (build-system waf-build-system)
2635 (arguments
2636 `(#:tests? #f ; no check target
2637 #:python ,python-2))
2638 (inputs
2639 `(("alsa-lib" ,alsa-lib)
2640 ("boost" ,boost)
2641 ("jack" ,jack-1)
2642 ("ganv" ,ganv)
2643 ("glibmm" ,glibmm)
2644 ("gtkmm" ,gtkmm-2)
2645 ("dbus-glib" ,dbus-glib)))
2646 (native-inputs
2647 `(("pkg-config" ,pkg-config)))
2648 (home-page "https://drobilla.net/software/patchage/")
2649 (synopsis "Modular patch bay for audio and MIDI systems")
2650 (description
2651 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2652 and ALSA.")
2653 (license license:gpl3+)))
2654
2655 (define-public pcaudiolib
2656 (package
2657 (name "pcaudiolib")
2658 (version "1.1")
2659 (home-page "https://github.com/espeak-ng/pcaudiolib")
2660 (source (origin
2661 (method git-fetch)
2662 (uri (git-reference (url home-page) (commit version)))
2663 (file-name (git-file-name name version))
2664 (sha256
2665 (base32
2666 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2667 (build-system gnu-build-system)
2668 (arguments
2669 `(#:configure-flags '("--disable-static")))
2670 (native-inputs
2671 `(("autoconf" ,autoconf)
2672 ("automake" ,automake)
2673 ("libtool" ,libtool)
2674 ("pkg-config" ,pkg-config)
2675 ("which" ,which)))
2676 (inputs
2677 `(("alsa-lib" ,alsa-lib)
2678 ("pulseaudio" ,pulseaudio)))
2679 (synopsis "Portable C audio library")
2680 (description
2681 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2682 different audio devices such as ALSA or PulseAudio.")
2683 (license (list license:gpl3+
2684 ;; The bundled TPCircularBuffer uses a custom license.
2685 (license:non-copyleft
2686 "file://src/TPCircularBuffer/README.markdown")))))
2687
2688 (define-public qjackctl
2689 (package
2690 (name "qjackctl")
2691 (version "0.5.9")
2692 (source (origin
2693 (method url-fetch)
2694 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2695 version "/qjackctl-" version ".tar.gz"))
2696 (sha256
2697 (base32
2698 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2699 (build-system gnu-build-system)
2700 (arguments
2701 '(#:tests? #f)) ; no check target
2702 (inputs
2703 `(("jack" ,jack-1)
2704 ("alsa-lib" ,alsa-lib)
2705 ("qtbase" ,qtbase)
2706 ("qtx11extras" ,qtx11extras)))
2707 (native-inputs
2708 `(("pkg-config" ,pkg-config)
2709 ("qttools" ,qttools)))
2710 (home-page "https://qjackctl.sourceforge.io/")
2711 (synopsis "Jack server control application")
2712 (description "Control a Jack server. Allows you to plug various sources
2713 into various outputs and to start, stop and configure jackd")
2714 (license license:gpl2+)))
2715
2716 (define-public qjackrcd
2717 (package
2718 (name "qjackrcd")
2719 (version "1.2.2")
2720 (source (origin
2721 (method git-fetch)
2722 (uri (git-reference
2723 (url "https://github.com/orouits/qjackrcd")
2724 (commit (string-append "v" version))))
2725 (file-name (git-file-name name version))
2726 (sha256
2727 (base32
2728 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2729 (build-system gnu-build-system)
2730 (arguments
2731 `(#:phases
2732 (modify-phases %standard-phases
2733 (replace 'configure
2734 (lambda* (#:key outputs #:allow-other-keys)
2735 (invoke "qmake"
2736 (string-append "PREFIX="
2737 (assoc-ref outputs "out"))))))))
2738 (native-inputs
2739 `(("qtbase" ,qtbase))) ; for qmake
2740 (inputs
2741 `(("jack" ,jack-1)
2742 ("libsndfile" ,libsndfile)
2743 ("qtbase" ,qtbase)))
2744 (home-page "https://sourceforge.net/projects/qjackrcd/")
2745 (synopsis "Stereo audio recorder for JACK")
2746 (description "QJackRcd is a simple graphical stereo recorder for JACK
2747 supporting silence processing for automatic pause, file splitting, and
2748 background file post-processing.")
2749 (license license:gpl2+)))
2750
2751 (define-public supercollider
2752 (package
2753 (name "supercollider")
2754 (version "3.11.0")
2755 (source (origin
2756 (method git-fetch)
2757 (uri (git-reference
2758 (url "https://github.com/supercollider/supercollider")
2759 (commit (string-append "Version-" version))
2760 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2761 (recursive? #t)))
2762 (file-name (git-file-name name version))
2763 (sha256
2764 (base32
2765 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))
2766 (modules '((guix build utils)
2767 (ice-9 ftw)))
2768 (snippet
2769 ;; The build system doesn't allow us to unbundle the following
2770 ;; libraries. hidapi is also heavily patched and upstream not
2771 ;; actively maintained.
2772 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2773 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2774 (with-directory-excursion "./external_libraries"
2775 (for-each
2776 delete-file-recursively
2777 (scandir "."
2778 (lambda (x)
2779 (and (eq? (stat:type (stat x)) 'directory)
2780 (not (member (basename x) keep-dirs)))))))
2781 ;; To find the Guix provided ableton-link library.
2782 (substitute* "lang/CMakeLists.txt"
2783 (("include\\(\\.\\./external_libraries/link/\
2784 AbletonLinkConfig\\.cmake\\)")
2785 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2786 link REQUIRED)"))
2787 #t))))
2788 (build-system cmake-build-system)
2789 (outputs
2790 '("out" ;core language
2791 "ide")) ;qt ide
2792 (arguments
2793 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2794 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2795 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2796 "-DSC_EL=off") ;scel is packaged individually as
2797 ;emacs-scel
2798 #:phases
2799 (modify-phases %standard-phases
2800 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2801 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2802 ;; The graphical tests also hang without it.
2803 (add-after 'unpack 'set-home-directory
2804 (lambda _
2805 (setenv "HOME" (getcwd))
2806 #t))
2807 (add-after 'unpack 'patch-scclass-dir
2808 (lambda* (#:key outputs #:allow-other-keys)
2809 (let* ((out (assoc-ref outputs "out"))
2810 (scclass-dir
2811 (string-append out
2812 "/share/SuperCollider/SCClassLibrary")))
2813 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2814 (((string-append
2815 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2816 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2817 (string-append "Path(\"" scclass-dir "\")")))
2818 #t)))
2819 (add-before 'build 'prepare-x
2820 (lambda _
2821 (system "Xvfb &")
2822 (setenv "DISPLAY" ":0")
2823 #t))
2824 (add-before 'install 'install-ide
2825 (lambda* (#:key outputs #:allow-other-keys)
2826 (let* ((out (assoc-ref outputs "out"))
2827 (ide (assoc-ref outputs "ide"))
2828 (scide "editors/sc-ide/scide"))
2829 (install-file scide
2830 (string-append ide "/bin"))
2831 (delete-file scide)
2832 #t))))))
2833 (native-inputs
2834 `(("ableton-link" ,ableton-link)
2835 ("pkg-config" ,pkg-config)
2836 ("qttools" ,qttools)
2837 ("xorg-server" ,xorg-server-for-tests)))
2838 (inputs
2839 `(("jack" ,jack-1)
2840 ("libsndfile" ,libsndfile)
2841 ("fftw" ,fftw)
2842 ("libxt" ,libxt)
2843 ("readline" ,readline) ;readline support for sclang's CLI
2844 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2845 ("eudev" ,eudev) ;for user interactions with devices
2846 ("avahi" ,avahi) ;zeroconf service discovery support
2847 ("icu4c" ,icu4c)
2848 ("boost" ,boost)
2849 ("boost-sync" ,boost-sync)
2850 ("yaml-cpp" ,yaml-cpp)
2851 ("qtbase" ,qtbase)
2852 ("qtdeclarative" ,qtdeclarative)
2853 ("qtsvg" ,qtsvg)
2854 ("qtwebchannel" ,qtwebchannel)
2855 ("qtwebsockets" ,qtwebsockets)))
2856 (propagated-inputs ;to get native-search-path
2857 `(("qtwebengine" ,qtwebengine)))
2858 (home-page "https://github.com/supercollider/supercollider")
2859 (synopsis "Synthesis engine and programming language")
2860 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2861 @code{supernova}) and programming language (@code{sclang}). It can be used
2862 for experimenting with sound synthesis and algorithmic composition.
2863
2864 SuperCollider requires jackd to be installed in your user profile and your
2865 user must be allowed to access the realtime features of the kernel. Search
2866 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2867 using Guix System.")
2868 (license license:gpl2+)))
2869
2870 (define-public raul
2871 (package
2872 (name "raul")
2873 (version "0.8.0")
2874 (source (origin
2875 (method url-fetch)
2876 (uri (string-append "https://download.drobilla.net/raul-"
2877 version ".tar.bz2"))
2878 (sha256
2879 (base32
2880 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2881 (build-system waf-build-system)
2882 (arguments
2883 `(#:python ,python-2
2884 #:tests? #f)) ; no check target
2885 (inputs
2886 `(("glib" ,glib)
2887 ("boost" ,boost)))
2888 (native-inputs
2889 `(("pkg-config" ,pkg-config)))
2890 (home-page "https://drobilla.net/software/raul/")
2891 (synopsis "Real-time audio utility library")
2892 (description
2893 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2894 aimed at audio/musical applications.")
2895 (license license:gpl2+)))
2896
2897 (define-public raul-devel
2898 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2899 (revision "1"))
2900 (package (inherit raul)
2901 (name "raul")
2902 (version (string-append "0.8.9-" revision "."
2903 (string-take commit 9)))
2904 (source (origin
2905 (method git-fetch)
2906 (uri (git-reference
2907 (url "https://git.drobilla.net/raul.git")
2908 (commit commit)))
2909 (file-name (string-append name "-" version "-checkout"))
2910 (sha256
2911 (base32
2912 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2913
2914 (define-public resample
2915 (package
2916 (name "resample")
2917 (version "1.8.1")
2918 (source (origin
2919 (method url-fetch)
2920 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2921 version
2922 ".tar.gz"))
2923 (sha256 (base32
2924 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2925 (build-system gnu-build-system)
2926 (native-inputs
2927 `(("autoconf" ,autoconf)
2928 ("automake" ,automake)
2929 ("pkg-config" ,pkg-config)
2930 ("libtool" ,libtool)))
2931 (synopsis "Sampling rate conversion and filter design utilities")
2932 (description "This package contains the @command{resample} and
2933 @command{windowfilter} command line utilities. The @command{resample} command
2934 allows changing the sampling rate of a sound file, while the
2935 @command{windowfilter} command allows to design Finite Impulse Response (FIR)
2936 filters using the so-called @emph{window method}.")
2937 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2938 (license license:lgpl2.1+)))
2939
2940 (define-public rubberband
2941 (package
2942 (name "rubberband")
2943 (version "1.8.2")
2944 (source (origin
2945 (method url-fetch)
2946 (uri
2947 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2948 version
2949 ".tar.bz2"))
2950 (file-name (string-append name "-" version ".tar.bz2"))
2951 (sha256
2952 (base32
2953 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2954 (build-system gnu-build-system)
2955 (arguments
2956 `(#:tests? #f ; no check target
2957 #:phases
2958 (modify-phases %standard-phases
2959 (add-after 'unpack 'skip-jni-installation
2960 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2961 ;; which is never built by ‘make all’. Skip it.
2962 (lambda _
2963 (substitute* "Makefile.in"
2964 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2965 #t)))))
2966 (inputs
2967 `(("ladspa" ,ladspa)
2968 ("libsamplerate" ,libsamplerate)
2969 ("vamp" ,vamp)))
2970 (native-inputs
2971 `(("pkg-config" ,pkg-config)))
2972 (home-page "https://breakfastquay.com/rubberband/")
2973 (synopsis "Audio time-stretching and pitch-shifting library")
2974 (description
2975 "Rubber Band is a library and utility program that permits changing the
2976 tempo and pitch of an audio recording independently of one another.")
2977 (license license:gpl2+)))
2978
2979 (define-public rtmidi
2980 (package
2981 (name "rtmidi")
2982 (version "4.0.0")
2983 (source (origin
2984 (method url-fetch)
2985 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2986 "/release/rtmidi-" version ".tar.gz"))
2987 (file-name (string-append "rtmidi-" version ".tar.gz"))
2988 (sha256
2989 (base32
2990 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2991 (build-system gnu-build-system)
2992 (inputs
2993 `(("jack" ,jack-1)
2994 ("alsa-lib" ,alsa-lib)))
2995 (native-inputs
2996 `(("autoconf" ,autoconf)
2997 ("automake" ,automake)
2998 ("libtool" ,libtool)
2999 ("pkg-config" ,pkg-config)))
3000 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3001 (synopsis "Cross-platform MIDI library for C++")
3002 (description
3003 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3004 classes) that provide a common cross-platform API for realtime MIDI
3005 input/output.")
3006 (license license:expat)))
3007
3008 (define-public sratom
3009 (package
3010 (name "sratom")
3011 (version "0.6.4")
3012 (source (origin
3013 (method url-fetch)
3014 (uri (string-append "https://download.drobilla.net/sratom-"
3015 version ".tar.bz2"))
3016 (sha256
3017 (base32
3018 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
3019 (build-system waf-build-system)
3020 (arguments `(#:tests? #f)) ;no check target
3021 (propagated-inputs
3022 ;; In Requires of sratom-0.pc.
3023 `(("lv2" ,lv2)
3024 ("serd" ,serd)
3025 ("sord" ,sord)))
3026 (native-inputs
3027 `(("pkg-config" ,pkg-config)))
3028 (home-page "https://drobilla.net/software/sratom/")
3029 (synopsis "Library for serialising LV2 atoms to/from RDF")
3030 (description
3031 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3032 the Turtle syntax.")
3033 (license license:isc)))
3034
3035 (define-public suil
3036 (package
3037 (name "suil")
3038 (version "0.10.6")
3039 (source (origin
3040 (method url-fetch)
3041 (uri (string-append "https://download.drobilla.net/suil-"
3042 version ".tar.bz2"))
3043 (sha256
3044 (base32
3045 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
3046 (build-system waf-build-system)
3047 (arguments
3048 `(#:tests? #f)) ;no check target
3049 (inputs
3050 `(("lv2" ,lv2)
3051 ("gtk+" ,gtk+-2)
3052 ("gtk+" ,gtk+)
3053 ("qt" ,qtbase)))
3054 (native-inputs
3055 `(("pkg-config" ,pkg-config)))
3056 (home-page "https://drobilla.net/software/suil/")
3057 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3058 (description
3059 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3060
3061 Suil makes it possible to load a UI of a toolkit in a host using another
3062 toolkit. The API is designed such that hosts do not need to explicitly
3063 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3064 that toolkit will work in all hosts that use Suil automatically.
3065
3066 Suil currently supports every combination of Gtk, Qt, and X11.")
3067 (license license:isc)))
3068
3069 (define-public timidity++
3070 (package
3071 (name "timidity++")
3072 (version "2.14.0")
3073 (source (origin
3074 (method url-fetch)
3075 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3076 "/TiMidity++-" version
3077 "/TiMidity++-" version ".tar.bz2"))
3078 (sha256
3079 (base32
3080 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
3081 (build-system gnu-build-system)
3082 (arguments
3083 '(#:configure-flags
3084 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3085 "--enable-ncurses"
3086 "--enable-server"
3087 "--enable-alsaseq"
3088 (string-append "--with-default-path="
3089 (assoc-ref %outputs "out") "/etc/timidity"))
3090 #:phases
3091 (modify-phases %standard-phases
3092 (add-after 'install 'install-config
3093 (lambda _
3094 (let ((out (string-append (assoc-ref %outputs "out")
3095 "/etc/timidity")))
3096 (mkdir-p out)
3097 (call-with-output-file
3098 (string-append out "/timidity.cfg")
3099 (lambda (port)
3100 (format port (string-append "source "
3101 (assoc-ref %build-inputs "freepats")
3102 "/share/freepats/freepats.cfg")))))
3103 #t)))))
3104 (inputs
3105 `(("alsa-lib" ,alsa-lib)
3106 ("ao" ,ao)
3107 ("flac" ,flac)
3108 ("jack" ,jack-1)
3109 ("libogg" ,libogg)
3110 ("libvorbis" ,libvorbis)
3111 ("speex" ,speex)
3112 ("ncurses" ,ncurses)
3113 ("freepats" ,freepats)))
3114 (native-inputs
3115 `(("pkg-config" ,pkg-config)))
3116 (home-page "http://timidity.sourceforge.net/")
3117 (synopsis "Software synthesizer for playing MIDI files")
3118 (description
3119 "TiMidity++ is a software synthesizer. It can play MIDI files by
3120 converting them into PCM waveform data; give it a MIDI data along with digital
3121 instrument data files, then it synthesizes them in real-time, and plays. It
3122 can not only play sounds, but also can save the generated waveforms into hard
3123 disks as various audio file formats.")
3124 (license license:gpl2+)))
3125
3126 (define-public vamp
3127 (package
3128 (name "vamp")
3129 (version "2.6")
3130 (source (origin
3131 (method url-fetch)
3132 (uri (string-append
3133 "https://code.soundsoftware.ac.uk"
3134 "/attachments/download/1520/vamp-plugin-sdk-"
3135 version ".tar.gz"))
3136 (sha256
3137 (base32
3138 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3139 (build-system gnu-build-system)
3140 (arguments
3141 `(#:tests? #f ; no check target
3142 #:phases
3143 (modify-phases %standard-phases
3144 (add-after 'install 'remove-libvamp-hostsdk.la
3145 (lambda* (#:key outputs #:allow-other-keys)
3146 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3147 (for-each delete-file
3148 (let ((out (assoc-ref outputs "out")))
3149 (list (string-append out "/lib/libvamp-sdk.la")
3150 (string-append out "/lib/libvamp-hostsdk.la"))))
3151 #t)))))
3152 (inputs
3153 `(("libsndfile" ,libsndfile)))
3154 (native-inputs
3155 `(("pkg-config" ,pkg-config)))
3156 (home-page "https://vamp-plugins.org")
3157 (synopsis "Modular and extensible audio processing system")
3158 (description
3159 "Vamp is an audio processing plugin system for plugins that extract
3160 descriptive information from audio data — typically referred to as audio
3161 analysis plugins or audio feature extraction plugins.")
3162 (license
3163 (license:x11-style
3164 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3165
3166 (define-public libsbsms
3167 (package
3168 (name "libsbsms")
3169 (version "2.0.2")
3170 (source
3171 (origin
3172 (method url-fetch)
3173 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3174 "/libsbsms-" version ".tar.gz"))
3175 (sha256
3176 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3177 (build-system gnu-build-system)
3178 (native-inputs `(("automake" ,automake)))
3179 (arguments
3180 `(#:configure-flags
3181 ;; Disable the use of SSE unless on x86_64.
3182 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3183 (%current-system))))
3184 ''("--disable-sse")
3185 ''())
3186 #:phases
3187 (modify-phases %standard-phases
3188 (add-after
3189 'unpack 'fix-ar-lib-path
3190 (lambda* (#:key inputs #:allow-other-keys)
3191 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3192 (delete-file "ar-lib")
3193 (symlink
3194 (string-append (assoc-ref inputs "automake") "/share/automake-"
3195 ,(package-version automake) "/ar-lib")
3196 "ar-lib")
3197 #t)))))
3198 (home-page "http://sbsms.sourceforge.net/")
3199 (synopsis "Library for time stretching and pitch scaling of audio")
3200 (description
3201 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3202 stretching and pitch scaling of audio. This package contains the library.")
3203 ;; There is no explicit declaration of a license, but a COPYING file
3204 ;; containing gpl2.
3205 (license license:gpl2)))
3206
3207 (define-public wavpack
3208 (package
3209 (name "wavpack")
3210 (version "5.3.2")
3211 (source
3212 (origin
3213 (method git-fetch)
3214 (uri (git-reference
3215 (url "https://github.com/dbry/WavPack")
3216 (commit "e4e8d191e8dd74cbdbeaef3232c16a7ef517e68d")))
3217 (sha256
3218 (base32 "1zj8svk6giy1abq3940sz32ygz7zldppxl47852zgn5wfm3l2spx"))
3219 (file-name (git-file-name name version))))
3220 (build-system gnu-build-system)
3221 (arguments
3222 '(#:configure-flags
3223 (list "--disable-static")
3224 #:phases
3225 (modify-phases %standard-phases
3226 (replace 'bootstrap
3227 ;; Running ./autogen.sh would cause premature configuration.
3228 (lambda _
3229 (invoke "autoreconf" "-vif")
3230 #t)))))
3231 (native-inputs
3232 `(("autoconf" ,autoconf)
3233 ("automake" ,automake)
3234 ("libtool" ,libtool)))
3235 (home-page "http://www.wavpack.com/")
3236 (synopsis "Hybrid lossless audio codec")
3237 (description
3238 "WavPack is an audio compression format with lossless, lossy and hybrid
3239 compression modes. This package contains command-line programs and library to
3240 encode and decode wavpack files.")
3241 (license license:bsd-3)))
3242
3243 (define-public libmodplug
3244 (package
3245 (name "libmodplug")
3246 (version "0.8.9.0")
3247 (source (origin
3248 (method url-fetch)
3249 (uri (string-append
3250 "mirror://sourceforge/modplug-xmms/"
3251 name "/" version "/" name "-" version ".tar.gz"))
3252 (sha256
3253 (base32
3254 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3255 (build-system gnu-build-system)
3256 (home-page "http://modplug-xmms.sourceforge.net/")
3257 (synopsis "Mod file playing library")
3258 (description
3259 "Libmodplug renders mod music files as raw audio data, for playing or
3260 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3261 supported. Optional features include high-quality resampling, bass expansion,
3262 surround and reverb.")
3263 (license license:public-domain)))
3264
3265 (define-public libxmp
3266 (package
3267 (name "libxmp")
3268 (version "4.4.1")
3269 (source (origin
3270 (method url-fetch)
3271 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3272 name "-" version ".tar.gz"))
3273 (sha256
3274 (base32
3275 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3276 (build-system gnu-build-system)
3277 (home-page "http://xmp.sourceforge.net/")
3278 (synopsis "Module player library")
3279 (description
3280 "Libxmp is a library that renders module files to PCM data. It supports
3281 over 90 mainstream and obscure module formats including Protracker (MOD),
3282 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3283 (license license:lgpl2.1+)))
3284
3285 (define-public xmp
3286 (package
3287 (name "xmp")
3288 (version "4.1.0")
3289 (source (origin
3290 (method url-fetch)
3291 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3292 name "-" version ".tar.gz"))
3293 (sha256
3294 (base32
3295 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3296 (build-system gnu-build-system)
3297 (native-inputs
3298 `(("pkg-config" ,pkg-config)))
3299 (inputs
3300 `(("libxmp" ,libxmp)
3301 ("pulseaudio" ,pulseaudio)))
3302 (home-page "http://xmp.sourceforge.net/")
3303 (synopsis "Extended module player")
3304 (description
3305 "Xmp is a portable module player that plays over 90 mainstream and
3306 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3307 Tracker 3 S3M and Impulse Tracker IT files.")
3308 (license license:gpl2+)))
3309
3310 (define-public soundtouch
3311 (package
3312 (name "soundtouch")
3313 (version "2.1.2")
3314 (source
3315 (origin
3316 (method git-fetch)
3317 (uri (git-reference
3318 (url "https://gitlab.com/soundtouch/soundtouch.git")
3319 (commit version)))
3320 (file-name (git-file-name name version))
3321 (sha256
3322 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
3323 (build-system gnu-build-system)
3324 (native-inputs
3325 `(("autoconf" ,autoconf)
3326 ("automake" ,automake)
3327 ("libtool" ,libtool)
3328 ("file" ,file)))
3329 (home-page "https://www.surina.net/soundtouch/")
3330 (synopsis
3331 "Audio processing library for changing tempo, pitch and playback rate")
3332 (description
3333 "SoundTouch is an audio processing library for changing the tempo, pitch
3334 and playback rates of audio streams or audio files. It is intended for
3335 application developers writing sound processing tools that require tempo/pitch
3336 control functionality, or just for playing around with the sound effects.")
3337 (license license:lgpl2.1+)))
3338
3339 (define-public sox
3340 (package
3341 (name "sox")
3342 (version "14.4.2")
3343 (source (origin
3344 (method url-fetch)
3345 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3346 name "-" version ".tar.bz2"))
3347 (sha256
3348 (base32
3349 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3350 (build-system gnu-build-system)
3351 (arguments
3352 '(#:configure-flags
3353 ;; The upstream asks to identify the distribution to diagnose SoX
3354 ;; bug reports.
3355 '("--with-distro=Guix System Distribution")))
3356 (native-inputs
3357 `(("pkg-config" ,pkg-config)))
3358 (inputs
3359 `(("alsa-lib" ,alsa-lib)
3360 ("ao" ,ao)
3361 ("flac" ,flac)
3362 ("lame" ,lame)
3363 ("libid3tag" ,libid3tag)
3364 ("libltdl" ,libltdl)
3365 ("libmad" ,libmad)
3366 ("libpng" ,libpng)
3367 ("libvorbis" ,libvorbis)
3368 ("pulseaudio" ,pulseaudio)))
3369 (home-page "http://sox.sourceforge.net")
3370 (synopsis "Sound processing utility")
3371 (description
3372 "SoX (Sound eXchange) is a command line utility that can convert
3373 various formats of computer audio files to other formats. It can also
3374 apply various effects to these sound files, and, as an added bonus, SoX
3375 can play and record audio files.")
3376 ;; sox.c is distributed under GPL, while the files that make up
3377 ;; libsox are licensed under LGPL.
3378 (license (list license:gpl2+ license:lgpl2.1+))))
3379
3380 (define-public soxr
3381 (package
3382 (name "soxr")
3383 (version "0.1.3")
3384 (source
3385 (origin
3386 (method url-fetch)
3387 (uri
3388 (string-append "mirror://sourceforge/soxr/soxr-" version
3389 "-Source.tar.xz"))
3390 (sha256
3391 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3392 (build-system cmake-build-system)
3393 (arguments '(#:tests? #f)) ;no 'check' target
3394 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3395 (synopsis "One-dimensional sample-rate conversion library")
3396 (description
3397 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3398 conversion. It may be used, for example, to resample PCM-encoded audio.")
3399 (license license:lgpl2.1+)))
3400
3401 (define-public twolame
3402 (package
3403 (name "twolame")
3404 (version "0.4.0")
3405 (source
3406 (origin
3407 (method url-fetch)
3408 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3409 "/twolame-" version ".tar.gz"))
3410 (sha256
3411 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3412 (build-system gnu-build-system)
3413 (inputs
3414 `(("libsndfile" ,libsndfile)))
3415 (native-inputs
3416 `(("perl" ,perl)
3417 ("which" ,which))) ;used in tests/test.pl
3418 (home-page "http://www.twolame.org/")
3419 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3420 (description
3421 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3422 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3423 portions of LAME.")
3424 (license license:lgpl2.1+)))
3425
3426 (define-public portaudio
3427 (package
3428 (name "portaudio")
3429 (version "190600.20161030")
3430 (source
3431 (origin
3432 (method url-fetch)
3433 (uri (string-append
3434 "http://www.portaudio.com/archives/pa_stable_v"
3435 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3436 ".tgz"))
3437 (sha256
3438 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3439 (patches (search-patches "portaudio-audacity-compat.patch"))))
3440 (build-system gnu-build-system)
3441 (inputs
3442 ;; TODO: Add ASIHPI.
3443 `(("alsa-lib" ,alsa-lib)
3444 ("jack" ,jack-1)))
3445 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3446 ;; files.
3447 (native-inputs
3448 `(("autoconf" ,autoconf)
3449 ("automake" ,automake)
3450 ("libtool" ,libtool)
3451 ("pkg-config" ,pkg-config)))
3452 (arguments
3453 '(#:tests? #f ;no 'check' target
3454 #:parallel-build? #f ;fails on some systems
3455 #:configure-flags '("--with-pic"
3456 "--enable-cxx"
3457 ;; XXX: The following prevents a build error
3458 ;; because of missing depcomp when C++ bindings are
3459 ;; requested.
3460 "--disable-dependency-tracking")
3461 #:phases
3462 (modify-phases %standard-phases
3463 ;; This is needed for linking the static libraries
3464 (add-after 'unpack 'build-only-position-independent-code
3465 (lambda _
3466 (substitute* "configure.in"
3467 (("AC_PROG_LIBTOOL" m)
3468 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3469 (delete-file "configure")
3470 #t))
3471 ;; Some headers are not installed by default, but are needed by
3472 ;; packages like Kaldi.
3473 (add-after 'install 'install-missing-headers
3474 (lambda* (#:key outputs #:allow-other-keys)
3475 (install-file "src/common/pa_ringbuffer.h"
3476 (string-append (assoc-ref outputs "out") "/include"))
3477 #t)))))
3478 (home-page "http://www.portaudio.com/")
3479 (synopsis "Audio I/O library")
3480 (description
3481 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3482 to record and/or play sound using a callback function or a blocking read/write
3483 interface.")
3484 (license license:expat)))
3485
3486 (define-public qsynth
3487 (package
3488 (name "qsynth")
3489 (version "0.5.7")
3490 (source
3491 (origin
3492 (method url-fetch)
3493 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
3494 "/qsynth-" version ".tar.gz"))
3495 (sha256
3496 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3497 (build-system gnu-build-system)
3498 (arguments
3499 `(#:tests? #f)) ; no "check" phase
3500 (native-inputs
3501 `(("qttools" ,qttools)
3502 ("pkg-config" ,pkg-config)))
3503 (inputs
3504 `(("fluidsynth" ,fluidsynth)
3505 ("qtbase" ,qtbase)
3506 ("qtx11extras" ,qtx11extras)))
3507 (home-page "https://qsynth.sourceforge.io")
3508 (synopsis "Graphical user interface for FluidSynth")
3509 (description
3510 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3511 synthesizer written in C++.")
3512 (license license:gpl2+)))
3513
3514 (define-public rsound
3515 (package
3516 (name "rsound")
3517 (version "1.1")
3518 (source
3519 (origin
3520 (method git-fetch)
3521 (uri (git-reference
3522 (url "https://github.com/Themaister/RSound")
3523 (commit (string-append "v" version))))
3524 (file-name (git-file-name name version))
3525 (sha256
3526 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3527 (build-system gnu-build-system)
3528 (inputs
3529 `(("alsa-lib" ,alsa-lib)
3530 ("jack" ,jack-1)
3531 ("ao" ,ao)
3532 ("libsamplerate" ,libsamplerate)
3533 ("openal" ,openal)
3534 ("portaudio" ,portaudio)
3535 ("pulseaudio" ,pulseaudio)))
3536 (arguments
3537 '(#:phases
3538 (modify-phases %standard-phases
3539 (replace 'configure
3540 (lambda* (#:key outputs #:allow-other-keys)
3541 (setenv "CC" "gcc")
3542 (invoke "./configure"
3543 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3544 ;; No 'check' target.
3545 #:tests? #f))
3546 (home-page "https://themaister.net/rsound.html")
3547 (synopsis "Networked audio system")
3548 (description
3549 "RSound allows you to send audio from an application and transfer it
3550 directly to a different computer on your LAN network. It is an audio daemon
3551 with a much different focus than most other audio daemons.")
3552 (license license:gpl3+)))
3553
3554 (define-public xjackfreak
3555 (package
3556 (name "xjackfreak")
3557 (version "1.0")
3558 (source (origin
3559 (method git-fetch)
3560 (uri (git-reference
3561 (url "https://github.com/johnhldavis/xjackfreak")
3562 (commit (string-append "v" version))))
3563 (file-name (git-file-name name version))
3564 (sha256
3565 (base32
3566 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3567 (build-system gnu-build-system)
3568 (arguments
3569 `(#:make-flags
3570 (list (string-append "docdir=" (assoc-ref %outputs "out")
3571 "/share/doc/xjackfreak"))))
3572 (inputs
3573 `(("jack" ,jack-1)
3574 ("libx11" ,libx11)
3575 ("libxt" ,libxt)
3576 ("libxext" ,libxext)))
3577 (native-inputs
3578 `(("pkg-config" ,pkg-config)))
3579 (home-page "https://github.com/johnhldavis/xjackfreak")
3580 (synopsis "JACK audio frequency analyzer and display")
3581 (description
3582 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3583 Connection Kit. It can display the FFT of any input, modify it and output the
3584 result.")
3585 (license license:gpl3+)))
3586
3587 (define-public zita-convolver
3588 (package
3589 (name "zita-convolver")
3590 (version "4.0.3")
3591 (source (origin
3592 (method url-fetch)
3593 (uri (string-append
3594 "http://kokkinizita.linuxaudio.org"
3595 "/linuxaudio/downloads/zita-convolver-"
3596 version ".tar.bz2"))
3597 (snippet
3598 ;; Don't optimize for a specific processor architecture.
3599 '(begin
3600 (substitute* "source/Makefile"
3601 (("^CXXFLAGS \\+= -march=native") ""))
3602 #t))
3603 (modules '((guix build utils)))
3604 (sha256
3605 (base32
3606 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3607 (build-system gnu-build-system)
3608 (arguments
3609 `(#:tests? #f ; no "check" target
3610 #:make-flags
3611 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3612 (string-append "SUFFIX="))
3613 #:phases
3614 (modify-phases %standard-phases
3615 (add-after 'unpack 'patch-makefile-and-enter-directory
3616 (lambda _
3617 (substitute* "source/Makefile"
3618 (("ldconfig") "true")
3619 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3620 (chdir "source")
3621 #t))
3622 (add-after 'install 'install-symlink
3623 (lambda _
3624 (symlink "libzita-convolver.so"
3625 (string-append (assoc-ref %outputs "out")
3626 "/lib/libzita-convolver.so.4"))
3627 #t))
3628 ;; no configure script
3629 (delete 'configure))))
3630 (inputs `(("fftwf" ,fftwf)))
3631 (home-page "https://kokkinizita.linuxaudio.org")
3632 (synopsis "Fast, partitioned convolution engine library")
3633 (description
3634 "Zita convolver is a C++ library providing a real-time convolution
3635 engine.")
3636 (license license:gpl3+)))
3637
3638 (define-public zita-resampler
3639 (package
3640 (name "zita-resampler")
3641 (version "1.6.2")
3642 (source (origin
3643 (method url-fetch)
3644 (uri (string-append
3645 "http://kokkinizita.linuxaudio.org"
3646 "/linuxaudio/downloads/zita-resampler-"
3647 version ".tar.bz2"))
3648 (snippet
3649 ;; Don't optimize for a specific processor architecture.
3650 '(begin
3651 (substitute* '("apps/Makefile" "source/Makefile")
3652 (("^CXXFLAGS \\+= -march=native") ""))
3653 #t))
3654 (modules '((guix build utils)))
3655 (sha256
3656 (base32
3657 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3658 (build-system gnu-build-system)
3659 (arguments
3660 `(#:tests? #f ; no "check" target
3661 #:make-flags
3662 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3663 (string-append "SUFFIX="))
3664 #:phases
3665 (modify-phases %standard-phases
3666 (add-after
3667 'unpack 'patch-makefile-and-enter-directory
3668 (lambda _
3669 (substitute* "source/Makefile"
3670 (("ldconfig") "true")
3671 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3672 (chdir "source")
3673 #t))
3674 (add-after
3675 'install 'install-symlink
3676 (lambda _
3677 (symlink "libzita-resampler.so"
3678 (string-append (assoc-ref %outputs "out")
3679 "/lib/libzita-resampler.so.1"))
3680 #t))
3681 ;; no configure script
3682 (delete 'configure))))
3683 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3684 (synopsis "C++ library for resampling audio signals")
3685 (description
3686 "Libzita-resampler is a C++ library for resampling audio signals. It is
3687 designed to be used within a real-time processing context, to be fast, and to
3688 provide high-quality sample rate conversion.")
3689 (license license:gpl3+)))
3690
3691 (define-public zita-alsa-pcmi
3692 (package
3693 (name "zita-alsa-pcmi")
3694 (version "0.3.2")
3695 (source (origin
3696 (method url-fetch)
3697 (uri (string-append
3698 "http://kokkinizita.linuxaudio.org"
3699 "/linuxaudio/downloads/zita-alsa-pcmi-"
3700 version ".tar.bz2"))
3701 (sha256
3702 (base32
3703 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3704 (build-system gnu-build-system)
3705 (arguments
3706 `(#:tests? #f ; no "check" target
3707 #:make-flags
3708 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3709 (string-append "SUFFIX="))
3710 #:phases
3711 (modify-phases %standard-phases
3712 (add-after 'unpack 'patch-makefile-and-enter-directory
3713 (lambda _
3714 (substitute* "source/Makefile"
3715 (("ldconfig") "true")
3716 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3717 (chdir "source")
3718 #t))
3719 (add-after 'install 'install-symlink
3720 (lambda _
3721 (symlink "libzita-alsa-pcmi.so"
3722 (string-append (assoc-ref %outputs "out")
3723 "/lib/libzita-alsa-pcmi.so.0"))
3724 #t))
3725 ;; no configure script
3726 (delete 'configure))))
3727 (inputs
3728 `(("alsa-lib" ,alsa-lib)
3729 ("fftw" ,fftw)))
3730 (home-page "https://kokkinizita.linuxaudio.org")
3731 (synopsis "C++ wrapper around the ALSA API")
3732 (description
3733 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3734 access to ALSA PCM devices, taking care of the many functions required to
3735 open, initialise and use a hw: device in mmap mode, and providing floating
3736 point audio data.")
3737 (license license:gpl3+)))
3738
3739 (define-public cuetools
3740 (package
3741 (name "cuetools")
3742 (version "1.4.1")
3743 (source (origin
3744 (method git-fetch)
3745 (uri (git-reference
3746 (url "https://github.com/svend/cuetools")
3747 (commit version)))
3748 (file-name (git-file-name name version))
3749 (sha256
3750 (base32
3751 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3752 (build-system gnu-build-system)
3753 ;; The source checkout is not bootstrapped.
3754 (native-inputs
3755 `(("autoconf" ,autoconf)
3756 ("automake" ,automake)
3757 ("flex" ,flex)
3758 ("bison" ,bison)))
3759 (synopsis "Cue and toc file parsers and utilities")
3760 (description "Cuetools is a set of programs that are useful for manipulating
3761 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3762 files are a way to represent the layout of a data or audio CD in a
3763 machine-readable ASCII format.")
3764 (home-page "https://github.com/svend/cuetools")
3765 (license license:gpl2+)))
3766
3767 (define-public shntool
3768 (package
3769 (name "shntool")
3770 (version "3.0.10")
3771 (source (origin
3772 (method url-fetch)
3773 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3774 "shntool-" version ".tar.gz"))
3775 (sha256
3776 (base32
3777 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3778 (build-system gnu-build-system)
3779 (synopsis "WAVE audio data processing tool")
3780 (description "shntool is a multi-purpose WAVE data processing and reporting
3781 utility. File formats are abstracted from its core, so it can process any file
3782 that contains WAVE data, compressed or not---provided there exists a format
3783 module to handle that particular file type. It can also generate CUE files, and
3784 use them split WAVE data into multiple files.")
3785 (home-page "http://etree.org/shnutils/shntool/")
3786 ;; 'install-sh' bears the x11 license
3787 (license (list license:gpl2+ license:x11))))
3788
3789 (define-public dcadec
3790 (package
3791 (name "dcadec")
3792 (version "0.2.0")
3793 (source (origin
3794 (method git-fetch)
3795 (uri (git-reference
3796 (url "https://github.com/foo86/dcadec")
3797 (commit (string-append "v" version))))
3798 (file-name (git-file-name name version))
3799 (sha256
3800 (base32
3801 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3802 (build-system gnu-build-system)
3803 (arguments
3804 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3805 '(#:tests? #f
3806 #:make-flags
3807 (list "CC=gcc"
3808 ;; Build shared library.
3809 "CONFIG_SHARED=1"
3810 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3811 ;; Set proper runpath.
3812 (string-append "LDFLAGS=-Wl,-rpath="
3813 (assoc-ref %outputs "out")
3814 "/lib"))
3815 #:phases
3816 (modify-phases %standard-phases
3817 ;; No configure script, just a hand-written Makefile.
3818 (delete 'configure))))
3819 (synopsis "DTS Coherent Acoustics decoder")
3820 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3821 with support for HD extensions.")
3822 (home-page "https://github.com/foo86/dcadec")
3823 (license license:lgpl2.1+)))
3824
3825 (define-public bs1770gain
3826 (package
3827 (name "bs1770gain")
3828 (version "0.7.0")
3829 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3830 (source
3831 (origin
3832 (method url-fetch)
3833 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3834 version "/bs1770gain-" version ".tar.gz"))
3835 (sha256
3836 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3837 (modules '((guix build utils)))
3838 (snippet
3839 `(begin
3840 ;; XXX
3841 (substitute* (find-files "." "\\.[ch]$")
3842 (("^ \\* N..o.*") ""))
3843 (substitute* "libbg/bgx.c"
3844 (("#define BG.* ") "#define BS ")
3845 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3846 (("\"( #|N).*\"") "\"\""))
3847 (substitute* (list "config.h"
3848 "configure.ac"
3849 "configure")
3850 (("https?://bs1770gain[^/]*/")
3851 ,home-page))
3852 #t))))
3853 (build-system gnu-build-system)
3854 (inputs `(("ffmpeg" ,ffmpeg)
3855 ("sox" ,sox)))
3856 (synopsis "Tool to adjust loudness of media files")
3857 (description
3858 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3859 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3860 loudness of audio and video files to the same level.")
3861 (license license:gpl2+)))
3862
3863 (define-public filteraudio
3864 (let ((revision "1")
3865 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3866 (package
3867 (name "filteraudio")
3868 (version (string-append "0.0.0-" revision "."
3869 (string-take commit 7)))
3870 (source
3871 (origin
3872 (method git-fetch)
3873 (uri (git-reference
3874 (url "https://github.com/irungentoo/filter_audio")
3875 (commit commit)))
3876 (file-name (string-append name "-" version "-checkout"))
3877 (sha256
3878 (base32
3879 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3880 (build-system gnu-build-system)
3881 (arguments
3882 '(#:make-flags (list (string-append "PREFIX=" %output)
3883 "CC=gcc")
3884 #:tests? #f ; No tests
3885 #:phases
3886 (modify-phases %standard-phases
3887 ;; No configure script
3888 (delete 'configure))))
3889 (synopsis "Lightweight audio filtering library")
3890 (description "An easy to use audio filtering library made from webrtc
3891 code, used in @code{libtoxcore}.")
3892 (home-page "https://github.com/irungentoo/filter_audio")
3893 (license license:bsd-3))))
3894
3895 (define-public gsm
3896 (package
3897 (name "gsm")
3898 (version "1.0.19")
3899 (source
3900 (origin
3901 (method url-fetch)
3902 (uri
3903 (string-append "http://www.quut.com/" name "/" name
3904 "-" version ".tar.gz"))
3905 (sha256
3906 (base32
3907 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3908 (build-system gnu-build-system)
3909 (arguments
3910 `(#:test-target "tst"
3911 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3912 #:phases
3913 (modify-phases %standard-phases
3914 (add-after 'unpack 'add-fpic-ccflag
3915 (lambda _
3916 ;; The -fPIC compiler option is needed when building
3917 ;; mediastreamer.
3918 (substitute* "Makefile"
3919 (("^CCFLAGS.*" all)
3920 (string-append all "CCFLAGS += -fPIC\n")))
3921 #t))
3922 (add-before 'install 'pre-install
3923 (lambda _
3924 (let ((out (assoc-ref %outputs "out")))
3925 (mkdir-p (string-append out "/inc"))
3926 (mkdir-p (string-append out "/man"))
3927 (mkdir-p (string-append out "/man/man1"))
3928 (mkdir-p (string-append out "/man/man3"))
3929 (mkdir-p (string-append out "/bin"))
3930 (mkdir-p (string-append out "/lib")))
3931 #t))
3932 (add-after 'install 'post-install
3933 (lambda _
3934 (let ((out (assoc-ref %outputs "out")))
3935 (rename-file (string-append out "/inc")
3936 (string-append out "/include"))
3937 (mkdir-p (string-append out "/include/gsm"))
3938 (copy-recursively "inc"
3939 (string-append out "/include/gsm")))
3940 #t))
3941 (delete 'configure)))) ; no configure script
3942 (synopsis "GSM 06.10 lossy speech compression library")
3943 (description "This C library provides an encoder and a decoder for the GSM
3944 06.10 RPE-LTP lossy speech compression algorithm.")
3945 (home-page "http://quut.com/gsm/")
3946 (license (license:non-copyleft "file://COPYRIGHT"))))
3947
3948 (define-public python-pyalsaaudio
3949 (package
3950 (name "python-pyalsaaudio")
3951 (version "0.8.4")
3952 (source (origin
3953 (method url-fetch)
3954 (uri (pypi-uri "pyalsaaudio" version))
3955 (sha256
3956 (base32
3957 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3958 (build-system python-build-system)
3959 (arguments
3960 `(#:tests? #f)) ; tests require access to ALSA devices.
3961 (inputs
3962 `(("alsa-lib" ,alsa-lib)))
3963 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3964 (synopsis "ALSA wrappers for Python")
3965 (description
3966 "This package contains wrappers for accessing the ALSA API from Python.
3967 It is currently fairly complete for PCM devices, and has some support for
3968 mixers.")
3969 (license license:psfl)))
3970
3971 (define-public python2-pyalsaaudio
3972 (package-with-python2 python-pyalsaaudio))
3973
3974 (define-public bluez-alsa
3975 (package
3976 (name "bluez-alsa")
3977 (version "2.0.0")
3978 (source (origin
3979 ;; The tarballs are mere snapshots and don't contain a
3980 ;; bootstrapped build system.
3981 (method git-fetch)
3982 (uri (git-reference
3983 (url "https://github.com/Arkq/bluez-alsa")
3984 (commit (string-append "v" version))))
3985 (file-name (git-file-name name version))
3986 (sha256
3987 (base32
3988 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3989 (build-system gnu-build-system)
3990 (arguments
3991 `(#:configure-flags
3992 (list (string-append "--with-alsaplugindir="
3993 (assoc-ref %outputs "out")
3994 "/lib/alsa-lib")
3995 (string-append "--with-dbusconfdir="
3996 (assoc-ref %outputs "out")
3997 "/etc/dbus-1/system.d"))))
3998 (native-inputs
3999 `(("autoconf" ,autoconf)
4000 ("automake" ,automake)
4001 ("libtool" ,libtool)
4002 ("pkg-config" ,pkg-config)))
4003 (inputs
4004 `(("alsa-lib" ,alsa-lib)
4005 ("bluez" ,bluez)
4006 ("dbus" ,dbus)
4007 ("glib" ,glib)
4008 ("libbsd" ,libbsd)
4009 ("ncurses" ,ncurses)
4010 ("ortp" ,ortp)
4011 ("sbc" ,sbc)))
4012 (home-page "https://github.com/Arkq/bluez-alsa")
4013 (synopsis "Bluetooth ALSA backend")
4014 (description "This project is a rebirth of a direct integration between
4015 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
4016 in favor of 3rd party audio applications. From now on, Bluez acts as a
4017 middleware between an audio application, which implements Bluetooth audio
4018 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4019 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4020 capabilities) can be connected. In order to access the audio stream, one has
4021 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4022 on the ALSA software PCM plugin.")
4023 (license license:expat)))
4024
4025 (define-public snd
4026 (package
4027 (name "snd")
4028 (version "20.7")
4029 (source (origin
4030 (method url-fetch)
4031 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4032 "snd-" version ".tar.gz"))
4033 (sha256
4034 (base32
4035 "1kd422krz8ln4m8g3p14wfplcq8lgpzly9297rpbvyc94dc6sdwj"))))
4036 (build-system glib-or-gtk-build-system)
4037 (arguments
4038 `(#:tests? #f ; no tests
4039 #:out-of-source? #f ; for the 'install-doc' phase
4040 #:configure-flags
4041 (let* ((out (assoc-ref %outputs "out"))
4042 (docdir (string-append out "/share/doc/"
4043 ,name "-" ,version)))
4044 (list "--with-alsa" "--with-jack" "--with-gmp"
4045 (string-append "--with-doc-dir=" docdir)))
4046 #:phases
4047 (modify-phases %standard-phases
4048 (add-after 'install 'install-doc
4049 (lambda* (#:key outputs #:allow-other-keys)
4050 (let* ((out (assoc-ref outputs "out"))
4051 (doc (string-append out "/share/doc/"
4052 ,name "-" ,version)))
4053 (for-each
4054 (lambda (f)
4055 (install-file f doc))
4056 (find-files "." "\\.html$"))
4057 (copy-recursively "pix" (string-append doc "/pix"))
4058 #t))))))
4059 (native-inputs
4060 `(("pkg-config" ,pkg-config)))
4061 (inputs
4062 `(("alsa-lib" ,alsa-lib)
4063 ("fftw" ,fftw)
4064 ("flac" ,flac)
4065 ("gmp" ,gmp)
4066 ("gsl" ,gsl)
4067 ("gtk+" ,gtk+)
4068 ("jack" ,jack-1)
4069 ("libsamplerate" ,libsamplerate)
4070 ("mpc" ,mpc)
4071 ("mpfr" ,mpfr)
4072 ("mpg123" ,mpg123)
4073 ("speex" ,speex)
4074 ("timidity++" ,timidity++)
4075 ("vorbis-tools" ,vorbis-tools)
4076 ("wavpack" ,wavpack)))
4077 (synopsis "Sound editor")
4078 (home-page "https://ccrma.stanford.edu/software/snd/")
4079 (description
4080 "Snd is a sound editor modelled loosely after Emacs. It can be
4081 customized and extended using either the s7 Scheme implementation (included in
4082 the Snd sources), Ruby, or Forth.")
4083 (license (license:non-copyleft "file://COPYING"))))
4084
4085 (define-public noise-repellent
4086 (package
4087 (name "noise-repellent")
4088 (version "0.1.5")
4089 (source (origin
4090 (method git-fetch)
4091 (uri (git-reference
4092 (url "https://github.com/lucianodato/noise-repellent")
4093 (commit version)))
4094 (file-name (string-append name "-" version "-checkout"))
4095 (sha256
4096 (base32
4097 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4098 (build-system meson-build-system)
4099 (arguments
4100 `(#:configure-flags
4101 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4102 "/lib/lv2"))))
4103 (inputs
4104 `(("lv2" ,lv2)
4105 ("fftwf" ,fftwf)))
4106 (native-inputs
4107 `(("pkg-config" ,pkg-config)))
4108 (home-page "https://github.com/lucianodato/noise-repellent")
4109 (synopsis "LV2 plugin for broadband noise reduction")
4110 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4111 the following features:
4112
4113 @enumerate
4114 @item Spectral gating and spectral subtraction suppression rule
4115 @item Adaptive and manual noise thresholds estimation
4116 @item Adjustable noise floor
4117 @item Adjustable offset of thresholds to perform over-subtraction
4118 @item Time smoothing and a masking estimation to reduce artifacts
4119 @item Basic onset detector to avoid transients suppression
4120 @item Whitening of the noise floor to mask artifacts and to recover higher
4121 frequencies
4122 @item Option to listen to the residual signal
4123 @item Soft bypass
4124 @item Noise profile saved with the session
4125 @end enumerate
4126 ")
4127 (license license:lgpl3+)))
4128
4129 (define-public cli-visualizer
4130 (package
4131 (name "cli-visualizer")
4132 (version "1.8")
4133 (source
4134 (origin
4135 (method git-fetch)
4136 (uri (git-reference
4137 (url "https://github.com/dpayne/cli-visualizer")
4138 (commit (string-append "v" version))))
4139 (file-name (git-file-name name version))
4140 (sha256
4141 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4142 (build-system cmake-build-system)
4143 (native-inputs
4144 ;; TODO: Try using the latest googletest for versions > 1.8.
4145 `( ;; ("googletest" ,googletest-1.8)
4146 ("which" ,which)))
4147 (inputs
4148 `(("fftw" ,fftw)
4149 ("ncurses" ,ncurses)
4150 ("pulseaudio" ,pulseaudio)))
4151 (arguments
4152 '(#:tests? #f
4153 ;; XXX Enable tests after patching them to use the system googletest.
4154 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4155 #:phases
4156 (modify-phases %standard-phases
4157 (add-after 'install 'install-examples
4158 (lambda* (#:key outputs #:allow-other-keys)
4159 (with-directory-excursion "../source/examples"
4160 (delete-file "mac_osx_config")
4161 (for-each (lambda (file)
4162 (install-file file
4163 (string-append
4164 (assoc-ref outputs "out")
4165 "/share/doc")))
4166 (find-files ".")))
4167 #t)))))
4168 (home-page "https://github.com/dpayne/cli-visualizer/")
4169 (synopsis "Command-line audio visualizer")
4170 (description "@code{cli-visualizer} displays fast-Fourier
4171 transforms (FFTs) of the sound being played, as well as other graphical
4172 representations.")
4173 (license license:expat)))
4174
4175 (define-public cava
4176 (package
4177 (name "cava")
4178 (version "0.6.1")
4179 (source (origin
4180 (method git-fetch)
4181 (uri (git-reference
4182 (url "https://github.com/karlstav/cava")
4183 (commit version)))
4184 (file-name (git-file-name name version))
4185 (sha256
4186 (base32
4187 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
4188 (build-system gnu-build-system)
4189 (native-inputs
4190 `(("autoconf" ,autoconf)
4191 ("automake" ,automake)
4192 ("libtool" ,libtool)))
4193 (inputs
4194 `(("fftw" ,fftw)
4195 ("ncurses" ,ncurses)
4196 ("pulseaudio" ,pulseaudio)))
4197 (arguments
4198 `(#:configure-flags
4199 (list (string-append "PREFIX=" %output)
4200 (string-append "FONT_DIR=" %output "/share/consolefonts"))
4201 #:make-flags
4202 (let ((lib (string-append %output "/lib")))
4203 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
4204 #:phases
4205 (modify-phases %standard-phases
4206 (replace 'bootstrap
4207 (lambda* (#:key outputs #:allow-other-keys)
4208 (setenv "HOME" (getcwd))
4209 (invoke "sh" "autogen.sh")))
4210 (add-before 'build 'make-cava-ldflags
4211 (lambda* (#:key outputs #:allow-other-keys)
4212 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
4213 #t))
4214 (add-after 'install 'data
4215 (lambda* (#:key outputs #:allow-other-keys)
4216 (for-each (lambda (file)
4217 (install-file file
4218 (string-append (assoc-ref outputs "out")
4219 "/share/doc/examples")))
4220 (find-files "example_files"))
4221 #t)))))
4222 (home-page "https://karlstav.github.io/cava/")
4223 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4224 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4225 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4226 (license license:expat)))
4227
4228 (define-public fluid-3
4229 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4230 (package
4231 (name "fluid-3")
4232 (version "2.1")
4233 (source
4234 (origin
4235 (method url-fetch)
4236 ;; Only one file is required, but the release bundles the whole
4237 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4238 ;; directly links the soundfont release to the github file download.
4239 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4240 commit "/share/sound/FluidR3Mono_GM.sf3"))
4241 (file-name (string-append name "-" version ".sf3"))
4242 (sha256
4243 (base32
4244 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4245 (build-system trivial-build-system)
4246 (arguments
4247 `(#:modules ((guix build utils))
4248 #:builder
4249 (begin
4250 (use-modules (guix build utils))
4251 (let ((file (assoc-ref %build-inputs "source"))
4252 (out (string-append %output "/share/soundfonts")))
4253 (mkdir-p out)
4254 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4255 #t))))
4256 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4257 (synopsis "Pro-quality GM soundfont")
4258 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4259 (license license:expat))))
4260
4261 (define-public libfdk
4262 (package
4263 (name "libfdk")
4264 (version "2.0.1")
4265 (source
4266 (origin
4267 (method git-fetch)
4268 (uri (git-reference
4269 (url "https://github.com/mstorsjo/fdk-aac")
4270 (commit (string-append "v" version))))
4271 (file-name (git-file-name name version))
4272 (sha256
4273 (base32
4274 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4275 (build-system gnu-build-system)
4276 (native-inputs
4277 `(("autoconf" ,autoconf)
4278 ("automake" ,automake)
4279 ("libtool" ,libtool)))
4280 (home-page "https://github.com/mstorsjo/fdk-aac")
4281 (synopsis "Fraunhofer FDK AAC library")
4282 (description "FDK is a library for encoding and decoding Advanced Audio
4283 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4284 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4285 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4286 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4287 library supports sample rates up to 96 kHz and up to eight channels (7.1
4288 surround).")
4289 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4290 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4291
4292 (define-public libopenshot-audio
4293 (package
4294 (name "libopenshot-audio")
4295 (version "0.2.0")
4296 (source (origin
4297 (method git-fetch)
4298 (uri (git-reference
4299 (url "https://github.com/OpenShot/libopenshot-audio")
4300 (commit (string-append "v" version))))
4301 (file-name (git-file-name name version))
4302 (sha256
4303 (base32
4304 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
4305 (build-system cmake-build-system)
4306 (inputs
4307 `(("alsa-lib" ,alsa-lib)
4308 ;; The following are for JUCE GUI components:
4309 ("libx11" ,libx11)
4310 ("freetype" ,freetype)
4311 ("libxrandr" ,libxrandr)
4312 ("libxinerama" ,libxinerama)
4313 ("libxcursor" ,libxcursor)))
4314 (arguments
4315 `(#:tests? #f ;there are no tests
4316 #:configure-flags
4317 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4318 (assoc-ref %build-inputs "freetype")
4319 "/include/freetype2"))))
4320 (home-page "https://openshot.org")
4321 (synopsis "Audio editing and playback for OpenShot")
4322 (description "OpenShot Audio Library (libopenshot-audio) allows
4323 high-quality editing and playback of audio, and is based on the JUCE
4324 library.")
4325 (license license:lgpl3+)))
4326
4327 (define-public faudio
4328 (package
4329 (name "faudio")
4330 (version "19.11")
4331 (source
4332 (origin
4333 (method git-fetch)
4334 (uri (git-reference
4335 (url "https://github.com/FNA-XNA/FAudio")
4336 (commit version)))
4337 (file-name (git-file-name name version))
4338 (sha256
4339 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
4340 (arguments
4341 '(#:tests? #f ; No tests.
4342 #:configure-flags '("-DFFMPEG=ON")))
4343 (build-system cmake-build-system)
4344 (native-inputs `(("pkg-config" ,pkg-config)))
4345 (inputs `(("ffmpeg" ,ffmpeg)
4346 ("sdl2" ,sdl2)))
4347 (home-page "https://github.com/FNA-XNA/FAudio")
4348 (synopsis "XAudio reimplementation")
4349 (description "FAudio is an XAudio reimplementation that focuses solely on
4350 developing fully accurate DirectX Audio runtime libraries.")
4351 (license license:zlib)))
4352
4353 (define-public gnaural
4354 (package
4355 (name "gnaural")
4356 (version "20110606")
4357 (source
4358 (origin
4359 (method url-fetch)
4360 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4361 version ".tar.xz"))
4362 (sha256
4363 (base32
4364 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4365 (build-system gnu-build-system)
4366 (inputs
4367 `(("alsa-lib" ,alsa-lib)
4368 ("gtk+" ,gtk+-2)
4369 ("libsndfile" ,libsndfile)
4370 ("portaudio" ,portaudio)))
4371 (native-inputs
4372 `(("pkg-config" ,pkg-config)))
4373 (home-page "http://gnaural.sourceforge.net/")
4374 (synopsis "Binaural beat synthesizer")
4375 (description "Gnaural is a programmable auditory binaural beat synthesizer
4376 intended to be used for brainwave entrainment. Gnaural supports creation of
4377 binaural beat tracks of different frequencies and exporting of tracks into
4378 different audio formats. Gnaural can also be linked over the internet with
4379 other Gnaural instances, allowing synchronous sessions between many users.")
4380 (license license:gpl2+)))
4381
4382 (define-public darkice
4383 (package
4384 (name "darkice")
4385 (version "1.4")
4386 (source (origin
4387 (method url-fetch)
4388 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4389 "download/v" version "/darkice-"
4390 version ".tar.gz"))
4391 (sha256
4392 (base32
4393 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4394 (build-system gnu-build-system)
4395 (native-inputs `(("pkg-config" ,pkg-config)))
4396 (inputs `(("lame" ,lame)
4397 ("libvorbis" ,libvorbis)
4398 ("opus" ,opus)
4399 ("twolame" ,twolame)
4400 ("alsa-lib" ,alsa-lib)
4401 ("pulseaudio" ,pulseaudio)
4402 ("jack" ,jack-1)
4403 ("libsamplerate" ,libsamplerate)))
4404 (arguments
4405 `(#:configure-flags
4406 (list (string-append "--with-lame-prefix="
4407 (assoc-ref %build-inputs "lame")))))
4408 (home-page "http://www.darkice.org/")
4409 (synopsis "Live audio streamer")
4410 (description "DarkIce is a live audio streamer. It takes audio input from
4411 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4412 stream to one or more IceCast and/or ShoutCast servers.")
4413 (license license:gpl3+)))
4414
4415 (define-public libltc
4416 (package
4417 (name "libltc")
4418 (version "1.3.1")
4419 (source
4420 (origin
4421 (method url-fetch)
4422 (uri
4423 (string-append "https://github.com/x42/libltc/releases/download/v"
4424 version "/libltc-" version ".tar.gz"))
4425 (sha256
4426 (base32
4427 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4428 (build-system gnu-build-system)
4429 (arguments
4430 `(#:parallel-tests? #f)) ;tests fail otherwise
4431 (native-inputs
4432 `(("doxygen" ,doxygen)
4433 ("pkg-config" ,pkg-config)))
4434 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4435 (description "Libltc is a POSIX-C Library for handling
4436 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4437 (home-page "https://x42.github.io/libltc/")
4438 (license license:lgpl3+)))
4439
4440 (define-public ttaenc
4441 (package
4442 (name "ttaenc")
4443 (version "3.4.1")
4444 (source
4445 (origin
4446 (method url-fetch)
4447 (uri (string-append "mirror://sourceforge/tta/"
4448 "tta/ttaenc-src"
4449 "/ttaenc-" version "-src.tgz"))
4450 (sha256
4451 (base32
4452 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4453 (build-system gnu-build-system)
4454 (arguments
4455 `(#:tests? #f ;no tests
4456 #:make-flags
4457 (list (string-append "CC=" ,(cc-for-target))
4458 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4459 #:phases
4460 (modify-phases %standard-phases
4461 (delete 'configure) ; no configure
4462 (add-before 'install 'make-bindir
4463 (lambda* (#:key outputs #:allow-other-keys)
4464 (let* ((out (assoc-ref outputs "out")))
4465 (mkdir-p (string-append out "/bin"))
4466 #t))))))
4467 (synopsis "TTA lossless audio encoder")
4468 (description
4469 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4470 data of the Wav audio files. Being lossless means that no data-
4471 quality is lost in the compression - when uncompressed, the data will
4472 be identical to the original. The compression ratios of TTA depend on
4473 the type of music file being compressed, but the compression size
4474 will generally range between 30% - 70% of the original. TTA format
4475 supports both of ID3v1/v2 and APEv2 tags.")
4476 (home-page "http://tausoft.org/")
4477 (license license:gpl2+)))
4478
4479 (define-public redkite
4480 (package
4481 (name "redkite")
4482 (version "0.8.1")
4483 (source
4484 (origin
4485 (method git-fetch)
4486 (uri (git-reference
4487 (url "https://gitlab.com/geontime/redkite.git")
4488 (commit (string-append "v" version))))
4489 (file-name (git-file-name name version))
4490 (sha256
4491 (base32 "17kv2jc4jvn3sdicz3sf8dnf25wbvv7ijzkr0mm0sbrrjz6vrwz0"))))
4492 (build-system cmake-build-system)
4493 (arguments
4494 `(#:tests? #f)) ;no tests included
4495 (inputs
4496 `(("cairo" ,cairo)))
4497 (native-inputs
4498 `(("pkg-config", pkg-config)))
4499 (synopsis "Small GUI toolkit")
4500 (description "Redkite is a small GUI toolkit developed in C++17 and
4501 inspired from other well known GUI toolkits such as Qt and GTK. It is
4502 minimal on purpose and is intended to be statically linked to applications,
4503 therefore satisfying any requirements they may have to be self contained,
4504 as is the case with audio plugins.")
4505 (home-page "https://gitlab.com/geontime/redkite")
4506 (license license:gpl3+)))
4507
4508 (define-public carla
4509 (package
4510 (name "carla")
4511 (version "2.1.1")
4512 (source
4513 (origin
4514 (method git-fetch)
4515 (uri
4516 (git-reference
4517 (url "https://github.com/falkTX/Carla")
4518 (commit (string-append "v" version))))
4519 (file-name (git-file-name name version))
4520 (sha256
4521 (base32
4522 "0c3y4a6cgi4bv1mg57i3qn5ia6pqjqlaylvkapj6bmpsw71ig22g"))))
4523 (build-system gnu-build-system)
4524 (arguments
4525 `(#:tests? #f ; no "check" target
4526 #:make-flags
4527 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4528 #:phases
4529 (modify-phases %standard-phases
4530 (delete 'configure) ; no configure script
4531 (add-before 'build 'set-CC-variable-and-show-features
4532 (lambda _
4533 (setenv "CC" "gcc")
4534 (invoke "make" "features")))
4535 (add-after 'install 'make-carla-executable
4536 (lambda* (#:key outputs #:allow-other-keys)
4537 (let ((out (assoc-ref outputs "out")))
4538 (chmod (string-append out "/share/carla/carla") #o555)
4539 #t)))
4540 (add-after 'install 'wrap-executables
4541 (lambda* (#:key outputs #:allow-other-keys)
4542 (let ((out (assoc-ref outputs "out")))
4543 (wrap-script (string-append out "/bin/carla")
4544 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4545 #t))))))
4546 (inputs
4547 `(("alsa-lib" ,alsa-lib)
4548 ("ffmpeg" ,ffmpeg)
4549 ("fluidsynth" ,fluidsynth)
4550 ("file" ,file)
4551 ("liblo" ,liblo)
4552 ("libsndfile" ,libsndfile)
4553 ("gtk2" ,gtk+-2) ;needed for bridging GTK2 plugins in GTK3 hosts
4554 ("gtk+" ,gtk+)
4555 ("python-pyliblo" ,python-pyliblo)
4556 ("python-pyqt" ,python-pyqt)
4557 ("python-rdflib" ,python-rdflib)
4558 ;; python-pyqt shows the following error without python-wrapper:
4559 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4560 ;; (ModuleNotFoundError: No module named 'PyQt5')
4561 ("python-wrapper" ,python-wrapper)
4562 ("libx11" ,libx11)
4563 ("qtbase" ,qtbase)
4564 ("zlib" ,zlib)
4565
4566 ;; For WRAP-SCRIPT above.
4567 ("guile" ,guile-2.2)))
4568 (native-inputs
4569 `(("pkg-config" ,pkg-config)))
4570 (home-page "https://kx.studio/Applications:Carla")
4571 (synopsis "Audio plugin host")
4572 (description "Carla is a modular audio plugin host, with features like
4573 transport control, automation of parameters via MIDI CC and remote control
4574 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4575 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4576 default and preferred audio driver but also supports native drivers like ALSA.")
4577 (license license:gpl2+)))
4578
4579 (define-public ecasound
4580 (package
4581 (name "ecasound")
4582 (version "2.9.3")
4583 (source (origin
4584 (method url-fetch)
4585 (uri (string-append "https://nosignal.fi/download/ecasound-"
4586 version ".tar.gz"))
4587 (sha256
4588 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4589 (build-system gnu-build-system)
4590 (native-inputs `(("pkg-config" ,pkg-config)))
4591 ;; It would be nice to add mikmod to inputs if that gets packaged
4592 ;; eventually.
4593 (inputs `(("alsa-lib" ,alsa-lib)
4594 ("jack" ,jack-1)
4595 ("mpg123" ,mpg123)
4596 ("lame" ,lame)
4597 ("vorbis-tools" ,vorbis-tools)
4598 ("faad2" ,faad2)
4599 ("flac" ,flac)
4600 ("timidity++" ,timidity++)
4601 ("libsndfile" ,libsndfile)
4602 ("libsamplerate" ,libsamplerate)
4603 ("ncurses" ,ncurses)
4604 ("ladspa" ,ladspa)
4605 ("lilv" ,lilv)))
4606 (home-page "https://nosignal.fi/ecasound/index.php")
4607 (synopsis "Multitrack audio processing")
4608 (description "Ecasound is a software package designed for multitrack audio
4609 processing. It can be used for simple tasks like audio playback, recording and
4610 format conversions, as well as for multitrack effect processing, mixing,
4611 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4612 outputs and effect algorithms. Effects and audio objects can be combined in
4613 various ways, and their parameters can be controlled by operator objects like
4614 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4615 in the package.")
4616 ;; As an exception to the above, the C, C++ and python implementations
4617 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4618 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4619 ;; that are not licensed under GPL.
4620 (license (list license:gpl2 license:lgpl2.1))))
4621
4622 (define-public libaudec
4623 (package
4624 (name "libaudec")
4625 (version "0.2.2")
4626 (source
4627 (origin
4628 (method git-fetch)
4629 (uri (git-reference
4630 (url "https://git.zrythm.org/git/libaudec")
4631 (commit (string-append "v" version))))
4632 (file-name (git-file-name name version))
4633 (sha256
4634 (base32
4635 "04mpmfmqc43asw0m3zxhb6jj4qms7x4jw7mx4xb1d3lh16xllniz"))))
4636 (build-system meson-build-system)
4637 (arguments
4638 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4639 (inputs
4640 `(("libsamplerate" ,libsamplerate)
4641 ("libsndfile" ,libsndfile)
4642 ("ffmpeg" ,ffmpeg)))
4643 (native-inputs
4644 `(("pkg-config", pkg-config)))
4645 (synopsis "Library for reading and resampling audio files")
4646 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4647 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4648 @code{audio_decoder} code.")
4649 (home-page "https://git.zrythm.org/cgit/libaudec")
4650 (license license:agpl3+)))
4651
4652 (define-public lv2lint
4653 (package
4654 (name "lv2lint")
4655 (version "0.8.0")
4656 (source
4657 (origin
4658 (method git-fetch)
4659 (uri (git-reference
4660 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4661 (commit version)))
4662 (file-name (git-file-name name version))
4663 (sha256
4664 (base32
4665 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
4666 (build-system meson-build-system)
4667 (arguments
4668 `(#:configure-flags
4669 `("-Delf-tests=true" ; for checking symbol visibility
4670 "-Donline-tests=true"))) ; for checking URI existence
4671 (inputs
4672 `(("curl", curl)
4673 ("libelf", libelf)
4674 ("lilv", lilv)))
4675 (native-inputs
4676 `(("pkg-config", pkg-config)))
4677 (synopsis "LV2 plugin lint tool")
4678 (description "lv2lint is an LV2 lint-like tool that checks whether a
4679 given plugin and its UI(s) match up with the provided metadata and adhere
4680 to well-known best practices.")
4681 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4682 (license license:artistic2.0)))
4683
4684 (define-public lv2toweb
4685 (package
4686 (name "lv2toweb")
4687 (version "0.4")
4688 (source
4689 (origin
4690 (method git-fetch)
4691 (uri (git-reference
4692 (url "https://github.com/x42/lv2toweb")
4693 (commit (string-append "v" version))))
4694 (file-name (git-file-name name version))
4695 (sha256
4696 (base32
4697 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4698 (build-system gnu-build-system)
4699 (arguments
4700 `(#:tests? #f ; no "check" target
4701 #:make-flags (list "CC=gcc"
4702 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4703 #:phases
4704 (modify-phases %standard-phases
4705 (delete 'configure))))
4706 (inputs
4707 `(("jalv", jalv)
4708 ("lilv", lilv)))
4709 (native-inputs
4710 `(("help2man", help2man)
4711 ("pkg-config", pkg-config)))
4712 (synopsis "Documentation generator for LV2 plugins")
4713 (description
4714 "lv2toweb allows the user to create an xhtml page with information
4715 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4716 with the provided metadata and adhere to well-known best practices.")
4717 (home-page "https://github.com/x42/lv2toweb")
4718 (license (list license:isc license:gpl2))))
4719
4720 (define-public ztoolkit
4721 (package
4722 (name "ztoolkit")
4723 (version "0.1.1")
4724 (source
4725 (origin
4726 (method git-fetch)
4727 (uri (git-reference
4728 (url "https://git.zrythm.org/git/ztoolkit")
4729 (commit (string-append "v" version))))
4730 (file-name (git-file-name name version))
4731 (sha256
4732 (base32
4733 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4734 (build-system meson-build-system)
4735 (inputs
4736 `(("cairo" ,cairo)
4737 ("libx11" ,libx11)))
4738 (native-inputs
4739 `(("pkg-config" ,pkg-config)))
4740 (synopsis "GUI toolkit for LV2 plugins")
4741 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4742 inspired by GTK. It handles events and low level drawing on behalf of
4743 the user and provides a high-level API for managing the UI and custom
4744 widgets. ZToolkit is written in C and was created to be used for building
4745 audio plugin UIs, where the dependencies often need to be kept to a
4746 minimum.")
4747 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4748 (license license:agpl3+)))
4749
4750 (define-public libinstpatch
4751 (package
4752 (name "libinstpatch")
4753 (version "1.1.5")
4754 (source
4755 (origin
4756 (method git-fetch)
4757 (uri (git-reference
4758 (url "https://github.com/swami/libinstpatch")
4759 (commit (string-append "v" version))))
4760 (file-name (git-file-name name version))
4761 (sha256
4762 (base32 "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb"))))
4763 (build-system cmake-build-system)
4764 (arguments
4765 `(#:tests? #f)) ;there are no tests
4766 (native-inputs
4767 `(("glib:bin" ,glib "bin")
4768 ("pkg-config" ,pkg-config)))
4769 (inputs
4770 `(("glib" ,glib)
4771 ("libsndfile" ,libsndfile)))
4772 (home-page "http://www.swamiproject.org/")
4773 (synopsis "Instrument file software library")
4774 (description
4775 "libInstPatch is a library for processing digital sample based MIDI
4776 instrument \"patch\" files. The types of files libInstPatch supports are used
4777 for creating instrument sounds for wavetable synthesis. libInstPatch provides
4778 an object framework (based on GObject) to load patch files, which can then be
4779 edited, converted, compressed and saved.")
4780 (license license:lgpl2.1)))
4781
4782 (define-public ztoolkit-rsvg
4783 (package
4784 (inherit ztoolkit)
4785 (name "ztoolkit-rsvg")
4786 (arguments
4787 `(#:configure-flags `("-Denable_rsvg=true")))
4788 (inputs
4789 `(("librsvg" ,librsvg)
4790 ,@(package-inputs ztoolkit)))
4791 (synopsis "ZToolkit with SVG support")))
4792
4793 (define-public codec2
4794 (package
4795 (name "codec2")
4796 (version "0.9.2")
4797 (source
4798 (origin
4799 (method git-fetch)
4800 (uri (git-reference
4801 (url "https://github.com/drowe67/codec2")
4802 (commit (string-append "v" version))))
4803 (file-name (git-file-name name version))
4804 (sha256
4805 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4806 (build-system cmake-build-system)
4807 (native-inputs
4808 `(("bc" ,bc)
4809 ("octave" ,octave)
4810 ("valgrind" ,valgrind)))
4811 (arguments
4812 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4813 #:phases
4814 (modify-phases %standard-phases
4815 (add-before 'check 'set-test-environment
4816 (lambda _
4817 (setenv "HOME" "/tmp")
4818 #t)))))
4819 (synopsis "Speech codec")
4820 (description
4821 "Codec 2 is a speech codec designed for communications quality speech
4822 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4823 digital radio.")
4824 (home-page "https://www.rowetel.com/?page_id=452")
4825 (license license:lgpl2.1)))
4826
4827 (define-public ableton-link
4828 (package
4829 (name "ableton-link")
4830 (version "3.0.2")
4831 (source (origin
4832 (method git-fetch)
4833 (uri (git-reference
4834 (url "https://github.com/Ableton/link")
4835 (commit (string-append "Link-" version))))
4836 (file-name (git-file-name name version))
4837 (sha256
4838 (base32
4839 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4840 (modules '((guix build utils)))
4841 (patches
4842 (search-patches "ableton-link-system-libraries-debian.patch"))
4843 (snippet
4844 '(begin
4845 ;; Tests assume that CMake's "build" directory is a
4846 ;; sub-directory of the source tree, so we fix it.
4847 (substitute* "ci/run-tests.py"
4848 (("root_dir,") "root_dir, os.pardir,"))
4849 ;; Unbundle dependencies.
4850 (delete-file-recursively "third_party")
4851 (delete-file-recursively "modules")
4852 #t))))
4853 (build-system cmake-build-system)
4854 (native-inputs
4855 `(("catch" ,catch-framework)
4856 ("python" ,python) ;for running tests
4857 ("portaudio" ,portaudio) ;for portaudio examples
4858 ("qtbase" ,qtbase) ;for Qt examples
4859 ("qtdeclarative" ,qtdeclarative)
4860 ("qttools" ,qttools)))
4861 (inputs
4862 `(("jack" ,jack-1) ;for JACK examples
4863 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4864 (propagated-inputs
4865 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4866 ;; contains '#include <asio.hpp>'.
4867 `(("asio" ,asio)))
4868 (arguments
4869 `(#:configure-flags
4870 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4871 "-DLINK_BUILD_JACK=ON")
4872 #:phases
4873 (modify-phases %standard-phases
4874 (replace 'check
4875 (lambda* (#:key inputs #:allow-other-keys)
4876 (let* ((python (string-append (assoc-ref inputs "python")
4877 "/bin/python3"))
4878 (run-tests (string-append "../ableton-link-"
4879 ,version
4880 "-checkout/ci/run-tests.py")))
4881 (invoke python run-tests "--target" "LinkCoreTest")
4882 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
4883 (add-before 'install 'patch-cmake
4884 (lambda* (#:key inputs #:allow-other-keys)
4885 (let* ((source (string-append "../ableton-link-"
4886 ,version
4887 "-checkout/")))
4888 (substitute* (string-append source
4889 "cmake_include/AsioStandaloneConfig.cmake")
4890 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
4891 "modules/asio-standalone/asio/include"))
4892 (string-append (assoc-ref inputs "asio")
4893 "/include")))
4894 (substitute* (string-append source "AbletonLinkConfig.cmake")
4895 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
4896 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
4897 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
4898 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
4899 #t)))
4900 (replace 'install
4901 (lambda* (#:key outputs #:allow-other-keys)
4902 (let* ((out (assoc-ref outputs "out"))
4903 (bin (string-append out "/bin"))
4904 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
4905 (source (string-append "../ableton-link-" ,version "-checkout")))
4906 (for-each (lambda (test-file)
4907 (delete-file test-file))
4908 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
4909 (copy-recursively "bin" bin)
4910 (copy-recursively (string-append source "/include/ableton")
4911 (string-append out "/include/ableton"))
4912 (install-file (string-append source "/AbletonLinkConfig.cmake")
4913 lib-cmake)
4914 (install-file (string-append source
4915 "/cmake_include/AsioStandaloneConfig.cmake")
4916 (string-append lib-cmake "/cmake_include"))
4917 #t))))))
4918 (home-page "https://github.com/Ableton/link")
4919 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
4920 (description
4921 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
4922 across multiple applications running on one or more devices. Applications on devices
4923 connected to a local network discover each other automatically and form a musical
4924 session in which each participant can perform independently: anyone can start or stop
4925 while still staying in time.")
4926 (license license:gpl2+)))