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