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