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