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