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