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